RS-485,also known asTIA-485(-A)orEIA-485,is a standard, originally introduced in 1983, defining the electrical characteristics of drivers and receivers for use inserial communicationssystems. Electrical signaling isbalanced,andmultipointsystems are supported. The standard is jointly published by theTelecommunications Industry AssociationandElectronic Industries Alliance(TIA/EIA). Digital communications networks implementing the standard can be used effectively over long distances and inelectrically noisy environments.Multiple receivers may be connected to such a network in a linear,multidrop bus.These characteristics make RS-485 useful inindustrial control systemsand similar applications.
TIA-485-A (Revision of EIA-485) | |
---|---|
Standard | ANSI/TIA/EIA-485-A-1998 Approved: March 3, 1998 Reaffirmed: December 7, 2012 |
Protocol information | |
Physical media | Balanced interconnecting cable |
Network topology | Point-to-point,multi-dropped,multi-point |
Maximum devices | At least 32 unit loads |
Maximum distance | Not specified |
Mode of operation | Different receiver levels: binary 1 (OFF) (Voa–Vob < −200 mV) binary 0 (ON) (Voa–Vob > +200 mV) |
Available signals | A, B, C |
Connector types | Not specified |
Overview
editRS-485 supports inexpensivelocal networksandmultidrop communicationslinks, using the samedifferential signalingovertwisted pairasRS-422.It is generally accepted that RS-485 can be used with data rates up to 10Mbit/s[a]or, at lower speeds, distances up to 1,200 m (4,000 ft).[2]As arule of thumb,the speed in bit/s multiplied by the length in meters should not exceed 108.Thus a50-metercable should not signal faster than2 Mbit/s.[3]
In contrast to RS-422, which has a driver circuit which cannot be switched off, RS-485 drivers usethree-state logicallowing individual transmitters to be deactivated. This allows RS-485 to implementlinear bus topologiesusing 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 orbus,not astar,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.
Ideally, the two ends of the cable will have atermination resistorconnected across the two wires. Without termination resistors,signal reflectionsoff the unterminated end of the cable can cause data corruption. Termination resistors also reduce electrical noise sensitivity due to thelower impedance.[further explanation needed]The value of each termination resistor should be equal to the cablecharacteristic impedance(typically, 120 ohms for twisted pairs). The termination also includes pull up and pull down resistors to establish 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
editThe 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: thephysical layer.It does not specify or recommend anycommunications protocol;Other standards define the protocols for communication over an RS-485 link. The foreword to the standard referencesThe Telecommunications Systems Bulletin TSB-89which 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
editRS-485, like RS-422, can be madefull-duplexby 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][failed verification]
Converters, repeaters and star topology
editConverters between RS-485 andRS-232are available to allow apersonal computerto communicate with remote devices. By usingrepeatersvery large RS-485 networks can be formed. TSB-89A, Application Guidelines for TIA/EIA-485-A does not recommend using star topology.[10]
Applications
editRS-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 thephysical layerfor 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 inprogrammable logic controllersand on factory floors. RS-485 is used as the physical layer underlyingmany standard and proprietary automation protocolsused to implementindustrial control systems,including the most common versions ofModbusandProfibus.DH 485is a proprietary communications protocol used byAllen-Bradleyin 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 theDMX512protocol. RS-485 serves as a physical layer for theAES3digital audio interconnect.
RS-485 is also used inbuilding automationas 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 inDigital Command Control(DCC) formodel 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 connectorsare used in this case.[13]
Protocols
editRS-485 does not define acommunication 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
editSignal | Mark (logic 1) | Space (logic 0) |
---|---|---|
A | Low | High |
B | High | Low |
The RS-485 differential line consists of two signals:
- A,which is low for logic 1 and high for logic 0 and,
- B,which is high for logic 1 and low for logic 0.
Because amark(logic 1) condition is traditionally represented (e.g. in RS-232) with a negative voltage; andspace(logic 0) represented with a positive one, A may be considered thenon-invertingsignal and B as inverting. The RS-485 standard states (paraphrased):[14]
- For an off, mark or logic 1 state, the driver's A terminal is negative relative to the B terminal.
- For an on, space or logic 0 state, the driver's A terminal is positive relative to the B terminal.[b]
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:
- Intersil,as seen in their data sheet for the ISL4489 transceiver[15]
- Maxim,as seen in their data sheet for the MAX483 transceiver[16]and for the new generation 3.3v micro controller the MAX3485
- Linear Technology,as seen in their datasheet for the LTC2850, LTC2851, LTC2852[17]
- Analog Devices,as seen in their datasheet for the ADM3483, ADM3485, ADM3488, ADM3490, ADM3491[18]
- FTDI,as seen in their datasheet for the USB-RS485-WE-1800-BT[19]
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.[c]Care must be taken when using A/B naming. Alternate nomenclature is often used to avoid confusion surrounding the A/B naming:
- TX+/RX+ or D+ as alternative for B (high for mark i.e. idle)
- TX−/RX− or D− as alternative for A (low for mark i.e. idle)
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 theAandBconnections, 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]calledSC,Gorreference,the common signal reference ground used by the receiver to measure the A and B voltages. This connection may be used to limit thecommon-mode signalthat 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 somecurrent limitingto 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 onscrew terminals,D-subminiatureconnectors, 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
editThe diagram below showspotentialsof the A (blue) and B (red) pins of an RS-485 line before, during, and after transmission of one byte (0xD3, least significant bit first) of data using anasynchronous start-stopmethod.
See also
editNotes
edit- ^Under some conditions it can be used up todata transmissionspeeds of 64 Mbit/s.[1]
- ^There is an apparent typo in this statement as both states in the standard are designatedbinary 1.It is clear in the figure that follows that the off state corresponds to binary 1 and on corresponds to binary 0.
- ^WithModbus,BACnetandProfibus,A/B labeling refersAas thenegative greenwire andBas thepositive redwire, 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 senseA(green, negative) is higher thanB(red, positive). However this contradicts the facts that an idlemarkstate is a logicaloneandthe termination polarization putsBat a higher voltage in Profibus guidelines.[23]That so-called 'Pesky Polarity' problem[24]raised confusion which made authors thinkAis inverting within the TIA-485-A standard itself[25]and advise to swap what isAandBin drivers and line labeling as can be read in a section of an application bulletin: "Design Consideration #3: Sometimes Bus NodeAIsn’t Really Bus NodeA".[26]It is now a common design decision to make this inversion which involves the following polarity chain:UART/MCUidle → TTL/CMOS = +5 V → LineBvoltage > LineAvoltage, implyingA,the green wire, is indeed connected to the driverinvertingsignal, as seen in a whitepaper.[27]
References
edit- ^RS-485 Reference Guide(PDF),archived fromthe original(PDF)on 2018-05-17
- ^"How Far and How Fast Can You Go with RS-485? - Application Note – Maxim".maximintegrated.
- ^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.
- ^Electronic Industries Association (1983).Electrical Characteristics of Generators and Receivers for Use in Balanced Multipoint Systems.EIA Standard RS-485.OCLC10728525.[page needed]
- ^"Application Note 847 FAILSAFE Biasing of Differential Buses"(PDF).Texas Instruments.2011.
- ^"Trim-the-fat-off-RS-485-designs".EE Times.2000.
- ^"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.
- ^RS-485 Connections FAQ,Advantech B+B SmartWorx,retrieved2023-09-15
- ^What is the difference between RS422 communication and RS485 communication?,Brainboxes LLC,retrieved2024-10-27
- ^TSB-89A, Application Guidelines for TIA/EIA-485-A(PDF),retrieved2019-04-06
- ^"DH-485 Industrial Local Area Network Overview".Rockwell Automation.Archived fromthe originalon 2012-03-10.Retrieved10 September2010.
- ^lenzusa,XpressNET FAQ, accessed July 26, 2015ArchivedNovember 17, 2017, at theWayback Machine
- ^bidib.org,"BiDiBus, a Highspeed-Bus for model-railways", accessed July 26, 2015.
- ^"Polarity conventions"(PDF).Texas Instruments.2003.
- ^"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 fromthe original(PDF)on 2004-12-04.
- ^"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. Archived fromthe original(PDF)on 2009-09-27.Retrieved2009-06-17.
- ^"LTC2850/LTC2851/LTC2852 3.3V 20Mbps RS485/RS422 Transceivers"(PDF).Linear Technology Corporation.2007. Archived fromthe original(PDF)on 2011-03-02.
- ^"ADM3483/ADM3485/ADM3488/ADM3490/ADM3491 (Rev. E)"(PDF).Analog Devices, Inc.22 November 2011.
- ^"USB to RS485 Serial Converter Cable Datasheet"(PDF).Future Technology Devices International Ltd.27 May 2010.
- ^"Profibus Interconnection Guideline (PDF)".1.4. P International. January 2007. p. 7.
- ^"SIMATIC NET Profibus Network Manual (PDF)"(PDF).Siemens. April 2009. p. 157.
- ^"RS-485 Technical Manual, TIA-485 section".Wikibooks.
- ^"Profibus Interconnection Guideline (PDF)".1.4. P International. January 2007. p. 8.
- ^"RS-485 Technical Manual, That Pesky Polarity".Wikibooks.
- ^"RS485 Polarity Issues".Chipkins Automation Systems.
- ^"Application Bulletin AB-19, Profibus Compliance: A Hardware Design Guide"(PDF).NVE Corporation. 2010.
- ^"White paper: Polarities for Differential Pair Signals".Advantech B+B SmartWorx.
- ^"The RS-485 Design Guide"(PDF).Texas Instruments.
- ^ANSI/TIA/EIA-485-A, page 15, A.4.1
External links
edit- "TIA Standards Store: TIA-485 Revision A".TIA. 7 December 2012.Retrieved2 September2020.- The Standard for sale from the current publisher.
- "Tutorial 763: Guidelines for Proper Wiring of an RS-485 (TIA/EIA-485-A) Network".Maxim Integrated.19 November 2001.
- "RS232 to RS485 cable pinout".Pinouts.ru. 7 October 2012.
- "RS485 serial information".Lammert Bies. August 2012.Retrieved12 November2012.– Practical information about implementing RS485
- Marais, Hein (2008)."Application Note AN-960: RS-485/RS-422 Circuit Implementation Guide"(PDF).Analog Devices.