Modbus circuit failures when adding more than one slave
Modbus circuit failures when adding more than one slave
(OP)
We are commissioning a tank level radar project and we are having some intermittent modbus failures (no slave response) when we poll more than one device on the loop. We can talk perfectly to each individual device if only polling that one device but when we try to talk to all 5 devices on the loop with PLC (quantum 584 through a converter) master polling, the first device in line (daisy chain) has no issues at all but the rest show intermittent failures (lack of slave response about 25% of the time, this varies slightly for each device). The line terminations have been respected and the grounding configuration appears to be OK. Any help at alll would be appreciated.





RE: Modbus circuit failures when adding more than one slave
dip switch settings check for each slave device?
firmware correct for the slave device?
Can you hook into the converter device and see all the devices on network?
Have you tried putting each device on network by itself?
cable distance under the limit for not using repeaters?
Do you need a repeater due to the length of your comm cable?
Quantum and converter comm stats showing any errors?
RE: Modbus circuit failures when adding more than one slave
RE: Modbus circuit failures when adding more than one slave
We were trying to run at 9600 bps which should be fine, we actually went to the bridge mux and increased the delay for reply time by alot and saw a small improvement. We also increased the time between pools as well and again a small improvement.
We then decided to go down to 1200 bps baud rate in desperation and it communicates 100% perfectly with absolutely no slave response errors.
I would like to call this success but I'm having a hard time since this really should work OK. We only have 10 devices with a simple setup. Please keep replies coming if you can give some insight as to why the faster baud rate won't take.
RE: Modbus circuit failures when adding more than one slave
It's a long shot, but still worth checking if you're otherwise out of ideas.
RE: Modbus circuit failures when adding more than one slave
The spurs limited the comm link speed. Re-wiring brought the link speed up.
RE: Modbus circuit failures when adding more than one slave
RE: Modbus circuit failures when adding more than one slave
http://www.robustdc.com/application-notes/
RE: Modbus circuit failures when adding more than one slave
I have a Modicon Qauntum PLC (through a bridge mux) that connects to a RS232 / RS485 converter. From there I go out to the field with an instrument tech cable that contains 2 twisted shielded pairs. (contains a drain wire per pair and a common cable shield wire) all devices are then daisy chained together (10 total). Where and how should the drains and cable shield be grounded? This question should be easy to find and maybe I'm missing something obvious but like I said I have yet to find a solid guaranteed way of grounding this simple system properly. Thanks again for the input thus far...
danw2 I wasn't able to access the file link you posted, not sure why...
RE: Modbus circuit failures when adding more than one slave
Here's a link:
http:
Is this 4 wire, full duplex?
RE: Modbus circuit failures when adding more than one slave
With isolated devices you typically use either 1 or 2 twisted pairs for the signal wires (for 2-wire or 4-wire). Then, you use a single wire from another twisted pair for the common return wire (this will be the 3rd or 5th wire). The shield is kept seperate from the ground and typically only connected at one end.
Non-isolated devices use the earth as the common return wire instead of the 3rd or 5th conductor. You can have communications issues or port failures if you have local ground potential differences more than about 15V.
The main thing to remember is that RS-485 requires a common return connection.
RE: Modbus circuit failures when adding more than one slave
----------------------------------
If we learn from our mistakes I'm getting a great education!
RE: Modbus circuit failures when adding more than one slave
1 break the daisy chain in half see if the half that is connected stays on 100% of the time. If it does then the other half is the problem. If it is 100% add 1/2 of the other part, etc... till you see your 25% problem appear.
RE: Modbus circuit failures when adding more than one slave
How are you terminating the ends of the line? Changing to a slow baud rate sounds like it might be a termination issue.
RE: Modbus circuit failures when adding more than one slave
The actual engineered install that we wired to called for a single twisted pair (2 wire) that went to the high side of 3 phoenix contact repeaters. From there each repeater had about 3 devices on it in daisy chain. The repeaters also act as isolators from what I'm told. Each end device had a terminating resistor (120 ohm)as well as the RS485/232 converter. Once we realized there were problems we started with only 2 devices on line a fully bypassing the repeaters, basically a direct simple link to 2 devices. When we did this the first device would communicate very well but the one 50 feet past it was having many slave errors reported in the PLC. This was the same if we were to pick any of the short legs while bypassing the rest of devices and repeaters. Always the first one would communicate perfect and the rest in the line would have many failures. We played around with terminating resistors in every configuration and also tried different grounding combinations (since we only had one twisted pair to work with, the only ground available to us was the cable shield and drain wires) but nothing changed our results much if any.
If we need to have a separate ground wire through the system it sure wasn't specified by the engineers. The slave devices are all grounded locally as are the repeaters.
If you still believe the separate ground or galvanic isolators may be required with this information provided please let me know and I'll follow up with engineering. What I'm trying to avoid is spending a lot of time and money on something that 'might' solve the problem, I'd like to know ahead and feel confident with it. Thanks again...
RE: Modbus circuit failures when adding more than one slave
RE: Modbus circuit failures when adding more than one slave
>From there I go out to the field with an instrument tech cable that contains 2 twisted shielded pairs.
If that's the case, use one twisted pair for A and B, and one of the remaining wires for the signal ground. That's not doable?
In terms testing to determine whether you have a potential solution:
If you need to pursue a higher speed because 1200 baud is inadequate (and there's no signal ground wire available to try), then you've got what you need to test - you've already got 3 isolator/repeaters.
3 isolators is enough to test your system, which conveniently caves with the addition of a 2nd node.
Drive each of the first, second and third level devices from an isolator at each of the level nodes. Then bump the speed to 9600 and watch the error log. If error log is clean, the isolators are limiting either the common mode or the noise and you need 7 more isolators for the remaining nodes.
The 'engineers' are not the first to not know that "2 wire RS-485" is a misnomer.
RE: Modbus circuit failures when adding more than one slave
DanW2, I fairly new to 485 installations and may be incorrectly stating certain details. Yes you're correct when you stated I have 2 pairs total going out to the field, in fact I could use one wire of the second pair to run a ground out to the high side of the repeaters. However, all of the runs in the field are using both pairs, all 4 signal wires as part of the daisy chain configuration. (from junction box to device then return) In this there is no opportunity for the third ground wire anywhere on the low (slave) side of the repeaters. I will for sure be trying to at least use the third ground wire out to the high side of the repeaters and testing small segments at that point, I just hope that the slave side will not also cause issues.
Thanks again...
RE: Modbus circuit failures when adding more than one slave
>"all of the runs in the field are using both pairs, all 4 signal wires as part of the daisy chain configuration. (from junction box to device then return)"
How could you use 4 wires for 2 wire connections with no signal ground? What's the 'return'? Daisy chaining is node 1 to node 2 to node 3 to node 4 etc. There is no 'return'. It's not a current loop; it's differential, A to B.
Is each of your devices on a giant spur, running from a single central junction box? Does the wiring topology look like a hub and spoke topology?
How does your wiring differ from the 'spur' diagram above?
RE: Modbus circuit failures when adding more than one slave
This is level, instrument is probably up high on the tank? Junction box down low on the ground? Signal has to go up, connect, come back down to the junction box and then go out to the next node. JB to node needs 4 wires (well 6, but . . .). OK. I was thinking 'electrical' return.
RE: Modbus circuit failures when adding more than one slave
Well, this red flag sticks out. Try a single terminating resistor only at each end of the daisy chained wire. If the run is short (say only a few 100 feet) you could also try no terminating resistors at all.
Before you go further, the very first step is determining if each device is isolated or not. Read through this note until you understand the common/grounding connections as described.
http://www.robustdc.com/pdf/an003.pdf
RE: Modbus circuit failures when adding more than one slave
Thanks for the follow up, I had no time today but hopefully tomorrow to troubleshoot. I've got some more ammo now, I'll follow up with results (if any!)