Services
Modbus gateway
LR54 User Guide
662
Configure gateway servers
1. Click to expand
Gateway Servers
.
2. For
Add Modbus server
, type a name for the server and click
.
The new Modbus gateway server configuration is displayed.
3. The new Modbus gateway server is enabled by default. Toggle off
Enable the server
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
.
n
If
Serial
is selected for
Connection type
:
a. For
Serial port
, select the appropriate serial port on the LR54 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
: