
© 2011 Cypress Solutions MODBUS Operation (Revision 1.3)
9 4BMODBUS Command Reference
• All MODBUS serial slave devices connected to a serial bus configuration such as RS485 must use
the same transmission mode. (This configuration is in accordance with the MODBUS specification)
modbusadd id (add MODBUS self slave - only one is permitted)
id = 1 to 247 MODBUS ID
Examples:
cmd modbusadd 1 192.168.100.122 add TCP slave with ID 1 and IP 192.168.100.122
cmd modbusadd 3 add itself as a MODBUS slave with ID = 3
cmd modbusadd 17 115200 N 8 1 a add serial slave with baud 115200, no parity, 8 data
bits, 1 stop bit and as ASCII transmission mode
Note: modbusadd will return “Invalid IP address (Sx)” followed by an “OK” if modbusadd is configured
with parameters missing or incorrect parameters. Ensure that the modbussadd parameters match those
from the above list.
modbusdel n (delete MODBUS entry)
This command is used to delete an entry or all entries from the MODBUS list.
n = 0 deletes all MODBUS entries
n = 1 to 247 MODBUS ID entry
Examples:
cmd modbusdel 1 delete the entry with MODBUS ID 1
cmd modbusdel 0 delete all entries in the MODBUS list
Komentáře k této Příručce