ProSoft Technology MVI56E-MCM/MCMXT User Manual

Page 123

Advertising
background image

MVI56E-MCM ♦ ControlLogix Platform

Reference

Modbus Communication Module

User Manual

ProSoft Technology, Inc.

Page 123 of 199

June 18, 2014

When the command receives the block, it will process it and place it in the
command queue. The module will respond to each command block with a read
block. The following table describes the format of this block.

Block Response from Module to Processor

Word Offset

Description

Length

0

Reserved

1

1

Write Block ID

1

2

0 = Fail, 1 = Success

1

3 to 248

Spare

246

249

1000 to 1255 or 2000 to 2255

1

Word two of the block can be used by the ladder logic to determine if the
command was added to the command queue of the module. The command will
only fail if the command queue for the port is full (325 commands for each queue
for modules with firmware version 3.01 or higher and Add-on-Instruction version
2.8 or higher).

Slave Status Blocks (3000 to 3003 or 3100 to 3103)

Slave status blocks send status information of each Slave device on a Master
Port. Slaves attached to the Master Port can have one of the following states:

0

The Slave is inactive and not defined in the command list for the Master Port.

1

The Slave is actively being polled or controlled by the Master Port. This does not
indicate that the Slave has responded to this message.

2

The Master Port has failed to communicate with the Slave device. Communications
with the Slave is suspended for a user defined period based on the scanning of the
command list.

3

Communications with the Slave has been disabled by the ladder logic. No
communication will occur with the Slave until this state is cleared by the ladder
logic.

Slaves are defined to the system when the module initializes the Master
command list. Each Slave defined will be set to a state of one in this initial step. If
the Master Port fails to communicate with a Slave device (retry count expired on
a command), the Master will set the state of the Slave to a value of 2 in the
status table. This suspends communication with the Slave device for a user
specified scan count (E

RROR

D

ELAY

C

NTR

value in the MCMP

ORT

object for each

port). Each time a command in the list is scanned that has the address of a
suspended Slave, the delay counter value will be decremented. When the value
reaches zero, the Slave state will be set to one. This will enable polling of the
Slave.

Block ID

Description

3002

Request for first 128 Slave status values for Modbus Port 1

3003

Request for last 128 Slave status values for Modbus Port 1

3102

Request for first 128 Slave status values for Modbus Port 2

3103

Request for last 128 Slave status values for Modbus Port 2

Advertising