ProSoft Technology MVI56E-MCMR User Manual

Page 70

Advertising
background image

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.W

RITE

D

ATA

area (this

is configured within B

ACKPLANE

C

ONFIGURATION

).

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.

Parameter

Description

Enable = 2

The module will send the command only when the data within the
Internal Address field of the module has changed.

Internal Address = 160

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.

Reg Count = 1

Will write a single bit to the device (Function Code 5 will 1 support a
count of 1).

Node Address = 1

Issues the Modbus command to Modbus Slave Device Address 1.

Modbus Function = 5

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

Advertising