Services
Modbus gateway
Digi Connect IT® 16/48 User Guide
408
(config service modbus_gateway client test_modbus_client)>
serial packet_mode
value
(config service modbus_gateway client test_modbus_client)>
where
value
is either
rtu
or
ascii
. The default is
rtu
.
iii. Set the maximum allowable time between bytes in a packet:
(config service modbus_gateway client test_modbus_client)>
serial idle_gap
value
(config service modbus_gateway client test_modbus_client)>
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 one second, enter
1000ms
or
1s
.
iv. (Optional) Enable half-duplex (two wire) mode:
(config service modbus_gateway client test_modbus_client)>
serial half_duplex true
(config service modbus_gateway client test_modbus_client)>
d. (Optional) Enable the gateway to send broadcast messages to this client:
(config service modbus_gateway client test_modbus_client)> broadcast
true
(config service modbus_gateway client test_modbus_client)>
e. Set the maximum time to wait for a response to a message:
(config service modbus_gateway client test_modbus_client)> response_
timeout
value
(config service modbus_gateway client test_modbus_client)>
Allowed values are between 1 millisecond and 700 milliseconds, and take the format
number
ms
.
For example, to set response_timeout to 100 milliseconds:
(config service modbus_gateway client test_modbus_client)> response_
timeout 100ms
(config service modbus_gateway client test_modbus_client)>
The default is
700ms
.
f. Configure the address filter:
This filter is used by the gateway to determine if a message should be forwarded to a
destination device. If the Modbus address in the message matches one or more of the
filters, the message is forwarded. If it does not match the filters, the message is not
forwarded. Allowed values are
1
through
255
or a hyphen-separated range.
For example:
n
To have this client filter for incoming messages that contain the Modbus address of
10, set the index
0
entry to
10
: