Modbus Communications
Modbus Communications
(OP)
Hello All,
First time posting in this particular forum. I'm a mech/matls guy but I've been giving the task of improving our Modbus communications in our small boiler plant.
Part of this project included utilizing existing Modbus communications from our gas burners to our SCADA system. The data from these burners is inconsistent and we often go long periods of time without any data transferred to the SCADA. However, during this time of no data transfer, we continue to communicate with the burner in terms of set-points, on/off, etc with no effect on system operation. The problem with this is that we're trying to determine effects of other parameters on emissions and although we know our burners are running, we're not getting any real time emissions data, nor are we confident in the data we do get.
In investigating why we're having issues with the Modbus, I noticed that the Modbus wire is 18 gauge, but the one specified by the manufacturer is 24 gauge. Could this be the cause of the issue?
Note, we are planning on doing a trial with the proper wire but we do not have any at our plant right now. I'd just like to develop a little bit better understanding so I will have an idea of what to expect during this trial.
First time posting in this particular forum. I'm a mech/matls guy but I've been giving the task of improving our Modbus communications in our small boiler plant.
Part of this project included utilizing existing Modbus communications from our gas burners to our SCADA system. The data from these burners is inconsistent and we often go long periods of time without any data transferred to the SCADA. However, during this time of no data transfer, we continue to communicate with the burner in terms of set-points, on/off, etc with no effect on system operation. The problem with this is that we're trying to determine effects of other parameters on emissions and although we know our burners are running, we're not getting any real time emissions data, nor are we confident in the data we do get.
In investigating why we're having issues with the Modbus, I noticed that the Modbus wire is 18 gauge, but the one specified by the manufacturer is 24 gauge. Could this be the cause of the issue?
Note, we are planning on doing a trial with the proper wire but we do not have any at our plant right now. I'd just like to develop a little bit better understanding so I will have an idea of what to expect during this trial.
RE: Modbus Communications
Whether and how it's twisted and/or shielded could be a problem.
Length, baud rate, voltage or current signaling could be a problem.
You haven't told us enough about your particular installation for us to be of much help, so you might need to help yourself.
Start here: http://en.wikipedia.org/wiki/Modbus
Mike Halloran
Pembroke Pines, FL, USA
RE: Modbus Communications
I'm guessing it is 2-wire RS485?
If so, you will want to use (2) twisted pair wiring with a shield.
Use one pair for the + and - and use one of the wires in the other pair for the signal GND. Never use the shield drain wire for the signal ground.
Take a look at this paper for information on troubleshooting RS485 communications.
htt
RE: Modbus Communications
As far as I know, the baud rate, address, etc is correct.
Lenght of the wire is ~25 ft and ~ 50 ft (there are two burners both showing same issues).
Wire installed is shielded.
JG, you're correct, it is RS485 communications. I'm intrigued by your comment stating "Never use the shield drain wire for the signal ground". I've attempted to attach a photo showing the wiring in the burner's communication panel. Note the shielded part of the wire. Is this what you mean when you say "never use the shield drain wire as ground". Could that be our problem?
RE: Modbus Communications
For both burners the shield is run to the "S" terminal.
RE: Modbus Communications
Mike Halloran
Pembroke Pines, FL, USA
RE: Modbus Communications
http:
h
----------------------------
Number of Conductors
The signal ground conductor is often overlooked when ordering cable. An extra twisted pair must be specified to have enough conductors to run a signal ground. A two-wire system then requires two twisted pair, and a four-wire system requires three twisted pair.
----------------------------
RE: Modbus Communications
This brings up another potential problem in my opinion... It looks to me like the wires are crossed. (e.g. you can see that the black is in 47-12, while the red is in 48-11, but the wiring diagram shows that 47-11 are to be connected and 48-12). I've asked the vendor about this and was told that if they were crossed we'd get no signal at all. I don't know enough to argue this point, but this does not seem right to me.
Appreciate all the feedback.
RE: Modbus Communications
You have sent two pictures of how the RS485 cables are wired to terminal blocks. Do you have any pictures showing how they are actually wired to the communication equipment?
RE: Modbus Communications
RS-485 is intended to be daisy chain wired: device to device to device.
RS-485 doesn't like spurs. Spurs are lengths of cable wire that are not direct connections to the instrument/device wiring terminals, but lead wiring from main line at a terminal strip/junction block to a device. Reflections are created in spurs which induce errors.
The image below shows the difference between spur and no spur wiring.
Are your devices wired with spur wiring, or is the a cable routed to the device where it connects and cabling then proceeds to the next device?
RE: Modbus Communications
Get a suitable oscilloscope and look at the signal. At these data rates (slow) you should be able to see exactly what is going on.
RE: Modbus Communications
If I remove the shield from the ground terminals, should that help my communications? I do have some spare wire running between all the panels, so I may be able to use one of those wires to connect the grounds.
Something doesn't seem right. I will try to do some continuity testing today to get a little more information.
RE: Modbus Communications
http://www.maxim-ic.com/app-notes/index.mvp/id/763
RE: Modbus Communications
The burner controllers are not sequential drops on a single serial port?
Are there resistors across the serial comm terminals at the burner controllers?
RE: Modbus Communications
The way our wiring diagram shows how it is to be wired, it is wired to a common data transfer interface in a stub format, and then goes into our SCADA.
Unfortunately yesterday I did not get any further on this as I was dragged into a long meeting. I hope to get more info today.
Oscilloscope is not really in the cards right now. I can see if our controls contractor can bring one next time he's here though.
RE: Modbus Communications
I also tried using a separate wire for the ground wiring, but that did not seem to change anything. Some of the communications seemed to work, but others didn't, and it seemed to be intermittent data transfer again.
Tomorrow I will try new wire and I will also attempt to daisy chain it to see if that helps.
I appreciate all the feedback.
RE: Modbus Communications
I just wanted to send out an update on what is going on here. Today I disconnected one of ends of the shielding wire and it appears to have corrected the problem.
It's still too early to say for sure, but I should know more on the after weekend.
RE: Modbus Communications
Dan - Owner
http://www.Hi-TecDesigns.com
RE: Modbus Communications
You must eliminate the spur wiring configuration and wire as shown with 'no spurs' in above drawing.
Also you must keep not mix the pairs. Meaning inside the cable the wires are twisted in pairs. If one conductor from a pair and another single conductor from another pair is used as a TX or RX port the system will not function.
Also each RS485 device will likely have a terminator resistor option or an included resistor to be attached at the terminals of each RX or TX pair. The rule is that if a TX or RX line lands on a terminal and another pair leave from it then the termination resistor should NOT be applied. If only a single RX or TX line lands there the termination resistor should be applied.
In the previous drawing from danw2 the termination resistor is only installed on the last device on the right.
And also minimize the length of lead outside the overall cable.
You should wire it correctly even if you manage to get it working because it is likely marginal and will fail again at a very unfortunate time..