Specifications
NetLinx Programming
76
NX-Series Controllers - WebConsole & Programming Guide
RS-232/422/485 SEND_COMMANDs (Cont.)
Command Description
GET BAUD Get the RS-232/422/485 port’s current communication parameters. The port sends the parameters to the
device that requested the information.
The port responds with:
<port #>,<baud>,<parity>,<data>,<stop> [422] or [485] <ENABLED | DISABLED>
Syntax:
SEND_COMMAND <DEV>,"'GET BAUD'"
Example:
SEND_COMMAND RS232_1,"'GET BAUD'"
System response example:
Device 1,38400,N,8,1 422/485 DISABLED
GET FAULT Check the activation status of fault detection on the port.
Syntax:
SEND_COMMAND <DEV>, "’GET FAULT’"
Example:
SEND_COMMAND RS232_1,"’GET FAULT’"
Responds with DISABLED, NONE, or NO DEVICE.
GET STATUS Check the fault detection status of the port.
Syntax:
SEND_COMMAND <DEV>, "’GET STATUS’"
Example:
SEND_COMMAND RS232_1,"’GET STATUS’"
Responds with STATUS: NORMAL or STATUS: FAULT.
HSOFF Disable hardware handshaking (default).
Syntax:
SEND_COMMAND <DEV>,"'HSOFF'"
Example:
SEND_COMMAND RS232_1,"'HSOFF'"
Disables hardware handshaking on the RS232_1 device.
HSON Enable RTS (ready-to-send) and CTS (clear-to-send) hardware handshaking.
Syntax:
SEND_COMMAND <DEV>,"'HSON'"
Example:
SEND_COMMAND RS232_1,"'HSON'"
Enables hardware handshaking on the RS232_1 device.
RXCLR Clear all characters in the receive buffer waiting to be sent to the Master.
Syntax:
SEND_COMMAND <DEV>,"'RXCLR'"
Example:
SEND_COMMAND RS232_1,"'RXCLR'"
Clears all characters in the RS232_1 device's receive buffer waiting to be sent to the Master.
RXOFF Disable the transmission of incoming received characters to the Master.
Syntax:
SEND_COMMAND <DEV>,"'RXOFF'"
Example:
SEND_COMMAND RS232_1,"'RXOFF'"
Stops the RS232_1 device from transmitting received characters to the Master.