Word Order - Knowledge Base

Modbus word order overview covering 16-bit word arrangement in 32- and 64-bit values, and relationship to byte order.

Categories:

What Word Order Is

Word order defines the arrangement of 16-bit words within a 32-bit or 64-bit Modbus value. When a data type spans multiple holding registers or input registers, the order in which the high and low words are transmitted determines how the value is reconstructed.

Word Order Variants

NameRegister Layout (32-bit)Example: 123456 as UINT32
Big-endian (AB CD)High word first, low word secondReg N = 0x0001, Reg N+1 = 0xE240
Little-endian (CD AB)Low word first, high word secondReg N = 0xE240, Reg N+1 = 0x0001

Word Order vs Byte Order

Word order and byte order are independent. A device can use big-endian word order with little-endian byte order within each word, resulting in four possible combinations for 32-bit values.

[!WARNING] Most field issues labeled as “bad data” or “wrong scaling” are actually word order or byte order mismatches. Always validate with a known-good engineering value.

How to Determine Word Order

  1. Read a register pair for a value you can verify physically (e.g., a temperature reading)
  2. Decode the raw bytes in both word orders
  3. The order that produces the correct engineering value is the device’s word order

See Modbus Data Types & Byte Order Reference for a complete walkthrough.

Need more help?

If this page does not resolve the issue, contact Chipkin support with the product model, protocol details, and any diagnostics you have already captured.

Open Chipkin Support