ProSoft Technology MVI56E-MCMR User Manual

Page 114

Advertising
background image

Verify Communication

MVI56E-MCMR ♦ ControlLogix Platform

User Manual

Modbus Communication Module with Reduced Data Block

Page 114 of 225

ProSoft Technology, Inc.

May 13, 2014

Transferring the Command Error List to the Processor

You can transfer the command error list to the processor from the module
database. To place the table in the database, set the Command Error Pointer
(MCMR.P

ORT

1.C

MD

E

RR

P

TR

)

parameter to the database location desired.

In the sample ladder, the MCMR.P

ORT

1.C

MD

E

RR

P

TR

tag is set to a value of

1100. This will cause the error value of command 0 to be placed at database
address 1100. Each command error value occupies one database word. The
error value for command 1 will be in location 1101 and the remaining values in
consecutive database locations.

To transfer this table to the processor, refer to Command Error Codes (page
110). Make sure that the Command Error table is in the database area covered
by the Read Data (MCMR.M

OD

D

EF

.R

EAD

S

TART

R

EG

and

MCMR.M

OD

D

EF

.R

EAD

R

EG

C

NT

).

3.1.3 MCM Status Data

Status information can also be obtained from the MVI56E-MCMR module by
checking the MCMR.STATUS.P

RT

XE

RRS

location. Below is a sample.

If your system is working correctly, you will see C

MD

R

EQ

,

C

MD

R

ESP

,

R

EQUESTS

,

and R

ESPONSES

all incrementing together. If you see that C

MD

E

RR

is

incrementing, determine what command is causing the error (using the error
code defined in the previous section (page 110)) and correct the issue causing
the error.

Note: This information is not as detailed as the individual error codes, but they can help to

troubleshoot your application.

Also within the MCMR.STATUS

location is the parameters for Last Error and

Previous Error, shown below.

This indicates the command index that last generated an error and does not
indicate a command currently in error. In the above example, a value of 0 in
P

ORT

1L

AST

E

RR

indicates that the last error was generated by M

ODBUS

P

ORT

1

C

OMMAND

0.

This does not indicate that this command is currently in error. The

value in MCMR.STATUS.P

ORT

1P

REVIOUS

E

RR

indicates that before M

ASTER

C

OMMAND

0

generated an error, M

ODBUS

P

ORT

1

C

OMMAND

1

posted an error.

Advertising