Menu

Modbus Word Order

Modbus word-order overview covering 16-bit word arrangement in 32-bit values and why word-order mistakes often look like bad data.

Categories:

What It Is

Word order defines the arrangement of 16-bit words inside a multi-register Modbus value. When a value spans two or more registers, the order of the words determines how that value is reconstructed by a gateway, scanner, or supervisory system.

This matters most on holding registers and input registers that carry 32-bit integers, floats, totals, and energy values. The protocol link can be completely healthy while the resulting engineering value still looks absurd because the words were assembled in the wrong order.

Why It Matters

Many field complaints labeled as “bad scaling” or “bad sensor data” are actually word-order mistakes. Communication works, but the 32-bit value is being assembled in the wrong order.

Common Patterns

PatternMeaning
Big-endian (AB CD)High word first, then low word
Word-swap (CD AB)Low word first, then high word

Word order and byte order are related but not identical. A device can use a normal word order with swapped bytes inside each 16-bit word.

Where Word-Order Errors Show Up

SymptomWhat It Often Means
Float values are wildly wrong but not randomThe registers are valid, but the two words are reversed
Counter jumps to impossible magnitudesMulti-register integer assembly is wrong
One tool reads correctly and another does notThe tools are using different default interpretations
Scaling changes do not fix the problemThe issue is word reconstruction, not engineering-unit conversion

How To Validate It

  1. Read a value you can verify independently from the real device.
  2. Test the common word-order interpretations.
  3. Keep the interpretation that produces the known engineering value.

Common Failure Modes

Failure PatternWhat Usually HappenedPractical Result
Word order was assumed from vendor family reputationThe installed device revision uses a different layoutValues look wrong despite clean communications
Byte order and word order were treated as the same issueThe wrong correction was appliedTroubleshooting chases the wrong layer
Validation used an unknown field valueThere was no trustworthy real-world reference for comparisonThe wrong interpretation survives into production

Commissioning Notes

Word-order validation should use one independently known value such as a live power reading, temperature, or counter total from the source device display or incumbent system. Without that anchor, the project is still guessing even if one interpretation seems plausible.