DSL
Hello.

Is there a possibility to run two or more master over Modbust TCP. For instance, can I connect two Raspberry Pi device that
booth has their own slaves connected over Modbus RTU (RS485) so that those two Raspberry Pi act BOTH as Master or to say client when it needed. They booth has to have abbility to initiate comunication and access to each other.

So, when Raspberry Pi A wants to comunicate with Raspberry Pi B, A initiates comunication B respond,
Then, when Raspberry Pi B wants to comunicate with Raspberry Pi A, B initiates comunication A respond.
Reply 0 0
thiagoralves
Modbus is strictly a master/slave protocol by definition. You cannot have two masters at the same time for a group of slaves. With that being said, over TCP/IP nothing prevents you from creating this scenario if you want, given that packets are routed individually to each device. For this, OpenPLC on each raspberry pi would have to act both as master and slave. By default OpenPLC has a built-in Modbus slave service that is enabled on settings. As for master, all you have to do is add each other as a slave device. This will create this pretzel scenario you are looking for, however, I can't really understand the usefulness of this and even if this would be functional.
Reply 0 0
Reply