![ProSoft MVI56E-MCMR Скачать руководство пользователя страница 119](http://html1.mh-extra.com/html/prosoft/mvi56e-mcmr/mvi56e-mcmr_user-manual_1618870119.webp)
MVI56E-MCMR ♦ ControlLogix Platform
Ladder Logic
Modbus Communication Module with Reduced Data Block
User Manual
ProSoft Technology, Inc.
Page 119 of 223
MCMREventCmd
When the command bit (
MCMR.CONTROL.E
VENT
T
RIGGER
P
X
) is set in the
example ladder logic, the module will build a block 9901 with the command
contained in the first command of the
MCMR.CONTROL.E
VENT
C
MD
P
X
[ ]
array.
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 the
MCMRE
VENT
C
MD
array.
Name
Data Type
Description
Enable
INT
0=Disable, 1=Continuous, 2=Event Command
IntAddress
INT
Module’s internal address associated with the
command
PollInt
INT
Minimum number of seconds between issuance
of command (0 to 65535 Sec)
Count
INT
Number of registers associated with the
command
Swap
INT
Swap code used with command
Device
INT
Device index in Device Table to associate with
the command
Func
INT
Function code for the command
DevAddress
INT
Address in device associated with the command
MCMRCmdControl
When the command bit (
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
T
RIGGER
) is set
in the example ladder logic, the module will build a block 9901 with the number of
commands set through:
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
C
ONTROL
D
ATA
[0]
.
The command indexes will be set through the controller tags starting from
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
C
ONTROL
D
ATA
[1]
to
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
C
ONTROL
D
ATA
[20]
For example, in order to enable commands 0, 2 and 5 the following values would
be set:
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
C
ONTROL
D
ATA
[0]
=
3
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
C
ONTROL
D
ATA
[1]
=
0
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
C
ONTROL
D
ATA
[2]
=
2
MCMR.CONTROL.C
MD
C
ONTROL
P
X
.C
MD
C
ONTROL
D
ATA
[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
MCMRC
MD
C
ONTROL
.
Name
Data Type
Description
CmdTrigger
BOOL
Command Trigger
CmdControlData
INT[21]
Command Control Data
CmdControlResp
INT[5]
Command Control Response
CmdErrTrigger
BOOL
Command Error Trigger
CmdErrData
INT[102]
Command Error Data