Ladder Logic
User Manual
4.1
MVI56E-MCMR User Defined Data Types
This section describes the controller tags that are defined in the example logic to
interface with the module. The user can extend these tags to meet the
specifications required for their application, If additional data transfer is required.
4.1.1 Module Status Data and Variables (MCMRModuleDef)
All status and variable data related to the MVI56E-MCMR is stored in a user
defined data type. An instance of the data type is required before the module can
be used. This is done by declaring a variable of the data type in the Controller
Tags Edit Tags dialog box.
The following table describes the structure of this object.
Name
DATA
STATUS
CONTROL
UTIL
This object contains objects that define variables for the module and status data
related to the module. Each of these object types is discussed in the following
topics of the document.
Backplane Object (MCMRUTIL)
The MCMRUTIL object stores all the variables required for the data transfer
operation between the module and the controller. The LastRead data member is
used as the handshaking byte to indicate the arrival of new data from the
module.
The following table describes the structure of this object.
Name
LastRead
LastWrite
BlockIndex
The other members of the object are utilized in the ladder logic to assist in the
data transfer operation.
Module Data Object (MCMRDATA)
Data for the module is stored in two controller tags for the example ladder logic.
The read data (data transferred from the module to the processor) is stored in the
controller tag MCMR.R
processor to the module) is stored in the controller tag MCMR.W
Separate tags can be constructed for each data type used by the controlled
devices and for each device.
Name
ReadData
WriteData
Page 116 of 223
Modbus Communication Module with Reduced Data Block
Data Type
MCMRDATA (page 116)
MCMRSTATUS (page
117)
MCMRCONTROL (page
118)
MCMRUTIL (page 116)
Data Type
INT
INT
INT
D
[ ]. The write data (data transferred from the
EAD
ATA
Data Type
INT[600]
INT[600]
MVI56E-MCMR ♦ ControlLogix Platform
Description
Read Data and Write Data
Status information in each read block
Command Control Object
Backplane Object
Description
Index of last read block
Index of last write block
Computed block offset for data table
RITE
Description
Data read from module
Data to write to module
ProSoft Technology, Inc.
D
[ ].
ATA
Need help?
Do you have a question about the MVI56E-MCMR and is the answer not in the manual?