21
3 Modbus protocol description
After extracting from the device, the bytes for the floating-point value must be interchanged accordingly.
Many compilers (for example, Microsoft Visual C++) store the floating-point values in the following se-
quence:
NOTE!
The sequence of the bytes depends on how floating-point values are saved in the application concerned.
It may be necessary for the bytes to be interchanged in the interface program accordingly.
Floating-point value
Address x Address x+1 Address x+2 Address x+3
MMMMMMMM MMMMMMMM EMMMMMMM SEEEEEEE
Byte 4 Byte 3 Byte 2 Byte 1