[TD240-11AD] Reading FLOAT data
-
- Moderatore
- Posts: 135
- Joined: 16/12/2010, 17:46
Re: Reading FLOAT data
The protocol itself was designed based on devices with a 16-bit register length. Consequently, special considerations were required when implementing 32-bit data elements. This implementation settled on using two consecutive 16-bit registers to represent 32 bits of data or essentially 4 bytes of data. It is within these 4 bytes of data that single-precision floating point data can be encoded into a Modbus RTU message. Refer to the manual of your device to understand how the data are encoded in 4-byte float.