The Short Answer
RS-485 is a differential serial standard that sends data as the voltage difference between two wires, usually labeled A and B. That makes it highly resistant to noise and lets one twisted pair link up to 32 standard devices over about 4,000 ft (1,200 m). For reliable communication, wire the devices in a daisy chain and fit a 120 Ω terminating resistor at each end of the cable.
How RS-485 Works
Instead of measuring a signal against ground, an RS-485 receiver looks at the difference between line A and line B. Noise picked up along the cable affects both wires almost equally, so it cancels out. A difference of at least 200 mV is read as a valid logic state.
RS-485 is a physical layer only. Protocols such as Modbus RTU, PROFIBUS DP and BACnet MS/TP define what the messages mean.
Wiring Rules
- Use a daisy chain (bus) topology. Avoid star wiring and long stubs, which cause reflections.
- Use twisted-pair cable with a characteristic impedance of about 120 Ω, such as a dedicated RS-485 or PROFIBUS cable.
- Run a signal common (reference) conductor between devices, as well as A and B.
- Connect the cable shield to ground at one point only, normally at the master.
Termination and Biasing
A termination resistor of 120 Ω across A and B at both physical ends of the cable matches the cable impedance and stops signals reflecting back down the line. Do not fit terminators at devices in the middle of the bus.
Bias (fail-safe) resistors hold the line in a known idle state when no device is transmitting. They are usually fitted once, at the master, and many converters and PLC ports include them as a switchable option.
120 Ω
Termination at
each end
32
Standard unit
loads per segment
4,000 ft
Max cable length
at low baud rates
Speed vs Distance
Longer cables mean lower maximum data rates. A rough guide is that the product of cable length in meters and data rate in bit/s should stay below about 108. At 9,600 bit/s, the full 1,200 m is achievable. At 1 Mbit/s, keep the cable to about 100 m.
Troubleshooting RS-485 Problems
- No response at all: check that A and B are not swapped. Labeling is inconsistent between manufacturers.
- Intermittent errors: check for missing or extra termination, and for star-wired stubs.
- Errors only when motors run: check shield grounding and add a signal common or an isolated converter.
- Some devices answer, others do not: check addresses, baud rate, parity and stop bits match on every device.
Related Products
We supply RS-485 converters, isolators and serial servers, plus sensors and remote I/O with RS-485 outputs.
Frequently Asked Questions
Do I need termination on a short RS-485 cable?
On very short runs at low baud rates it may work without, but fitting termination at both ends is good practice and prevents intermittent faults.
What is the difference between 2-wire and 4-wire RS-485?
2-wire (half-duplex) uses one pair for both directions. 4-wire (full-duplex) uses separate transmit and receive pairs. Most Modbus networks use 2-wire.
Why are my A and B labels reversed?
The standard defines A as the inverting line, but many manufacturers label it the other way round. If a device will not communicate, try swapping A and B.