Decode INT/DINT/REAL from Modbus registers, incl. byte and word swap.
Bytes: 41 C8 00 00
Modbus carries values in 16-bit registers. Larger data types (32-bit integers or IEEE 754 floats) span two consecutive registers. Enter the registers as hex – the tool shows the 16-bit interpretation of register 0 and the 32-bit value assembled from both registers.
Byte order
Reg0 = A B Reg1 = C D ABCD Big Endian · CDAB Word Swap · BADC Byte Swap · DCBA Little Endian
Example
0x41C8 0x0000 with ABCD → REAL/FLOAT32 = 25.0 (IEEE 754). A different order yields a different value – when unsure, try all four until the value looks plausible.
Notes
// RELATED TOOLS