RS-485 Physical Layer Wiring & Termination Reference for Modbus RTU

Complete RS-485 physical layer specification for Modbus RTU networks — wiring diagrams, termination resistor placement, polarization, cable selection, maximum distances, connector pinouts, and grounding best practices.

Categories:

Overview

RS-485 is the physical layer that carries Modbus RTU data between devices. While the Modbus protocol defines what is transmitted, RS-485 defines how the electrical signals travel over the wire — voltage levels, impedance, termination, and maximum distances.

Most Modbus RTU communication failures that appear random or intermittent are caused by physical layer problems: missing termination, star wiring, incorrect grounding, or exceeding cable length limits. This guide provides the complete reference for RS-485 wiring in Modbus RTU installations, based on the Modbus Serial Line specification (V1.02, §3) and TIA/EIA-485.

RS-485 Modbus RTU daisy-chain bus topology showing termination resistors, polarization bias, device connections, and maximum cable distance

RS-485 Electrical Fundamentals

Signal Characteristics

RS-485 uses differential signaling — data is encoded as the voltage difference between two wires, not the voltage relative to ground. This provides excellent noise immunity:

ParameterSpecification
SignalingDifferential (balanced)
Driver output voltage±1.5V to ±6V differential
Receiver sensitivity±200mV minimum differential
Common mode range−7V to +12V
Data rateUp to 10 Mbps (Modbus typically 9600–115200 baud)

Why Differential Signaling Matters

Electromagnetic noise affects both wires equally (common mode noise). The receiver measures only the difference between the two wires, so common mode noise cancels out. This is why RS-485 works reliably over long distances in electrically noisy industrial environments where RS-232 would fail.

2-Wire vs 4-Wire Configuration

2-Wire (Half-Duplex) — Standard for Modbus RTU

The standard Modbus RTU configuration uses 2 data wires plus a common ground:

WireSignal NameModbus Serial Line LabelRecommended Color
Data +D1 (non-inverting)D1Yellow
Data −D0 (inverting)D0Brown
CommonSignal GroundCommonGrey

In 2-wire mode, the master and slaves share the same pair for both transmitting and receiving. Only one device transmits at a time — the master sends a request, then all devices listen; the addressed slave responds, then all devices listen again.

[!WARNING] D0/D1 vs A/B labeling: The Modbus specification uses D0 (inverting) and D1 (non-inverting). Many device manufacturers label these as A and B, but the A/B assignment is inconsistent across vendors. If communication fails after wiring, swap D0 and D1 — this is the most common RS-485 wiring mistake.

4-Wire (Full-Duplex) — Rarely Used

Some installations use 4 data wires for full-duplex communication:

Wire PairPurpose
TX+ / TX−Master transmit (slave receive)
RX+ / RX−Master receive (slave transmit)
CommonSignal ground

4-wire mode is uncommon in building automation. Use it only when specifically required by the device documentation.

Termination

Why Termination Is Required

At the frequencies used by Modbus RTU, the RS-485 cable behaves as a transmission line. Without proper termination, signals reflect off the cable ends and interfere with the original data, causing CRC errors and spurious characters.

Termination Placement

Termination resistors go at both ends of the trunk (main cable run) and nowhere else:

[Term. 120Ω] --- [Master] --- [Device 1] --- [Device 2] --- [Device N] --- [Term. 120Ω]
RuleDetail
Number of terminatorsExactly 2 — one at each end of the trunk
Resistor value120Ω (TIA/EIA-485) or 150Ω (Modbus specification)
PlacementBetween D1 and D0 at each trunk endpoint
Never on stubsDerivations / spur cables do not get termination
Never in the middleOnly at the physical ends of the cable

[!TIP] Some devices have built-in termination that can be enabled via a jumper or DIP switch. Check the device documentation before adding external resistors — double-terminating a device (internal + external) overcorrects.

RC Termination Option

For better noise immunity, use an RC termination instead of a simple resistor:

ComponentValuePurpose
Resistor120ΩImpedance matching
Capacitor1nF (in series with resistor)Reduces DC loading, improves high-frequency termination

The RC termination reduces the DC current draw compared to a simple resistor, which is beneficial on buses with polarization resistors since it preserves the bias voltage.

Polarization (Bias Resistors)

Purpose

When no device is transmitting, the RS-485 bus is in a high-impedance (tri-state) condition. Without bias, noise can cause the receivers to detect false start bits, producing garbage data.

Polarization resistors hold the bus at a known idle state between transmissions:

ResistorConnectionValuePurpose
Pull-upD1 to V+ (5V)450–650ΩHolds D1 high when idle
Pull-downD0 to GND450–650ΩHolds D0 low when idle

Impact on Device Count

Polarization resistors appear as additional load on the bus. A 560Ω polarization set reduces the effective device capacity by approximately 4 unit loads (from 32 to 28 devices with standard transceivers).

[!NOTE] Many Modbus master devices (including QuickServer devices) include built-in polarization. Check whether your master device has internal bias before adding external bias resistors — over-biasing can reduce the signal voltage margin.

Cable Specifications

ParameterSpecification
TypeShielded twisted pair (STP)
Wire gaugeAWG 24 minimum (AWG 22 or AWG 20 for runs >500m)
Characteristic impedance100–130Ω
Capacitance<50 pF/m
ShieldFoil or braid, drain wire

Maximum Cable Distances

Baud RateMaximum Trunk LengthNotes
9,6001,200m (3,900 ft)Standard Modbus installations
19,2001,200m (3,900 ft)Same physical limit, timing more critical
38,4001,200m (3,900 ft)Marginal at maximum distance
115,200~500m (1,600 ft)Reduce distance at higher speeds

[!WARNING] Cat5/Cat5e/Cat6 cable has a characteristic impedance of ~100Ω and works for RS-485, but the maximum reliable distance is reduced to approximately 600m (2,000 ft) due to higher capacitance per meter compared to dedicated RS-485 cable. Use Cat5 only for short runs or temporary installations.

Maximum Stub (Derivation) Length

ParameterMaximum
Individual stub length20m (66 ft)
Total stub length (sum of all stubs)Minimize — each stub degrades signal quality

Connector Pinouts

RJ45 Pinout (Common for Modbus RTU)

Many building automation devices use RJ45 connectors for RS-485:

PinSignalColor (T-568B)
1White/Orange
2Orange
3White/Green
4D1 (Data +)Blue
5D0 (Data −)White/Blue
6Green
7White/Brown
8Common (GND)Brown

[!CAUTION] RJ45 pinouts for RS-485 are not standardized across manufacturers. The pin assignments above follow the Modbus specification, but many devices use different pin configurations — especially older equipment. Always verify the pinout in the device documentation before connecting.

Terminal Block Connections

For screw terminal connections (most common in building automation):

  1. Strip 6–8mm of insulation from each wire
  2. Insert wire into the correct terminal (D1, D0, Common/GND)
  3. Tighten the screw terminal firmly — loose connections cause intermittent failures
  4. Tug test — gently pull each wire to verify it’s secured

Grounding and Shielding

Signal Ground (Common)

The signal ground wire must run through the entire daisy chain, connecting the ground/common terminal on every device. Without a common ground reference, the differential receivers may see common mode voltages outside their −7V to +12V range and interpret noise as data.

RuleDetail
Run common/ground wire through entire chainConnects every device’s ground terminal
Use the cable’s dedicated ground conductorNot the shield drain wire
Earth ground at ONE point onlyPrevents ground loops

Shield Grounding

Best PracticeWhy
Connect shield to earth ground at one end onlyPrevents ground loop currents flowing through the shield
Leave shield floating at the far endUnconnected at the non-grounded end
Use the master/controller end for groundingMost likely to have a clean earth ground connection

[!WARNING] Grounding the shield at both ends creates a ground loop — current flows through the shield due to potential differences between the ground points. This injects noise directly into the cable that the shield was supposed to block.

Electrical Noise Mitigation

Noise SourceMitigation
VFDs (variable frequency drives)Route RS-485 cable at least 300mm from VFD power cables; cross at 90° if unavoidable
Fluorescent lighting ballastsUse shielded cable; avoid running parallel to lighting circuits
Motor starters / contactorsAdd ferrite chokes at device terminals; increase inter-request delay
Welding equipmentIsolate with optical repeaters; use separate cable trays
Long parallel power cable runsMaintain minimum 300mm separation; cross at right angles

Quick Reference Summary

ParameterValue
TopologyDaisy chain (bus), NOT star
Wires2 data (D1, D0) + 1 common ground
Termination120Ω or 150Ω at BOTH trunk ends
Max trunk length1,200m at 9600 baud
Max stub length20m
Max devices32 per segment (standard unit-load transceivers)
CableShielded twisted pair, AWG 24+, 100–130Ω impedance
Shield groundONE end only

Chipkin Tools

Need more help?

If this page does not resolve the issue, contact Chipkin support with the product model, protocol details, and any diagnostics you have already captured.

Open Chipkin Support