Modbus float 32-bit converter
Drives, energy meters and PLCs often send a measurement over two 16-bit Modbus registers. Depending on the device, the word and byte order changes, and a wrong reading gives absurd values. Paste the two registers (decimal or hexadecimal): the tool shows the value in all four orders so you can spot the right one, or computes the registers to write for a given value.
- ABCD
- 230
- CDAB
- 2.417800e-41
- BADC
- 2.302154e+23
- DCBA
- 3.668459e-41
Indicative result: always verify against the standards and the installation method on site.
Publicité
Formula
IEEE 754 float1 sign bit, 8 exponent bits, 23 mantissa bits
Good to know
- ABCD = big-endian (high word first), CDAB = word swap (common on PLCs and meters), BADC = byte swap, DCBA = little-endian.
- Tip: read a known value (voltage ≈ 230 V, frequency 50 Hz) and keep the order that gives it back.
