Model Name Alias Name
Firmware Version MAC Address
IP Address TCP Port Timeout
(Socket Watchdog, Seconds)
Initial Switch System Idle
(Network Watchdog, Seconds)

Port 1 Settings

Port Settings CurrentUpdatedComment
Baud Rate ( select )bps (bits/second)
Data Size bits/char
Parity
Stop Bits
Flow Control
Remove Errors Parity Error
Framing Error
Break Error
Clear RX FIFO data when serial errors.
Modbus Settings CurrentUpdatedComment
Slave Timeout 10 - 65000 ms, Default: 300. (Note)
Char Timeout 4 - 15 bytes, Default: 4
Silent Time 0 - 65000 ms, Default: 0
Protocol
Virtual ID Range to Range: 0 to 247.
Note: Gateway skips the Modbus messages if its ID is NOT in the specified range.
Virtual ID Offset Offset: -246 to 246, No change=0. For example:
   Virtual ID = 1 to 10, offset = 10, then physical Slave ID = 11 to 20.
   Virtual ID = 31 to 40, offset = -10, then physical Slave ID = 21 to 30.
Modbus TCP Settings CurrentUpdatedComment
Queue Timeout 1000 - 65000 ms, Default: 1000. (Note)
Read Cache 0 - 65000 ms, Disable: 0
Local TCP Port Default: 502
MTCP Length Swap
0:TX/RX=High byte first.1:TX=High, RX=Low byte first.
3:TX/RX=Low byte first.2:TX=Low, RX=High byte first.
Connection Idle 0 - 65000 seconds, Default: 180, Disable: 0
Enable TLS For Modbus/TCP (Modbus Security) Server mode
Certificate Login For Modbus/TCP (Modbus Security) Server mode
Pair-Connection Settings
(Master/Slave Mode)
CurrentUpdatedComment
Application Mode Server: Modbus TCP/UDP master to Modbus RTU/ASCII slave
Client: Modbus RTU/ASCII master to Modbus TCP/UDP slave
Client List

Note: To obtain a suitable setting, please follow these steps:

  1. Use a Master to test all Slave devices connected to the Modbus Gateway, and take note of the maximum response time of each device.
  2. Set the Slave Timeout parameter of the Modbus Gateway to the above maximum response time of the Slave devices plus 100 ms (latency).
    Users can try smaller or larger latency for better operation.
  3. Set the Queue Timeout parameter of the Modbus Gateway to above Slave Timeout of the Modbus Gateway multiplied by N requests plus 100 ms (latency).
    N refers to the maximum number of requests queued simultaneously from all masters.
  4. Set the Slave Timeout parameter of the masters to the Queue Timeout of the Modbus Gateway plus 100 ms (latency).
  5. Ensure that the corresponding timeout settings are large enough for error handling.
For example:
  1. If Device1 has a response time of 80 ms and Device2 has a response time of 130 ms, so the maximum response time is 130 ms.
  2. Set the Slave Timeout of the Modbus Gateway to 230 ms (130 + 100).
  3. Set the Queue Timeout of the Modbus Gateway to 1480 ms (230 *6 requests + 100).
    If there are 3 masters with 2 requests queued simultaneously, then that is 3 * 2 = 6 requests.
  4. Set the Slave Timeout of the masters to 1580 ms (1480 + 100).