Home / Modbus / Blog / J1939 to Modbus
J1939 to Modbus: getting truck data into a PLCA PLC speaks Modbus; a truck speaks CAN. The bridge is a gateway that reads the J1939-format messages, converts the ones you care about into engineering units, and presents them as Modbus registers your PLC already knows how to read.
The four steps that actually matter
- Name the signals. Speed, engine speed, coolant temperature, fuel level, plus whatever your site reports on. Each one is a message ID plus a bit position, length, resolution and offset.
- Decide the unit you want on the PLC side. Keep the scaling on the gateway side, so the PLC reads a number it can use directly instead of doing arithmetic in ladder logic.
- Assign registers. One register per signal, in a fixed order, documented in a table both sides keep. This table is the whole project — everything else is wiring.
- Keep the timestamp honest. A register that holds a value without a sample time is a value you cannot audit; either publish a heartbeat register or a counter the PLC can watch.
Register map, as an example of the shape
| Register | Signal | Unit | Note |
|---|---|---|---|
| 40001 | Vehicle speed | 0.1 km/h | Scaled on the gateway |
| 40002 | Engine speed | 1 rpm | |
| 40003 | Coolant temperature | 0.1 °C, offset −40 | Matches the source message |
| 40004 | Fuel level | 0.4 % | Resolution of the source |
| 40005 | Frame counter | — | Increments every published sample; a stall means no data |
Two mistakes worth avoiding
Polling faster than the source updates. If the message arrives every 100 ms, reading the register every 10 ms buys nothing and hides the real sample rate. Forgetting the counter. Without it, a frozen value and a steady value look identical on the PLC.
Questions
RS485 or Ethernet?
Both are available: RS485 with Modbus RTU for existing PLC networks, or an Ethernet-side protocol where the installation has one. The register map is the same.
Can the gateway both publish Modbus and upload over 4G?
Yes — local Modbus for the PLC and 4G for the platform are independent outputs of the same gateway.
Do we need a licensed tool to configure it?
Configuration is done against the register table; no runtime licence is required on your side.
Spec sheet, interface list and a sample payload on request — write to us (ralph@gz-can.com · +86 130 7692 2278).