Specifications
© 2010 Cypress Solutions Complete Manual: CTM-15X Firmware 1.3.0
Open CTM (Revision D)
77
Command Reference
Note4: 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 n p d s m w
Adds a MODBUS Serial Slave (Previously in firmware version R1.2.0 and below)
id = 1 to 247 MODBUS ID
n = 1200 1200 Baud
n = 2400 2400 Baud
n = 4800 4800 Baud
n = 9600 9600 Baud
n = 19200 19200 Baud
n = 38400 38400 Baud
n = 57600 57600 Baud
n = 115200 115200 Baud
p = n or N no parity
p = e or E even parity
p = o or O odd parity
d = 7 or 8 data bits
s = 1 or 2 stop bits
m = a or A ASCII transmission mode
m = r or R RTU transmission mode
w = f or F flow control, leave empty for no flow control
Note1: For MODBUS RTU configuration to function properly d = 8 must be entered. (This configuration is
in accordance with the MODBUS specification)
Note2: modbusadd will return ERROR if modbusadd is configured with parameters missing or incorrect
parameters. Ensure that the modbusadd parameters match those from the above list.
Note3: If the baud rate of the serial port is changed from the serial console using the modbusadd
command, and the baud rate of the host application is changed to match the new configuration after
implementing this command, then the serial console should still be able to accept commands. This
functionality is only available if the connection mode of the modem is mode = 1 or mode = 2 before
issuing modbusadd. After changing the serial port configuration, a cmd save and a power cycle is highly
recommended.
modbusadd backward compatibility
Starting in firmware version R1.2.1, the newer form modbusadd id Serial m used with the port command
is the preferred way for adding new serial slaves.
Starting in firmware version R1.2.1, the form modbusadd id n p d s m w is provided for backward
compatibility only. This form uses the n p d s w parameters with port to set the serial port settings and
the id m parameters with modbusadd id Serial m. The form modbusadd id n p d s m w is only used for
setting and will not be queried back in the same form. The changes that come into effect by using this
form can be queried by using the modbusadd and the port commands; using modbusadd without
parameters will always display commands in the form modbusadd id Serial m.