Two Modbus Registers, One Wrong Value: Separate Byte Order from Word Order
A two-register measurement looks plausible at one operating point but becomes implausible elsewhere. Before adjusting an offset, retain the exact request, register addresses and returned words. A decoding error can survive communications checks because the bytes were transferred correctly.

Original conceptual illustration; not a live software screen, specific product or customer installation.
Key takeaways
A valid response does not validate the decoded engineering quantity.
Record the exact words before applying type, order and scale.
Use more than one known test value; plausibility alone is weak evidence.
1. Preserve the raw register evidence
The Modbus application protocol specifies high-byte-first representation for an individual 16-bit register. That statement does not replace the equipment register map for interpreting a value spread across several registers. Establish the manufacturer’s data type and multi-register layout for the exact model and firmware.
For a gateway project, review the BG200 industrial IIoT gateway alongside the required device map and acceptance fixture. Its listed Modbus support is a reason to assess the interface, not proof that an unidentified multi-register format is already configured correctly.
2. Name each transformation independently
Separate address notation, register sequence, byte interpretation, data type and engineering scale in the point schedule. A client’s labels such as swapped or reversed can mean different transformations. Write the intended byte sequence explicitly so another engineer can reproduce the result.
Confirm whether the quantity is an unsigned integer, signed integer, floating-point value or a manufacturer-defined format. The number of registers alone cannot settle that question. Also establish any invalid-value encoding and quality indication before accepting the decoded number.
Espressif’s Modbus mapping documentation illustrates that devices can use multiple registers for larger values and that vendor interpretation must be considered. Use it as implementation guidance; the connected instrument’s own approved map remains the authority for that instrument.
3. Work a hypothetical integer example
Assume an invented device map defines an unsigned 32-bit integer across two consecutive registers, most-significant word first. A captured first word of 0x0001 and second word of 0x0002 then represent 1 × 65,536 + 2 = 65,538.
If those same words are assembled in the opposite word order, the result is 131,073. Both are legitimate integers; only one follows the stated map. This example is not a real product register address or a floating-point conversion rule.
If the hypothetical scale is 0.1 units per count, apply it once after the documented integer assembly, producing 6,553.8 units for the correct case. Keep the raw count and scale visible. Do not apply a display multiplier again at a downstream dashboard.

Original explanatory infographic. Values and test cases are hypothetical; equipment selection and implementation require project-specific verification.
Diagnostic comparison
Symptom | Evidence to compare |
Correct at zero only | Non-zero words and type |
Sudden large jumps | Word order and coherent-read method |
Consistent factor error | Source and downstream scaling |
4. Use a discriminating acceptance fixture
Choose approved test values that exercise both words and several byte positions. An all-zero value or equal words can conceal an ordering mistake. A single expected value may also be matched accidentally by an unrelated scale or offset.
Compare several known conditions with an independent reference or an isolated device simulator. Include the documented invalid state and a boundary appropriate to the specified type. For signed values, test the negative range only where the actual quantity and approved fixture support it.
Check whether the device guarantees a coherent read of the complete value. Correct word order cannot repair a value assembled from inconsistent updates. Follow the manufacturer’s documented read method and do not assume consecutive registers imply an atomic measurement.
Record addresses and raw words before conversion.
Resolve type and word order from the exact map.
Apply the documented scale once.
Verify several discriminating values and the invalid state.
5. Keep the configuration reproducible
Store the map revision, source addresses, raw-word examples, chosen type, exact order, scale, units and expected values. Record the matching gateway and client versions. Export the final mapping through supported tools and retain the acceptance evidence.
Avoid cycling randomly through every swap option until the display looks reasonable. Also avoid treating register-address corrections as byte-order corrections: they change different parts of the measurement path. Revalidate the complete point after either change.
For ProSense Solutions assistance, supply a sanitised raw reply and the exact register-map page with independently known values. Ask for a scoped decoding and integration assessment. The useful outcome is a documented mapping that remains correct across the operating range, not just one attractive screen reading.
Recommended equipment / related solutions
For a Modbus integration enquiry, assess the BG200 industrial IIoT gateway. Its catalogue lists Modbus TCP and RTU support; confirm the exact firmware, device map and required acceptance tests.
For a broader remote-asset monitoring scope, review the ProSense RTU Monitoring Kit. Confirm the supplied interfaces and whether a kit is appropriate; it is not a substitute for checking the connected device or an authorisation for control writes.
Related practical guide: Modbus TCP Replies Crossed? Match Transactions Before Trusting the Register Value
Frequently asked question
Does big-endian mean every 32-bit device uses the same word order?
No. Confirm the multi-register representation in the exact device map; the byte ordering of each register does not supply that whole definition.
Technical references
Need help with your application?
Send the equipment models, current documentation and a sanitised test example. Discuss this integration and equipment requirement with ProSense; confirm the actual functions, interfaces and acceptance scope before purchase or deployment.
.png)
