background image

5

Technical Background on RS485

5 Technical Background on RS485

This chapter will provide a little bit of theory about RS422 and RS485 data transmission. It is
necessary to have this basic knowledge, to avoid or find errors in data transmission. Failures in
cabling are responsible for the vast majority of transmission problems.

5.1 Transmission Technique

RS422 and RS485 use the same balanced transmission method. Signals are not transmitted by
voltage on a single wire, as RS232 does. Instead two wires are used; when one carries high voltage,
the other one carries low voltage. The signal is defined by the difference in voltage between those
two wires. This hardens the transmission against noise. Usually twisted pairs are used, which
further reduces the sensitivity for noise.

Typical voltages are +4V as high, about +0.5V as low. These voltages are generated and defined
against the GND signal of the transmitter. The minimum

differential

voltage is required as

±

200mV

by the specifications of RS422 and RS485. The receiver detects the polarity of the differential
voltage, and thus gets a Zero (negative) or a One (positive) difference.

To do this detection the voltages on the receivers side have to be inside the bounds of the common
voltage range defined as -7V t12V, as measured against the local GND of the

receiver

.

The specification of the common voltage range has been given to make the design of receiver circuits
more simple and cost effective.

To make sure the signals meet the common voltage range, the GND of sender and receiver must be
connected somehow, otherwise the voltages are undefined and may have any value. To assure the
correct range RS485 (RS422) usually requires an extra wire for GND

2

, which is often forgotten.

The connection may also happen by protective ground, or by other means. If the connection of
GND is bad, it may be impossible to receive correct data.

5.2 Termination

When transmitted signals arrive at the end of a cable, they get reflected. They travel on the cable
back and forth some more times, which is called ringing. This can cause false reading of transmitted
data. When the reflections travel on the cable several times, they are damped and do no longer
cause errors. This happens earlier if the cables are short.

For long cables Termination Resistors are required. These increase the damping of reflections. The
value of the resistor must match the impedance of the cable, typically 120Ω for twisted pair.

As a rule of thumb

3

, when the cables are longer than

1000000

Bitrate

(one million divided by the bit rate)

in meters, you should consider Termination Resistors.

2

with an optional resistor

3

Assuming group speed of 100.000km/s, 10 travels to damp out, and 10% of bit time

June 2009

USB-COM PRO User Manual

27

Содержание USB-2COM PRO

Страница 1: ...Manual USB COM User Manual USB COM USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM PRO USB COM...

Страница 2: ...out warranty of any kind either expressed or implied including but not limited to its particular purpose Vision Systems reserves the right to make improvements and or changes to this manual or to the...

Страница 3: ...16 3 3 2 Miscellaneous Options 16 3 3 2 1 Enable faster Responses 16 3 3 2 2 Serial Enumerator 17 3 3 2 3 Serial Printer 17 3 3 2 4 Cancel if Power Off 17 3 3 2 5 Event On Surprise Removal 17 3 3 2 6...

Страница 4: ...on 21 16 UsbComCfg Multi Device Selection 22 17 Open Terminal Configuration 23 18 Terminal Main Menu 23 19 Exit Terminal Configuration 23 20 Show all port configurations 24 21 Change port configuratio...

Страница 5: ...a bitrate of up to 3 Mbps Of course RS232 can not reliably transport very high bitrates even under best conditions 1 Mbit s is the limit As the result of the very high maximum speed the USB COM will g...

Страница 6: ...isted below The Mode LED related to each port is light in a certain color to indicate the mode used Mode Comment LED RS485 4w RTS Full Duplex Transmitter controlled by RTS signal Orange RS485 2w RTS n...

Страница 7: ...The modes of RS422 and RS485 allow to configure BIASing of the data lines as well as connecting 120 termination resistors between the positive and negative wire These three options can be selected pe...

Страница 8: ...e Yellow per port 2 Mode On Top 3 Color Table 4 Features of VScom USB 2COM PRO Dual Port 2 2 3 VScom USB 4COM PRO Figure 4 VScom USB 4COM PRO Serial Ports 4 Connectors 4 DB9 male RS232 RS422 RS485 6 1...

Страница 9: ...software and manuals Metal plates for Wall mounting or DIN Rail clips Power supply hardware if required 2 4 About this Manual This manual describes the hardware of VScom USB COM PROs as well as signa...

Страница 10: ...e followed by instructions for removing the drivers in the unlikely case you wish to do this After this the configuration of the serial ports is described There is no option to configure the other dri...

Страница 11: ...drivers just say No not this time to this question In the next steps select the Automatic option and click on Next and Finish as requested Windows knows about the drivers and installs all components a...

Страница 12: ...PRO to a free USB port of your computer Windows will detect the new hardware and identify it as an unknown type Of course unknown only if this is the first time drivers are installed to the system Th...

Страница 13: ...if the driver is saved on a CD ROM the automatic option uses a long time to search So instead select the Advanced option and click on Next Figure 10 Select appropriate driver Guide Windows to the dire...

Страница 14: ...of each serial port 3 2 2 Uninstall Drivers from Classical Way First disconnect all USB COM from your system On the CD ROM or in the downloaded files find the folder named FTClean Inside this you ll...

Страница 15: ...e Drivers for Windows Figure 12 USB Serial Port Properties Click on the button named Advanced to see the special configuration options They are available via panel 13 June 2009 USB COM PRO User Manual...

Страница 16: ...3 3 2 1 Enable faster Responses In the middle of the left part is the section named BM Op tions The parameter Latency Timer can be reduced to 1 millisecond if there are problems with certain applicat...

Страница 17: ...he attached serial device is a printer sometimes this will halt for paper feed especially for manual interaction This will cause the data flow to stop for a significant long time Enabling this option...

Страница 18: ...is is the basic reason why the Latency see 3 3 2 1 can t be shorter than 1 ms But there is a second effect causing slow transmissions Many software sends the data to the driver byte by byte This is no...

Страница 19: ...is not a problem because without such driver the VScom USB COM PRO can not be used anyway The configuration parameters are saved to a non volatile memory inside the USB COM PRO so configuration and us...

Страница 20: ...earch when the appropriate button is clicked By clicking a device in the left pane a port in the middle pane can be selected The operation mode is then changed by the radio buttons and check boxes in...

Страница 21: ...everal ports of one device at the same time This is done by the usual Windows method i e clicking with Shift or Ctrl Key pressed The selected configuration then applies to all selected ports Commit Ch...

Страница 22: ...bComCfg program available when they want to reconfigure the USB COM PRO Even then the configuration is possible via the virtual serial port implemented by the driver If no driver is available on the s...

Страница 23: ...hange port configurations 3 Default port configurations 4 Save port configurations 5 Show configuration file 6 Upload configuration file Figure 18 Terminal Main Menu The Main Menu appears In this and...

Страница 24: ...2 0 Back 1 Port 1 2 Port 2 3 All Ports Figure 21 Change port configurations Command 2 allows to change the configuration of some ports The ports may be selected individ ually or all at once for common...

Страница 25: ...rd configuration for all ports This is RS232 Termination and BIAS is disabled 4 2 5 Save Port Configurations 4 Each change in Port configuration is temporary only saved in volatile memory It needs exp...

Страница 26: ...mentation The configuration of each serial port is written on three distinct lines followed by an empty line Port number and operation mode are already described The definition of the control options...

Страница 27: ...as measured against the local GND of the receiver The specification of the common voltage range has been given to make the design of receiver circuits more simple and cost effective To make sure the s...

Страница 28: ...r provides up to 60 mA of current in high and low level 5 4 2 Wire Scheme In many configurations a very simple cabling is required RS485 allows for so called 2 wire cabling as shown below Several devi...

Страница 29: ...receive information from another device Figure 25 4 wire cabling scheme Figure 25 displays the wire pairs Tx and Rx as named for Devices 1 and 2 There are more slave devices only two of them are shown...

Страница 30: ...defined by the term RS232 already The same is for the DB25 male connector Below is the signal definition for all connectors used by the USB COMs 6 1 DB9 male Usually this type of connector is used by...

Страница 31: ...232 Figure 27 DB25 male RS232 6 3 Terminal Block The Terminal Block connector is designed for connecting RS422 or RS485 signals However it may be used for RS232 because the most important signals are...

Отзывы: