![ProSoft MVI56E-MCMR Скачать руководство пользователя страница 69](http://html1.mh-extra.com/html/prosoft/mvi56e-mcmr/mvi56e-mcmr_user-manual_1618870069.webp)
MVI56E-MCMR ♦ ControlLogix Platform
Configuring the MVI56E-MCMR Module
Modbus Communication Module with Reduced Data Block
User Manual
ProSoft Technology, Inc.
Page 69 of 223
Preset (Write) Single Register 4x (Modbus Function Code 6)
Used to write to Modbus Holding Registers 4x, this function code will write a
single register to the slave device. The Enable code can be set to a value of 1 for
a continuous write, or a value of 2 to write the data to the slave device only when
the data associated with the Internal Address field has changed.
The following illustration shows a sample command to write Modbus addresses
41041 of Modbus Slave Device Address 1.
Parameter
Description
Enable = 1
The module will send the command every time it goes through the
command list.
Internal Address = 5
Writes the data from address 5 of the module memory to the slave
device. Based on the
B
ACKPLANE
C
ONFIGURATION
, this will take the
data from
MCMR.DATA.W
RITE
D
ATA
[5]
and write that information out
to the slave device.
Reg Count = 1
Writes 1 register (16-bit) to the slave device.
Node Address = 1
Issues the Modbus command to Modbus Slave Device Address 1.
Modbus Function =2
Issues Modbus Function Code 6 to write a single register.
MB Address in Device =
1040
Function Code 6, MB Address in Device of 1040 will write to address
41041 of the Modbus slave device.