ProSoft Technology MVI56E-MCMR User Manual

Page 73

Advertising
background image

MVI56E-MCMR ♦ ControlLogix Platform

Configuring the MVI56E-MCMR Module

Modbus Communication Module with Reduced Data Block

User Manual

ProSoft Technology, Inc.

Page 73 of 225

May 13, 2014

Preset (Write) Multiple Registers 4x (Modbus Function Code 16)

Used to write to Modbus Holding Registers 4x, this function code will write
multiple registers 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
41051 to 41060 of Modbus Slave Device Address 1.

Parameter

Description

Enable = 2

The module will send the command only when the data associated
with the Internal Address of the module has changed.

Internal Address =30

Writes the data from Internal Address 30 of the module memory to
the Slave device. Based on the B

ACKPLANE

C

ONFIGURATION

,

this will

write the data from MCMR.DATA.W

RITE

D

ATA

[30]

TO

[39]

to the Slave

device.

Reg Count = 10

Writes 10 consecutive registers to the slave device.

Node Address = 1

Issues the Modbus command to Modbus Slave Device Address 1.

Modbus Function =16

Issues Modbus Function Code 16 to write Holding Registers.

MB Address in Device =
1050

Function Code 16, MB Address in Device of 1050 will write address
41051.
Along with a count of 10, this command writes 41051 to 41060 of the
slave device.

Advertising