beautypg.com

ProSoft Technology MVI69L-MBTCP User Manual

Page 123

background image

MVI69L-MBTCP ♦ CompactLogix Platform

Reference

Communication Module

User Manual

ProSoft Technology, Inc.

Page 123 of 152

January 6, 2014

Addr in Dev - Tells the Client where in the Server's database to locate the data.

In the above example, the Client's Modbus command to transmit inside the
Modbus packet will be as follows.

Server

address

Function

Code

Address in

Device

Reg count

Byte Count

Data

DEC

01

16

7100

2

8

85.37 22.86

HEX

01

10

1B BC

00 02

08

BD 71 42 AA E1 48 41 B6

In this example, the Client's Modbus packet contains the data byte and data word
counts that have been doubled from the amount specified by Reg Count due to
the Float flag set to Y. Some Servers look for the byte count in the data packet to
know the length of the data to read from the wire. Other servers know at which
byte the data begins and read from the wire the remaining bytes in the packet as
the data the Client is sending.

Specific Example#2: Client is issuing Modbus command with FC 16 (with Float Flag: No) to

transfer Float data.

Float Flag: "N" tells the Client to ignore the floating values and treat each
register data as a data point composed of 1 word, 2 bytes or 16 bits.

Float Start: Ignored.

DB Addr - same as when Float Flag: Y.

Reg Count - Tells the Client how many data points to send to the Server.

Swap Code - same as when Float Flag: Y.

Func Code - same as when Float Flag: Y.