Complications With Floating Point Values - Sigma 980 Operating And Maintenance Manual

Flowmeter
Table of Contents

Advertisement

Pin
Description
Pin 1
Data Carrier Detect (DCD)*
Pin 2
Received Data (RD)
Pin 3
Transmitted Data (TD)
* Not used.

Complications with Floating Point Values

First Register (i.e., 4001)
High Word, High Byte
Equipment (DTE) must assert and hold high the DTR line of the DB9
connector (DSR of meter). The 980 Flow Meter does not support RTS/CTS
hardware handshaking. Note that DTE must be capable of handling a 12-
second maximum response lag.
Pin
Description
Pin 4
Data Terminal Ready (DTR)
Pin 5
Signal Ground (SG)
Pin 6
Data Set Ready (DSR)
The manufacturer's implementation of the Modbus protocol was based on the
idea that we would enable our flow meters to emulate a Modicon
984 PLC. Consequently, we follow the exact same format that Modicon uses
for the storing and processing of floating point numbers. Additionally, the
Modbus protocol does not define how floating point values are packed
(stored) into the internal memory addresses or "Registers" of the flow meter. If
you are integrating our Modbus-capable flow meters, be aware that these
meters store and process floating point numbers in the exact same format as
the Modicon Compact 984 PLC.
All current models of Modicon PLCs, including the Compact 984, pack two
bytes of data into each register. This alone presents no problems. Unsigned
two-byte (16-bit) integer values in the range of 0 to 65535 can be stored and
retrieved from these registers without any problems or complications. The
complications arise when the stored value is a floating point value, which by
IEEE definition, require 4 bytes (32 bits). The IEEE standard for floating point
values states in part that the 8 most significant bits represent the exponent
and the remaining 23 bits (plus one assumed bit) represent the mantissa and
the sign of the value.
Since a data "word" consists of two bytes, a floating point value is represented
by two data words. Because a single Modicon register consists of one word
(or 2 bytes), two consecutive Modicon registers are needed to store one
floating point value.
The representation of a floating point value can be broken down into a "High
Order" and a "Low Order" word. Additionally, each word can be broken down
into a high order byte and a low order byte.
Table 40
and
Table 41
represented and how the Modicon stores a floating-point value.
The complications arise because Modicon doesn't store floating point values
in this standard (IEEE) format. Modicon stores floating point values the
opposite way with the "Low-order" word in the first register and the "High-
order" word in the second register.
Table 40 IEEE Floating Point Representation
High Word, Low Byte
Pin
Pin 7
Pin 8
Pin 9
depict how a IEEE floating point value is usually
Second Register (i.e., 4002)
Low Word, High Byte
SCADA-Modbus® System Guidelines
Appendix E
Description
Request to Send (RTS)*
Clear to Send (CTS)
Ring Indicator*
®
, Compact
Low Word, Low Byte
Page 139

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Sigma 980

Table of Contents