
Configuring the MVI56E-MCMR Module MVI56E-MCMR ♦ ControlLogix Platform
User Manual Modbus Communication Module with Reduced Data Block
Page 70 of 225 ProSoft Technology, Inc.
May 13, 2014
Preset (Write) Single Coil 0x (Modbus Function Code 5)
Used to write a Coil of a slave device, these are single-bit addresses within a
Modbus slave device. The Internal Address field of this command is defined
down to the bit level within the module memory, and should come from an area
of memory that has been defined within the MCMR.DATA.WRITEDATA area (this
is configured within BACKPLANE CONFIGURATION).
The following illustration shows a sample command to write Modbus addresses
0513 of Modbus Slave Device Address 1, only when the data associated with the
Internal Address has changed.
The module will send the command only when the data within the
Internal Address 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 Internal Address 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 Modbus Slave Device Address 1.
Issues Modbus Function Code 5 to write a single coil.
MB Address in Device =
512
Function Code 5, MB Address in Device of 512 will read address
0513
Comentarios a estos manuales