
© 2011 Cypress Solutions MODBUS Operation (Revision 1.3)
n = 1 to 247 MODBUS ID, in decimal
a.a.a.a = 0.0.0.0 to 255.255.255.255 MODBUS slave gateway IP address, in decimal
p = 0 to 65535 Port that the slave gateway will be listening on, in decimal
Examples:
cmd modbusidmap 1 123.1.2.3 502 Set the MODBUS master gateway to forward messages for the
slave device with ID 1 to port 502 of the gateway at 123.1.2.3
cmd modbusidmap 1 0.0.0.0 Clear the MODBUS ID to gateway IP entry for slave ID 1
cmd modbusidmap 1 123.1.2.4 502 Change slave ID 1 entry to the gateway at 123.1.2.4
cmd modbusidmap 0 0.0.0.0 Clear all MODBUS ID to gateway IP entries
cmd modbusidmap Query all MODBUS ID to gateway IP entries
3.3 MODBUS Slave Gateway Command Reference
The following section provides commands used to configure the gateway as a MODBUS slave gateway.
For the following commands to be applied, the gateway must be configured for MODBUS mode using
cmd mode 6 and configured as a slave gateway using cmd modbusmode 0.
When the MODBUS slave gateway is enabled, the gateway will look at its MODBUS slave list to handle all
MODBUS functions and traffic. This MODBUS gateway is able to function as:
MODBUS TCP slave gateway
MODBUS Serial slave gateway
Self MODBUS device (one only allowed)
The MODBUS slave gateway will be using the default port of 502.
To add a MODBUS slave device entry to the MODBUS list. One entry is added at a time with a limit of up
to 247 entries (each entry requires a unique ID). MODBUS TCP slaves, serial slaves and self slave can be
added to the list. For the MODBUS self slave, the entry on the MODBUS list will be “Localhost, id”.
modbusadd (query MODBUS slave gateway list)
To display all the entries in the MODBUS list. Read only.
Example:
cmd modbusadd displays the MODBUS list
(192.168.1.20,247) TCP slave device with ID = 247
(Localhost,10) self slave device with ID = 10
(19200.N.8.1 A,155) serial slave device (baud 19200, no parity, 8 data, 1 stop, ASCII, no flow control)
with ID = 155
modbusadd id nnn.nnn.nnn.nnn (add a MODBUS TCP slave)
id = 1 to 247 MODBUS ID
nnn.nnn.nnn.nnn = 1.0.0.0 to 255.255.255.255 MODBUS slave IP address
Comentários a estes Manuais