Networks / Modbus TCP / Client


Client

Use the IP address of the host device to establish the client and receive information from that server. Choose which variables to read values for, or write variables for the server to read.


Clicking the Clients item from the ModbusTCP Network opens the Client List. You will need to click Create New and begin Client Configuration.
Create a new Client by entering the IP Address of the Server that you’ll be communicating with i.e., 172.30.30.23. Switch to Enable the client, and please stop to consider the following: whether the client uses a Zero or One based addressing offset, and thus if a byte-swap will be necessary for successful communication, and all other pictured settings. The defaults are set for InoDrive to InoDrive friendly settings.

Continue on to set the Read and/or Write Registers.
Add Variables to Read Registers by clicking Add Variable and selecting or creating a variable from your user program.
Select or Create the Variable to be Read by your server.
If variables were chosen that require two registers (DINT for example) a second address must be spared for that second bit, i.e. addressing them as: 1, 3, 5, etc.. This is explained in the video for the Server as well.
Select the Variables you’d like to have Read and either continue on to Write or simply click Create to be done.
Same process as selecting the Variables for the Read Registers. Ensure you do not overwrite the same Register Address in Read and Write configurations.