RS485 needs 3 conductors and a shield. Many people say its a two wire network but it is not.
Two conductors are used to carry the RS485 Differential voltage signal.
The Shield is connected to earth/ground at one end only and provides shielding against induced noise.
So why the 3rd conductor ?
The driver sends data by modulating the differential voltage. The receiver must sense and decode the differential. There are limits to the voltages the transmitters and receivers can work with. These limits are specified by the code. They are -7Volts to +12Volts. What happens if you have two devices and a ground potential exists between the two devices of 24 volts ? You can see that one of the devices will be operating outside the specified voltage range. While you might expect that all the electrical equipment in an installation is ultimately connected to the same ground in practice this is rare especially in cold climates where building architecture and frozen ground can conspire against you. That why you need the 3rd conductor – to connect the ground (of each RS485 driver) to the same reference. Now we don’t care about ground potentials.
Ever wonder why you blew a 485 device when you connected your laptop or computer ?
Its this problem – there is a ground potential. Thats why its good practice to connect your laptop’s 485 ground conductor before you connect the differential conductors.
Can you get away with 2 conductors ?
Yes. Thats why lab or factory tests suddenly stop working when installed at a site. In your lab or on your desk you can be sure the devices are all commonly grounded. Now if you measure the difference between the ground of a RS485 driver on one device and another device you will find zero volts.
Can you get away without the shield?
The value of the shield is controversial. If you are using a twisted pair and you don’t ruin the twists by unwinding them by more than an inch or two at each end then the shield probably is of little value. But, most cables come with a shield. If its not easy to terminate the shield or you cant be bothered then at least have your design drawings tell the installer to to coil and tape the shield drain wire so that you can use it if you want to.
Where can you purchase 3 wire 485 cable ?
I don’t know. Purchase two twisted pairs with an overall shield/drain. Use one pair for the differential and join the conductors of the other pair to make your ground wire.
What size conductors ?
The bigger the better. Most installations are done with 24awg but remember the higher the baud rate the greater the signal frequency and the greater all kinds of captives and inductive effects. If you can, get bigger conductors.
What kind of cable ?
Choose one with designed to present a almost constant nominal impedance because it will make the addition of terminating resistors easy – just read the cable jacket and get a resistor of the same impedance. Most cables listed for 485 use are designed to present an almost constant nominal impedance. Almost constant means a cable who impedance is reasonably independent of length.
What about biasing ?
If a RS485 driver is idle then what ? The line is disconnected from the driver in its idle state which means that the + and – are floating. What happens if for an instant there appears a differential voltage of more than 0.2 Volts? Well a differential greater than 0.2 is considered a signal and hence constitutes data noise. Solve this problem by pulling the lines to no voltages when they are idle. To do this connect them to ground or some other voltage using pull up/pull down resistors. Nice vendors include this. Nicer vendors provide a choice of biasing resistors selected by switches/jumpers. The reason you might not always use the same value is that the cumulative effect of many device’s biasing resistors may make it impossible to signal at all. How do you calculate the value of a biasing resistor ? How would you know where to connect it ? Good luck getting answerers to these questions. An easier question to answer is this: How do you know if you need to bias the idle state ? If you have a scope you can see what the idle state floating voltages are ? Don’t forget you can only measure this when the device is idle.
For more information on RS485
Please contact us, we can resolve your issues with RS485
© Chipkin Automation Systems 2007
Subscribe To The RSS Feed!
To catch many more articles like this in the future, make it easy on yourself and subscribe to me via RSS. You will not regret it!
Do you have a question?
We will do our best to try and solve any building automation, protocol, integration problem you may have
This is just some small feedback with regard to the Ground connection for RS485 that we discussed two weeks ago on the ECC:
1. Yes, the Ground wire is required, and thus RS485 is not a 2-wire network. Very few companies indicate this in their documentation and diagrams. Even reputable semiconductor manufacturers will only mention this connection in passing, and then one specifically has to look for the issue.
2. But, the problem is that a ground loop can be created when the power to all RS485 terminals is not isolated from each other. This is a problem since in most installations for commercial purposes, unskilled people are used. They generally don’t fully understand the principle of EARTH and RETURN connections.
3. Thus, normal installations will receive their power from one central power supply or have separate SMPS, but if these are not specified properly, then the EARTH and NEUTRAL will be connected by either a short or some small resistance to each other on the low cost versions!!!
4. The whole grounding issues thus becomes the problem of the equipment supplier and in particular the installation / hardware design engineer.
5. Most ‘isolated’ RS485 Ground connections refer to the main Ground with a 100E resistor. This is fine if the common mode current (low frequency syndrome) is minute in the cabling. This phenomenae can be minimised by using a Shielded Twisted Pair where the shield is normally terminated only at ONE side of the equipment. In applications, such as ARC furnaces this will NOT work since 100’s to 1000’s amps are generated, and the ground wire will be conducting.
6. The track on the PCB thus becomes a fuse when the rating is exceeded e.g. 8 mil track maximum current carrying ability under optimal conditions is 500mA.
7. Proper isolated RS485 networks remove the low cost resistor implementation, and use a proper transformer to generate a isolated RS485 ground. This is also the best and most expensive circuit to implement. This will minimise common mode current pickup and voltages spikes on the line, but each installation has its own unique requirements (the arc furnace is just one of worst case examples that I know of…)
Regards,
Arno Netter.
You wrote this in one of the blogs about rs485:
2. But, the problem is that a ground loop can be created when the power to all RS485 terminals is not isolated from each other. This is a problem since in most installations for commercial purposes, unskilled people are used. They generally don’t fully understand the principle of EARTH and RETURN connections.
3. Thus, normal installations will receive their power from one central power supply or have separate SMPS, but if these are not specified properly, then the EARTH and NEUTRAL will be connected by either a short or some small resistance to each other on the low cost versions!!!
4. The whole grounding issues thus becomes the problem of the equipment supplier and in particular the installation / hardware design engineer. I’m currently in Kuwait working on a project which involves rs485 connections. I face problems with the rs485 connection grounding. Right now, I’m using a Robust DC 485-fiber convertor to convert my data from my substations to transmit across the FO to my local control room. At the local control room, I’m using same convertor to convert the signals back to 485 signals.
My problem is there is no common reference which ideally should have. Now I’m having line breaks in communications are time and data “hanging” during transmissions. Out of the 8 units I have, only 1 is working.
Can you please help me with it?
Dear Chong,
“I’m currently in Kuwait working on a project which involves rs485 connections. I face problems with the rs485 connection grounding. Right now, I’m using a Robust DC 485-fiber convertor to convert my data from my substations to transmit across the FO to my local control room. At the local control room, I’m using same convertor to convert the signals back to 485 signals.”
Are you using the recommended isolated power supply as per Robust DC specification or perhaps another type. I stress that this must be a ISOLATED power supply that supplies power to the transmitter and receiver of your RS485 convertor. When you measure the GND on the input side of the power supply with reference to the power output ground/negative, this must be open circuit or at least in the mega Ohm region. In effect, this is also called in industry an isolation transformer that is not always identical with a ‘normal’ transformer, although some
“My problem is there is no common reference which ideally should have.”
That should be the problem of the isolated power supply as these units are referenced on their input side to each other over distance. The communication should not suffer unless there are other problems associated with your network. RS485 is a differential pair, thus in your specific application with fibre their is no need for a common reference, but that depends on the driver/receiver pair in the actual convertor. How are these driver/receiver pairs (the actual semiconductors inside the box) referenced to the power of the actual unit. Are you introducing additional external resistors to make a common? If so, why because from a quick inspection of Robust DC datasheet this is not required?
“Now I’m having line breaks in communications are time and data “hanging†during transmissions. Out of the 8 units I have, only 1 is working.”
I suspect that your problem is more related to a ‘bad’ fibre optic cable. Do you use single mode or multi mode cable in your installation? Are you exchanging these units with each other to confirm a bad unit? Or are all the units on the fibre optic cable at the same time? Has the fibre been properly terminated? Is there is damage to the cladding? Are you within the length specification of the fibre? Are there any loops in the fibre cable that will cause higher optical dispersion in both single mode, but especially multi mode fibre? Are using exactly the same fibre optic cable for all the units?
“Can you please help me with it?”
For help, more information is generally required. Also never underestimated the physical environment in which you are installing and operating equipment. Kuwait for an analysis would imply a desert which implies relatively little humidity thus higher electro-statics, thus your equipment needs to be more robust to withstand continous static discharge. You probably have a shot driver/receivers on either the fibre interface or the RS485 interface especially when you say that data is intermittent.
But this is all maybe’s since I do not know more about the installation, the environment, etc.
thank you.
RS485 is a 2 wire network if done right. Profibus is a typical example of a true 2 wire RS485 system. The secret to trouble free RS485 is to use isolated power supplies to run the RS485 transeiver. Low cost, low current, high speed non optical isolators are now available from Analog Devices (the ADUM1300 series) and simple to implement power supply isolators are also available from Maxim (MAX253 & MAX845). Combining these parts with any standard RS485 transeiver builds you a fully isolated interface that truely needs only 2 wires. You must provide biasing resistors with this setup to center the RS485 signals within the isolated interface common mode range. A sample of an isolated interface can be found in the booklet “The rapid way to Profibus” or I can send you as sample circuit if you are interested.
Hello Douglas,
I’m sorry but basically you are wrong.
Voltages are not defined by themselves, they are only defined as the difference in the force of the electrical field. To measure a voltage you always need two points to put your probes on.
In RS485 one point is the signal wire A or B, and the second is the local ground of the receiver circuit. When you have an isolated device, the voltage of the isolated ground compared to the local ground of your device is undefined. This is especially true for the voltage difference between the signals and the isolated ground, because the signals are generated in respect to the local (isolated?) ground of the *transmitter* circuit. When these two grounds are completely isolated, there is no guarantee the receiver understands the data. It often happens the difference is too big. One proof of that is the real-world experience, transmissions become successful when you just add the ground line.
Biasing resistors do not really help, because for the purpose you describe you have to attach them to *every* device connected to the bus. This requires a recalculation of their values every time you add or remove a device from the bus.
(fact: calculation of resistors is not done by average customers.)
And in fact in this way you use the data lines to clear all voltage differences between the isolated grounds of the devices. At least you connect them via the resistors and the Data- line, which is pull-downed.
Even without bias resistors there may be some kind of parasitic connection between the data lines and the receivers ground, which also clears the differences between isolated components. That may also be the reason why in many applications the communication is fine with only two wires.
I agree, when using bias resistors as you describe it, there is only a reasonable current when a new isolated device is attached to the network. Later the isolated ground planes share the same electric potential, and there are only very small currents, if any.
By the way, even maxim-ic says the ground wire is required.
Hello Douglas,
Your point about Profibus is a good one but I think it re-inforces the the fact that rs485 requires 3 conductors.
The reason I say this is that Profibus is a standard that encapuslates RS485 and imposes other electrical requirments on it (like the isolation). Thus you get a bus with devices with a uniform electrical interface.
This is not the case with other RS485 applications. For example BACnet MSTP merely references the RS485 standard and does not impose other physical layer requirements.
I have to agree with Wilfried, viasing resistor calcs should not be required for field installations.
Hello Wilfried.
I think that the receiver side isolator output is measured by its ground. therefore receiver device can read data correctly.but the third wire is required as shield to reduce the noise.
Hi All,
I agree with Douglas, a third wire is not always necessary.
As long as the difference in ground potential between all the devices, including noise, is within the common mode range for TIA485 specification then it should work without a ground.
In this situation is side A more positive than B or vice versa, this is what is meant by differential signals.
This common mode range of TIA485 was mentioned early in the article, -7 volts to 12 volts.
If this is exceeded in the system than one or more isolation devices will be needed.
Though personally I would always use a ground.
Biasing resistors, not to be confused with terminating resistors, only need to be small enough so that noise on the signal line does not get through the receiver, at least 200mV.
This has become confusing over time as the original specification required the receiver chips to have a defined input resistance which means that there is always going to be current flowing into the input pins. This limited a bus to 16 devices owing to the drive available from the driver chips.
Since then there has been quarter power, eighth power and even sixteenth power devices, so resistors for biasing with early devices are now too low in value to work properly in large systems, the driver will become overloaded. This means that later systems will have higher value resistors, and can lead to providing insufficient bias for older chips allowing noise through the receiver and affecting the integrity of the communications.
Trevor
I have been struggling with the 2- versus 3-wire, grounded versus ungrounded, shielded versus unshielded issue with RS485 wiring for 20 years. Steven says pretty much the same as I have been saying for over 15 of those 20 (I was a slow learner).
Comments:
1) Shielding is always good. This can be proven theoretically and in practice. Double shielding is even better. Single shields must be grounded at one end, double (insulated from each other) are grounded one at each end. This prevents currents from flowing through the shield and inducing currents into the signal lines via the transfer impedance between the two.
2) Bigger may be better but there is a very serious law of diminishing returns as the gauge of the wire gets larger. High frequencies are carried on the surface of a conductor and the more surface area the lower the impedance — this is good. 18ga is overkill. 20ga is OK for very long runs, 22ga is good enough for pretty much every application.
3) There are RS485-specific cables out there. They have a shield & drain wire (ground at one end), a ground wire and a twisted pair for the signal. Belden 3106A is a good example.
I wish I could get more people to understand that carrying a third wire between RS485 devices was necessary. I wish everyone who implemented an RS485 device had put the third wire on the connector so you could connect to it.
Apropos PROFIBUS: Profibus may be RS485, but the reason it works is because the purple cable and connector is EXACTLY DEFINED and full network performance is only achievable using EXACTLY THAT CABLE (and connector). If you grab any old twisted pair cable use it to hook up your Profibus network, you deserve the problems you have.
Great information by everyone! I manage several thousand RS-485 devices in an oil refinery setting (control for Valves, pumps, and alarms). Our original vendor (in 1990) installed the networks without the 3rd wire for ground. I can tell you from experience, ALWAYS install a ground wire or you will have problems. But what if you don’t have a 3rd wire and can’t retrofit and existing installation? I use isolating repeaters and this has solved my grounding problems. Make sure the repeater is “isolating”. These can be purchased from most vendors (www.bb-elec.com, http://www.rs485.com, black box, etc..). You must also bias the RS-485 lines (a-b). Remember, only bias the line at one point on the network. The isolating repeaters have a bias option via dip switch (typically, 4.7k resistors to 5v and GND). B&B Electronics is a very good resource for RS-485 information “http://www.bb-elec.com/technical_library.asp”.
Also, you do not need to add terminating resistors if your baud rate is 9600 or lower (any reflections are dampened out before the center-bit time at 9600 baud). Termination resistors will do more harm than good if your baud rate is low.
Hi guys. This is a great discussion, and I hope one of you (or many!) might be able to help me with a problem I have with a 485 deployment.
I am trying to remote a single serial sensor (232) about 100 meters from a PC. For this purpose, I purchased two 232/485 converters. The PC’s serial port is connected to one, which is connected via 3 wires (A, B and Ground) to the other (and out comes the 232 to the sensor).
I am also passing power to the remote converter and sensor on the same cable that caries the signal (4 wires in total, 3 one 5v supply).
The problem is, that this setup “basically” works. Meaning, it can be up for an entire day, but at some time it will fail. Sometimes a simple power cycling (off/on) will restore communications, and sometimes it will not. Sometimes I have no idea why, it just comes back on! Then, often, it stays off for hours. I really don’t get it.
What might be wrong? This is the first time I am using 485.
Might it be a problem to pass power along with the signal? Maybe the fact that the ground of the power is common to the ground of the signal? (but anyway they are shorted in the converter box so I don’t see how it might mater).
Help!
Thanks guys.
PS – Ah yes, the in-built terminators on the converters are enabled.
PPS – I have not connected the shielding of the 485 cable to ground
PPPS – I am using regular 4 core shielded wire, not twisted…
Wow, a lot of information on RS-485.
Still confused as to what to do -
Do I tie the Chassis of the Transmitter device’s ground terminal specifically for RS-485 to BOTH the 12V power supply negative or ground, and the Shield Terminal located on each of the the 485 Devices? Each device can be connected in Star/Home run or daisy chain with termination at the end of each run (1 for Daisy, 2 for 2 device star, not sure about 3 in star connect…)
What is a foolproof way to ensure there are no issues?
I heard a rumor that if this is done that it pulls the floating RS-485 signal to a common ground.
Exceptions??: The ground’s of each the send device can’t always be tied together, as they may be on separate electrical systems entirely. But in this system, each recieve device is usually tied to the send device so this isn’t as much of an issue, they are treated like 2 separate systems. However, When they are connected as in a network A and network B, it is best to have a autmoatic switch to toggle which device they are connected to at any given time, and the switch should be grounded how? TO both systems?. To one system? Still confused…
Hi friends, I want to connect the two wire R485 to the computer RS232. Which Pins should I use?
Thanks
Considering that most user’s end up with shielded wires which only have a single twisted pair, what would be better:
1) Use the shield wire as the signal GND wire by connecting them to GND terminal on both ends?
2) Just connect the shield wire to ground at one end, and leave the GND terminals on both ends hanging?
485 is a two wire standard. Yes, you measure voltage between two points, but the error in all the comments about having to use three wire is that you assume you are measuring from a signal wire to a local ground. So your arguement is that local and remote grounds have to at the same potential. This is differential signaling, not relative to local or remote ground potentials. The differential voltage is measured from one signal wire to another signal wire, NOT from a signal wire to ground.
The problem here is that for the transmitter side of your device, you are creating voltage sources relative to your local ground potentials when you should be driving the lines by generating the potentials on one signal wire relative to the other signal wire.
You guys need to truly understand “differential signalling”. Heck, you guys will start requiring phone lines to use three wires instead of two. And instead of four pairs of wires in an ethernet cable, you’ll ask for extra ones for grounding.
And you don’t need shielding if you use twisted pair wire. The pair of wires for your telephone are unshielded twsited pair. Even ethernet cables are a collection of four unshielded twisted pairs. These all use differential signalling.
Hi guys,
Great discussion, just to get involved I would agree with Bock and Douglas, surely the whole prupose of differential signalling is to avoid having to reference the ground of the remote device? Wouldn’t joining the grounds together where a large common mode voltage exists cause you to push current between the devices along your RS485 wire?
Couldn’t you optoisolate the incoming data signals anyway?
cheers
ed
Hi again,
I had a bit more of a think about it and I think I can see why you would want the third wire in an optoisolated system where an isolated power supply at the far end creates a voltage relative to the signal ground to power the input opamps and the output of these is then optoisolated.
Surely there is a more elegant solution to this tho? Couldn’t the input signals driver the optoisolator directly? Do any of the guys who think you can do it with two wires have any examples?
cheers
ed
I had a think about the circuit thing myself and decided that if you use a completely isolated power supply (where GND and POWER are derived from a transformer) then you don’t need the ground wire. You just float the output of the transformer/rectifier to within the range of the incoming signal using a resistor to the signal wire. The input stage is then powered by this and the output of that is optoisolated and connected to the rest of the system.
Actually, Douglas is correct. I have some experience in long-distance, multi-drop RS485 among fire panels. Since these can be installed in different buildings – each at a slightly different ground potential – you don’t really want a ground wire. If you had one, you may end up with more current flowing through it than you’s like.
One way to solve the issue is to isolate the power supply to the transceiver and opto-isolate the DI and DO between the transceiver and micro. The data bus then floats, and the devices don’t care.
If you have full control over the power that drives the 485 circuitry in each device on the network – for example by feeding them all from the same supply then your don’t need the 3rd wire. Isolating all the power supply will work too BUT do you have control over how each device powers it 485 circuitry
I have to disagree with Dan. Building to building with ground potentials is the most common reason 485 networks don’t work without the 3rd wire.
i read your article on RS484 and the third wire. though i may be in error, i believe that your reasoning for the third wire is incorrect, RS485 trancievers use a differential amplifier, glorified opamps, which only measures the voltages of the A and B lines with respect to each other. because of that, as long as the voltage between A and B do not exceed the RS485 spec for differential voltage, the only voltages seen on the device is that between the two lines. by introducing a ground reference, in some cases, may actually damage the circuit as the voltage seen at the receiver could now be hundreds of volts above the ground plane of your reciever. voltage is a potential, not an absolute quantity, it can never be measured from one point and never from two points that are not in some way electrically conected. for example, try measuring the voltage between two unconected 9 V batteries. if you took a voltmeter on the positive terminal of battery 1 and the negative terminal of battery 2 the voltmeter will read 0V. the same principle applies to the transmitter and receiver of a RS485 circuit. attaching the positive lead of a DMM to the ground plane of the transmitter and the negative lead to the ground plane of the receiver will yield a voltage of 0V.
I have to respectfully disagree with Jeremy L. As he said – voltage is relative. The difference between 30,000 volts and 30,001 volts in only 1 volt. So according to your argument the remote rs485 device would not even know about the 30kvolts because it is only interested in the 1 volt delta. Not so. I have chosen an extreme example but it’s pretty obvious it would not work. Why ? Because the voltage differential sensing circuit is designed to operate between -7 and +12 volts DC.
What blows 485 ports? According to your argument it would be an oversize voltage differential. According to my argument it would be a line at a voltage outside the designed operating voltage range. If your argument is correct then the point of adding isolation is what ? to limit the differential ?
“They are -7Volts to +12Volts. What happens if you have two devices and a ground potential exists between the two devices of 24 volts ? You can see that one of the devices will be operating outside the specified voltage range.”
This is a problem if the transceivers are not allowed to float — that is, if their power supply or the logic lines operate relative to their local ground, and the local grounds of the different end points have a potential difference.
The right way to do this is to have the RS-485 interface ‘float’ away from the local ground. One way this can be done by making the entire device float (battery powered, or powered through a transformer and not having a chassis ground connection that connects to earth ground).
The other way is to build the RS-485 section of the device have its own independent floating power supply, and connect to external logic via isolators (optoisolators, normally).
The key thing to remember is that the sensing circuit operates between -7 and +12 volts, relative to the circuit’s “0 volt” point. That 0 volt point isn’t necessarily chassis/earth ground. It’s a virtual ground.
Specifically, Peter C asks — what if there’s a 30kV difference between transceivers… Well, I certainly wouldn’t want to ground-equalize two buildings with a 30kV potential using a single itty-bitty grounding conductor! Moreover, if such a potential were to exist, it’s probably there for a reason, and so you don’t want to get rid of that!
The point of adding isolation is so that the RS-485 transceiver’s virtual ground can float up/down as needed to meet the RS-485 network.
Gents,
I have read your articles with interest as I am about to impliment a 485 network for access control at a retirement home, which I have not done before. I will have one controller with about 15 readers, in a point to point configuration. The distance between the controller and the furthest reader will be about 200m. Each reader will have an independent 12V DC (battery with charger) power supply. I have on hand, some 6 pair (twisted, unshielded) cable which I was hoping to use. One pair for the access control, and the others for intercoms, and a gate release trigger.
Is this feasible? Would you foresee any problems?
Your comments and advice would be greatly appreciated.
Thanks
Allan
Just to add my two cents,
The UK Highways Agency uses RS485 as the primary communications interface between roadside signal devices and their controllers. These use a two-wire RS485 interface with opto-isolation of up to 2kV from local ground and an additional lightning protection circuit to clamp high-voltage transients and large differential voltages.
This system has been in place for at least ten years (I’m not sure of the exact length of time as I’ve not been in the industry that long) and has never required or operated with a third wire for grounding. The trick here is that a differential bias is placed on the line at the controlling end, and absolutely every device on the line has the RS485 signal circuitry isolated from the local ground.
As a number of people here have pointed out, this allows the RS485 circuitry to operate entirely differentially, as the the 0 volt reference specified in EIA-485 now becomes a “virtual” 0 volts. In addition it’s known that the “absolute” voltage from the local ground on these lines can be up to +/- 120V in places. However with the opto-isolation and lightning protection circuits that are specified the devices can operate perfectly under these conditions.
I hope this helps to show that RS485 can be operated as a purely 2-wire protocol without undue destruction of devices, if the proper isolation is designed into the circuit.
That a great insight. Thanks. In a way your point adds weight to the need for the 3rd wire. I say this because, you comments demonstrate the kind of care that must be taken to avoid issues addressed by the 3rd wire.
Wow – very strong differing opinions here. So what method is correct? It seems to me that it mostly depends on the control you have over all the devices connected in the system.
If EVERY device in the system is designed with proper isolation (i.e. the UK Highway Agency as described above), then the 2-wire scheme should work.
However, if some of the devices in the system are isolated and others are not, it seems as though there could still be issues. So what is the bullet-proof implementation what works no matter what type of device (isolated vs non-isolated) is connected to the system?
Nice discussion, but no one seem to address on of the question and I am aslo curios. Can the shield wire of the STP to be used as the third wire?