MVI56E-MCM ♦ ControlLogix Platform Configuration as a Modbus Master
Modbus Communication Module User Manual
ProSoft Technology, Inc. Page 47 of 209
The module will send the command only when the data within the
IntAddress field of the module has changed.
Will write the data to the Slave device when the value at
WriteData[10].0 has changed. Because this is a bit level command, the
IntAddress field must be defined down to the bit level.
Will write a single bit to the device (Function Code 5 will 1 support a
count of 1).
Issues the Modbus command to node 1 on the network.
Issues Modbus Function Code 5 to write a single coil.
Function Code 5, DevAddress of 512 will read address 0513
2.3.6 Force (Write) Multiple Coils 0x (Modbus Function Code 15)
Use this function code to write multiple Coils in the 0xxx address range. This
function code sets multiple Coils within a Slave device using the same Modbus
command. Not all devices support this function code. Refer to your Slave device
documentation before implementing this function code.
This function code will also support the Enable code of 2, to write the data to the
Slave device only when the data associated within the IntAddress field of the
module has changed. The IntAddress is once again defined down to the bit level
as a Function Code 15 is a bit level Modbus function.
Below is a sample command to write Modbus addresses 0001 to 0016 of node 1
on the Modbus network.
The module will send the command to the Slave device only when the
data associated within the IntAddress of the MVI56E-MCM module
memory has changed.
Writes the data in bit 320 of the module memory to the Slave device.
Based on the MCM.CONFIG.MODDEF setting, this would be the data in
MCM.DATA.WRITEDATA[20].0 to [20].15 in the ladder logic.
Writes 16 consecutive bits to the Slave device.
Issues the Modbus command to node 1 on the network.
Issues Modbus Function Code 15 to write multiple coils.
Function Code 15, DevAddress of 0 will read address 0001
Along with a count of 16, this command writes to 0001 to 0016.