RS-485

Last updated
TIA-485-A
(Revision of EIA-485)
StandardANSI/TIA/EIA-485-A-1998
Approved: March 3, 1998
Reaffirmed: December 7, 2012
Physical media Balanced interconnecting cable
Network topology Point-to-point, multi-dropped, multi-point
Maximum devicesAt least 32 unit loads
Maximum distanceNot specified
Mode of operationDifferent receiver levels:
binary 1 (OFF)
(Voa–Vob < −200 mV)
binary 0 (ON)
(Voa–Vob > +200 mV)
Available signalsA, B, C
Connector typesNot specified

RS-485, also known as TIA-485(-A) or EIA-485, is a standard, originally introduced in 1983, defining the electrical characteristics of drivers and receivers for use in serial communications systems. Electrical signaling is balanced, and multipoint systems are supported. The standard is jointly published by the Telecommunications Industry Association and Electronic Industries Alliance (TIA/EIA). Digital communications networks implementing the standard can be used effectively over long distances and in electrically noisy environments. Multiple receivers may be connected to such a network in a linear, multidrop bus. These characteristics make RS-485 useful in industrial control systems and similar applications.

Contents

Overview

RS-485 supports inexpensive local networks and multidrop communications links, using the same differential signaling over twisted pair as RS-422. It is generally accepted that RS-485 can be used with data rates up to 10  Mbit/s [lower-alpha 1] or, at lower speeds, distances up to 1,200 m (4,000 ft). [2] As a rule of thumb, the speed in bit/s multiplied by the length in metres should not exceed 108. Thus a 50-meter cable should not signal faster than 2 Mbit/s. [3]

In contrast to RS-422, which has a driver circuit which cannot be switched off, RS-485 drivers use three-state logic allowing individual transmitters to be deactivated. This allows RS-485 to implement linear bus topologies using only two wires. The equipment located along a set of RS-485 wires are interchangeably called nodes, stations or devices. [4] The recommended arrangement of the wires is as a connected series of point-to-point (multidropped) nodes, i.e. a line or bus, not a star, ring, or multiply connected network. Star and ring topologies are not recommended because of signal reflections or excessively low or high termination impedance. If a star configuration is unavoidable, special RS-485 repeaters are available which bidirectionally listen for data on each span and then retransmit the data onto all other spans.

Typical bias network together with termination. Biasing and termination values are not specified in the RS-485 standard. However, bias resistors are commonly not recommended any more by component suppliers. Rs485-bias-termination.svg
Typical bias network together with termination. Biasing and termination values are not specified in the RS-485 standard. However, bias resistors are commonly not recommended any more by component suppliers.

Ideally, the two ends of the cable will have a termination resistor connected across the two wires. Without termination resistors, signal reflections off the unterminated end of the cable can cause data corruption. Termination resistors also reduce electrical noise sensitivity due to the lower impedance.[ further explanation needed ] The value of each termination resistor should be equal to the cable characteristic impedance (typically, 120 ohms for twisted pairs). The termination also includes pull up and pull down resistors to establish fail-safe bias for each data wire for the case when the lines are not being driven by any device. This way, the lines will be biased to known voltages and nodes will not interpret the noise from undriven lines as actual data; without biasing resistors, the data lines float in such a way that electrical noise sensitivity is greatest when all device stations are silent or unpowered. [5]

Standard

The EIA once labeled all its standards with the prefix "RS" (Recommended Standard), but the EIA-TIA officially replaced "RS" with "EIA/TIA" to help identify the origin of its standards. The EIA has officially disbanded and the standard is now maintained by the TIA as TIA-485, but engineers and applications guides continue to use the RS-485 designation. [6] The initial edition of EIA RS-485 was dated April 1983. [7]

RS-485 only specifies the electrical characteristics of the generator and the receiver: the physical layer. It does not specify or recommend any communications protocol; Other standards define the protocols for communication over an RS-485 link. The foreword to the standard references The Telecommunications Systems Bulletin TSB-89 which contains application guidelines, including data signaling rate vs. cable length, stub length, and configurations.

Section 4 defines the electrical characteristics of the generator (transmitter or driver), receiver, transceiver, and system. These characteristics include: definition of a unit load, voltage ranges, open-circuit voltages, thresholds, and transient tolerance. It also defines three generator interface points (signal lines); A, B and C. The data is transmitted on A and B. C is a ground reference. This section also defines the logic states 1 (off) and 0 (on), by the polarity between A and B terminals. If A is negative with respect to B, the state is binary 1. The reversed polarity (A positive with respect to B) is binary 0. The standard does not assign any logic function to the two states.

Full duplex operation

RS-485, like RS-422, can be made full-duplex by using four wires. [8] Since RS-485 is a multi-point specification, however, this is not necessary or desirable in many cases. RS-485 and RS-422 can interoperate with certain restrictions. [9]

Converters, repeaters and star topology

Converters between RS-485 and RS-232 are available to allow a personal computer to communicate with remote devices. By using repeaters very large RS-485 networks can be formed. TSB-89A, Application Guidelines for TIA/EIA-485-A does not recommend using star topology. [10]

Applications

RS-485 signals are used in a wide range of computer and automation systems. In a computer system, SCSI-2 and SCSI-3 may use this specification to implement the physical layer for data transmission between a controller and a disk drive. RS-485 is used for low-speed data communications in commercial aircraft cabins' vehicle bus. It requires minimal wiring and can share the wiring among several seats, reducing weight.

These are used in programmable logic controllers and on factory floors. RS-485 is used as the physical layer underlying many standard and proprietary automation protocols used to implement industrial control systems, including the most common versions of Modbus and Profibus. DH 485 is a proprietary communications protocol used by Allen-Bradley in their line of industrial control units. Utilizing a series of dedicated interface devices, it allows PCs and industrial controllers to communicate. [11] Since it is differential, it resists electromagnetic interference from motors and welding equipment.

In theatre and performance venues, RS-485 networks are used to control lighting and other systems using the DMX512 protocol. RS-485 serves as a physical layer for the AES3 digital audio interconnect.

RS-485 is also used in building automation as the simple bus wiring and long cable length is ideal for joining remote devices. It may be used to control video surveillance systems or to interconnect security control panels and devices such as access control card readers.

It is also used in Digital Command Control (DCC) for model railways. The external interface to the DCC command station is often RS-485 used by hand-held controllers [12] or for controlling the layout in a networked PC environment. 8P8C modular connectors are used in this case. [13]

Protocols

RS-485 does not define a communication protocol; merely an electrical interface. Although many applications use RS-485 signal levels, the speed, format, and protocol of the data transmission are not specified by RS-485. Interoperability of even similar devices from different manufacturers is not assured by compliance with the signal levels alone.

Signals

RS-485 3 wire connection RS-485 3 wire connection.svg
RS-485 3 wire connection
RS-485 signal states
SignalMark (logic 1)Space (logic 0)
ALowHigh
BHighLow

The RS-485 differential line consists of two signals:

Because a mark (logic 1) condition is traditionally represented (e.g. in RS-232) with a negative voltage and space (logic 0) represented with a positive one, A may be considered the non-inverting signal and B as inverting. The RS-485 standard states (paraphrased): [14]

The truth tables of most popular devices, starting with the SN75176, show the output signals inverted. This is in accordance with the A/B naming used by most differential transceiver manufacturers, including:

These manufacturers all agree on the meaning of the standard, and their practice is in widespread use. The issue also exists in programmable logic controller applications. [lower-alpha 3] Care must be taken when using A/B naming. Alternate nomenclature is often used to avoid confusion surrounding the A/B naming:

RS-485 standard conformant drivers provide a differential output of a minimum 1.5 V across a 54-Ω load, whereas standard conformant receivers detect a differential input down to 200 mV. The two values provide a sufficient margin for a reliable data transmission even under severe signal degradation across the cable and connectors. This robustness is the main reason why RS-485 is well suited for long-distance networking in noisy environment. [28]

In addition to the A and B connections, an optional, third connection may be present (the TIA standard requires the presence of a common return path between all circuit grounds along the balanced line for proper operation) [29] called SC, G or reference, the common signal reference ground used by the receiver to measure the A and B voltages. This connection may be used to limit the common-mode signal that can be impressed on the receiver inputs. The allowable common-mode voltage is in the range −7 V to +12 V, i.e. ±7 V on top of the 0–5 V signal range. Failure to stay within this range will result in, at best, signal corruption, and, at worst, damage to connected devices.

Care must be taken that an SC connection, especially over long cable runs, does not result in an attempt to connect disparate grounds together – it is wise to add some current limiting to the SC connection. Grounds between buildings may vary by a small voltage, but with very low impedance and hence the possibility of catastrophic currents – enough to melt signal cables, PCB traces, and transceiver devices.

RS-485 does not specify any connector or pinout. Circuits may be terminated on screw terminals, D-subminiature connectors, or other types of connectors.

The standard does not discuss cable shielding but makes some recommendations on preferred methods of interconnecting the signal reference common and equipment case grounds.

Waveform example

The diagram below shows potentials of the A (blue) and B (red) pins of an RS-485 line during transmission of one byte (0xD3, least significant bit first) of data using an asynchronous start-stop method.

B (U+, inverting) signal shown in red,
A (U-, non-inverting) signal shown in blue RS-485 waveform.svg
B (U+, inverting) signal shown in red,
A (U−, non-inverting) signal shown in blue

See also

Notes

  1. Under some conditions it can be used up to data transmission speeds of 64 Mbit/s. [1]
  2. There is an apparent typo in this statement as both states in the standard are designated binary 1. It is clear in the figure that follows that the off state corresponds to binary 1 and on corresponds to binary 0.
  3. With Modbus, BACnet and Profibus, A/B labeling refers A as the negative green wire and B as the positive red wire, in the definition of the D-sub connector and M12 circular connector, as can be seen in Profibus guides. [20] [21] As long as standard excludes logic function of the generator or receiver, [22] it would make sense A (green, negative) is higher than B (red, positive). However this contradicts the facts that an idle mark state is a logical oneand the termination polarization puts B at a higher voltage in Profibus guidelines. [23] That so-called 'Pesky Polarity' problem [24] raised confusion which made authors think A is inverting within the TIA-485-A standard itself [25] and advise to swap what is A and B in drivers and line labeling as can be read in a section of an application bulletin: "Design Consideration #3: Sometimes Bus Node A Isn’t Really Bus Node A". [26] It is now a common design decision to make this inversion which involves the following polarity chain: UART/MCU idle → TTL/CMOS = +5 V → Line B voltage > Line A voltage, implying A, the green wire, is indeed connected to the driver inverting signal, as seen in a whitepaper. [27]

Related Research Articles

<span class="mw-page-title-main">RS-232</span> Standard for serial communication

In telecommunications, RS-232 or Recommended Standard 232 is a standard originally introduced in 1960 for serial communication transmission of data. It formally defines signals connecting between a DTE such as a computer terminal or PC, and a DCE, such as a modem. The standard defines the electrical characteristics and timing of signals, the meaning of signals, and the physical size and pinout of connectors. The current version of the standard is TIA-232-F Interface Between Data Terminal Equipment and Data Circuit-Terminating Equipment Employing Serial Binary Data Interchange, issued in 1997. The RS-232 standard had been commonly used in computer serial ports and is still widely used in industrial communication devices.

In telecommunications and professional audio, a balanced line or balanced signal pair is an electrical circuit consisting of two conductors of the same type, both of which have equal impedances along their lengths, to ground, and to other circuits. The primary advantage of the balanced line format is good rejection of common-mode noise and interference when fed to a differential device such as a transformer or differential amplifier.

Transistor–transistor logic (TTL) is a logic family built from bipolar junction transistors. Its name signifies that transistors perform both the logic function and the amplifying function, as opposed to earlier resistor–transistor logic (RTL) and diode–transistor logic (DTL).

<span class="mw-page-title-main">Serial port</span> Communication interface transmitting information sequentially

On computers, a serial port is a serial communication interface through which information transfers in or out sequentially one bit at a time. This is in contrast to a parallel port, which communicates multiple bits simultaneously in parallel. Throughout most of the history of personal computers, data has been transferred through serial ports to devices such as modems, terminals, various peripherals, and directly between computers.

<span class="mw-page-title-main">Low-voltage differential signaling</span> Technical standard

Low-voltage differential signaling (LVDS), also known as TIA/EIA-644, is a technical standard that specifies electrical characteristics of a differential, serial signaling standard. LVDS operates at low power and can run at very high speeds using inexpensive twisted-pair copper cables. LVDS is a physical layer specification only; many data communication standards and applications use it and add a data link layer as defined in the OSI model on top of it.

A controller area network is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other. It is a message-based protocol, designed originally for multiplex electrical wiring within automobiles to save on copper, but it can also be used in many other contexts. For each device, the data in a frame is transmitted serially but in such a way that if more than one device transmits at the same time, the highest priority device can continue while the others back off. Frames are received by all devices, including by the transmitting device.

<span class="mw-page-title-main">DMX512</span> Digital communication network standard for controlling stage lighting and effects

DMX512 is a standard for digital communication networks that are commonly used to control lighting and effects. It was originally intended as a standardized method for controlling stage lighting dimmers, which, prior to DMX512, had employed various incompatible proprietary protocols. It quickly became the primary method for linking controllers to dimmers and special effects devices such as fog machines and intelligent lights.

<span class="mw-page-title-main">RS-422</span> Standard for serial communication

RS-422, also known as TIA/EIA-422, is a technical standard originated by the Electronic Industries Alliance, first issued in 1975, that specifies electrical characteristics of a digital signaling circuit. It was meant to be the foundation of a suite of standards that would replace the older RS-232C standard with standards that offered much higher speed, better immunity from noise, and longer cable lengths. RS-422 systems can transmit data at rates as high as 10 Mbit/s, or may be sent on cables as long as 1,200 meters (3,900 ft) at lower rates. It is closely related to RS-423, which uses the same signaling systems but on a different wiring arrangement.

<span class="mw-page-title-main">Profibus</span> Communications protocol

Profibus is a standard for fieldbus communication in automation technology and was first promoted in 1989 by BMBF and then used by Siemens. It should not be confused with the Profinet standard for Industrial Ethernet. Profibus is openly published as type 3 of IEC 61158/61784-1.

High-speed transceiver logic or HSTL is a technology-independent standard for signaling between integrated circuits. The nominal signaling range is 0 V to 1.5 V, though variations are allowed, and signals may be single-ended or differential. It is designed for operation beyond 180 MHz.

Differential TTL is a type of binary electrical signaling based on the transistor-transistor logic (TTL) concept. It enables electronic systems to be relatively immune to noise. RS-422 and RS-485 outputs can be implemented as differential TTL.

<span class="mw-page-title-main">Differential signalling</span> Method for electrically transmitting information

Differential signalling is a method for electrically transmitting information using two complementary signals. The technique sends the same electrical signal as a differential pair of signals, each in its own conductor. The pair of conductors can be wires in a twisted-pair or ribbon cable or traces on a printed circuit board.

<span class="mw-page-title-main">RS-449</span>

The RS-449 specification, also known as EIA-449 or TIA-449, defines the functional and mechanical characteristics of the interface between data terminal equipment, typically a computer, and data communications equipment, typically a modem or terminal server. The full title of the standard is EIA-449 General Purpose 37-Position and 9-Position Interface for Data Terminal Equipment and Data Circuit-Terminating Equipment Employing Serial Binary Data Interchange.

<span class="mw-page-title-main">Parallel SCSI</span> Original SCSI storage interface

Parallel SCSI is the earliest of the interface implementations in the SCSI family. SPI is a parallel bus; there is one set of electrical connections stretching from one end of the SCSI bus to the other. A SCSI device attaches to the bus but does not interrupt it. Both ends of the bus must be terminated.

Open collector, open drain, open emitter, and open source refer to integrated circuit (IC) output pin configurations that process the IC's internal function through a transistor with an exposed terminal that is internally unconnected. One of the IC's internal high or low voltage rails typically connects to another terminal of that transistor. When the transistor is off, the output is internally disconnected from any internal power rail, a state called "high-impedance" (Hi-Z). Open outputs configurations thus differ from push–pull outputs, which use a pair of transistors to output a specific voltage or current.

<span class="mw-page-title-main">IEBus</span> Communication bus specification

IEBus is a communication bus specification "between equipments within a vehicle or a chassis" of Renesas Electronics. It defines OSI model layer 1 and layer 2 specification. IEBus is mainly used for car audio and car navigations, which established de facto standard in Japan, though SAE J1850 is major in United States.
IEBus is also used in some vending machines, which major customer is Fuji Electric. Each button on the vending machine has an IEBus ID, i.e. has a controller.
Detailed specification is disclosed to licensees only, but protocol analyzers are provided from some test equipment vendors. Its modulation method is PWM with 6.00 MHz base clock originally, but most of automotive customers use 6.291 MHz, and physical layer is a pair of differential signalling harness. Its physical layer adopts half-duplex, asynchronous, and multi-master communication with carrier-sense multiple access with collision detection (CSMA/CD) for medium access control. It allows for up to fifty units on one bus over a maximum length of 150 meters. Two differential signalling lines are used with Bus+ / Bus− naming, sometimes labeled as Data(+) / Data(−).

RS-423, also known as TIA/EIA-423, is a technical standard originated by the Electronic Industries Alliance that specifies electrical characteristics of a digital signaling circuit. Although it was originally intended as a successor to RS-232C offering greater cable lengths, it is not widely used.

<span class="mw-page-title-main">MAX232</span> 1987 integrated circuit

The MAX232 is an integrated circuit by Maxim Integrated Products, now a subsidiary of Analog Devices, that converts signals from a TIA-232 (RS-232) serial port to signals suitable for use in TTL-compatible digital logic circuits. The MAX232 is a dual transmitter / dual receiver that typically is used to convert the RX, TX, CTS, RTS signals.

<span class="mw-page-title-main">Incremental encoder</span> Electromechanical device

An incremental encoder is a linear or rotary electromechanical device that has two output signals, A and B, which issue pulses when the device is moved. Together, the A and B signals indicate both the occurrence of and direction of movement. Many incremental encoders have an additional output signal, typically designated index or Z, which indicates the encoder is located at a particular reference position. Also, some encoders provide a status output that indicates internal fault conditions such as a bearing failure or sensor malfunction.

References

  1. RS-485 Reference Guide (PDF), archived from the original (PDF) on 2018-05-17
  2. "How Far and How Fast Can You Go with RS-485? - Application Note – Maxim". www.maximintegrated.com.
  3. Soltero, Manny; Zhang, Jing; Cockril, Chris; Zhang, Kevin; Kinnaird, Clark; Kugelstadt, Thomas (May 2010) [2002]. RS-422 and RS-485 Standards Overview and System Configurations, Application Report (pdf). Texas Instruments (Technical report). SLLA070D.
  4. Electronic Industries Association (1983). Electrical Characteristics of Generators and Receivers for Use in Balanced Multipoint Systems. EIA Standard RS-485. OCLC   10728525.[ page needed ]
  5. "Application Note 847 FAILSAFE Biasing of Differential Buses" (PDF). Texas Instruments. 2011.
  6. "Trim-the-fat-off-RS-485-designs". EE Times. 2000.
  7. "EIA Standard RS 485 Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems", reproduced in " Data Communications Standards LibraryÈ, Telebyte Technology Inc., Greenlawn, New York 1985.
  8. RS-485 CONNECTIONS FAQ, Advantech B+B SmartWorx, retrieved 2023-09-15
  9. What is the difference between RS422 communication and RS485 communication?, Brainboxes LLC, retrieved 2019-03-08
  10. TSB-89A, Application Guidelines for TIA/EIA-485-A (PDF), retrieved 2019-04-06
  11. "DH-485 Industrial Local Area Network Overview". Rockwell Automation. Archived from the original on 2012-03-10. Retrieved 10 September 2010.
  12. lenzusa.com, XpressNET FAQ, accessed July 26, 2015 Archived November 17, 2017, at the Wayback Machine
  13. bidib.org, "BiDiBus, a Highspeed-Bus for model-railways", accessed July 26, 2015.
  14. "Polarity conventions" (PDF). Texas Instruments. 2003.
  15. "Data Sheet FN6074.3: ±15kV ESD Protected, 1/8 Unit Load, 5V, Low Power, High Speed and Slew Rate Limited, Full Duplex, RS-485/RS-422 Transceivers" (PDF). Intersil Corporation. 28 April 2006. Archived from the original (PDF) on 2004-12-04.
  16. "Data Sheet 19-0122 – MAX481/MAX483/MAX485/MAX487–MAX491/MAX1487: Low-Power, Slew-Rate-Limited RS-485/RS-422 Transceivers" (PDF). Maxim Integrated. September 2009.
  17. "LTC2850/LTC2851/LTC2852 3.3V 20Mbps RS485/RS422 Transceivers" (PDF). Linear Technology Corporation. 2007. Archived from the original (PDF) on 2011-03-02.
  18. "ADM3483/ADM3485/ADM3488/ADM3490/ADM3491 (Rev. E)" (PDF). Analog Devices, Inc. 22 November 2011.
  19. "USB to RS485 Serial Converter Cable Datasheet" (PDF). Future Technology Devices International Ltd. 27 May 2010.
  20. "Profibus Interconnection Guideline (PDF)" . 1.4. P International. January 2007. p. 7.
  21. "SIMATIC NET Profibus Network Manual (PDF)" (PDF). Siemens. April 2009. p. 157.
  22. "RS-485 Technical Manual, TIA-485 section". Wikibooks.
  23. "Profibus Interconnection Guideline (PDF)" . 1.4. P International. January 2007. p. 8.
  24. "RS-485 Technical Manual, That Pesky Polarity". Wikibooks.
  25. "RS485 Polarity Issues". Chipkins Automation Systems.
  26. "Application Bulletin AB-19, Profibus Compliance: A Hardware Design Guide" (PDF). NVE Corporation. 2010.
  27. "White paper: Polarities for Differential Pair Signals". Advantech B+B SmartWorx.
  28. "The RS-485 Design Guide" (PDF). Texas Instruments.
  29. ANSI/TIA/EIA-485-A, page 15, A.4.1