
MVI56E-MNETR ♦ ControlLogix Platform
Ladder Logic
Modbus TCP/IP Interface Module with Reduced Data Block
User Manual
ProSoft Technology, Inc.
Page 85 of 175
June 14, 2011
MNETRCMDCONTROL
When the command bit
(
MNETR.CONTROL.C
MD
C
ONTROL
.C
MD
C
ONTROL
T
RIGGER
) is set in the example
ladder logic, the module will build a block 9901 with the number of commands set
through:
MNETR.CONTROL.C
MD
C
ONTROL
.N
UMBER
O
F
C
OMMANDS
[0]
.
The command indexes will be set through the controller tags starting from
MNETR.CONTROL.C
MD
C
ONTROL
.C
MD
I
NDEX
[0]
to
MNETR.CONTROL.C
MD
C
ONTROL
.C
MD
I
NDEX
[5]
For example, in order to enable commands 0, 2 and 5 the following values would
be set:
MNETR.CONTROL.C
MD
C
ONTROL
.C
MD
I
NDEX
[0]
=
3
MNETR.CONTROL.C
MD
C
ONTROL
.C
MD
I
NDEX
[1]
=
0
MNETR.CONTROL.C
MD
C
ONTROL
.C
MD
I
NDEX
[2]
=
2
MNETR.CONTROL.C
MD
C
ONTROL
.C
MD
I
NDEX
[3]
=
5
The module will receive this block and build and send the command to the
specified control device using a MSG block.
The following table describes the data for the command element in
MNETRCmdControl.
Name
Data Type
Description
CmdIndex
INT[6]
The position of the initial command to execute
from the Client command list.
NumberOfCommands
INT
The number of commands to execute from the
Client command list
CommandsAddedtoQueue
INT
Number of commands added to queue
CmdControlTrigger
BOOL
Trigger Command Control. User application
will activate this trigger.