How to use the Modbus master and slave FBs on TCP/IP – Support Elsist https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/feed/ Fri, 30 Oct 2026 08:22:19 +0000 https://bbpress.org/?v=2.6.20 it-IT https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-35993 How to use the Modbus master and slave FBs on TCP/IP https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-35993 Tue, 12 Apr 2016 16:26:25 +0000 Gregory In this topic is explained the use of the ModbusMaster for RTU communication over the serial line, what about the communication on TCP/IP ?

]]>
https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-39521 Rispondi a: How to use the Modbus master and slave FBs on TCP/IP https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-39521 Wed, 13 Apr 2016 06:06:53 +0000 Sergio Bertana The ModbusMaster FB (Manual abstract) can manage all the three Modbus protocol types (Ascii, RTU and TCP/IP), it can manages the Modbus protocol over all the communication streams, serial line (See topic), TCP or UDP. The FB has a File input to pass the stream to use.

So use the Modbus communication over IP it’s so simply, just open a TCP/IP client communication on the device with which to communicate (By using the SysTCPClient FB) and then pass the stream to the ModbusMaster FB. This is the printout of the TCPModbusMaster program that shows what to do.

The program reads 8 registers using the 16#03 Read Holding Registers modbus command from a SlimLine slave device (IP address 192.168.0.218) and stores the result on the RxData array. Remind that the Modbus slave on the SlimLine is directly managed by the operating system so no additional slave FB is required (Program download).

]]>
https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-39526 Rispondi a: How to use the Modbus master and slave FBs on TCP/IP https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-39526 Thu, 14 Apr 2016 14:24:32 +0000 Gregory The download link for “Program download” in the above topic is broken. I looked at the program printout and typed it in. I am not getting a “Connected” indication on the SysTCPClient and the “File” is 0.

]]>
https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-39527 Rispondi a: How to use the Modbus master and slave FBs on TCP/IP https://support.elsist.biz/forums/topic/how-to-use-the-modbus-master-and-slave-fbs-on-tcp-ip/#post-39527 Thu, 14 Apr 2016 14:26:21 +0000 Sergio Bertana I’ve corrected the download link.

About the Connected output, have you corrected the PeerAdd ? To work this program has to be connected by ethernet to another SlimLine and you have to set in the PeerAdd the IP address of the other SlimLine.

]]>