Owners manual

9: Administration
SGX 5150 IoT Device Gateway User Guide 96
To Configure USB Command Mode
Using Web Manager
To configure usb command mode, on the Administration page, click USB > Command
Mode.
Using the CLI
To enter the usb command level: enable > usb
Using XML
Include in your file: <configgroup name="usb">
Modbus
The Modbus ASCII/RTU based serial slave devices can be connected via the Ethernet through an
existing Modbus TCP/IP network. Any device having access to a given Modbus implementation
will be able to perform full range of operations that the implementation supports. Modbus/TCP
uses a reserved TCP port of 502 and includes a single byte function code (1=255) preceded by a
6 byte header:
Table 9-27 Byte Header of Modbus Application Protocol
Serial Transmission Mode
SGX 5150 IoT device gateways can be set up to communicate on standard Modbus networks
using either RTU or ASCII. Users select the desired mode and serial port communication
parameters (baud rate, parity mode, etc) when in the line configuration options.
Serial String Enter the Serial String. The Serial String is a string of bytes that must be read on
the USB Line during boot time in order to enable Command Mode. It may contain a
time element to specify a required delay in milliseconds x, formed as {x}.
Echo Serial String Select to enable or disable.
Signon Message Enter the Signon Message, which is a string of bytes that is sent on the USB Line
during boot time. Place a binary character into either the Serial String or the Signon
Message using [x]. For example, use decimal [12] or hex [0xc].
Transaction ID (2 bytes) Identification of request/response transaction - copied by slave
Protocol ID (2 bytes) 0 - Modbus protocol
Length (2 bytes) Number of following bytes includes the unit identifier
Address (1 byte) Identification of remove slave
USB Command Mode
Settings (continued)
Description