Question

When decoding a 32-bit IEEE 754 float carried over 2 consecutive Modbus registers, how many different byte-order combinations does a developer typically encounter in practice depending on the slave?

ModbusLearnEndiannessHard
Answer

C — 4 (ABCD, DCBA, BADC, CDAB)

Four combinations are commonly seen: ABCD (standard Big Endian, the official Modbus order), DCBA (reversed Little Endian), BADC (Big Endian Byte Swap -- registers in the right order but inner bytes swapped) and CDAB (Little Endian Byte Swap -- registers swapped but inner bytes in normal order). A is wrong because, in practice, far more than one order is encountered. B is wrong because there are not just two orders; both byte-swap variants must be supported as well. D is wrong because, although eight permutations of four bytes exist mathematically, only those four are actually used by vendors. The root cause is that the original Modbus standard only specified byte order within a 16-bit register, not how to combine two registers for a 32-bit value, so each vendor made its own choice.

Preparation tip

Configure your driver with the byte order as a parameter, not as a constant in the code: changing vendor or firmware version will eventually force you to switch convention without recompiling.

All proposed choices (exam context)
  1. A.1 (standard Big endian)
  2. B.2 (Big endian, Little endian)
  3. C.4 (ABCD, DCBA, BADC, CDAB)
  4. D.8 (all possible permutations)
Waitlist

Modbus bank in preparation

The full Modbus bank isn't available yet. Drop your email to get notified at launch and grab an early-bird discount.

Join the waitlist
Want more?

See the 9 other Modbus practice questions

Related questions

Question from our independent practice bank. Modbus is a registered trademark of Modbus Organization, not affiliated with CertifBus.

Last updated: 19 May 2026

Join the waitlist
Modbus waitlist