Specifications

NetLinx Programming
78
NX-Series Controllers - WebConsole & Programming Guide
RS-232/422/485 SEND_COMMANDs (Cont.)
Command Description
TSET BAUD Temporarily set the RS-232/422/485 port's communication parameters for a device. TSET BAUD works
the same as SET BAUD, except that the changes are not permanent, and the previous values will be
restored if the power is cycled on the device.
Note: On NX-series controllers, you can use the RS-422/485 ports as 232 ports by using the TSET
BAUD command to disable both 422 and 485 modes on the port. When both are disabled on the port, the
port operates in 232 mode.
Syntax:
SEND_COMMAND <DEV>,"'TSET BAUD <baud>,<parity>,<data>,<stop> ([422 <Enable|Disable>]'"
SEND_COMMAND <DEV>,"'TSET BAUD <baud>,<parity>,<data>,<stop> ([485 <Enable|Disable>]'"
Note: To disable both 422 and 485 modes with one command, end the command with 422/485 Disable.
Variables:
baud = baud rates are: 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, 300.
parity = N (none), O (odd), E (even), M (mark), S (space).
data = 8 or 9 data bits.
stop = 1 or 2 stop bits.
422 Disable = Disables RS-422 mode
422 Enable = Enables RS-422 mode
485 Disable = Disables RS-485 mode
485 Enable = Enables RS-485 mode
Note: The only valid 9 bit combination is (baud),N,9,1.
Example:
SEND_COMMAND RS232_1,"'TSET BAUD 115200,N,8,1 485 ENABLE'"
Sets the RS232_1 port's communication parameters to 115,200 baud, no parity, 8 data bits, 1 stop bit,
and enables RS-485 mode.
TXCLR Stop and clear all characters waiting in the transmit out buffer and stops transmission.
Syntax:
SEND_COMMAND <DEV>,"'TXCLR'"
Example:
SEND_COMMAND RS232_1,"'TXCLR'"
Clears and stops all characters waiting in the RS232_1 device's transmit buffer.
XOFF Disable software handshaking (default).
Syntax:
SEND_COMMAND <DEV>,"'XOFF'"
Example:
SEND_COMMAND RS232_1,"'XOFF'"
Disables software handshaking on the RS232_1 device.
XON Enable software handshaking.
Syntax:
SEND_COMMAND <DEV>,"'XON'"
Example:
SEND_COMMAND RS232_1,"'XON'"
Enables software handshaking on the RS232_1 device.