
MVI56-MCM
♦
ControlLogix Platform
Configuration as a Modbus Master
Modbus Communication Module
Page 42 of 159
ProSoft Technology, Inc.
July 24, 2008
The command configuration to read these 7 floats would be setup as follows.
An array of 7 floats will need to be configured within the ControlLogix processor
as shown.
And the following COP statement will copy the data from
MCM.DATA.ReadData[0]-[13] into the array MCM_Float_Data[0]-[6].
The "Length" parameter is set to the number of Floating Point values that must
be copied from the MCM.DATA.ReadData array.
4.4.3 Write Floats to Slave Device
To issue a Write command to Floating Point addresses, the following
configuration can be used. Below is the Modbus Map for the slave device.
Value
Description
Type
40261
KW
Demand (power)
Float. upper 16 bits
40263
VAR
Reactive Power
Float. upper 16 bits
40265
VA
Apparent Power
Float. upper 16 bits
40267
Power Factor
Float. upper 16 bits
40269
VOLTS
Voltage, line to line
Float. upper 16 bits
40271
VOLTS
Voltage, line to neutral
Float. upper 16 bits
40273
AMPS
Current
Float. upper 16 bits
A COP statement must be used to copy the data from floating point data tags
within the ControlLogix processor, into the MCM.DATA.WriteData array used by
the MVI56-MCM module. Below is an example.