Owners manual

9: Administration
SGX 5150 IoT Device Gateway User Guide 97
Table 9-28 Modbus Transmission Modes
The Modbus web pages allow you to check Modbus status and make configuration changes.
Modbus Statistics
This read-only web page displays the current connection status of the Modbus servers listening on
the TCP ports. When a connection is active, the remote client information is displayed as well as
the number of PDUs that have been sent and received. Additionally, a Kill link will be present
which can be used to kill the connection.
Modbus Configuration
This web page shows the current negotiated Modbus settings and allows configuration changes.
Table 9-29 Modbus Configuration
Note: The serial line protocol must also be configured for Modbus, in addition to
configuring the Modbus server. See Line (on page 92) and Tunnel (on page 111) for
details.
To View and Configure the Modbus Server
Using Web Manager
To view Modbus statistics, on the Administration page, click Modbus > Statistics.
To configure Modbus settings, on the Administration page, click Modbus > Configuration.
Using the CLI
To enter the Modbus command level: enable > configure > modbus
Using XML
Include in your file: <configgroup name=”modbus">
RTU ASCII
Address: 8 bits (0 to 247 decimal, 0 is used for broadcast)
Function: 8 bits (1 to 255, 0 is not valid)
Data: N X 8 bits (N=0 to 252 bytes)
CRC Check: 16 bits
Address: 2 CHARS
Function: 2 CHARS
Data: N CHARS (N=0 to 252 CHARS)
LRC Check: 2 CHARS
Modbus Configuration
Settings
Description
TCP Server State Select On or Off. If On, the Modbus server is active on TCP 502.
Additional TCP Server Port Enter the Additional TCP Server Port, if any.
Note: If present, is used in addition to TCP port 502.
Response Timeout Enter the number of milliseconds to wait for a response on the serial side.
The device returns exception code 11 to the network master controller if the
slave serial device fails to reply within this time out.