Modbus RTU into a PLCModbus survives because it is boring. On a fixed plant it is usually the shortest path from a sensor to a PLC - provided four settings are written down.
Fixed plant - cranes, stackers, conveyors, yard equipment - often has no vehicle network to join. The controller is a PLC, the wire is RS485, and the protocol is Modbus RTU. It is old, it is slow, and it is the reason a data project on a port can be finished in a week instead of a quarter.
The four settings that break commissioning
| Setting | Typical | Failure if wrong |
|---|---|---|
| Baud rate | 9600 or 19200 | No response at all, or intermittent garbage |
| Parity and stop bits | None / 8 data / 1 stop, or even parity | Reads work on one controller and fail on the next brand |
| Slave address | 1-247 | Two devices on the same address collide silently |
| Register map | 0-based or 1-based, signed or unsigned, scaling | Plausible but wrong numbers - the worst outcome, because nobody questions them |
Slave only, on our side
When a device from us sits on a Modbus RTU segment, it is a slave: the PLC is the master and decides when to read. We do not master the bus, and a project that expects the sensor box to poll the PLC has the roles backwards. Stating that early avoids a wiring argument on site.
The register map is the contract
Write it down before the units ship: address, type, scaling, unit and what an unavailable value looks like. Two details cause most of the field calls. The first is 32-bit values split across two registers - the word order differs between vendors and is rarely documented. The second is a measurement that can legitimately be negative, encoded as unsigned, which turns a cold morning into a very large number.
Where Modbus ends and MQTT begins
Modbus is local and the PLC owns the data. The moment the same values must reach a cloud platform, someone has to decide who is the source: the PLC reading the sensor, or the sensor publishing over cellular in parallel. Both are valid. The parallel route keeps the PLC program untouched and gives the platform its own record; the PLC route needs a gateway on site and makes the PLC the single source of truth. Pick one deliberately - running both without a plan produces two histories that disagree.
Sizing the segment
RS485 is a shared wire, and the details that decide whether it works are physical: how many devices are on the segment, whether the ends are terminated, what baud rate the cable length supports, and whether one master polls everything. A segment that works on a bench with two devices can fail in a yard with twelve. The practical rule is to keep the poll cycle slow enough that a missing answer is a retry and not a lost minute, and to write the device list into the commissioning document so the next engineer does not rediscover it.
The commissioning sheet
One page, filled in on site, avoids most return visits: baud, parity, stop bits, slave address for every device, register map with scaling, and the expected value at a known condition. The last item is the one people skip, and it is the only one that proves the map is right rather than plausible.
Next
J1939 · CANopen · integration routes · DTU hardware · CAN bus telematics.
Data sheet, interface list and a payload example on request — contact us (ralph@gz-can.com · +86 130 7692 2278).