Services
Modbus gateway
LR54 User Guide
668
where
value
is any number between 10 milliseconds and one second, and take
the format
number
{ms|s}
.
For example, to set idle_gap to 20 milliseconds, enter
20ms
.
v. Set the amount of time to wait before disconnecting the socket when it has
become inactive:
(config service modbus_gateway server test_modbus_server)>
inactivity_timeout
value
(config service modbus_gateway server test_modbus_server)>
where
value
is any number of minutes or seconds up to a maximum of 15
minutes, and takes the format
number
{
m|s
}.
For example, to set
inactivity_timeout
to ten minutes, enter either
10m
or
600s
:
(config service modbus_gateway server test_modbus_server)>
inactivity_timeout 600s
(config service modbus_gateway server test_modbus_server)>
n
If
connection_type
is set to
serial
:
i. Set the serial port:
i. Use the
?
to determine available serial ports:
(config service modbus_gateway server test_modbus_
server)> ... serial port ?
Serial
Additional Configuration
-------------------------------------------------------
------------------------
port1
Port 1
(config service modbus_gateway server test_modbus_
server)>
ii. Set the port:
(config service modbus_gateway server test_modbus_
server)> serial
port
(config service modbus_gateway server test_modbus_
server)>
ii. Set the packet mode:
(config service modbus_gateway server test_modbus_server)>
serial packet_mode
value
(config service modbus_gateway server test_modbus_server)>
where
value
is either
rtu
or
ascii
. The default is
rtu
.