NetLinx Programming
89
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>
NOTE:
The RS-232 ports on Massio ControlPads are RS-232 only, so sending this SEND_COMMAND to enable or
disable 422 or 485 mode on a Massio ControlPad via Telnet will have no effect on the ControlPad, and the
ControlPad also will not return an error message.
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 a COMMAND event: 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 a COMMAND event: 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.
NOTE:
This SEND_COMMAND is not compatible with Massio ControlPads. While you may execute this command via
Telnet, the command will have no effect on the ControlPad, and the ControlPad also will not return an error
message.
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.
RXON
Start transmitting received characters to the Master (default).
Enables sending incoming received characters to the Master.
This command is automatically sent by the Master when a 'CREATE_BUFFER' program instruction is executed.
Syntax:
SEND_COMMAND <DEV>,"'RXON'"
Example:
SEND_COMMAND RS232_1,"'RXON'"
Sets the RS232_1 device to transmit received characters to the Master.