Serial
Configuration of communication protocols supported by the serial ports, including RS-232 and RS-485.
Serial ports configuration
GET/SET SERIAL | |||
---|---|---|---|
SETTING GROUP | DESCRIPTION | DEFAULT | VALID RANGE |
serial | serial port | rs232 | rs232, rs485, off |
Example:
An example of a 'get' and corresponding 'set' command within the serial domain is provided below.
GET | SET |
get,serial<CR><LF> | set,serial,rs232<CR><LF> |
RS-232 configuration
GET/SET RS232 | ||||
---|---|---|---|---|
SETTING GROUP | DESCRIPTION | DEFAULT | VALID RANGE | NOTE |
baudrate | Available baud rates. | 115200 | 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 | Higher baud rates results in faster data transmission, but more susceptible to errors over long cables or noisy environments. |
databits | The number of data bits in each character transmitted over the serial connection. | 8 | 5, 6, 7, 8 | 8 databits (default) matches standard ASCII character encoding. |
parity | Parity provides simple error-checking mechanism. | 0 | 0, 1, 2, 3, 4 | 0: No parity, 1: Odd parity, 2: Even parity, 3: Mark parity, 4: Space parity. Parity does not correct detected errors. |
stopbits | Stop bits signal the end of a data packet. | 1 | 1, 2 | 1: 10, 2: 20. |
flowcontrol | Flow control regulates data transmission. | 0 | 0, 1 | 0: None, 1: XON/XOFF. If 0 (no flow control), receiver device must be fast enough to handle incoming data. |
Example:
Examples of 'get' and corresponding 'set' commands within the rs-232 domain are provided below.
GET | SET |
get,rs-232,baudrate<CR><LF> | set,rs-232,baudrate,115200<CR><LF> |
get,rs-232,databits<CR><LF> | set,rs-232,databits,8<CR><LF> |
get,rs-232,parity<CR><LF> | set,rs-232,parity,0<CR><LF> |
get,rs-232,stopbits<CR><LF> | set,rs-232,stopbits,10<CR><LF> |
<CR><LF>get,rs-232,flowcontrol | set,rs-232,flowcontrol,0<CR><LF> |
RS-485 configuration
GET/SET RS485 | ||||
---|---|---|---|---|
SETTING GROUP | DESCRIPTION | DEFAULT | VALID RANGE | NOTE |
baudrate | Available baud rates. | 115200 | 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 128000, 230400, 460800, 921600 | Higher baud rates results in faster data transmission, but more susceptible to errors over long cables or noisy environments. |
databits | The number of data bits in each character transmitted over the serial connection. | 8 | 5, 6, 7, 8 | 8 databits (default) matches standard ASCII character encoding. |
parity | Parity provides simple error-checking mechanism. | 0 | 0, 1, 2, 3, 4 | 0: No parity, 1: Odd parity, 2: Even parity, 3: Mark parity, 4: Space parity. Parity does not correct detected errors. |
stopbits | Stop bits signal the end of a data packet. | 1 | 1, 2 | 1: 10, 2: 20. |
flowcontrol | Flow control regulates data transmission. | 0 | 0, 1 | 0: None, 1: XON/XOFF. If 0 (no flow control), receiver device must be fast enough to handle incoming data. |
Example:
GET | SET |
get,rs-485,baudrate<CR><LF> | set,rs-485,baudrate,115200<CR><LF> |
get,rs-485,databits<CR><LF> | set,rs-485,databits,8<CR><LF> |
get,rs-485,parity<CR><LF> | set,rs-485,parity,0<CR><LF> |
get,rs-485,stopbits<CR><LF> | set,rs-485,stopbits,10<CR><LF> |
get,rs-485,flowcontrol<CR><LF> | set,rs-485,flowcontrol,0<CR><LF> |
Modbus RTU configuration
GET/SET MODBUSRTU | ||||
---|---|---|---|---|
SETTING GROUP | DESCRIPTION | DEFAULT | VALID RANGE | NOTE |
unitid | device identifier | 1 | [0-99] | |
registertype | register type for Modbus RTU | input | input, holding | See Modbus register addressing in MODBUS RTU for details. |
Example:
Examples of 'get' and corresponding 'set' commands within the Modbus RTU domain are provided below.
GET | SET |
get,modbusrtu,unitid<CR><LF> | set,modbusrtu,unitid,1<CR><LF> |
get,modbusrtu,registertype<CR><LF> | set,modbusrtu,registertype,input<CR><LF> |