Page
53
February 2010
3.13.3 ModBus TCP to RTU Gateway
The ModBus TCP to RTU Gateway allows an Ethernet ModBus/TCP Client (Master) to
communicate with a serial ModBus RTU Slave. The WI-MOD-E makes this possible by internally
performing the necessary protocol conversion. The conversion is always performed by the WI-
MOD-E which is directly connected to the ModBus serial device (i.e. only this module needs to
have ModBus TCP to RTU Gateway enabled).
The above example demonstrates how a ModBus/TCP Client (Master) can connect to one or more
ModBus RTU (i.e serial) Slaves. In this example the WI-MOD-E Access Point is configured with
the “RS232 ModBus/TCP to RTU Gateway” enabled. Once enabled, the gateway converts the
ModBus/TCP queries received from the Master into ModBus RTU queries and forwards these over
the RS232 port to the Slave. When the serial response to the query arrives from the Slave, it is
converted to a ModBus/TCP response and forwarded via the network to the ModBus/TCP Master. If
no response was received serially by the WI-MOD-E within the configured Response Timeout, the
WI-MOD-E will initiate a number of retries specified by the configured Maximum Request Retries.
The ModBus TCP to RTU Gateway may be configured to operate on either the RS-232 or RS-485
port. It does not support operation on both ports at the same time.
Enable RS-232 ModBus
TCP to RTU Gateway
Check this box to enable the ModBus TCP to RTU Gateway on the
RS-232 port. Only a single serial port is allowed at a time.
Enable RS-485 ModBus
TCP to RTU Gateway
Check this box to enable the ModBus TCP to RTU Gateway on the
RS-485 port. Only a single serial port is allowed at a time.
Data Rate
The serial data rate desired. Serial data rates available range from
110bps to a maximum of 115,200bps.
Data Bits Parity Stop Bits
The data format desired. Data formats of 8N1, 7E1, 7O1, 7E2, 7O2
are supported.
Pause Between Requests
Enter the delay between serial request retries in milliseconds
Response Timeout
Enter the serial response timeout in milliseconds – a serial retry will
be sent if a response is not received within this timeout.
Connection Timeout
Enter the TCP connection timeout in seconds – if no ModBus/TCP
data is received within this timeout then the TCP connection will be
dropped. Set this field to zero for no timeout.
Maximum Request Retries Enter the maximum number of request retries performed serially.
Maximum Connections
Enter the maximum number of simultaneous TCP connections to the
server allowed.