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?
Use TCPOpen() to open the connection. Use the socket number returned by TCPOpen for the comport in ModbusMaster().