
© 2011 Cypress Solutions MODBUS Operation (Revision 1.3)
4 MODBUS Slave Gateway
4.1 MODBUS Serial Slave Gateway Configuration
The following set of gateway commands will configure the gateway to act as a MODBUS slave gateway
using MODBUS RTU between the gateway and the MODBUS serial slave device(s), and using MODBUS
RTU over UDP for over-the-air communications.
cmd modbusmode 0 #Set gateway to be a MODBUS slave gateway
cmd modbusctm130 1 # Use RTU over UDP for over the air communication. 0=TCP
cmd port 1 9600 8 n 1 0 #Set serial port settings
cmd modbusadd 1 Serial R #Set the serial port slave device to have a slave ID of 1 and to
#use MODBUS RTU as the serial transmission mode.
cmd modbusadd #List all entries in MODBUS slave list
cmd mode 6 #MODBUS host interface
cmd save #Save configuration
cmd pwr mode 2 #Power cycle modem
5 MODBUS Master
Refer to MODBUS Master application note for more setup details
Comentários a estes Manuais