RS-485: Detailed Explanation

Detailed macro shot of a CPU microchip with focus on golden pins, highlighting technology details.

RS-485 (Recommended Standard 485) is a multi-point, differential serial communication standard designed for robust, long-distance, and noise-resistant data transmission. It is widely used in industrial automation, building management systems (BMS), SCADA systems, and embedded devices due to its ability to support multiple devices over long cable runs.

1. Basics of RS-485 Communication

Unlike RS-232, which is limited to point-to-point communication, RS-485 allows multiple devices to share the same bus. It supports half-duplex and full-duplex communication and operates using differential signaling, making it highly resistant to electrical noise.

Key Characteristics of RS-485

  • Differential Signaling:
    • Uses two wires (A and B) to transmit data differentially.
    • Improves noise immunity and allows longer cable distances.
  • Multi-Device Communication:
    • Supports up to 32 devices (standard) on a single bus (expandable to 256+ using special drivers).
  • Long-Distance Transmission:
    • Operates up to 1200 meters (4000 feet) at 100 kbps.
    • At higher baud rates (e.g., 10 Mbps), distance reduces significantly.
  • High-Speed Data Transfer:
    • Supports speeds up to 10 Mbps.
  • Half-Duplex or Full-Duplex Operation:
    • Half-duplex: Single pair of wires (A and B) for both transmission and reception (most common).
    • Full-duplex: Two pairs of wires (A, B, Y, Z) for simultaneous bidirectional communication.

2. RS-485 Electrical Specifications

Differential Signaling

RS-485 transmits data using two wires (A and B):

  • When A is more positive than B, the signal represents a logic 1.
  • When B is more positive than A, the signal represents a logic 0.

This differential signaling makes RS-485 immune to noise, unlike single-ended protocols like RS-232.

Voltage Levels

Logic LevelLine A VoltageLine B Voltage
Logic 1 (Mark)More positiveMore negative
Logic 0 (Space)More negativeMore positive
  • The voltage difference between A and B should be at least ±200mV for a valid signal.
  • The common-mode voltage range is -7V to +12V, meaning RS-485 devices can tolerate voltage fluctuations without data corruption.

Termination Resistors

To prevent signal reflections in long cables, 120Ω termination resistors are placed at both ends of the RS-485 bus.

3. RS-485 Network Topologies

A. Two-Wire (Half-Duplex) RS-485

  • Uses one twisted pair of wires (A and B).
  • Devices take turns transmitting and receiving.
  • Most common configuration.

B. Four-Wire (Full-Duplex) RS-485

  • Uses two twisted pairs (A, B, Y, Z).
  • Separate channels for transmitting and receiving.
  • Allows simultaneous bidirectional communication.
  • Requires a master-slave configuration.

C. Star and Ring Topologies (Not Recommended)

  • RS-485 works best in linear bus (daisy chain) topology.
  • Star and ring configurations can cause signal reflections and communication failures.

4. RS-485 Pinout and Connections

RS-485 is commonly implemented using DB9, DB25, or terminal block connectors.

Standard Pin Assignments

PinSignalDescription
1A (Data+)Non-inverting signal
2B (Data−)Inverting signal
3GNDSignal ground (optional)
4Y (TX+)Transmit Data+ (full-duplex only)
5Z (TX−)Transmit Data− (full-duplex only)
  • Some manufacturers label A/B as D+/D− or inverted.
  • Always check the documentation for correct wiring.

5. RS-485 Data Transmission Format

RS-485 is asynchronous, meaning data is sent in packets with start and stop bits.

Typical Frame Structure (8-N-1 Format)

StartData (ASCII)Parity (Optional)Stop
1 bit (0)8 bitsNone / Even / Odd1 or 2 bits
  • Baud rates range from 1.2 kbps to 10 Mbps.
  • Start bit (low) signals the beginning of a data frame.
  • Stop bit (high) signals the end of transmission.

6. RS-485 Communication Protocols

RS-485 is a physical layer standard and does not define how data should be formatted. It is used with various higher-level communication protocols, including:

A. Modbus RTU

  • Most common RS-485 protocol.
  • Uses master-slave architecture.
  • Devices communicate using query-response messages.
  • Supports up to 247 slave devices.

B. Profibus DP

  • Industrial automation protocol.
  • Supports real-time communication.
  • Uses a token-passing mechanism for device access.

C. BACnet MS/TP

  • Used in building automation (HVAC, lighting, security).
  • Uses token-passing for communication.

D. DMX512

  • Used in stage lighting and theatre.
  • Controls up to 512 devices over RS-485.

7. RS-485 vs. Other Serial Protocols

FeatureRS-485RS-232RS-422CAN Bus
TypeDifferentialSingle-endedDifferentialDifferential
Max Devices32 (standard)1-to-110127
Max Distance1200m @ 100kbps~15m1200m40m @ 1 Mbps
Max Speed10 Mbps115.2 kbps10 Mbps1 Mbps
Full-DuplexYes (4-wire)YesYesNo
Noise ImmunityHighLowHighVery High
  • RS-485 is superior to RS-232 for industrial use due to longer range, noise resistance, and multi-device support.
  • RS-485 vs. RS-422: RS-422 is similar but only supports one transmitter, whereas RS-485 allows multiple devices.

8. RS-485 Applications

RS-485 is used in environments where long distances, multiple devices, and noise immunity are required.

Industrial and Automation:

  • PLC communication (Modbus RTU, Profibus)
  • SCADA systems (remote sensor monitoring)
  • Factory automation (robotic arms, CNC machines)

Building Management:

  • HVAC (Heating, Ventilation, Air Conditioning) control (BACnet MS/TP)
  • Security systems (access control, alarms)
  • Lighting control (DMX512) in theaters

Transportation & Utilities:

  • Railway signaling
  • Smart meters (electricity, water, gas)
  • Traffic control systems

9. RS-485 Limitations

  • Requires proper termination resistors to avoid signal reflections.
  • Complex wiring compared to RS-232.
  • No standard communication protocol (Modbus, BACnet, Profibus, etc., must be used).
  • Bus arbitration needed to prevent collisions when multiple devices transmit.

10. Conclusion

RS-485 is a robust, high-speed, and long-distance serial communication standard widely used in industrial and embedded systems. With its multi-drop capability and noise resistance, it remains a preferred choice for applications requiring reliable data transmission in harsh environments.

Scroll to Top