B
Why somebody use 4 wire network for Modbus RTU.
Modbus is not full duplex so 2 wire should be ok!!
Any advantages?
Thanks,
Brian
Modbus is not full duplex so 2 wire should be ok!!
Any advantages?
Thanks,
Brian
interesting replyThe only difference really is that echo suppression has to be handled properly in all of the devices on the 2 wire network. 4 wire has 2 sets of differentials and does not have to worry about suppressing the echo. I've dealt with many headaches on echo suppression over the years but it seems to be fading. 4 wire RS485 and RS422 has always been more robust for me.
interesting reply - any chance you provide more details on benefits of 4 wire- if slaves can hear other slaves what us the issue with that? they all have different addresses but maybe it makes comms faster because slaves dont need to processs other slaves traffic?A 4 wire hookup is much simpler to troubleshoot and to use. The master transmitts to all the slaves and all the slaves transmitters are connected to the masters receiver. The slaves only "hear" messages from the master and the master can only hear the slaves responses.
With a 2 wire hookup, everyone hears all the traffic. Slaves receive not only polls from the master but also can hear every response from all other slaves. Unless the hardware specifically disables it, everyone also can hear themselves talking. If you have an interrupt per character type system, a 2
wire system will significantly add to the interrupt overhead.
With that said, Modbus will indeed work on a 2 wire system but some manufacturers equipment may not.
Jerry Miille
You don't do any tuning for this as a user. The device manufacturer has to have designed their hardware, or written their software, in such a way that allows the device to ignore its own transmissions (i.e. disable its receiver during transmission). If the device has not been designed this way, it's going to receive its own transmissions. The 4-wire RS-485 device may end up in an endless loop when wired on a 2-wire network, replying to its own transmissions (for example, a Modbus write single register packet is the identical for both the request and response).can you provide more info please how do you tune echo? do you use osciloscope?
Maybe 20 years ago this made a slight difference, but today's devices are much faster and communications takes an eternity compared to the speed of the CPU, so some extra interrupts are not going to bog down the device. But your understanding is correct. If the slaves are not receiving other slaves' responses, then their serial drivers are not burdened by the overhead of processing the additional traffic.any chance you provide more details on benefits of 4 wire- if slaves can hear other slaves what us the issue with that? they all have different addresses but maybe it makes comms faster because slaves dont need to processs other slaves traffic?
thanks for replyThis thread is from over 20 years ago. Chances are, the members who posted back then no longer frequent this forum and you're not very likely to get a response from them.
But I'll try to answer your questions.
You don't do any tuning for this as a user. The device manufacturer has to have designed their hardware, or written their software, in such a way that allows the device to ignore its own transmissions (i.e. disable its receiver during transmission). If the device has not been designed this way, it's going to receive its own transmissions. The 4-wire RS-485 device may end up in an endless loop when wired on a 2-wire network, replying to its own transmissions (for example, a Modbus write single register packet is the identical for both the request and response).
Maybe 20 years ago this made a slight difference, but today's devices are much faster and communications takes an eternity compared to the speed of the CPU, so some extra interrupts are not going to bog down the device. But your understanding is correct. If the slaves are not receiving other slaves' responses, then their serial drivers are not burdened by the overhead of processing the additional traffic.
I actually think 4-wire networks are more difficult to troubleshoot, at least from an installation perspective. Instead of mixing up just 2-wires (+ and -) now you could mix up any combination of 4 wires (TX+, TX-, RX+, RX-). Perhaps from a software developer's standpoint, it's simpler to troubleshoot, since there are less messages that each slave's communication driver sees.are there any reasons why in practice troubleshooting 4 wire modbus would be easier? what tools would you use - for ascii it would be putty client but what about rtu which is binary format?
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
| K | How to wire 3 Wire Modbus RTU to PC DB9 | Modbus | 5 | |
| G | modbus rtu to moxa mgate mb3180 rs485 2 wire | Modbus | 1 | |
| D | 2 Wire Modbus RTU Network Incorrect Wiring Scenario | Modbus | 1 | |
| S | modbus RTU 485 2 wire | Modbus | 6 | |
| O | Modbus RTU 2-wire Master with 4-wire Slaves | Modbus | 5 |