RS-485: Difference between revisions

From RS-485
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
= RS-485 (TIA-485-A) Standard Overview =
= RS-485 Standard Overview =


== Introduction ==
== Introduction ==
'''RS-485 (TIA-485-A / EIA-485)''' is a physical layer standard for balanced multipoint serial communication introduced in 1983 by the Telecommunications Industry Association (TIA).
'''RS-485''' (also known as '''TIA-485-A''' or '''EIA-485''') is a balanced differential serial communication standard introduced in 1983 by the Telecommunications Industry Association (TIA). It defines only the physical layer (electrical characteristics), making it protocol-agnostic and highly flexible.


It defines only electrical characteristics of drivers and receivers, making it protocol-independent. Higher-level protocols such as Modbus, BACnet, Profibus, and proprietary systems define framing and addressing.
RS-485 is widely adopted in industrial automation, embedded systems, building management, and instrumentation networks due to its robustness, long-distance capability, and resilience to electromagnetic interference (EMI).


RS-485 is widely used in industrial automation, building management systems, embedded networks, and instrumentation systems due to its robustness, long distance capability, and noise immunity.
Unlike higher-level communication protocols, RS-485 does not define data framing, addressing, or error handling — these are implemented by protocols such as Modbus, BACnet, or proprietary systems.


== Core Concept ==
== Core Principles ==
RS-485 is based on differential signaling over a twisted pair and a shared bus architecture with tri-state drivers.
* Differential signaling over twisted pair
* Multi-drop bus architecture
* Half-duplex dominant communication (full-duplex optional)
* Shared medium with controlled access (via protocol)


Signal is defined by voltage difference:
== Key Features ==
; Balanced Differential Signaling
: Uses two lines (A and B). Signal is represented as voltage difference (Vdiff = VA − VB). Rejects common-mode noise.


<math>V_{diff} = V_A - V_B</math>
; Multipoint Capability
: Standard supports 32 unit loads. Modern ICs allow 128, 256 or more nodes. Depends on receiver input impedance (1/8 UL, 1/4 UL, etc.)


== Electrical Characteristics ==
; Unit Load (UL) and Node Calculation
: 1 UL = 12 kΩ input impedance. Formula: <code>Max nodes = 32 / (receiver UL rating)</code>
: Examples:
:* 1 UL receivers → 32 nodes
:* 1/4 UL (48 kΩ) → 128 nodes
:* 1/8 UL (96 kΩ) → 256 nodes


; Logic Levels
; Data Rate vs Distance Tradeoff
: Logic 1 (MARK): <math>V_{diff} < -200\ \text{mV}</math>
:* 10 Mbps up to ~10–15 meters
: Logic 0 (SPACE): <math>V_{diff} > +200\ \text{mV}</math>
:* 1 Mbps up to ~100 meters
: Undefined: −200 mV to +200 mV
:* 100 kbps up to ~1200 meters


; Receiver Sensitivity
; Slew Rate Control
: ±200 mV minimum differential detection
: Some transceivers offer limited slew rate to reduce reflections and EMI on long cables or low-speed applications.


; Driver Output
; Topology
: ≥ 1.5 V across 54 Ω load
: Linear bus (daisy chain) is REQUIRED for stability. Stub length should be minimized (< 30 cm typical). Star topology causes reflections and is strongly discouraged.


; Common-mode range
; Termination
: −7 V to +12 V
: 120 Ω resistors at BOTH ends of the bus. Matches cable impedance → reduces reflections.


== Bus Architecture ==
== Electrical Characteristics ==
Supported topologies:
; Differential Voltage
* Linear bus (recommended)
:* Logic 1 (MARK): Vdiff > +200 mV
* Multi-drop bus
:* Logic 0 (SPACE): Vdiff < -200 mV
* Point-to-point
:* Typical driver output: ±1.5V to ±5V


Not recommended:
; Common-Mode Voltage Range
* Star topology (reflections)
: -7 V to +12 V (receiver must tolerate this range)
* Ring topology


RS-485 must be implemented as a terminated transmission line.
; Receiver Sensitivity
: Must detect signals as low as ±200 mV


== Transmission Line Behavior ==
; Driver Output
At higher speeds, RS-485 behaves as a transmission line.
: Must provide at least 1.5 V across 54 Ω load


Propagation delay:
; Driver Output Current
: Up to 250 mA typical (check specific transceiver datasheet)


<math>t_{prop} \approx 5\ \text{ns/m}</math>
; Three-State Drivers
: High-Z (tri-state) allows bus sharing. Enables multiple transmitters without conflict.


Effects:
=== Bus State Table ===
* reflections
{| class="wikitable"
* ringing
|+ RS-485 Bus States
* overshoot
! State !! Vdiff (A−B) !! Driver Logic !! Receiver Output
* signal distortion
|-
| Mark (1) || > +200 mV || High || 1
|-
| Space (0) || < -200 mV || Low || 0
|-
| Idle (Open, with biasing) || approx 0 V (biased to > +200 mV typically) || Not defined || 1 (if failsafe)
|}


== Cable Length vs Speed ==
== Bus Biasing (Failsafe) ==
Real-world constraints depend on cable quality and capacitance:
Biasing ensures a defined logic state when no driver is active.


* 10 Mbps → ~10–30 m
Typical implementation:
* 1 Mbps → ~100–300 m
* Pull-up resistor on line A (to VCC)
* 100 kbps → up to ~1200 m
* Pull-down resistor on line B (to GND)


Rule of thumb:
Example resistor values: 680 Ω – 4.7 kΩ depending on system.


<math>\text{bit rate} \cdot \text{distance} \lesssim 10^8</math>
Without biasing: bus floats → noise → false triggering.


== Termination ==
Modern transceivers often include '''failsafe receivers''' internally (guarantee logic 1 on open/short/idle bus).
Termination must match cable impedance:


<math>R_{termination} = Z_0 \approx 120\ \Omega</math>
== Transmission Line Effects ==
At higher speeds or longer distances, RS-485 behaves as a transmission line:
* Signal reflections occur if impedance mismatch exists
* Propagation delay matters (~5 ns/m typical cable)
* Ringing and overshoot can corrupt data


Rules:
Best practices:
* termination at both ends only
* Always terminate correctly
* no intermediate termination
* Avoid stubs
* required to reduce reflections
* Use controlled impedance cable (~120 Ω)


== Biasing (Failsafe) ==
== Grounding and Isolation ==
Biasing ensures a defined idle state when no driver is active.
RS-485 is differential but NOT fully immune to ground differences.


Target condition:
Options:
* Shared signal ground (recommended for small systems)
* Isolated transceivers for:
** Industrial environments
** Long-distance links
** Different power domains


<math>V_{diff} > 200\ \text{mV (idle)}</math>
Isolation methods:
* Optocouplers
* Digital isolators (e.g., ADuM series)


Modern transceivers often include internal failsafe circuitry, making external biasing optional in many designs.
== Half-Duplex vs Full-Duplex ==
; Half-Duplex (2 wires)
: Single pair (A/B). One device transmits at a time. Most common implementation.


== A/B Line Polarity ==
; Full-Duplex (4 wires)
RS-485 standard defines only differential signaling; it does not assign logic meaning to A and B lines.
: Two differential pairs (A/B for TX, Z/Y for RX). Simultaneous TX/RX. Less common due to extra wiring.


Important:
== Collision Avoidance ==
* A/B labeling may differ between manufacturers
RS-485 does NOT include collision detection. Handled by protocol:
* polarity must be verified in practice
* Master-slave (e.g., Modbus RTU)
* oscilloscope measurement is recommended
* Token passing
* Time-slot scheduling


== Grounding and Common Mode ==
Incorrect handling leads to:
RS-485 supports differential signaling but requires a valid common-mode range:
* Bus contention
* Signal corruption
* Potential driver damage


Allowed:
== Common Transceiver Chips ==
* −7 V to +12 V
{| class="wikitable"
|+ Popular RS-485 Transceivers
! Model !! Unit Load !! Max Speed !! Special Feature
|-
| MAX485 || 1 || 2.5 Mbps || Classic, widely available
|-
| SP485 || 1 || 5 Mbps || Low cost
|-
| MAX487 || 1/4 || 250 kbps || 128 nodes
|-
| MAX1487 || 1/4 || 2.5 Mbps || 128 nodes
|-
| ADM2483 || 1/8 || 500 kbps || Isolated, 256 nodes
|}


Considerations:
== Cable Selection ==
* long cable runs may introduce ground potential differences
Recommended:
* optional reference ground (SC/GND) may be used
* Twisted pair (mandatory)
* isolation recommended in industrial environments
* Characteristic impedance: 100–120 Ω
* Shielded cable for noisy environments


== Protection ==
Examples:
Recommended protection methods:
* CAT5e / CAT6 (works well)
* TVS diodes (ESD protection)
* Industrial RS-485 cable (e.g., Belden 9841)
* common-mode chokes (EMI suppression)
* optional series resistors (10–50 Ω)


Relevant standards:
== Connectors ==
* IEC 61000-4-2 (ESD)
Common connector types:
* IEC 61000-4-4 (EFT)
* Screw terminals
* IEC 61000-4-5 (surge)
* DB9 (industrial legacy – pinout NOT standardized!)
* RJ45 (structured cabling reuse)


== Duplex Modes ==
'''Warning:''' RS-485 does NOT define a connector or pinout. Always verify documentation.


; Half-duplex
== Advantages ==
: 2-wire system, most common, one transmitter active at a time
* High immunity to EMI/RFI
* Long cable lengths
* Multi-drop capability
* Low cost implementation
* Widely supported hardware


; Full-duplex
== Limitations ==
: 4-wire system, separate TX and RX pairs
* No built-in protocol
 
* Requires careful wiring
== Collision Handling ==
* Sensitive to topology errors (no star)
RS-485 does not define arbitration.
* No automatic arbitration
 
* Ground potential differences can cause issues
Handled by higher protocols:
* master-slave (Modbus RTU)
* token passing
* time-slot scheduling
 
Bus contention leads to data corruption.
 
== Network Topology ==
Correct topology:
 
<pre>
[Master]—120Ω—Device—Device—Device—120Ω
</pre>
 
Rules:
* linear bus only
* short stubs (< 20–30 cm recommended)
* termination only at ends
 
== Common Mistakes ==
* missing termination
* star topology wiring
* long stubs
* missing grounding strategy
* swapped A/B polarity
* no biasing in legacy systems
 
== Troubleshooting ==
Steps:
# measure differential voltage (A-B)
# verify idle state stability
# check termination resistance (~60 Ω total)
# inspect reflections using oscilloscope
# isolate nodes one by one


== Applications ==
== Applications ==
* industrial automation (Modbus, Profibus)
* Industrial automation (Modbus RTU, PROFIBUS DP)
* PLC systems
* PLC and SCADA systems
* SCADA networks
* Building automation (HVAC, lighting, access control)
* building automation (HVAC, lighting)
* Energy meters and smart grids
* CNC and robotics
* CNC machines and robotics
* energy meters
* Remote sensor networks
* security systems
* Elevator and security systems
* DMX512 lighting control


== Comparison with Other Standards ==
== Comparison with Other Standards ==
Line 178: Line 194:
| Signaling || Single-ended || Differential || Differential
| Signaling || Single-ended || Differential || Differential
|-
|-
| Nodes || 1 || 10 || 32–256
| Max Distance || ~15 m || ~1200 m || ~1200 m
|-
|-
| Distance || short || long || long
| Nodes || 1 driver, 1 receiver || 1 driver, 10 receivers || 32 drivers, 32 receivers (up to 256)
|-
|-
| Noise immunity || low || high || very high
| Noise Immunity || Poor || Good || Excellent
|-
|-
| Topology || point-to-point || point-to-point || multipoint
| Duplex || Full (3 wires) || Full (4 wires) || Half (2 wires) or Full (4 wires)
|}
|}


== Advantages ==
== Common Mistakes ==
* high noise immunity
* Missing termination resistors
* long distance support
* Using star topology
* multi-node capability
* Long stubs
* low cost implementation
* No biasing resistors
* industrial robustness
* Mixing A/B polarity
* Ignoring grounding
* Using wrong cable (non-twisted)
 
== Design Best Practices ==
* Use termination ONLY at bus ends
* Keep stubs as short as possible
* Add biasing resistors if needed (one location only)
* Use isolated transceivers in harsh environments
* Validate signal with oscilloscope
* Label A/B clearly (vendors may swap naming!)
 
== Typical Network Layout ==
<pre>
[Master] --- Term --- Device --- Device --- Device --- Term ---
            120Ω                              (last device) 120Ω
              |
            (biasing optional, one location only)
</pre>


== Limitations ==
== Debugging Tips ==
* no built-in protocol
* Measure differential voltage (A-B)
* requires careful wiring
* Check idle state (should be stable, typically >200 mV with biasing)
* no arbitration mechanism
* Look for reflections on oscilloscope
* sensitive to topology errors
* Verify polarity consistency (A to A, B to B throughout)
* Disconnect nodes to isolate faults
* Verify termination resistance across A-B (should be ~60 Ω if both ends terminated)


== Conclusion ==
== Conclusion ==
RS-485 remains one of the most widely used physical layer standards in industrial communication systems.
RS-485 remains one of the most reliable and widely used physical layer standards for industrial and embedded communication. Its simplicity, robustness, and flexibility ensure its continued relevance even in modern systems alongside Ethernet and wireless technologies.
 
Proper design — especially topology, termination, and grounding — is critical to achieving stable and high-performance communication.
 
''This page serves as the central reference for RS-485 and links to detailed subtopics such as termination, biasing, isolation, and protocol implementations.''


Its reliability depends heavily on correct implementation of:
== See Also ==
* termination
* [[Modbus]]
* topology
* [[RS-232]]
* grounding
* [[RS-422]]
* biasing
* [[Differential signaling]]
* [[Serial communication]]


Proper engineering design is required to achieve stable and high-performance communication.
== External References ==
* TIA/EIA-485-A Standard (1998)
* Application notes: Texas Instruments (SLLA272D), Analog Devices (AN-960), Maxim (AN-723)

Latest revision as of 17:29, 30 April 2026

RS-485 Standard Overview[edit | edit source]

Introduction[edit | edit source]

RS-485 (also known as TIA-485-A or EIA-485) is a balanced differential serial communication standard introduced in 1983 by the Telecommunications Industry Association (TIA). It defines only the physical layer (electrical characteristics), making it protocol-agnostic and highly flexible.

RS-485 is widely adopted in industrial automation, embedded systems, building management, and instrumentation networks due to its robustness, long-distance capability, and resilience to electromagnetic interference (EMI).

Unlike higher-level communication protocols, RS-485 does not define data framing, addressing, or error handling — these are implemented by protocols such as Modbus, BACnet, or proprietary systems.

Core Principles[edit | edit source]

  • Differential signaling over twisted pair
  • Multi-drop bus architecture
  • Half-duplex dominant communication (full-duplex optional)
  • Shared medium with controlled access (via protocol)

Key Features[edit | edit source]

Balanced Differential Signaling
Uses two lines (A and B). Signal is represented as voltage difference (Vdiff = VA − VB). Rejects common-mode noise.
Multipoint Capability
Standard supports 32 unit loads. Modern ICs allow 128, 256 or more nodes. Depends on receiver input impedance (1/8 UL, 1/4 UL, etc.)
Unit Load (UL) and Node Calculation
1 UL = 12 kΩ input impedance. Formula: Max nodes = 32 / (receiver UL rating)
Examples:
  • 1 UL receivers → 32 nodes
  • 1/4 UL (48 kΩ) → 128 nodes
  • 1/8 UL (96 kΩ) → 256 nodes
Data Rate vs Distance Tradeoff
  • 10 Mbps up to ~10–15 meters
  • 1 Mbps up to ~100 meters
  • 100 kbps up to ~1200 meters
Slew Rate Control
Some transceivers offer limited slew rate to reduce reflections and EMI on long cables or low-speed applications.
Topology
Linear bus (daisy chain) is REQUIRED for stability. Stub length should be minimized (< 30 cm typical). Star topology causes reflections and is strongly discouraged.
Termination
120 Ω resistors at BOTH ends of the bus. Matches cable impedance → reduces reflections.

Electrical Characteristics[edit | edit source]

Differential Voltage
  • Logic 1 (MARK): Vdiff > +200 mV
  • Logic 0 (SPACE): Vdiff < -200 mV
  • Typical driver output: ±1.5V to ±5V
Common-Mode Voltage Range
-7 V to +12 V (receiver must tolerate this range)
Receiver Sensitivity
Must detect signals as low as ±200 mV
Driver Output
Must provide at least 1.5 V across 54 Ω load
Driver Output Current
Up to 250 mA typical (check specific transceiver datasheet)
Three-State Drivers
High-Z (tri-state) allows bus sharing. Enables multiple transmitters without conflict.

Bus State Table[edit | edit source]

RS-485 Bus States
State Vdiff (A−B) Driver Logic Receiver Output
Mark (1) > +200 mV High 1
Space (0) < -200 mV Low 0
Idle (Open, with biasing) approx 0 V (biased to > +200 mV typically) Not defined 1 (if failsafe)

Bus Biasing (Failsafe)[edit | edit source]

Biasing ensures a defined logic state when no driver is active.

Typical implementation:

  • Pull-up resistor on line A (to VCC)
  • Pull-down resistor on line B (to GND)

Example resistor values: 680 Ω – 4.7 kΩ depending on system.

Without biasing: bus floats → noise → false triggering.

Modern transceivers often include failsafe receivers internally (guarantee logic 1 on open/short/idle bus).

Transmission Line Effects[edit | edit source]

At higher speeds or longer distances, RS-485 behaves as a transmission line:

  • Signal reflections occur if impedance mismatch exists
  • Propagation delay matters (~5 ns/m typical cable)
  • Ringing and overshoot can corrupt data

Best practices:

  • Always terminate correctly
  • Avoid stubs
  • Use controlled impedance cable (~120 Ω)

Grounding and Isolation[edit | edit source]

RS-485 is differential but NOT fully immune to ground differences.

Options:

  • Shared signal ground (recommended for small systems)
  • Isolated transceivers for:
    • Industrial environments
    • Long-distance links
    • Different power domains

Isolation methods:

  • Optocouplers
  • Digital isolators (e.g., ADuM series)

Half-Duplex vs Full-Duplex[edit | edit source]

Half-Duplex (2 wires)
Single pair (A/B). One device transmits at a time. Most common implementation.
Full-Duplex (4 wires)
Two differential pairs (A/B for TX, Z/Y for RX). Simultaneous TX/RX. Less common due to extra wiring.

Collision Avoidance[edit | edit source]

RS-485 does NOT include collision detection. Handled by protocol:

  • Master-slave (e.g., Modbus RTU)
  • Token passing
  • Time-slot scheduling

Incorrect handling leads to:

  • Bus contention
  • Signal corruption
  • Potential driver damage

Common Transceiver Chips[edit | edit source]

Popular RS-485 Transceivers
Model Unit Load Max Speed Special Feature
MAX485 1 2.5 Mbps Classic, widely available
SP485 1 5 Mbps Low cost
MAX487 1/4 250 kbps 128 nodes
MAX1487 1/4 2.5 Mbps 128 nodes
ADM2483 1/8 500 kbps Isolated, 256 nodes

Cable Selection[edit | edit source]

Recommended:

  • Twisted pair (mandatory)
  • Characteristic impedance: 100–120 Ω
  • Shielded cable for noisy environments

Examples:

  • CAT5e / CAT6 (works well)
  • Industrial RS-485 cable (e.g., Belden 9841)

Connectors[edit | edit source]

Common connector types:

  • Screw terminals
  • DB9 (industrial legacy – pinout NOT standardized!)
  • RJ45 (structured cabling reuse)

Warning: RS-485 does NOT define a connector or pinout. Always verify documentation.

Advantages[edit | edit source]

  • High immunity to EMI/RFI
  • Long cable lengths
  • Multi-drop capability
  • Low cost implementation
  • Widely supported hardware

Limitations[edit | edit source]

  • No built-in protocol
  • Requires careful wiring
  • Sensitive to topology errors (no star)
  • No automatic arbitration
  • Ground potential differences can cause issues

Applications[edit | edit source]

  • Industrial automation (Modbus RTU, PROFIBUS DP)
  • PLC and SCADA systems
  • Building automation (HVAC, lighting, access control)
  • Energy meters and smart grids
  • CNC machines and robotics
  • Remote sensor networks
  • Elevator and security systems

Comparison with Other Standards[edit | edit source]

Feature RS-232 RS-422 RS-485
Signaling Single-ended Differential Differential
Max Distance ~15 m ~1200 m ~1200 m
Nodes 1 driver, 1 receiver 1 driver, 10 receivers 32 drivers, 32 receivers (up to 256)
Noise Immunity Poor Good Excellent
Duplex Full (3 wires) Full (4 wires) Half (2 wires) or Full (4 wires)

Common Mistakes[edit | edit source]

  • Missing termination resistors
  • Using star topology
  • Long stubs
  • No biasing resistors
  • Mixing A/B polarity
  • Ignoring grounding
  • Using wrong cable (non-twisted)

Design Best Practices[edit | edit source]

  • Use termination ONLY at bus ends
  • Keep stubs as short as possible
  • Add biasing resistors if needed (one location only)
  • Use isolated transceivers in harsh environments
  • Validate signal with oscilloscope
  • Label A/B clearly (vendors may swap naming!)

Typical Network Layout[edit | edit source]

[Master] --- Term --- Device --- Device --- Device --- Term ---
             120Ω                              (last device) 120Ω
               |
            (biasing optional, one location only)

Debugging Tips[edit | edit source]

  • Measure differential voltage (A-B)
  • Check idle state (should be stable, typically >200 mV with biasing)
  • Look for reflections on oscilloscope
  • Verify polarity consistency (A to A, B to B throughout)
  • Disconnect nodes to isolate faults
  • Verify termination resistance across A-B (should be ~60 Ω if both ends terminated)

Conclusion[edit | edit source]

RS-485 remains one of the most reliable and widely used physical layer standards for industrial and embedded communication. Its simplicity, robustness, and flexibility ensure its continued relevance even in modern systems alongside Ethernet and wireless technologies.

Proper design — especially topology, termination, and grounding — is critical to achieving stable and high-performance communication.

This page serves as the central reference for RS-485 and links to detailed subtopics such as termination, biasing, isolation, and protocol implementations.

See Also[edit | edit source]

External References[edit | edit source]

  • TIA/EIA-485-A Standard (1998)
  • Application notes: Texas Instruments (SLLA272D), Analog Devices (AN-960), Maxim (AN-723)