RS-485: Difference between revisions

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


== Introduction ==
== Introduction ==
'''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 (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 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).
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.


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.
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.


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


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


; Multipoint Capability
<math>V_{diff} = V_A - V_B</math>
: 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
== Electrical Characteristics ==
: 1 UL = 12 kΩ input impedance. Formula: <code>Max nodes = 32 / (receiver UL rating)</code>
 
: Examples:
; Logic Levels
:* 1 UL receivers → 32 nodes
: Logic 1 (MARK): <math>V_{diff} < -200\ \text{mV}</math>
:* 1/4 UL (48 kΩ) → 128 nodes
: Logic 0 (SPACE): <math>V_{diff} > +200\ \text{mV}</math>
:* 1/8 UL (96 kΩ) → 256 nodes
: Undefined: −200 mV to +200 mV
 
; Receiver Sensitivity
: ±200 mV minimum differential detection
 
; Driver Output
: ≥ 1.5 V across 54 Ω load
 
; Common-mode range
: −7 V to +12 V
 
== Bus Architecture ==
Supported topologies:
* Linear bus (recommended)
* Multi-drop bus
* Point-to-point
 
Not recommended:
* Star topology (reflections)
* Ring topology
 
RS-485 must be implemented as a terminated transmission line.
 
== Transmission Line Behavior ==
At higher speeds, RS-485 behaves as a transmission line.


; Data Rate vs Distance Tradeoff
Propagation delay:
:* 10 Mbps up to ~10–15 meters
:* 1 Mbps up to ~100 meters
:* 100 kbps up to ~1200 meters


; Slew Rate Control
<math>t_{prop} \approx 5\ \text{ns/m}</math>
: Some transceivers offer limited slew rate to reduce reflections and EMI on long cables or low-speed applications.


; Topology
Effects:
: Linear bus (daisy chain) is REQUIRED for stability. Stub length should be minimized (< 30 cm typical). Star topology causes reflections and is strongly discouraged.
* reflections
* ringing
* overshoot
* signal distortion


; Termination
== Cable Length vs Speed ==
: 120 Ω resistors at BOTH ends of the bus. Matches cable impedance → reduces reflections.
Real-world constraints depend on cable quality and capacitance:


== Electrical Characteristics ==
* 10 Mbps → ~10–30 m
; Differential Voltage
* 1 Mbps → ~100–300 m
:* Logic 1 (MARK): Vdiff > +200 mV
* 100 kbps → up to ~1200 m
:* Logic 0 (SPACE): Vdiff < -200 mV
:* Typical driver output: ±1.5V to ±5V


; Common-Mode Voltage Range
Rule of thumb:
: -7 V to +12 V (receiver must tolerate this range)


; Receiver Sensitivity
<math>\text{bit rate} \cdot \text{distance} \lesssim 10^8</math>
: Must detect signals as low as ±200 mV


; Driver Output
== Termination ==
: Must provide at least 1.5 V across 54 Ω load
Termination must match cable impedance:


; Driver Output Current
<math>R_{termination} = Z_0 \approx 120\ \Omega</math>
: Up to 250 mA typical (check specific transceiver datasheet)


; Three-State Drivers
Rules:
: High-Z (tri-state) allows bus sharing. Enables multiple transmitters without conflict.
* termination at both ends only
* no intermediate termination
* required to reduce reflections


=== Bus State Table ===
== Biasing (Failsafe) ==
{| class="wikitable"
Biasing ensures a defined idle state when no driver is active.
|+ 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) ==
Target condition:
Biasing ensures a defined logic state when no driver is active.


Typical implementation:
<math>V_{diff} > 200\ \text{mV (idle)}</math>
* 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.
Modern transceivers often include internal failsafe circuitry, making external biasing optional in many designs.


Without biasing: bus floats → noise → false triggering.
== A/B Line Polarity ==
RS-485 standard defines only differential signaling; it does not assign logic meaning to A and B lines.


Modern transceivers often include '''failsafe receivers''' internally (guarantee logic 1 on open/short/idle bus).
Important:
* A/B labeling may differ between manufacturers
* polarity must be verified in practice
* oscilloscope measurement is recommended


== Transmission Line Effects ==
== Grounding and Common Mode ==
At higher speeds or longer distances, RS-485 behaves as a transmission line:
RS-485 supports differential signaling but requires a valid common-mode range:
* Signal reflections occur if impedance mismatch exists
* Propagation delay matters (~5 ns/m typical cable)
* Ringing and overshoot can corrupt data


Best practices:
Allowed:
* Always terminate correctly
* −7 V to +12 V
* Avoid stubs
* Use controlled impedance cable (~120 Ω)


== Grounding and Isolation ==
Considerations:
RS-485 is differential but NOT fully immune to ground differences.
* long cable runs may introduce ground potential differences
* optional reference ground (SC/GND) may be used
* isolation recommended in industrial environments


Options:
== Protection ==
* Shared signal ground (recommended for small systems)
Recommended protection methods:
* Isolated transceivers for:
* TVS diodes (ESD protection)
** Industrial environments
* common-mode chokes (EMI suppression)
** Long-distance links
* optional series resistors (10–50 Ω)
** Different power domains


Isolation methods:
Relevant standards:
* Optocouplers
* IEC 61000-4-2 (ESD)
* Digital isolators (e.g., ADuM series)
* IEC 61000-4-4 (EFT)
* IEC 61000-4-5 (surge)


== Half-Duplex vs Full-Duplex ==
== Duplex Modes ==
; Half-Duplex (2 wires)
: Single pair (A/B). One device transmits at a time. Most common implementation.


; Full-Duplex (4 wires)
; Half-duplex
: Two differential pairs (A/B for TX, Z/Y for RX). Simultaneous TX/RX. Less common due to extra wiring.
: 2-wire system, most common, one transmitter active at a time


== Collision Avoidance ==
; Full-duplex
RS-485 does NOT include collision detection. Handled by protocol:
: 4-wire system, separate TX and RX pairs
* Master-slave (e.g., Modbus RTU)
* Token passing
* Time-slot scheduling


Incorrect handling leads to:
== Collision Handling ==
* Bus contention
RS-485 does not define arbitration.
* Signal corruption
* Potential driver damage


== Common Transceiver Chips ==
Handled by higher protocols:
{| class="wikitable"
* master-slave (Modbus RTU)
|+ Popular RS-485 Transceivers
* token passing
! Model !! Unit Load !! Max Speed !! Special Feature
* time-slot scheduling
|-
| 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 ==
Bus contention leads to data corruption.
Recommended:
* Twisted pair (mandatory)
* Characteristic impedance: 100–120 Ω
* Shielded cable for noisy environments


Examples:
== Network Topology ==
* CAT5e / CAT6 (works well)
Correct topology:
* Industrial RS-485 cable (e.g., Belden 9841)


== Connectors ==
<pre>
Common connector types:
[Master]—120Ω—Device—Device—Device—120Ω
* Screw terminals
</pre>
* DB9 (industrial legacy – pinout NOT standardized!)
* RJ45 (structured cabling reuse)


'''Warning:''' RS-485 does NOT define a connector or pinout. Always verify documentation.
Rules:
* linear bus only
* short stubs (< 20–30 cm recommended)
* termination only at ends


== Advantages ==
== Common Mistakes ==
* High immunity to EMI/RFI
* missing termination
* Long cable lengths
* star topology wiring
* Multi-drop capability
* long stubs
* Low cost implementation
* missing grounding strategy
* Widely supported hardware
* swapped A/B polarity
* no biasing in legacy systems


== Limitations ==
== Troubleshooting ==
* No built-in protocol
Steps:
* Requires careful wiring
# measure differential voltage (A-B)
* Sensitive to topology errors (no star)
# verify idle state stability
* No automatic arbitration
# check termination resistance (~60 Ω total)
* Ground potential differences can cause issues
# inspect reflections using oscilloscope
# isolate nodes one by one


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


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


== Common Mistakes ==
== Advantages ==
* Missing termination resistors
* high noise immunity
* Using star topology
* long distance support
* Long stubs
* multi-node capability
* No biasing resistors
* low cost implementation
* Mixing A/B polarity
* industrial robustness
* Ignoring grounding
* Using wrong cable (non-twisted)


== Design Best Practices ==
== Limitations ==
* Use termination ONLY at bus ends
* no built-in protocol
* Keep stubs as short as possible
* requires careful wiring
* Add biasing resistors if needed (one location only)
* no arbitration mechanism
* Use isolated transceivers in harsh environments
* sensitive to topology errors
* 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>
 
== Debugging Tips ==
* 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 ==
== Conclusion ==
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.
RS-485 remains one of the most widely used physical layer standards in industrial communication systems.
 
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 ==
Its reliability depends heavily on correct implementation of:
* [[Modbus]]
* termination
* [[RS-232]]
* topology
* [[RS-422]]
* grounding
* [[Differential signaling]]
* biasing
* [[Serial communication]]


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

Revision as of 17:28, 30 April 2026

RS-485 (TIA-485-A) Standard Overview

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).

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 used in industrial automation, building management systems, embedded networks, and instrumentation systems due to its robustness, long distance capability, and noise immunity.

Core Concept

RS-485 is based on differential signaling over a twisted pair and a shared bus architecture with tri-state drivers.

Signal is defined by voltage difference:

Electrical Characteristics

Logic Levels
Logic 1 (MARK):
Logic 0 (SPACE):
Undefined: −200 mV to +200 mV
Receiver Sensitivity
±200 mV minimum differential detection
Driver Output
≥ 1.5 V across 54 Ω load
Common-mode range
−7 V to +12 V

Bus Architecture

Supported topologies:

  • Linear bus (recommended)
  • Multi-drop bus
  • Point-to-point

Not recommended:

  • Star topology (reflections)
  • Ring topology

RS-485 must be implemented as a terminated transmission line.

Transmission Line Behavior

At higher speeds, RS-485 behaves as a transmission line.

Propagation delay:

Effects:

  • reflections
  • ringing
  • overshoot
  • signal distortion

Cable Length vs Speed

Real-world constraints depend on cable quality and capacitance:

  • 10 Mbps → ~10–30 m
  • 1 Mbps → ~100–300 m
  • 100 kbps → up to ~1200 m

Rule of thumb:

Termination

Termination must match cable impedance:

Rules:

  • termination at both ends only
  • no intermediate termination
  • required to reduce reflections

Biasing (Failsafe)

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

Target condition:

Modern transceivers often include internal failsafe circuitry, making external biasing optional in many designs.

A/B Line Polarity

RS-485 standard defines only differential signaling; it does not assign logic meaning to A and B lines.

Important:

  • A/B labeling may differ between manufacturers
  • polarity must be verified in practice
  • oscilloscope measurement is recommended

Grounding and Common Mode

RS-485 supports differential signaling but requires a valid common-mode range:

Allowed:

  • −7 V to +12 V

Considerations:

  • long cable runs may introduce ground potential differences
  • optional reference ground (SC/GND) may be used
  • isolation recommended in industrial environments

Protection

Recommended protection methods:

  • TVS diodes (ESD protection)
  • common-mode chokes (EMI suppression)
  • optional series resistors (10–50 Ω)

Relevant standards:

  • IEC 61000-4-2 (ESD)
  • IEC 61000-4-4 (EFT)
  • IEC 61000-4-5 (surge)

Duplex Modes

Half-duplex
2-wire system, most common, one transmitter active at a time
Full-duplex
4-wire system, separate TX and RX pairs

Collision Handling

RS-485 does not define arbitration.

Handled by higher protocols:

  • master-slave (Modbus RTU)
  • token passing
  • time-slot scheduling

Bus contention leads to data corruption.

Network Topology

Correct topology:

[Master]—120Ω—Device—Device—Device—120Ω

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:

  1. measure differential voltage (A-B)
  2. verify idle state stability
  3. check termination resistance (~60 Ω total)
  4. inspect reflections using oscilloscope
  5. isolate nodes one by one

Applications

  • industrial automation (Modbus, Profibus)
  • PLC systems
  • SCADA networks
  • building automation (HVAC, lighting)
  • CNC and robotics
  • energy meters
  • security systems
  • DMX512 lighting control

Comparison with Other Standards

Feature RS-232 RS-422 RS-485
Signaling Single-ended Differential Differential
Nodes 1 10 32–256
Distance short long long
Noise immunity low high very high
Topology point-to-point point-to-point multipoint

Advantages

  • high noise immunity
  • long distance support
  • multi-node capability
  • low cost implementation
  • industrial robustness

Limitations

  • no built-in protocol
  • requires careful wiring
  • no arbitration mechanism
  • sensitive to topology errors

Conclusion

RS-485 remains one of the most widely used physical layer standards in industrial communication systems.

Its reliability depends heavily on correct implementation of:

  • termination
  • topology
  • grounding
  • biasing

Proper engineering design is required to achieve stable and high-performance communication.