Professional Documents
Culture Documents
Introduction
When communicating at high data rates, or over long distances in real world environments, RS-232 are
often inadequate. Differential data transmission (balanced differential signal) offers superior performance
in most applications.
1 Half duplex is a system in which one or more transmitters (talkers) can communicate with one or more
receivers (listeners) with only one transmitter being active at any one time. In a 485 network the master
will start the conversation with a Query addressed to a specific slave, the master will then listen for
the slaves response. If the slave does not respond within a pre-defined period, (set by control software
in the master), the master will abandon the conversation.
RS-485Page 1
RS-485
To solve the "data collision" problem often present in multi-drop networks hardware units (converters,
repeaters, micro-processor controls) can be constructed to remain in a receive mode until they are ready
to transmit data. So Master Slave network is used for the same.
HALF-DUPLEX RS-485
Half-duplex RS-485 links have multiple drivers and receivers on the same signal path. This is the reason
why RS-485 transceivers must have driver/receiver enable pins enabling only one driver to send data at a
time.
A single twisted pair is used for data transmission and reception. Multiple RS485 devices are connected
in a single bus, as shown figure. Devices from different vendors may use different names for the data
signal terminals.
The common terminal must be connected to the corresponding terminals of all network devices, to ensure
the same potential in all devices. If a common wire is not connected to all devices, all must be properly
grounded according to the manufacturer recommendation. This demand results in using a third wire that,
although not being part of the communication process, is essential to ensure the electrical integrity of the
network devices. The need to install termination resistors depends on the total length of the
communication bus and the communication speed (baud rate).
RS-485Page 2
RS-485
FULL-DUPLEX RS-485
This configuration is also known as a 4-wire RS-485 network connected in a multipoint master/slave
configuration. Full-duplex RS-485 allows for simultaneous communication in both directions between
master and slave nodes.
In this mode two pairs of wires are used. Data from the RS485 converter to the networked devices are
transmitted through one pair, and the other pair carries data from the devices to the RS485 converter.
Multiple devices are connected as shown in figure.
The common terminal must be connected to the corresponding terminals of all network devices, to ensure
the same potential in all devices. If a common wire is not connected to all devices, all must be properly
grounded according to the manufacturer recommendation. This demand results in using a fifth wire that,
although not being part of the communication process, is essential to ensure the electrical integrity of the
network devices. The need to install termination resistors depends on the total length of the
communication bus and the communication speed (baud rate).
FULL-DUPLEX RS422
Full-Duplex RS485 specification supersedes RS422. The same connection instructions shown for FullDuplex RS485 apply for RS422 connection.
TERMINATION
In a transmission line, there are two wires, one to carry the currents from the driver to the receiver and
another to provide the return path back to the driver.
For reliable RS-485 and RS-422 communications, it is essential that the reflections in the transmission
line be kept as small as possible. This can only be done by proper cable termination.
RS-485Page 3
RS-485
Reflections happen very quickly during and just after signal transitions. On a long line, the reflections are
more likely to continue long enough to cause the receiver to misread logic levels. On short lines, the
reflections occur much sooner and have no effect on the received logic levels.
In RS-422 applications there is only one driver on the bus and if termination is to be used it must be
placed at the end of the cable near the last receiver.
In RS-485 applications require termination at the master node and the slave node furthest from the
master. Table given below shows a comparison of different termination techniques .
No Termination
The time required for a signal to propagate down the line to a receiver determines if a line is considered a
transmission line. Physically long wires have longer propagation times, whereas physically short wires
have shorter propagation times. When the propagation time is short relative to the data bit duration, the
effect on the signal quality is minimized. A cable is not seen as a transmission line if the signal rise time is
more than four times the propagation delay of the cable.
Parallel Termination
When two or more drivers share a pair of wires, each end of the link has a termination resistor equal to
the characteristic impedance of the cable. There should be no more than two terminating resistors in the
network regardless of how many nodes are connected.
In a half-duplex configuration, both ends of the cable must be terminated (see Figure 3). In a full duplex
configuration only the master receiver and most remote slave receiver need to be terminated.
AC Termination
AC termination is used to reduce the power consumption of idle links as well as to reduce ringing
voltages. The negative effect though is a reduction in cable length and bit rate. A resistor and capacitor
can be placed in series across the bus (between A and B) as shown in Figure 5. The Capacitor CT is
selected by using the following formula:
Topology
The best way to ensure a robust and reliable RS-485 network is to build it around a daisy-chain
configuration. When a backbone with stubs topology is used, the stub length should be much shorter than
the main bus length.
RS-485Page 4
RS-485
There must be no more than two wires connected to each terminal, this ensures that a Daisy Chain or
straight line configuration is used. A Star or a network with Stubs (Tees) is not recommended as
reflections within the cable may result in data corruption.
RS-485Page 5
RS-485
CONNECTIONS
The appropriate connection of the devices depends on the type of serial network: RS422, 2-wire RS485
or 4-wire RS485. A shielded twisted-pairs cable is recommended for wiring the communication bus from
the converter to all network devices. The shield should be grounded and/or connected to the common
terminals of all devices. The minimum recommended wire gauge is 24 AWG (0.2 mm2).
RS485 or RS422 devices from different vendors or of different models may identify the communication
terminals using distinct notation. The following table shows some of these notations and its equivalences.
Comparison
RS-485Page 6
RS-485
Converters
Converters in general can be used to change the electrical characteristic of one communications standard
into another, to take advantage of the best properties of the alternate standard selected. For example, an
Automatic RS232<=>RS485 converter, could be connected to a computer's RS232, full-duplex port, and
transform it into an RS485 half-duplex, multi-drop network at distances up to 4000ft. Converters in most
instances, pass data through the interface without changing the timing and/or protocol. While the
conversion is "transparent" the software must be able to communicate with the expanded network
features. An "Automatic Converter" (RS232<=>RS485) will turn on the RS485 transmitter when data is
detected on the RS232 port, and revert back into the receive mode after a character has been sent. This
avoids timing problems (and software changes) that are difficult to deal with in typical systems. When full
duplex is converted into half-duplex only one device at a time can transmit data. Automatic Converters
take care of the timing problems and allow fast communications without software intervention.
RS-485Page 7