RS-485
RS-485, also known as TIA-485 or EIA-485, is a standard 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. 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.
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 or, at lower speeds, distances up to. As a rule of thumb, the speed in bit/s multiplied by the length in metres should not exceed 108. Thus a cable should not signal faster than.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. The recommended arrangement of the wires is as a connected series of point-to-point 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.
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. The value of each termination resistor should be equal to the cable characteristic impedance. 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.
Standard
The EIA once labeled all its standards with the prefix "RS", 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. The initial edition of EIA RS-485 was dated April 1983.RS-485 only specifies 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, 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 ; 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 and 0, by the polarity between A and B terminals. If A is negative with respect to B, the state is binary 1. The reversed polarity is binary 0. The standard does not assign any logic function to the two states.
Master-slave arrangement
Often in a master-slave arrangement, when one device, the master, initiates all communication activity, the master device itself provides the bias. In this configuration, the master device is typically centrally located along the set of RS-485 wires, with two slave devices located at the physical ends of the wires providing termination.Full duplex operation
RS-485, like RS-422, can be made full-duplex by using four wires. 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.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.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. 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. 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 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 for model railways. The external interface to the DCC command station is often RS-485 used by hand-held controllers or for controlling the layout in a networked PC environment. 8P8C modular connectors are used in this case.
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
Signal | Mark | Space |
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.
- 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.
- Intersil, as seen in their data sheet for the ISL4489 transceiver
- Maxim, as seen in their data sheet for the MAX483 transceiver
- Linear Technology, as seen in their datasheet for the LTC2850, LTC2851, LTC2852
- Analog Devices, as seen in their datasheet for the ADM3483, ADM3485, ADM3488, ADM3490, ADM3491
- FTDI, as seen in their datasheet for the USB-RS485-WE-1800-BT
- TX+/RX+ or D+ as alternative for B
- TX−/RX− or D− as alternative for A
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 a 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.