RS-485 Wiring for Modbus RTU: Termination, Biasing and A/B Polarity

Commission the trunk from Modbus over Serial Line Specification and Implementation Guide V1.02. One daisy chain, terminators at both ends, bias at one point, and a power-off resistance check.

Spec

V1.02, section 3.4

Terminators

2, trunk ends only

Bias

450 to 650 ohm, once

Trunk

1000 m at 9600

Some slaves answer, then a CRC fails, then the same poll works. The map did not change. The pair, the ends, or the idle state did. The rules below are section 3.4 of Modbus over Serial Line Specification and Implementation Guide V1.02, checked with the power off.

30-second rules

  • One trunk. Daisy-chain the devices, or use a derivation of 20 m or less. On a multi-port tap with n derivations, each one stays at or under 40 m divided by n.
  • Two terminators, trunk ends only. Section 3.4.5 allows no more than two on one D0-D1 pair, and none on a stub.
  • 150 ohm, or 120 ohm plus 1 nF with bias. A plain 120 ohm at each end is what most crews measure.
  • Bias once. Pull D1 up to 5 V and D0 down to Common, 450 to 650 ohm each, at one point, usually the master.
  • Common is a third wire. Bond it to protective ground at one point. Bond each shield at one end only. The shield is not Common.
  • About 60 ohm, power off. Two plain 120 ohm resistors in parallel read about 60 ohm across D0 and D1. About 120 ohm means one end is open. About 40 ohm means an extra terminator or a short.

Topology: one trunk, short stubs

Section 3.4.2 is one trunk. Devices sit on that cable, or on a short derivation. Both ends land on line terminations. A repeater joins two segments. It is not a hub with long spokes.

Section 3.4.3 caps a derivation at 20 m, or 40 m divided by n on a multi-port tap. Four ports means 10 m. A longer stub reflects inside a byte, so the CRC fails on some polls, and it fails first at a higher baud. The master may sit mid-trunk. The two cable ends still each get one terminator.

Daisy-chain trunkSchematic diagram, not a photograph120 ohmend120 ohmendD0 / D1 trunkCommon, a third conductor, not the shieldMasterbias hereSlave 1Slave 2Slave 3Stubs stay at or under 20 m. No terminator on a stub.justprotocols.com
One trunk, short taps, and a line termination at each end. Schematic diagram, not a site photograph.

A star has no single pair of ends. Rebuild it as one daisy chain. A forced branch stays inside the 20 m or 40/n limit and gets no terminator.

Trunk versus starSchematic diagram, not a photographTrunkOne cable. Short stubs.Two ends to terminateStarLong cables meet in one spot.Not the section 3.4.2 trunkjustprotocols.com
Section 3.4.2 is one trunk plus short derivations. A star has no single pair of ends. Schematic diagram, not a site photograph.

CAN bus is the same shape on another pair. The resistor and bias values here are section 3.4.5 and section 3.4.6.

Termination

Section 3.4.5 places a line termination near each of the two ends, because the wave travels both ways. More than two terminations on one passive D0-D1 pair are not allowed, and a derivation cable gets none. Each termination connects between D0 and D1.

  • 150 ohm, 0.5 W, as a plain resistor.
  • 120 ohm, 0.25 W, in series with 1 nF, 10 V minimum. V1.02 calls this the better choice when the pair is polarized, because the capacitor blocks DC through the terminators.

A plain 120 ohm at each end is the usual field fit. Section 3.6 prefers pair impedance above 100 ohm from 19200 up. Match the cable data sheet when it names an impedance. Terminate each pair on a 4-wire bus. RS-232 gets none. A jumper counts as one terminator, and only on a device that is a trunk end.

Multimeter check, about 60 ohm

Power off. A DC meter across D0 and D1 sees plain resistors in parallel.

  • Two plain 120 ohm resistors: about 60 ohm.
  • Two plain 150 ohm resistors: about 75 ohm.
  • One plain 120 ohm resistor: about 120 ohm. One end is missing.
  • Three plain 120 ohm resistors: about 40 ohm. Remove the extra.
  • Near 0 ohm: a short, or a resistor from the pair to Common.
  • Open circuit: no resistive terminator, or both ends are 120 ohm in series with 1 nF. The capacitor blocks the meter. Do not add plain resistors on top of that RC network.
Power-off checkSchematic diagram, not a photographD1D0120 ohm120 ohmmeter, power off~60 ohm~120 ohm: one end only~40 ohm: extra or a shortopen: none, or RC endsTwo plain 120 ohm resistors in parallel. RC terminators hide from a DC meter.justprotocols.com
Power off, meter across D0 and D1. Two 120 ohm end resistors read about 60 ohm. Schematic diagram, not a site photograph.

Biasing

Section 3.4.6 is line polarization. With no driver on, the pair floats and noise can look like a start bit. If any device needs a defined idle state, fit one pair for the whole bus: a pull-up from D1 to 5 V, and a pull-down from D0 to Common. Each resistor is 450 to 650 ohm. 650 ohm leaves more room for devices.

One location only, generally the master or its tap. Every other device must not polarize the line. V1.02 requires each device to document whether it needs bias and whether it provides it, so check the master before you add a second pair. Two networks fight, and the idle voltage shrinks. Polarization also cuts the authorized device count by 4. The idle state is a mark, binary 1, with D1 above D0. That matches the interface table: D1 is B/B' and D0 is A/A'.

Bias at one pointSchematic diagram, not a photograph5 V450 to 650 ohmD1to trunk D1120 ohm+ 1 nFD0to trunk D0450 to 650 ohmCommonBiasone locationjustprotocols.com
Pull D1 up to 5 V and D0 down to Common, once. The series RC between the pair is the trunk-end termination used with bias. Schematic diagram, not a site photograph.

A and B polarity

V1.02 asks for the names D0, D1, and Common so two products can share a screw. Printed A and B labels do not always follow the table.

Spec nameAlso writtenIdle, binary 1 (mark)
D1B, B', sometimes plusHigher voltage than D0
D0A, A', sometimes minusLower voltage than D1
CommonC, C'Signal common, not the shield

Swap the two data wires and try again. That is the safe test. Do not land a data wire on Common or on the supply pin. One silent slave means swap only that drop. A CRC that moves between addresses is the trunk, not one label.

Common, ground, and shield

Section 3.6 requires a shielded cable, the D0-D1 pair, and a third wire for Common. Section 3.4.4 bonds Common to protective ground at one point, generally the master. The shield bonds at one end of each cable (the connector shell, if there is one). The other end stays open. Bonding both ends shows up as CRC errors beside drives. Do not jumper Common to the shield at each device.

Cable, length, and device count

Section 3.4.3 publishes 1000 m at up to 9600 baud on AWG 26 or wider. Length also depends on gauge, impedance, loads, and 2-wire versus 4-wire. AWG 24 is always enough for the data pair, and Category 5 may run to 600 m (section 3.6). V1.02 gives no second length, so 1000 m is the 9600 figure. Its figure 22, 4-wire cable used as 2-wire, cuts that maximum in half.

Section 3.4.1 authorizes 32 devices without a repeater. More than 32 is allowed only when the devices document the unit load and the count. Addresses still run from 1 to 247, with 0 for broadcast, which is why the Modbus RTU device-count answer separates the address range from the wires. Bias cuts the authorized count by 4. Section 3.6 warns that a crossed Category 5 cord on a 2-wire system can damage equipment.

2-wire, 4-wire, and RS-232

A 2-wire trunk is one pair plus Common. Optional 4-wire is two pairs plus Common, each pair terminated at both ends. Section 3.3.3.2 joins a 2-wire device by tying D0 to TXD0 and RXD0, and D1 to TXD1 and RXD1, then moving bias and termination. That mix is still one trunk.

RS-232 is point to point, typically under 20 m, with no termination and no multi-drop. Modbus TCP keeps the map and drops D0, D1, terminators, and bias. If the same slave answers over TCP and times out on the serial port, stay on this page. If the frame is valid and the value is one register off, use register addressing.

Serial settings have to match

Section 3.2 requires 9600 and 19200 bit/s, and 19200 is the required default. Other rates are optional. Even parity is the RTU default. No parity needs a second stop bit, so the character stays 11 bits. Every device uses the same baud, parity, and stop bits. One slave on a different setting fails every poll. Errors that move between addresses are the wire. The Modbus RTU page states this default. A frame that fails the CRC checker was damaged. A frame that passes belongs in the RTU parser.

Symptom, cause, and fix

Power off, meter across D0 and D1, then one row. A baud mismatch is not cured by a third terminator.

What you seeLikely causeWhat to change
Intermittent CRC on several addresses, worse at higher baudTermination or stubsTwo end terminators only. Stubs 20 m max, or 40/n. About 60 ohm for two 120 ohm resistors
Garbage while the bus is idleMissing bias, or bias in more than one placeOne 450 to 650 ohm pull-up on D1 to 5 V and pull-down on D0 to Common, usually at the master
One slave silent, neighbors answerThat drop's A/B swap, or its serial settingsSwap D0 and D1 on that device only. Match baud, parity, and stop bits
Every slave silent, or only one device worksStar, open trunk, or no CommonOne daisy chain, Common connected, a terminator at each end
Same slave, CRC error on every pollBaud, parity, or stop bitsMatch the bus. Spec default is 19200, even parity
Meter about 120 ohmOne plain terminatorFit the missing end
Meter about 40 ohm, or near 0Extra terminator, or a shortRemove the extra. Check pair-to-Common
Meter open, ends are 120 ohm plus 1 nFCapacitors block DCExpected in section 3.4.5. Do not add plain resistors on top
Fine at 9600, fails at 19200 or aboveLength or cable at that rate1000 m is the 9600 baud figure, AWG 26 or wider. Shorten the trunk or lower the baud
CRC errors beside drives or contactorsShield bonded both ends, or used as CommonShield to ground at one end of each cable. Common bonded once, separately

Check the frame you captured

If the checker rejects the bytes, the frame was damaged. If it accepts them, look at the map or the device you polled.

Frequently Asked Questions

Do I need termination on a Modbus RTU RS-485 bus?

Yes, on any real trunk. Section 3.4.5 places a termination near each end, never on a stub, and at most two on one D0-D1 pair. Use 150 ohm (0.5 W), or 120 ohm in series with 1 nF (10 V minimum) when the pair is biased. Most crews fit a plain 120 ohm at each end. Power off, those two read about 60 ohm across D0 and D1.

What is RS-485 biasing, and where does it go?

Line polarization in section 3.4.6 holds the idle pair so noise is not a start bit. One pull-up from D1 to 5 V and one pull-down from D0 to Common, each 450 to 650 ohm, at one point only, usually the master. Every other device leaves bias off. A polarized bus is authorized for 4 fewer devices.

Why do I get CRC errors on Modbus RTU?

Intermittent errors across several addresses point at the trunk: termination, bias, a star, long stubs, a missing Common, or a shield grounded at both ends. The same error from one device on every poll points at baud, parity, or stop bits. If a captured frame fails the CRC checker, the bytes were damaged on the wire. If it passes, the frame arrived and the fault is elsewhere.

Which wire is A, and which wire is B?

In the specification table, D1 is B/B' and D0 is A/A'. Idle (binary 1) puts D1 above D0. Some labels print plus and minus, and some swap the letters. Swap the two data wires and try again. That swap is safe. Do not move a data wire onto Common or a supply pin.

What should a multimeter read between D0 and D1?

Power off. Two plain 120 ohm resistors read about 60 ohm. Two 150 ohm resistors read about 75 ohm. About 120 ohm means one terminator is missing. About 40 ohm means a third terminator or a partial short. An open reading is correct for 120 ohm in series with 1 nF at both ends, because the capacitor blocks the meter.

How long can the cable be, and how many devices can I attach?

Section 3.4.3 gives 1000 m at up to 9600 baud on AWG 26 or wider. Section 3.6 gives 600 m on Category 5. Higher rates need a shorter trunk, and V1.02 states no second length. Section 3.4.1 authorizes 32 devices without a repeater, and 4 fewer when biased. Addresses 1 to 247 are a wider limit. Stubs stay at 20 m, or 40 m divided by n.

Related protocols