Tech Note_485network
Tech Note_485network
Page 1 of 7
RS-485 NETWORKS
Detcon Inc.
INDUSTRIAL GAS DETECTION
AN-1000
www.detcon.com
Page 2 of 7
RS-485 NETWORKS
Detcon Inc.
INDUSTRIAL GAS DETECTION
AN-1000
www.detcon.com
the same physical location, and their DC extreme ends. Without a balanced bus the
commons are tied together, and then tied to long taps of slave1 & 2 will introduce
earth ground. Problems can occur when you reflections to the signal that can lead to
have part of the data bus powered off of one problematic operation in the field. These
supply and the second part of the bus problems can be very hard to diagnose,
powered off of a power supply located much less isolate and fix.
somewhere else in the plant. In this case
you are relying on earth ground to be the
reference between the two sections of the
bus. If noise gets induced onto the earth
ground of one power supply and not the
other, you may wind up with data errors.
This is even more likely to occur when the
distance between the ground references is
long. A way around this is to install an
isolated repeater into the data bus to isolate
the grounds from each other, enabling the
Figure 3.
bus to use only one of the two references.
USING REPEATERS
The addition of 2 repeaters (Figure 4.) can
solve this problem. The repeaters look like
Repeaters can play many rolls in the
short stubs to the main bus, and at the same
implementation of an RS-485 data bus.
time they create 2 new busses that have all
They can extend distance if you need to go
the same characteristics as the main bus.
further than 4000 feet, allow for the addition
Each new bus could have up to 32 UL’s
of more devices to then bus, increase signal
connected to it. Just don’t forget the
strength and integrity, solve grounding
termination resistors to balance the new
problems and solve some of the problems
data bus.
that will occur when an incorrect wiring
scheme is implemented. A repeater in it’s
basic form consists of two transceivers
working together.
Page 3 of 7
RS-485 NETWORKS
Detcon Inc.
INDUSTRIAL GAS DETECTION
AN-1000
www.detcon.com
Be sure to check the equipment you are address (485 ID) which corresponds to one
installing. Some manufacturers include a of the slave devices, along with the
built-in terminating resistor that can be instruction for that device, followed by a
selected with a jumper or dip switch. couple of error checking bytes. When
Detcon’s Model 880 has such a jumper complete, the master turns off its transmitter
located on the FA-isonet card. The jumper is and waits for a response. Once the slave in
labeled “120 ohm Term”. Detcon’s 600 question recognizes the command from the
series gas sensors and DA1 modules do not master it performs the instruction and
include this resistor, and therefore, if one of prepares to answer the master. First it turns
these devices is the last on the RS-485 bus on its transmitter, then it sends a data
then a discrete 120 ohm resistor should be stream. The data stream contains its own
placed across the “A” and “B” terminals on address (485 ID) along with the data that
the connector board. was asked for by the master, followed by a
couple of error checking bytes. The slave
PROTOCOL then turns off its transmitter and all is quiet
until the master requests additional data
Now that we have been through the from one of the slaves.
communications medium, lets look at the
language and mannerisms (Protocol) that The Master transmits this data stream (HEX)
are used to communicate between many
01 03 00 00 00 04 C5 C8
devices. The same protocol could be used
on an RS-232 port or an Ethernet port. The 01 is the slave address
protocol does not care about the electrical
side of things, it is simply a set of rules and 03 means the master wants to get some information
specific details of how we will communicate. from the slaves registers.
Page 4 of 7
RS-485 NETWORKS
Detcon Inc.
INDUSTRIAL GAS DETECTION
AN-1000
www.detcon.com
01 02 Rt
03
repeater #2
04
Control Room
Rt
Rt 05
09 Control Room 04
Rt
Rt
05
0a 0b Rt 09
repeater #1
08 07 06 Rt Rt
Rt
0a 0b
repeater #3 repeater #4
08 Rt Rt Rt
07 06
Page 5 of 7
RS-485 NETWORKS
Detcon Inc.
INDUSTRIAL GAS DETECTION
AN-1000
www.detcon.com
TROUBLESHOOTING
The first one consists of the master located
in the control room, device 09, repeater #1, Trouble-shooting RS-485 with multiple
device 01, device 02, repeater #2, device devices attached to the data bus can be an
03, and device 05. Notice the termination aggravating task. Sometimes one device will
resistors at the beginning and end of this take down the entire bus, but if brought back
bus section. to the shop, the same device might work just
fine. Most of the time the failure is a
The second bus starts at repeater #2. It damaged transceiver chip, which was
consists of the repeater and device 04. subjected to an over-voltage or a surge.
Since this is a new bus it has terminating
resistors at each end. The first step in finding the bad device or
devices is to start at the master. Disconnect
The third bus starts at repeater #1. It the data wires (A & B). Connect a working
includes device 08, repeater #3, device 07, device directly to the master and make sure
repeater #4, and device 06. It also has its that it is functional. If it is not, replace the
own resistors. master’s transceiver chip or board. In the
case of an 880 controller, this would be the
The fourth bus starts at repeater #3 and FA-Isonet board. Once this is done stop the
consists of the repeater, device 0A, and the master from communicating, but do not
terminating resistors. power it down. On the model 880, this can
be done by unplugging the phone jack
And the fifth bus starts at repeater #4 and connection to the FA-Isonet card.
consists of the repeater, device 0B, and
termination resistors. Now unplug all of the slave devices from the
bus. When using 600 series transmitters or
This configuration isolates all of the t-tap DA-1’s this is done by simply unplugging the
stubs and should function properly if wire transmitter from the connector board. Re-
type and distances are observed. The connect the data bus wires (A&B) to the
following chart shows an approximation of master. Using a meter measure the voltage
wire length vs. data speed. Detcon operates across the A and B wires and write this
its equipment at 19,200bps and lower. reading down. Go to the first slave device
plug it in. Take another measurement and
100 mbps write it down. Unplug the first device and
proceed to the next slave recording the
10 mbps meter readings as you go. The first
measurement you took should have been
1 mbps
arround 400 to 500 millivolts. If this is not the
case, be sure you have unplugged all
100 kbps
devices from the data bus. If you still don’t
measure somewhere arround 400 to 500
10 kbps
millivolts there may be a problem in the
wiring that must be corrected. Now, if any of
1 kbps
Page 6 of 7
RS-485 NETWORKS
Detcon Inc.
INDUSTRIAL GAS DETECTION
AN-1000
www.detcon.com
Page 7 of 7
RS-485 NETWORKS