Trouble-Shooting RS-485 (or Finding the Signal Leak)

Similar documents
RS485 & RS422 Basics

CAN Bus Transceivers Operate from 3.3V or 5V and Withstand ±60V Faults

IEEE P802.3af DTE Power via MDI Task Force Presentation Phil Holland

Fax. Frequently Asked Questions (FAQ)

MGL Avionics CAN bus interface for Trig Avionics TT21/TT22 transponders

Modular I/O System Analog and Digital Interface Modules

Eliminate Risk of Contention and Data Corruption in RS-485 Communications

Quantec Wiring Instructions

Charged cable event. 1 Goal of the ongoing investigation. 2 Energy sources for the CDE. Content

RS-485 Protocol Manual

OPT SERIAL TO FIBER OPTIC CONVERTER

LDG DTS-4/4R Desktop Coaxial Switch / Remote

Fiber Optic Selector Guide for Analog & Digital Data Links, Contact Closures & Multiplexers

Troubleshooting and Diagnostics

LS1024B / LS2024B/ LS3024B. Solar Charge Controller USER MANUAL

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Application Note 83 Fundamentals of RS 232 Serial Communications

How to setup a serial Bluetooth adapter Master Guide

AXIS T81B22 DC 30W Midspan

Troubleshooting accelerometer installations

TROUBLESHOOTING PRELIMINARY

User Manual IC-485AI

TX2123 RS485 TO ETHERNET ADAPTOR

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

NC-12 Modbus Application

Current Loop Application Note 1495

How to connect to a Class II router using a mobile-phone data cable specifically for Solwise & Safecom routers

ENCODER TEST MODULE APPLICATION GUIDE

VOLTAGE REGULATOR AND PARALLEL OPERATION

AJ s Technical Tips: Designing a Small Solar PV System Part IV; Selecting Wires for the System

Frequently Asked Questions

AN-3 SEVEN KEY CONSIDERATIONS BEFORE YOU START YOUR SLIC OR FXS PHONE LINE INTERFACE DESIGN

RIGtalk. Revision 5. Owner s Manual 2012.

Single Port Gigabit Ethernet Media Converter Board (P/N xxx) User s Manual And Troubleshooting Guide

Whale 3. User Manual and Installation Guide. DC Servo drive. Contents. 1. Safety, policy and warranty Safety notes Policy Warranty.

Odyssey of the Mind Technology Fair. Simple Electronics

Tips for connecting 24-volt power

Cable Discharge Event

Bluetooth to Serial Adapter

Hatton s MD4 Decoder. Thank you for purchasing Hatton s Decoders.

FOSTCDR. Industrial Serial to Multimode Fiber Optic Converter PRODUCT INFORMATION B&B ELECTRONICS. Specifications Serial Technology

User manual Compact Web PLC WP240 series IEC-line

Telecommunication Line Protectors

Practical steps for a successful. PROFIBUS Project. Presented by Dr. Xiu Ji Manchester Metropolitan University

Computer Network and Communication

Application Note: How to Connect a Wired Ethernet Port to the WiPort

Multimeter measurements on variable frequency drives using the new Fluke 289 DMM

i ChatterBox! Motorcycle Security

Troubleshooting Guide, Freedom and Fleet Power Inverter/Chargers

SPL 2-00/-01 OPERATION INSTRUCTIONS

Digital Energy ITI. Instrument Transformer Basic Technical Information and Application

Introduction. In this Self-study Programme we will explain to you the design and function of the CAN data bus. SSP 186/01

Instruction Manual. 2in1 LAN Tester & Multimeter. Model: LA-1011

MDM192 MULTI-DROPS DIGITAL MODEM FOR PRIVATE LINE. USER GUIDE Document reference :

The Secrets of RS-485 Half-duplex Communication

USER GUIDE. 2 Channel POTS Mux DIN Fiber Link System. Introduction SYSTEM INSTALLATION INFORMATION. The leader in rugged fiber optic technology.

X. Dealing with Signature Differences

SELECTION GUIDE INPUT CHARACTERISTICS. Voltage set point accuracy. Overall voltage error. Temperature coefficient of output voltage (slope)

Flarm LED indicator. Version 1.1

Using installed Fieldbus Wiring to carry Ethernet Communications

AN460 Using the P82B96 for bus interface

1.Eastron SDM220Modbus Smart Meter Modbus Protocol Implementation V1.0

DMX512 TO 0-10 VOLT ANALOG CONVERTER OWNERS MANUAL

EAGLE Power over Ethernet Products for IP Powering Applications. Flexibility, Simplicity and Value LAN POWER SYSTEMS. Trend Datacom USA, Inc.

Application Note: How to Connect a Lantronix Embedded Module to a Wired Ethernet Port

10/100/1000BASE-T SFP Transceiver

AN Surging Ideas TVS Diode Application Note PROTECTION PRODUCTS. TRANSIENT IMMUNITY STANDARDS: IEC x

PC2400 EEPROM PROGRAMMER INSTRUCTION MANUAL

Tristan s Guide to: Solving Parallel Circuits. Version: 1.0 Written in Written By: Tristan Miller Tristan@CatherineNorth.com

Contact Center CC-165 INSTALLATION & USER'S GUIDE

Essential Electrical Concepts

Serial Communications

Use your troubleshooting superpowers for good Application Note

AN-2 TEN KEY CONSIDERATIONS BEFORE YOU START YOUR DAA OR FXO PHONE LINE INTERFACE DESIGN

Chapter 19 Operational Amplifiers

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

Características. Starligh SA 9 de julio 1595 Córdoba Argentina /

Documentation. M-Bus 130-mbx

LocoNet, the Digitrax Difference

FUEL-16, Troubleshooting Fuel Supply Problems

INSTALLATION MANUAL 3RP / 5RP 4-BUTTON SERIES VEHICLE SECURITY SYSTEMS

HEAT SIPHON ANSWERBOOK

OWNER S MANUAL 2.5/3.0 ACS PANEL (ADVANCED CONTROL SYSTEM) 7725 Lougheed Highway Burnaby, BC V5A 4V8 Canada

IP DSLAM IDL Quick Installation Guide

+5 V Powered RS-232/RS-422 Transceiver AD7306

EMF16 and Model 201 Graphics Software for Win 98/NT/ME/2K/XP/Vista/Win7/Win8 and Win10

LDG DTS-6/6R Desktop Coaxial Switch / Remote

Using the Teridian 73M2901CE in 4-Wire and Leased Line Applications

Understanding SAE J1939. by Simma Software, Inc.

OPL BASIC. Dosing System for Professional Laundry machines. Contents

Just a Dipole. Gary Wescom N0GW July 16, 2007

ESP 120 M1, ESP 208 M1, ESP 240 M1, ESP 415 M1, ESP 277 M1, ESP 480 M1 and M1R variants. Installation instructions ESP M1/M1R mains protectors

Frequently Asked Questions for TFT Remote Controlled Monitors. First Rev 4/6/2005 SGMc Second Rev 5/7/2005 Third Rev 11/15/2005

Current Probes, More Useful Than You Think

REV. REL 1302 WEST BEARDSLEY AVENUE P.O. BOX 1127 ELKHART IN (574) FAX (574) ELKHART BRASS MFG. CO., INC.

The Secrets of Flow Control in Serial Communication

FN2001-A1 Network module (SAFEDLINK) Mounting Installation

Video Camera Installation Guide

The Analyst RS422/RS232 Tester. With. VTR, Monitor, and Data Logging Option (LOG2) User Manual

Transcription:

Trouble-Shooting RS-485 (or Finding the Signal Leak) RobustDC Application Note #6 Quick Index: The Problem The Symptoms Background to the RS-485 Field Test Test for faulty RS-485 interface ICs Example Test Results Contact Information The Problem Trouble-shooting RS-485 multi-drop is sometimes like a string of old-fashion Christmas tree lights -- one bad bulb brings the whole string down. Worse yet, the faulty RS-485 device may communicate fine back in your work-shop, yet still bring the whole line down when placed back in the field! Talk about frustrating situations! Worse, many vendors will return such a unit to you as "fixed" or "not faulty". This app note covers some common RS-485 failures and a procedure for trouble-shooting. The Symptoms A common type of RS-485 failure is partial or complete damage to an interface chip due to surge or overvoltage conditions. The symptoms may be as following: The RS-485 multi-drop line is completely down -- often after a lightning storm. Testing may prove the master RS-485 device is functioning normally. The master (control room) device is often protected by lightning surge devices, while not all of the field devices may be. The "end" of RS-485 multi-drop line disappears. This may be a hard failure, or the number of devices offline may fluctuate -- now the last 3 are gone while last hour the last 4 were gone. The error rate of the RS-485 multi-drop line increases to a higher than normal level. Obviously there can be other causes for these failures, such a loose connection or faulty master device. But assuming these two causes have been ruled out, you can try the following test. Background to the RS-485 Field Test Potentially, one or more of the RS-485 devices is placing too much load on bus for the transmitting RS-485 device to over come. RS-485 uses a differential voltage (V diff ) signal between the A and B (or - and + ) wires. To communicate, a transmitter must force the volt- A B R 1 R 2 R n R t age potentials of the A and B wires to the levels defined by the standard to represent the desired signal: A V - B V > +200mV for binary 0 and A V - B V < -200mV for binary 1. If the wires are just floating, this is easy to do. However, each RS-485 receiver places a small load (resistance) shorting these two wire together (R 1, R 2, to AN-006 - Trouble-shooting RS-485 Multi-drop RobustDC, Inc. 1995-2003 Page 1 of 5

R n, above). The terminating resisters (R t ) also add a large load to be overcome. Therefore the transmitter must supply enough current to drive the voltage potentials apart and overcome these loads. The EIA/RS- 485 standard requires a transmitter to be capable to supply at least 65mA in this effort -- while also being self-limiting to never more than 250mA in the even of a short circuit. If the two wires are just shorted together, V diff between A and B will be 0 and the transmitter supply as much power as it is designed to supply and the current limiting portion of the IC will become active. (Just a robustness note: the standard states that any transmitter must be able to function in this mode indefinitely without damage.) Assuming your two wires are not just shorted together (you can test this by powering off the system and measuring the resistance), then the magic number "32" and the term "unit load" become important. The EIA/RS-485 standard is defined so that any transmitter can supply only 65mA to drive 32 receivers and 54 Ω of terminating resistance and still maintain a suitably strong signal -- more than ±200mV. In this case each receiver represents 1 "unit load" of resistance between the wires. If you are interested, some companies now sell chips with only ¼ unit load, so you could in theory place 128 devices on a single RS-485 bus. An example may help prepare you for the test below. Suppose that with only the terminating resisters present - no receiver loads - our driver hits its supply current limit with a V diff of 600mV between A and B. This value varies: active RS-485 masters with software RTS control can generally maintain a V diff of 3 to 4 V (3000-4000mV), while passive RS-485 masters with automatic turn-around generally only maintain a V diff of 400 to 600mV. As we add receivers, each receiver will add a small load and cause V diff to drop. Assuming we start with 600mV and require a minimum V diff of 200mV, then we can add 32 receivers only if on average each has less than a 12.5mV effect on V diff. With this last idea in mind, we now have a basis for our test. Normal RS-485 interface receivers will cause the V diff of an idle RS-485 bus to drop between 1mV to 8mV. Major surge damage may cause the on-chip over-voltage protection diodes to start leaking either wire (A or B) to ground or +5v. Such minor surge or over-voltage damage may cause the V diff to drop hundreds of mv when this receiver is attached to the RS-485 multi-drop. This also explains the mystery of a device "talking" fine on the work-bench, but killing the field multi-drop line. Suppose the master device can maintain an idle V diff of 600mV. By the time the resistance of the field wires and surge devices is added, this may only be 400mV at the remote field termination of the RS-485 bus. If we now place on the bus 20 normal RS-485 receivers each with an 8mV impact on V diff, then this remote value may fall to 240mV. While this is low, it is still above the required ±200mV. Enter our damaged device whose receiver has a 150mV impact on V diff,. When tested alone, a master device with an idle V diff of 600mV is pulled down to 450mV -- well above 200mV and so data communication works fine on the test bench. But place the damaged device back in the field where we only had 40mV "spare" signal and we end up with a V diff of only 90mV and part or all of the RS-485 multi-drop line may stop working. AN-006 - Trouble-shooting RS-485 Multi-drop RobustDC, Inc. 1995-2003 Page 2 of 5

Test for faulty RS-485 interface ICs So the test is to measure the impact of each receiver on the idle RS-485 bus V diff. This test is very easy if you have had the good foresight to install an isolation switch at each device in the field -- especially if the field is considered a hazardous location and opening terminal boxes can take 10 minutes each. If not, remember to add these to your future projects. The following steps are a rough guide only. The values you will see will vary and you may have to apply "expert knowledge" and personal judgment to obtain valid results. You will need at least 2 people, a good digital voltage meter (DVM), and perhaps a pair of radios. Keep in mind that talking on radios within 1 or 2 meters of unshielded RS-485 wires or open junction boxes will cause considerable voltage noise. 1. Stop all data communications on the RS-485 bus, but do not power any of the devices off. If data communications is still running, V diff may be rapidly changing from (for example) +300mV to -300mV and your DVM when show garbage. Some people have suggested using the Min/Max feature of modern DVMs to try this test on a running RS-485, but this may double or triple the time this test requires plus seems too error prone to me. 2. Go to the remote end of the bus and measure V diff. If it is less than 200mV or greater than 3V, then your problem may be a damaged receiver either loading the device too much (a "leaky" connection) or pulling one or both wires to ground or +V. You should also look at the absolute voltage of both A and B. They should also be roughly symmetrical around 2.5V, for example 2.1/2.8v or 1.0/4.3v. If one is 0V and the other is 2.4v, then either your grounding is bad or one of the wires may be shorted to ground. 3. Return to the master device and disconnect it from the field. Verify its V diff when disconnected is greater than 400mV and just be safe, connect a known-good slave device to it to verify it is working correctly. 4. Reconnect the master RS-485 device and select a good place to measure V diff as your standard. Since we are interested more in changes to V diff than in absolute voltages, the actual spot you pick is not so important. The best place is of course the farthest from the master RS-485 device, which should be the site of the lowest V diff. 5. If you do not have isolation switches for each device: You may find it easier to do this test in reverse -- that is to record the current bad V diff and isolate devices until it jumps up to a good value. Since your "standard" V diff is now changing at each measurement, this requires more math and provides more chances for mistakes. But if reducing down-time is more important than finding all marginal receivers, this procedure may be best. Start with the devices you expect are damaged first. Lightning damage usually happens at the physical extremes of a multi-drop system. AN-006 - Trouble-shooting RS-485 Multi-drop RobustDC, Inc. 1995-2003 Page 3 of 5

The rest of this test assumes you do have isolation switches, so if you don t you ll have to use your head to relate the steps below to your situation. 6. If you have isolation switches for each device: good for you! Follow this procedure. Isolate all devices and record the final V diff as your target standard. This value should be at least 300mV or you have some other problem in the system. The rest of this test is quite straight forward -- one at a time connect each device, measure the resulting V diff, and then re-isolate the device. 6a. If the device is good, it should have little impact on V diff -- for example a drop of from 1 to 8mV. 6b. V diff should not increase when adding receivers! If V diff increases more than a few mv, then this device is bad and either injecting a voltage or pulling one of the wires toward ground. 6c. If V diff drops by a more than 50mV, then this device is definitely bad. But bad here is a relative term. If you only have 1 or 2 devices, a 50mV drop may be Ok for now. However, if your have 20 or 30 devices on the bus, a 50mV drop is not acceptable. You decide. 6d. If V diff drops by from 8 to 50mV, then this device is marginal. Again, your discretion. 7. Pick a target final V diff such as 200mV or 250mV. If you have a "marginal" network design due to distance, abundant lightning protection, or poor cable quality you may have to be satisfied with less than 200mV or upgrade the system in general. 8. Sort the devices in order based on the impact each had on V diff. Starting with the best devices (least impact), reconnect devices until V diff reaches your minimum target level. Device still isolated are your "bad" devices, so sit down and plan your repairs. You have finished the test. If your RS-485 problems were as described above, then you can now restart the system and have good RS-485 data communications. If you still have problems, then this was not your problem -- or not your only problem. AN-006 - Trouble-shooting RS-485 Multi-drop RobustDC, Inc. 1995-2003 Page 4 of 5

Example Test Results Below is a table of values from an actual site (a truck loading facility in Malaysia). A ground shift during a lightning storm damaged a 4-wire RS-485 network with 22 devices and caused complete communications failure. Being a petroleum refinery with explosion proof terminal boxes, they had the good sense to include isolation switches in the terminal box for the RS-485 stub to each device. The test was easy to do. TX refers to the V diff between the transmit wire pair in mv, and RX refers to the V diff between the receive wire pair in mv. The initial V diff before isolating any devices was 79mV and 45mV for TX and RX. Devices FQIC028, 30, 40, 52, 86, and 88 were considered damaged and once all other devices were reactivated, the final V diff in the field was 229mV and 242mV for TX and RX. Device TX w/o TX with TX Drop RX w/o RX with RX Drop FQIC028 420 372 48 <<<< 436 411 25???? FQIC030 420 388 32???? 436 337 99 <<<< FQIC032 420 420 0 436 435 1 FQIC034 420 419 1 436 435 1 FQIC036 420 419 1 436 435 1 FQIC038 420 419 1 436 435 1 FQIC040 420 342 78 <<<< 436 335 101 <<<< FQIC042 420 419 1 436 436 0 FQIC044 420 391 29???? 436 427 9 FQIC046 420 419 1 436 435 1 FQIC048 420 419 1 436 436 0 FQIC050 420 414 6 436 433 3 FQIC052 420 480-60 <<<< 436 294 142 <<<< FQIC072 420 419 1 436 426 10 FQIC074 420 387 33???? 436 425 11 FQIC076 420 419 1 436 436 0 FQIC078 420 419 1 436 436 0 FQIC080 420 414 6 436 433 3 FQIC082 420 414 6 436 432 4 FQIC084 420 414 6 436 433 3 FQIC086 420-28 448 <<<< 436 231 205 <<<< FQIC088 420 640-220 <<<< 436 227 209 <<<< FQIC094 420 408 12 436 430 6 FQIC096 420 423-3 436 437-1 Notice the extreme impact devices FQIC086 and 88 had on V diff! Device FQIC086 actually changed the polarity of V diff, while device FQIC088 caused V diff to increase by 50%. Physically, devices FQIC052, 86 and 88 are the farthest from the control room, while 28 is the closest. On site, the RS-485 network worked once devices FQIC052, 86 and 88 were isolated, even with a V diff of only about 100mV. Devices FQIC028, 30, and 40 communicated unpredictably on site, but worked fine on the test bench. Robust DataComm can truly make your data flow like water - safely, sanely, and silently. 26471 Portola Pkway, Suite 1E-242 18 Kaki Bukit Road 3 #02-08 Foothill Ranch, CA 92610-1743 U.S.A. Entrepreneur Business Center Singapore 415978 US Sales: (972)248-7466 Fax: (972)248-9533 Tel: (65)6487-5624 Fax: (65)6288-3306 email : info@robustdc.com web : http// AN-006 - Trouble-shooting RS-485 Multi-drop RobustDC, Inc. 1995-2003 Page 5 of 5