Modbus stores floating point numbers using two consecutive 16-bit registers, which together form a 32-bit value. This method is based on the IEEE 754 standard for floating point representation.
The storage of floating point numbers in Modbus can be summarized as follows:
I am able to query the modbus registry fine, but I am not able to figure out how to combine the two 16bit values to get the real number.
I am also not able to find documentation or examples of this common scenario.
Any help would be appreciated,
Thanks!
The storage of floating point numbers in Modbus can be summarized as follows:
| Register 1 | Most Significant Word (MSW) | Holds the upper 16 bits of the 32-bit float |
| Register 2 | Least Significant Word (LSW) | Holds the lower 16 bits of the 32-bit float |
I am also not able to find documentation or examples of this common scenario.
Any help would be appreciated,
Thanks!