Services
Configure the Modbus gateway
IX20 User Guide
399
3. The new Modbus gateway server is enabled by default. Toggle off
Enable the client
to disable.
4. For
Connection type
, select
Socket
or
Serial
. Available options in the gateway server
configuration vary depending on this setting.
n
If
Socket
is selected for
Connection type
:
a. For
IP Protocol
, select
TCP
or
UDP
. The default is
TCP
.
b. For
Port
, enter or select an appropriate port. The default is port
502
.
c. For
Remote host
, type the hostname or IP address of the remote host on which the
Modbus server is running.
n
If
Serial
is selected for
Connection type
:
a. For
Serial port
, select the appropriate serial port on the IX20 device.
5. For
Packet mode
, select
RTU
or
RAW
(if
Connection type
is set to
Socket
) or
ASCII
(if
Connection type
is set to
Serial
) for the type of packet that will be used by this connection.
The default is
RTU
.
6. For
Packet idle gap
, type the maximum allowable time between bytes in a packet.
Allowed values are between 10 milliseconds and one second, and take the format
number
{
ms|s
}.
For example, to set
Packet idle gap
to 20 milliseconds, enter
20ms
.
7. If
Connection type
is set to
Socket
, for
Inactivity timeout
, type the amount of time to wait
before disconnecting the socket when it has become inactive.
Allowed values are any number of minutes or seconds up to a maximum of 15 minutes, and
take the format
number
{
m|s
}.
For example, to set
Inactivity timeout
to ten minutes, enter
10m
or
600s
.
8. (Optional) If
Connection type
is set to
Serial
, click
Half duplex
to enable half duplex (two
wire) mode.
9. (Optional) If
Connection type
is set to
Socket
, click to expand
Access control list
:
n
To limit access to specified IPv4 addresses and networks:
a. Click
IPv4 Addresses
.
b. For
Add Address
, click
.
c. For
Address
, enter the IPv4 address or network that can access the device's web
administration service. Allowed values are:
l
A single IP address or host name.
l
A network designation in CIDR notation, for example, 192.168.1.0/24.
l
any
: No limit to IPv4 addresses that can access the web administration service.
d. Click
again to list additional IP addresses or networks.
n
To limit access to specified IPv6 addresses and networks:
a. Click
IPv6 Addresses
.
b. For
Add Address
, click
.
c. For
Address
, enter the IPv6 address or network that can access the device's web
administration service. Allowed values are:
l
A single IP address or host name.
l
A network designation in CIDR notation, for example, 2001:db8::/48.