Skip to content
The sensor industry magazine
Since 2008
Subscribe free

Home › Technical articles

Article

RS-485 Explained: Wiring, Termination, Cable Length and Common Mistakes

RS-485 is the wiring standard behind Modbus RTU and many industrial sensor networks. This guide explains differential signalling, correct bus wiring, termination and biasing, cable length versus speed, and the mistakes that cause most communication faults.

RS-485 (formally TIA/EIA-485) is one of the most common ways to connect industrial sensors, meters and controllers. It is cheap, robust against electrical noise and reaches over a kilometre. It is also the most frequent source of "the sensor works on the bench but not in the plant" problems, almost always because of wiring rather than electronics.

RS-485 bus diagram with daisy-chained devices, twisted pair cable and 120 ohm termination resistors at both ends
A correct RS-485 bus: one line, devices daisy-chained, 120 Ω termination at both far ends.

How RS-485 works

RS-485 sends each bit as the difference in voltage between two wires, usually called A and B (or D- and D+). Electrical noise from motors and drives tends to hit both wires equally, so it cancels out when the receiver looks only at the difference. This differential signalling is why RS-485 survives in factories where single-ended signals such as RS-232 fail.

RS-485 defines only the electrical layer: voltages, loads and timing. It says nothing about message format. Protocols such as Modbus RTU, PROFIBUS DP and many proprietary sensor protocols run on top of it.

Key figures from the standard

  • Devices: a standard driver can drive 32 unit loads. Modern transceivers often present only 1/4 or 1/8 of a unit load, so more devices can share a bus.
  • Distance: up to about 1,200 m (4,000 ft) at around 100 kbit/s.
  • Speed: up to 10 Mbit/s over short distances (about 12 m).
  • Rule of thumb: cable length in metres multiplied by data rate in bit/s should stay below about 10⁷.
  • Common-mode range: receivers tolerate -7 V to +12 V between grounds, which is why a reference ground connection still matters.

How to wire an RS-485 bus

  1. Use a line, not a star. Run the cable from device to device (daisy chain). Keep stubs from the main line to each device as short as possible. Star and tree layouts cause reflections.
  2. Use twisted pair cable with a characteristic impedance of about 120 Ω, preferably shielded. Twist A and B together; do not split them across different pairs.
  3. Terminate both ends with a 120 Ω resistor across A and B, and only at the two physical ends of the line. Many devices have a built-in termination switch: turn it on at the ends and off everywhere else.
  4. Add failsafe biasing (pull-up on one line, pull-down on the other), usually at the master, so the bus sits in a defined state when no one is talking. Many masters and converters include it.
  5. Connect a common reference (signal ground or 0 V) between devices, often using the third conductor of the cable, and connect the shield to earth at one point.
  6. Use isolated transceivers or repeaters when devices are far apart or in different electrical systems, to avoid ground loops.

Common RS-485 mistakes

SymptomLikely causeFix
No communication at allA and B swapped (labels differ between makers)Swap the two wires at one device
Works at low speed, fails at high speed or long lengthMissing or extra termination, star wiringTerminate only the two ends; rewire as a line
Random errors when motors startGround potential differences, unshielded cableAdd signal ground, shielded twisted pair, isolation
Garbage when the bus is idleNo failsafe biasingEnable bias resistors at the master
Some devices answer, others do notToo many unit loads, duplicate addressesCheck loads, add a repeater, set unique addresses

RS-485 vs RS-232 vs RS-422

RS-232RS-422RS-485
SignallingSingle-endedDifferentialDifferential
Devices1 to 11 driver, up to 10 receiversMulti-drop, typically 32 unit loads
Typical distanceAbout 15 mUp to about 1,200 mUp to about 1,200 m
Typical usePC serial ports, configuration cablesPoint-to-point long links, encodersSensor networks, Modbus RTU, fieldbuses

Frequently asked questions

Is RS-485 two-wire or four-wire?

Both exist. Two-wire (half-duplex) RS-485 uses one pair for both directions and is by far the most common for sensors and Modbus. Four-wire (full-duplex) uses separate transmit and receive pairs.

Do I need termination on a short cable?

On short cables at low baud rates, many systems work without it. Terminating the two ends is still good practice and avoids problems if the network grows.

Can I use Ethernet cable for RS-485?

Yes. Cat5e and Cat6 twisted pair are widely used for RS-485 because their impedance is close to the recommended value. Use one twisted pair for A and B.

Related guides: Modbus RTU vs TCP, 4-20 mA current loop and our overview of types of sensors used in industrial automation.

Find suppliers of RS-485 sensors and converters in the Sensor Times directory.