RS-485 is a communication standard widely used in robotics because it can send data reliably across noisy factory floors. Instead of depending on one signal wire measured against ground, it uses a pair of wires that carry opposite voltage changes. This makes it well suited for robot controllers, motor drives, sensors, and operator panels that must exchange commands and measurements without errors.
Its rugged behavior helps industrial robot networks stay stable over long distances and near motors, welders, and power cables.
The key idea is differential signaling, where a receiver reads the voltage difference between two lines often labeled A and B. Electrical noise usually affects both wires almost equally, so the difference between them remains mostly unchanged. RS-485 also supports a multi-drop bus, meaning many devices can share the same twisted-pair cable if only one talks at a time.
Correct termination, biasing, shielding, and grounding practices are essential for clean signals and dependable robot communication.
Key Facts
- Differential voltage is measured as Vdiff = VA - VB.
- RS-485 commonly supports cable lengths up to about 1200 m at lower data rates.
- A multi-drop RS-485 bus can connect up to 32 standard unit-load devices, with more possible using low-load transceivers.
- Termination resistors are usually placed at both physical ends of the bus, commonly about 120 ohms each.
- Only one driver should transmit on a half-duplex RS-485 bus at a time to avoid bus contention.
- Twisted-pair wiring improves noise rejection because interference is coupled nearly equally into both conductors.
Vocabulary
- RS-485
- RS-485 is an electrical communication standard that uses differential signaling to transmit digital data over long cables in noisy environments.
- Differential signaling
- Differential signaling sends information using the voltage difference between two conductors rather than the voltage of one conductor relative to ground.
- Multi-drop bus
- A multi-drop bus is a shared communication line where multiple devices connect to the same cable and take turns transmitting.
- Termination resistor
- A termination resistor is a resistor placed at the end of a transmission line to reduce signal reflections.
- Common-mode noise
- Common-mode noise is unwanted voltage that appears similarly on both signal wires and can often be rejected by a differential receiver.
Common Mistakes to Avoid
- Wiring RS-485 as a star network instead of a bus is wrong because long branches create reflections and uneven signal timing. Use one main trunk with short device taps whenever possible.
- Leaving the bus unterminated is wrong because signal edges can reflect from cable ends and corrupt data. Place termination resistors only at the two physical ends of the bus.
- Connecting two transmitters at the same time is wrong because both drivers may force different voltages onto the same wires. Use a protocol that controls which device is allowed to talk.
- Ignoring the A and B polarity labels is wrong because reversing the differential pair can make receivers read the opposite logic state or fail to communicate. Check the device datasheets because naming conventions can vary.
Practice Questions
- 1 An RS-485 receiver measures VA = 1.8 V and VB = 0.7 V. Calculate Vdiff = VA - VB and state which line is at the higher voltage.
- 2 A 1200 m RS-485 cable is terminated with a 120 ohm resistor at each end. What is the equivalent resistance seen between the A and B lines if the two terminators are in parallel?
- 3 A robot cell has one controller, four motor drives, three sensors, and one HMI on the same half-duplex RS-485 bus. Explain why the network needs a rule for which device may transmit, and describe what could happen without that rule.