Device #
Local Name
Use
Static IPv4   Static IPv6   Domain Lookup
IP Address
Port: 
Domain Name
 
Unit (optional)
Use FC 5/6 instead of 15/16
Connection Status
Default Poll Period
Seconds Clear
Quick Help

This page sets up the network address and optional device parameters for a remote Modbus/TCP device that will be linked to for remote input and/or output (via the client read and client write maps). The local device acts as a Modbus master to the remote devices listed here.

Device number simply shows you where you are on the device list. Click "next" and "prev" to scroll through the list. Update parameters as applicable and click Update.

Local name is how you will reference this deivice in the Modbus TCP Client Read Maps and Write Maps. This name is only a local reference.

Select whether your remote Modbus TCP server (slave) has an IPv4 address, IPv6 address, or needs to be looked up via DNS. Enter the applicable IP address or domain name.

Enter a port number. This will default to 502 if left set to zero. Port 502 is the standard Modbus TCP port.

Enter an optional unit number. This unit will be used if there was no unit specified in the individual Read Map or Write Map. If no unit is provided, unit will default to 1.

If your slave/server device only supports function codes 5 and 6 for writing, check the Use FC 5/6 box. The default function codes are 15 and 16, which are most widely used.

Enter a default poll period in seconds. This default will be used if no different poll period is given in the individual Read Map or Write Map.

Connection status will show a non-zero error code if there is a socket error. Possible errors include:

5 = Connection attempt timed out, unable to establish connection (usually means remote device not connected or not reachable)
104 = Connection reset by peer
111 = Connection refused
113 = Connection aborted
114 = Network is unreachable
115 = Network interface not configured
116 = Connection timed out
118 = Host is unreachable
125 = Address not available
205 = DNS error