4000 | Modbus Implementation |
|
|
9.6Floating-Point Registers
Although not part of the Modbus protocol specification, floating point numbers have been implemented using the IEEE 754 standard. Floating point numbers reduce the complexity required in scaling integer values and provide a means to transmit numbers used by the ATT that are not easily scaled (such as the scaling factors themselves).
9.6.1Floating-Point Data
The ATT is capable of using a two
Note! Although this type of data does not require scaling, it is important that the measurement unit selected in the ATT be the same as that expected by the host. In addition, where possible, data is available in both integer and
9.6.2The Two 16-bit Registers Format
Function code 03 or 04 is used to read
Host Request |
|
|
|
|
|
| |
Address | Function | Start Reg | Start Reg | # of Reg | # of Reg | Error |
|
| Code | H | L | H | L | Check |
|
|
|
|
|
|
|
|
|
01 | 03 | 00 | 66 | 00 | 02 | XX |
|
|
|
|
|
|
|
|
|
ATT Response |
|
|
|
|
|
| |
Address | Function | Byte | Data | Data | Data | Data | Error |
| code | Count | MSB | LSB | MSB | LSB | Check |
|
|
|
|
|
|
|
|
01 | 03 | 04 | 42 | C8 | 00 | 00 | XX |
|
|
|
|
|
|
|
|
9.6.3Floating Point Data
•Hexadecimal representation: 42 C8 00 00
•Decimal equivalent: 100.00
51