beautypg.com

ProSoft Technology PLX31-EIP-SIE User Manual

Page 135

background image

PLX3x Series

MBS Protocol

Ethernet and Serial Gateways

User Manual

ProSoft Technology, Inc.

Page 135 of 218

September 17, 2014

Master Port: Command List Errors

The individual command errors for each Master port are returned to the address
locations specified in the following table. Each port can have up to 100
commands configured. Each configured command will use one word of these
data areas to store a value representing the execution status from the most
recent command execution attempt.

Modbus Port

Address Range

1

4410 to 4509

2*

4810 to 4909

3*

5210 to 5309

4*

5610 to 5709

*Status data for Ports 2 through 4 is only present in 4-port MBS gateways

Port 1 Command Error List Layout
The first word in the specified register location contains the status/error code for
the first command in the port's Command List. Successive words in the
Command Error List are associated with corresponding commands in the list.

The addresses listed are for Port 1 only; but the format is the same for each port.
The start address for each port is given in the previous section.

Internal Database
Address (Example)

Offset

Description

4410

0

Command #1 Error Code

4411

1

Command #2 Error Code

4412

2

Command #3 Error Code

4413

3

Command #4 Error Code

4414

4

Command #5 Error Code

...

...

...

...

...

...

...

...

...

4507

97

Command #98 Error Code

4508

98

Command #99 Error Code

4509

99

Command #100 Error Code

Note that the values in the Command Error List tables are initialized to zero (0) at
power-up, cold boot, and warm boot. If a command executes successfully, the
value in the associated register will remain at zero (0), indicating no command
error was detected. Any non-zero value in this table indicates the corresponding
command experienced an error.

The data in this table is dynamic. It is updated each time a command is
executed. Therefore, if the command fails once and succeeds on the next
attempt, the Error Code from the previously failed attempt will be replace with
zero and be lost. Error Codes are not archived in the gateway's database. To see
if the port has experienced an error since the most recent restart and what the
most recently occurring error was, if any, you can check the Last Error/Index.