New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

RS-485 wiring for Modbus RTU: cable, termination, biasing and A/B labels

The Modbus serial line specification answers the usual RS-485 arguments: shielded Cat5 to 600 m, two terminations, one bias point, D0 and D1 instead of A and B.

RS-485 wiring for Modbus RTU follows a short list of rules in the Modbus serial line specification: a shielded twisted pair plus a common conductor, a daisy chain with stubs of 20 m at most, a termination at each end of the trunk only, polarization at one point, and the shield grounded at one end.

When a Modbus RTU line will not answer, I check the wiring against that specification before I suspect a device. It is a free download from the Modbus Organization and settles most wiring arguments at water sites and process plants. Every rule below comes from its version 1.02.

Can you use Cat5 cable for RS-485?

Yes, up to 600 m, if the cable is shielded. The specification says a Modbus serial line cable must be shielded, and that Category 5 cable may operate for RS-485 Modbus to a maximum length of 600 m.

Use one twisted pair for the data lines, D0 and D1, and another conductor for the common, which every device needs. With AWG 26 or wider cable, the trunk may reach 1,000 m at 9,600 bit/s. Watch the patch cords too: the specification asks device makers to warn that a crossed cable in a two-wire Modbus system may cause damage.

When do you need RS-485 termination resistors?

Always, one near each end of the trunk; the specification makes no exception for short lines. The specification requires a line termination near both ends of the bus, allows no more than two on one pair, and never allows one on a stub.

  • Termination: a 150 ohm, 0.5 W resistor between D0 and D1, or a 120 ohm, 0.25 W resistor in series with a 1 nF capacitor when the line is polarized.
  • Polarization: if any device needs it, one pull-up of 450 to 650 ohms from D1 to 5 V and one pull-down from D0 to the common, at one point for the whole bus, usually at the master. No other device may add its own.
  • Stubs: never longer than 20 m. A multi-port tap with n stubs allows 40 m divided by n for each.

Why are RS-485 A and B labels swapped?

Because device makers do not all apply A and B the same way, so the label alone cannot be trusted. The specification calls the lines D0 and D1, maps D0 to A and D1 to B, and requires those names in device manuals to help interoperability.

The definition to check against is polarity: D1 is at a higher voltage than D0 for a binary 1. If a manual says only A and B, look for which terminal it calls positive for a binary 1. On a bus where every device answers except one, I reverse D0 and D1 at that device before I blame its firmware.

How do you ground an RS-485 shield?

Connect the shield of each cable to protective ground at one end. The specification adds that the common goes directly to protective ground, preferably at one point for the entire bus, generally at the master or its tap.

When the line still will not answer, I run through the rest in this order:

  1. Every device has its own address. The specification warns that two devices with the same address can disturb the whole bus.
  2. Every device uses the same baud rate and parity. Devices must support 9,600 and 19,200 bit/s, and 19,200 is the default.
  3. The trunk is one daisy chain, with no star branches.
  4. Exactly two terminations are fitted, and at most one polarization point.

Once the bus answers, reading the right values is a matter of Modbus register addressing; if a PLC already masters the line, read the values from the PLC itself, as in PLC data logging. The pair itself deserves the physical protection I described under field network security.

Frequently asked questions

How many devices can one RS-485 Modbus line have?

The Modbus serial line specification always allows 32 devices without a repeater. More are possible when the devices are documented for it, polarizing the line lowers the count by four, and repeaters can join further segments.

Does the 1,000 m RS-485 limit apply at every baud rate?

No. The specification gives 1,000 m for 9,600 baud at most with AWG 26 or wider cable, and says the maximum depends on baud rate, cable, the number of loads and the configuration. At higher speeds, plan for less.

Can a PLC and a gateway both act as master on one RS-485 line?

No. The specification allows only one master at a time on the bus, and on a two-wire pair only one driver may transmit at any moment, so a second master’s requests collide with the first. Give the gateway its own port, or read the values from the PLC.

Share

See your field data live this week

Start a trial in your region with your first devices, or book a demo and bring your own use case.