Services Modbusgateway
IX20 User Guide
746
(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
numberms.
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 isused by the gateway to determine if a message should beforwarded to a
destination device. If the Modbus addressin the message matches one or more of the
filters, the message is forwarded. If it doesnot match the filters, the message is not
forwarded. Allowed values are 1 through 255 or a hyphen-separated range.
For example:
n
To havethisclient filter for incoming messagesthat contain the Modbus addressof
10, set the index 0 entry to 10:
(config service modbus_gateway client test_modbus_client)>
filter 0 10
(config service modbus_gateway client test_modbus_client)>
n
To filter for all messageswith addressesin the range of 20 to 30, set the index 0
entry to 20-30:
(config service modbus_gateway client test_modbus_client)>
filter 0 20-30
(config service modbus_gateway client test_modbus_client)>
To add additional filters, increment the index number. For example, to add an additional
filter for addresses in the range of 50-100:
(config service modbus_gateway client test_modbus_client)> filter 1
50-100
(config service modbus_gateway client test_modbus_client)>
g. If request messages handled by thisclient should always be forwarded to a specific device,
, use fixed_server_addressto set the device's Modbusaddress: