Langkau ke kandungan

Wawasan teknologi

Modbus 32-Bit Values: Prove Word Order and Scaling Before PLC Handover

A practical PLC/SCADA acceptance method for Modbus multi-register values: word order, signed types, scaling, raw captures and stale-data handling.

6 November 2026 Bacaan 4 minit Tachyonic Intelligence Sdn Bhd
Close-up of industrial electrical relays, terminal wiring and components inside a control panel

A PLC can communicate reliably with a Modbus device and still display the wrong engineering value. The register reads succeed, there are no timeout alarms, but a temperature, counter or diagnostic result appears implausible. The underlying problem may be a mismatch between the device’s published data layout and the master’s interpretation of multiple 16-bit registers. Modbus 32-bit word order and scaling must be verified as part of integration acceptance, not left to an HMI formatting adjustment.

Begin with the exact firmware-matched definition

The Modbus protocol transports data in register-sized units; it does not impose one universal representation for every 32-bit application quantity. A device manufacturer must define the relevant register class, starting address, word count, data type, word order, scale and engineering units. For Titania remote I/O or PyXis condition-monitoring integration, obtain the controlled documentation that matches the installed hardware and firmware. Never copy a register list or an assumed conversion factor from a different release.

Record the raw values before any PLC conversion. Include the actual function code and the driver’s address-base convention: a displayed 4xxxx reference is not necessarily the zero-based offset sent on the wire. The Modbus exception-code diagnostic guide explains how to separate illegal addresses and functions from data-interpretation errors.

Separate byte order from register order

One Modbus register is 16 bits. Standard transmission places the high-order byte of a register before its low-order byte. A value spread across two registers introduces a further question: which register contains the high-order 16-bit word? That ordering is application-specific. Drivers often offer word-swap and byte-swap options, but a setting should be selected from the released device map and verified with known data rather than by trying permutations until a number looks reasonable.

Capture two consecutive raw words in hexadecimal. Record the PLC driver’s resulting decimal value under the configured interpretation, without changing the original captures. If the application expects an IEEE 754 floating-point number, confirm that the manufacturer actually specifies that type; two registers do not by themselves establish floating point. The same words might instead represent a signed or unsigned integer, a fixed-point quantity, or separately defined fields.

Check sign and numerical limits

For a documented signed 16-bit or 32-bit integer, negative values use the specified signed representation. Reading a signed quantity as unsigned can turn a legitimate negative measurement into a very large positive number. Conversely, treating a counter as signed may produce a sudden apparent reversal when its highest bit changes.

Test meaningful limits within the approved operating range. Where available, exercise a controlled positive value, zero, a negative value, and an upper-range condition. Do not inject arbitrary writes into a production register merely to test decoding. Use a manufacturer-approved test mode, a bench simulator, or a recorded response that reproduces the documented layout.

Apply scaling only after decoding

A raw integer might represent engineering units directly or use a decimal multiplier defined by the device. The correct sequence is to decode the register class, width, order and sign, then apply the documented scale and units. Avoid fixing a thousand-fold discrepancy by editing only the HMI display: the historian, alarm calculation and PLC logic may still use the wrong value.

Document the transformation at one identifiable point in the data path. If the gateway already converts the value, the PLC should not apply the same factor a second time. Capture raw registers and the final engineering result with time, device identity, firmware revision and configuration version.

Make data quality part of acceptance

A valid-looking number can be stale. Record the last successful poll, timeout behaviour, quality indication and the application response when one or both source registers cannot be updated. The PLC should not silently reuse an old healthy measurement as fresh evidence. If two words are acquired separately rather than as one supported read, confirm the device’s consistency guarantees before assuming they form a coherent sample.

Related guidance on Modbus RTU polling and data freshness covers the communications-side acceptance checks. Data-quality, alarm and restart tests remain necessary even when the decoding is correct.

Acceptance record for PLC and SCADA handover

  1. Identify the device, installed hardware, firmware and released register-map revision.
  2. Record function code, address convention, exact raw 16-bit words and acquisition time.
  3. Confirm documented width, type, signedness, word order, scaling and units.
  4. Compare the PLC tag and historian result against a controlled known value or approved independent measurement.
  5. Test loss of communication, restoration, restart and the treatment of stale values.
  6. Archive the approved conversion logic, test evidence, reviewer and any residual limitations.

The goal is reproducibility: another engineer should be able to reconstruct the result from a raw register capture without guessing the driver settings. For a revision-controlled mapping and commissioning review, contact Tachyonic Intelligence with the device model, firmware identity, approved map and example raw readings.

Technical basis: Modbus Application Protocol Specification V1.1b3; Titania 8DI/8DO datasheet TTN-DS-2026-001, Rev 08; and PyXis 222x datasheet TTN-DS-2026-002, Rev 08, both site-hosted controlled records issued July 2026. The detailed type, register order and scaling of any individual item require its firmware-matched map. No undocumented device-specific address, scale or compatibility is asserted.

Image credit: “Close up of Boxes with Wires”, Vladimir Srajber / Pexels, used under the Pexels licence. Illustrative generic industrial electrical control panel; not a photograph of a Titania/PyXis installation or a verified measurement.

Bacaan lanjut

Artikel kejuruteraan berkaitan

Lihat semua

Bagaimana kami boleh membantu

Ada soalan atau perlukan bantuan teknikal?

Maklumkan syarikat, negara, aplikasi, kuantiti, jenis isyarat, protokol, persekitaran pemasangan dan tarikh penghantaran sasaran.