You are on page 1of 4

Volume 1 • Issue1

Spring 1999

the EXTENSION
A Technical Supplement to c o n t r o l NETWORK

TEN RECOMMENDATIONS WHEN


IMPLEMENTING EIA-485
NETWORKS
Understanding EIA-485 Networks
1. Recognize that EIA-485 is only a physical layer
standard and connectivity between two machines each INTRODUCTION At a minimum, a single shielded or
with an EIA-485 interface is not ensured. unshielded twisted-pair cable
One of the more popular technologies interconnects the various controllers in
2. Since EIA-485 is basically a specification for driver, for interconnecting devices on a
receiver and transceiver chips, the manufacturer of the a daisy-chain fashion. In some
network is EIA-485. Known throughout instances a short stub is allowed;
equipment needs to specify cabling, grounding,
termination, fail-safe bias and connectors.
industry as RS-485, the proper title for however, higher speed networks
the standard is TIA/EIA-485-A usually do not allow stubs. A star
3. Data rate and segment lengths are not addressed in the “Electrical Characteristics of Generators
standard and, therefore, must be specified by the topology is definitely not
and Receivers for Use in Balanced recommended. Termination is usually
manufacturer. A high-speed EIA-485 design could be
quite different from a low speed design.
Digital Multipoint Systems.”1 The applied to the ends of the network.
EIA-485 standard is misunderstood to
4. EIA-485 is intended to be cabled as a linear bus with mean more than what it defines.
daisy-chain connections. Stubs may or may not be EIA-485 is basically a specification for
According to the standard it specifies the drivers, receivers and transceivers
allowed. Do not cable in a star topology.
the characteristics of the generators attached to the network. Therefore,
5. Carefully review grounding practice. EIA-485 transceiver and receivers used in a digital
damage is usually due to excessive common mode parameters such as unit loads, output
multipoint system. It does not specify drive, short circuit current and
voltage caused by unequal ground potentials at the
other characteristics such as signal common mode voltage are specified.
various devices. Sometimes a third-wire ground
connection must be carried to all nodes to ensure that
quality, timing, protocol, pin Basically a driver must be able to
the common mode voltage remain within limits. assignments, power supply voltages or source at least 1.5 volts differentially
operating temperature range. A into 60 ohms (two 120 ohm
6. Device protection circuitry can certainly minimize device
multipoint system consists of two or terminators in parallel along with 32
failures, however, verify that high data rates can be
maintained with protection applied.
more generators and one or more unit loads) under a common mode
receivers. A generator is the same as a voltage range of –7 to +12 Vdc. Data
7. Although optically isolated EIA-485 will not protect the transmitter and since two or more
transceivers themselves, it will provide a level of rates are not specified and there are a
transmitters can exist on the same wide range of devices that conform to
protection to the attached equipment. Be sure to
run a common wire between all optically-isolated
electrical bus, EIA-485 is suitable for the standard but are intended either
transceivers. multimaster systems. for high speed (up to 50 Mbps) or low
8. The design of EIA-485 repeaters is tricky. Use only speed (skew rate limited). So do not
The standard itself is very short assume that all driver, receiver and
those repeaters recommended by the manufacturer.
consisting of only 17 pages. Actually transceiver chips are all the same.
9. Be careful when applying termination and fail-safe bias more guidance is available from its
so as to not introduce excessive loading. Termination is Some receivers and transceivers have
sister publication TSB89 “Application higher input impedance thereby
only applied at each end of the network while bias is
Guidelines for TIA/EIA-485-A.”2 An representing less than one unit load
applied per the manufacturer’s recommendation.
EIA-485 bus usually consists of two or to the driver.
10. EIA-485 can be quite an effective network as long as it more communication controllers each
is applied properly. Here are our recommendations: powered by a separate power source.
• If the devices are in the same control panel, use
DC coupled EIA-485 and individual earth (chassis)
connections for ground reference.
• If the devices are in separate control panels within
the same building use optically-coupled EIA-485 and
a separate reference ground wire.
• If the devices are in separate panels in different
buildings, use fiber optics if at all possible.

EIA-485 networks are usually


configured in a daisy-chain fashion
with termination at each end.
Physical Layer Standard with a jumper to disable this option if
In terms of the Open Systems termination is not required. The
Interconnection Reference Model (OSI), problem with this approach is that
EIA-485 only defines the lowest layer— each node will be configured
the physical layer. It is used by Allen differently since only two nodes should
Bradley’s DH-485,3 Profibus,4 BACnet’s have terminators. Care must be
Master/Slave Token Passing option5 exercised to ensure that only the
and ARCNET6 as well. Each of these proper modules have termination
implementations is different invoked in order not to cause Disconnects are provided for
demonstrating that EIA-485 is not an all excessive bus loading. fail-safe bias and termination.
encompassing standard.
Another approach is to use external National Semiconductor’s AN-8478
APPLICATION termination outside the node. Profibus application note fully discusses the
PRESENTATION uses this approach. Both terminating need for fail-safe bias and recommends
SESSION and bias resistors are located in the the proper biasing resistors needed to
TRANSPORT shell of a DB9 connector. DIP switches ensure that the bus differential voltage
NETWORK within the shell are used to disable this will not dip below 200 mv when idle.
DATA LINK feature. The advantage of this This note recommends a pull-up
PHYSICAL approach is that all nodes on the resistor to +5 volts attached to one
network are the same while connectors signal line and a pull-down resistor to
In terms of the OSI model, EIA-485 are used to properly configure the ground attached to the other. In
only addresses the lowest layer. network. conjunction with an end-of-line
terminator, a voltage divider is created
There are several key topics that must Allen-Bradley’s DH-485 uses a slightly which impresses a bias across the line
be considered when deploying EIA-485 different approach. Although that exceeds 200 mv. Therefore, the
networks such as termination, fail-safe terminating resistors are located within receivers are biased in the “mark”
bias, connectors, grounding, cabling all nodes, an external jumper applied (off, logic 1) state when the network
and repeaters. at the connector invokes termination. is idle or when the transmitter sends a
Again, this keeps the configuration in logic 1. When a transmitter sends a
TERMINATION the connector and not within the node. logic 0, the line will revert to “space”
Terminating a data cable with a value (on, logic 0).
equal to its characteristic impedance FAIL-SAFE BIAS
reduces reflections that could cause EIA-485 is a multipoint standard where Bias can be applied at any point on
data errors. However, if the data rate is individual devices transmit and receive the bus segment but it is not necessary
low or the cables are short, termination data sharing a common two-wire to lump the bias at only one point. The
may be unnecessary. As data rates medium. The opportunities for bias can be distributed throughout the
increase, termination becomes collisions (two transmitters on at the segment with each node providing a
important. Since any device on the bus same time) are immense and a method portion of the bias. The advantage of
can transmit, it is probable that a node of medium access control (MAC) is this approach is that there is no need
within the middle of the bus will required. The 485 standard does not to provide an external bias network
transmit requiring that termination be provide a bus arbitration scheme since and power supplies. The problem with
applied to both ends of the bus this is not a requirement of the this approach is that the amount of
segment. National Semiconductor offers physical layer but is a requirement of bias developed depends upon the
a highly in-depth discussion on the data link layer. With a master/slave number of nodes on the bus. If too
termination in application note AN-9037 protocol such as Profibus DP, bus few nodes are connected, insufficient
and offers several alternatives. The arbitration with a single master and bias may result. Too much bias can
most popular approach is DC multiple slaves may not be a problem result if too many nodes are connected
termination although this approach since the master directs all the traffic. causing excessive loading. If it is
results in higher power dissipation. Slaves are always listening and only desired to supply lumped bias, a
respond to the master’s request thereby source for +5 volt power needs to be
Resistive terminators typically have avoiding collisions. During this time, found which may be awkward to
values of 120 to 130 ohms although the bus will "float" enabling noise to arrange. The other approach is to
twisted-pair cable impedances can be falsely trigger one of the bus receivers. provide the complete bias requirement
as low as 100 ohms. An 100 ohm This can occur because the receiver’s within each node while providing
terminating resistor is too low for the output is undefined when the disconnecting jumpers on the node. In
EIA-485 drivers. A value closely receiver’s input voltage is less than 200 this way, only one node needs to be
matching the cable impedance must be mv which could happen when the bus strapped for bias so record keeping
applied at some convenient location floats. To ensure that the bus assumes must be good to ensure that the
closest to the ends of the cable a defined state when all transmitters
segment as possible. One possibility is are off, fail-safe bias must be applied.
to provide the resistor within a node
location of this node is known when a CONNECTORS
replacement is necessary.
With coaxial and fiber optic cabling,
Profibus nodes source +5 volt power specifying connectors is easy since
to the connector allowing for the bias there is common practice in the
resistors in the shell of the mating industry. However, with twisted-pair
connectors. DIP switches within the cabling there are many options. Since
shell disable the bias. Profibus uses the EIA-485 standard does not address
If a third wire connection is used,
390 ohms for the pull-up and pull- connectors, trade associations or
resistors must be used to limit
down resistors and 150 ohms for manufacturers must do so. From
circulating ground current.
termination. This provides about 800 practice there seems to be three
mv of bias and a Thevenin equivalent popular approaches. The traditional
There is much confusion and
termination resistance of 125 ohms. In approach is to use a four-pin, six
misunderstanding of the third wire
TSB89 the resistance values are 620 position RJ-11 or eight position RJ-45
requirement and difficulty in even
and 130 ohms respectively which providing plenty of pins for signal and
finding a third wire. If the logic
yields 475 mv of bias and a Thevenin ground reference. Some RJ style
grounds of the transceivers are tied to
equivalent termination resistance of connectors are shielded.
earth and a third wire is used, there is
118 ohms. Either approach is adequate almost a guarantee of a ground loop
in terminating 120 ohm cable. Another approach to connectorization
current which may or may not induce
However, it must be remembered that is to use removable open style screw
excessive noise that could disrupt data
a termination resistor exists at the connectors. DH-485 uses a six-position
transmissions. The third wire will also
other end of the cable. The distant connector providing all the necessary
be the path for fault currents which
terminator will load the bias network connections including termination.
could be significant when the two
thereby reducing the bias voltage by a ground potentials are different due to a
factor of two. So instead of having 475 A popular connector is the DB9
significant electrical event. Still the
mv of bias, the resulting bias will be connector that is used with the Profibus
third wire helps to ensure that the
only 240 mv which is still above the standard. With nine pins, it is easy to
common mode requirements (-7 to
200 mv limit. This analysis assumes accommodate signals, logic ground,
+12 volts) of the transceivers are
there is no resistance in the cable. shield connection and power pins. DB9
maintained. Excessive common mode
housings are also available with metal
voltage is the most common reason for
If the required bias is applied at two shrouds for better EMC performance
transceiver failure.
points, then cabling rules are simplified. and the housing has built-in bias and
Apply bias and termination only at the termination provisions. This connector,
Protection Circuitry
end two nodes by using a combination however, tends to be pricey.
To protect EIA-485 transceivers from
bias/termination resistor network. excessive common mode voltages,
GROUNDING
diode protection circuits are used which
There is another benefit to applying Is EIA-485 a two wire or a three-wire are referenced to earth or logic ground.
bias at end nodes. If a lumped bias system? It is most definitely a three- Usually protection is provided from each
was applied to one end of a long wire system. The standard clearly states data line to earth and it is necessary to
cable with termination at each end, a that generators and receivers require a protect against either a positive or
voltage divider is formed with the DC return path between circuit grounds at negative occurrence which doubles the
resistance of the cable. For 24 AWG each end of a connection. This return protection circuitry. The more robust the
cable, the resistance is 24 ohms/1000 path could be an actual wire in the protection, the more the capacitance
ft. Since there are two wires in the cable connecting each of the logic which limits the data rate.
cable, the cable resistance is effectively grounds together or earth can provide
48 ohms/1000 ft. An 2500 foot cable the return path by having each logic
would have the same DC resistance as ground returned to earth. Using the
the end terminator thereby reducing latter approach, a single pair twisted
the effective bias at the end node by a cable can be used. If the third wire is
factor of two. This could put the to be used, the standard states that the
distant nodes in an unreliable state connection between logic ground and
compared to devices closer to the the third wire contain some resistance
source of bias. A way of correcting this to limit circulating currents when other
is to increase the cable wire gauge to ground connections are provided for
reduce resistance or apply an equal safety. This resistor could be between
amount of bias at the distant end of logic ground and frame (frame is tied
the cable effectively eliminating the to earth) or it can be between the logic Protection circuitry is usually
voltage drop due to cable resistance. ground and third connection. The referenced to earth.
standard uses 100 ohms as an example
for both situations.
It is quite possible that systems will Other cabling issues include the wire
refuse to work at the desired data rate size of the conductors, the need for
due to the increased capacitance. Some shielding, the presence of a third wire
protection is afforded when the ground and the type of insulation. It is
protection circuit consists of a bulky best to only use the manufacturer’s
transient voltage suppressor in series recommended cable and not substitute
with a diode. The capacitive divider without consulting with the
created by the diode and suppressor in manufacturer first.
series yields a capacitance that is less
than the diode itself thereby lessening Sometimes the shield is used as the REPEATERS
the impact of protection on data rate. third wire with an optically-isolated
EIA-485 segments can be extended
Of course, protection is possibly interface.
using active hubs or repeaters;
required at each node increasing the however, care needs to be exercised in
likelihood that either data rate or the selection of repeaters. Since only
distance will be compromised by CABLING
two wires are used, the direction of
adding protection circuitry. One of the more critical decisions to signal flow through the repeater must
make is the selection of cable. There change dynamically. Usually a
Optical Isolation are many choices of cable and people direction control line is provided to the
Optically isolated transceivers can be incorrectly assume that any 24 AWG repeater to control flow or the repeater
treated like DC coupled transceivers. telephone cable will do. Cable automatically senses traffic and adjusts
The termination and fail-safe bias selection depends on several factors accordingly. Do not assume any low-
issues are the same, so what is including data rate, signal encoding cost EIA-485 repeater will work at all
isolated? What is isolated are signals and distance desired. Cables attenuate speeds. Repeaters that sense line
TXD, RTS and RXD. Therefore, three the transmitted signal and introduce activity could be fooled in believing
opto-isolators are required. The two distortion of the signal waveform itself. data flow from one direction has
used for data should be high speed Additional distortion occurs by the way stopped when in fact it was a series
while the transceiver enable isolator receivers are biased. Jitter can occur of logic “1”s or “0”s without state
can be slower. A DC-DC converter when the receiver attempts to recover transitions. This is especially true of
needs to be provided and its the distorted data. Intersymbol RZ or NRZ encoded data. Repeaters
breakdown voltage will probably be interference results when a new signal that operate with a knowledge of the
the limiting factor in terms of isolation. arrives at the receiver before the last data link protocol are much more
The optically isolated transceiver signal reached its final value. reliable than off-the-shelf solutions.
design is the most expensive approach Therefore, the two successive symbols
and it does not guarantee that the EIA- interfere with one another resulting in
485 transceivers, which are connected a time shift in the data recovery which SUMMARY
directly to the cable, will survive abuse is called jitter. National Semiconductor
from severe electrical transients. With some attention to detail,
discusses this phenomenon in AN-808.9
Chances are, however, that the damage EIA-485 can be an effective physical
Some jitter is usually acceptable,
will stop at the isolators and not layer technology.
however, if it is excessive, the only
involve the equipment attached to the solution is to obtain better cable,
node. Optically-isolated EIA-485 forces reduce the modulation rate or reduce
a third wire connection since the the distance.
transceivers must have a return path.
However, this time there is no ground
loop since logic ground of the
transceivers is not connected to the
earth. Where do we get the third
REFERENCES 5. ASHRAE, A Data Communications
Protocol for Building Automation
and Control Networks,
wire? Many times the shield is used 1. Telecommunications Industry Association, ANSI/ASHRAE 135-1995, Dec. 1995.
and not everyone is in agreement on Electrical Characteristics of
the wisdom of this approach. Since Generators and Receivers for Use in 6. FieldComms USA, ARCNET’s Already
Balanced Digital Multipoint Systems, Flexible Physical Layer Enhanced
such a small current is going to flow, it
TIA/EIA-485-A, March 1998. with Several EIA-485 Variants,
seems a reasonable approach. DH-485 George Thomas, June 1997.
uses a two pair cable with one wire of 2. Telecommunications Industry Association,
one pair dedicated as the common Application Guidelines for 7. National Semiconductor, A Comparison
ground. A shield covers the two pairs TIA/EIA-485-A, TSB89, June 1998. of Differential Termination
and is only grounded at one point. Techniques, AN-903, 1993.
3. Rockwell Software, SLC500 Modular
Hardware Style Installation and 8. National Semiconductor, Fail-safe Biasing
Operation Manual, SLC500CD, July 1998. of Differential Buses,AN-847, July 1992.

4. Profibus Trade Organization, Profibus 9. National Semiconductor, Long


Standard-Part 1, DIN 19245, 1993. Transmission Lines and Data Signal
www.ccontrols.com Quality, AN-808, March 1992.

You might also like