Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Writing data to the server using Modbus TCP/IP


ronaldotukchro Nov 18, 2025 07:57 PM

Hi, I have a sensor that outputs three variables, and I need to write those three variables to a server using Modbus TCP/IP. I would do this with the ModbusMaster() instruction, but where would I configure the server's IP address? TCPOpen?
Could someone help me?


JDavis Nov 18, 2025 11:29 PM

Use TCPOpen() to open the connection. Use the socket number returned by TCPOpen for the comport in ModbusMaster().

Log in or register to post/reply in the forum.