ProSoft Technology MVI69E-MBTCP User Manual

Page 123

Advertising
background image

MVI69E-MBTCP ♦ CompactLogix Platform

Reference

Modbus TCP/IP Enhanced Communication Module

User Manual

ProSoft Technology, Inc.

Page 123 of 150

May 20, 2015

Example #1: Client is issuing Modbus command with FC 16 (with Float Flag: Yes) to transfer

Float data to server.

(Float specific module parameters)
Float Flag: "Y"
tells the client to consider the data values that need to be sent to
the server as floating point data where each data value is composed of 2 words
(4 bytes or 32 bits).

Float Start - Tells the client that if this address number is less than or equal to
the address number in Addr in Dev parameter to double the byte count quantity
to be included in the Command FC6 or FC16 to be issued to the server.
Otherwise the client ignores the Float Flag: Y and treat data as composed of 1
word, 2 bytes.

(Modbus Command parameters)
DB Addr
- Tells the client the beginning of data in its database to obtain and
write out to the server device.

Reg Count - Tells the client how many data points to send to the server. Two
counts mean two floating points with Float Flag: Y and the Addr in Dev greater
than or equal to the Float Start Parameter.

Swap Code - Tells the client how to orient the Byte and Word structure of the
data value. This is device dependent. See MBTCP Client x Commands (page
51).

Func Code - Tells the client to write the float values to the server. FC16.

Addr in Dev - Tells the client where in the server's database to locate the data.

Advertising