Mnetreventcmd, Mnetrcmdcontrol – ProSoft Technology MVI56E-MNETR User Manual
Page 82

MVI56E-MNETR ♦ ControlLogix Platform
Ladder Logic
Modbus TCP/IP Interface Module with Reduced Data Block
User Manual
Page 82 of 153
ProSoft Technology, Inc.
August 31, 2009
Name Data
Type
Description
EventCmdTrigger
BOOL
Triggers the Event Command.
EventCmd MNETREventCmd
This object contains the attributes to define a
Master command. An array of these objects
is used for each port.
CmdControl MNETRCmdControl
Controls the execution of the commands
listed in the configuration under the [MNET
Client 0 Commands] section.
PassThru MNETRPassThru
Transferrs a remote Client’s commands
through the MNETR Module straight into the
Processor’s Controller tags.
MNETREventCmd
The MNETRE
VENT
C
MD
structure holds the information required for an event
command. An array of this object should be defined and should hold the event
command set to be employed in the application. The following table describes
the structure of this object.
Name Data
Type
Description
IP0
INT
First digit of IP address
IP1
INT
Second digit of IP address
IP2
INT
Third digit of IP address
IP3
INT
Last digit of IP address
ServPort INT
TCP Service Port number (0-65535), 502 for
MBAP, 2000 for MNET
Node
INT
Modbus slave node address (0 to 247)
DBAddress INT Module internal database to use with
message
Count
INT
Register or data point count
Swap
INT
Swap code to use with functions 3 and 4
Function
INT
Modbus function code for message
Address
INT
Address to interface with in device
Result INT
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]