Specifications

NetLinx Programming
77
NX-Series Controllers - WebConsole & Programming Guide
RS-232/422/485 SEND_COMMANDs (Cont.)
Command Description
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.
SET BAUD Set the RS-232/422/485 port's communication parameters.
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>,"'SET BAUD <baud>,<parity>,<data>,<stop> ([422 <Enable | Disable>]'"
SEND_COMMAND <DEV>,"'SET 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, 76800, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, 300, 150.
parity = N (none), O (odd), E (even), M (mark), S (space).
data = 8 data bits.
stop = 1 and 2 stop bits.
422 Disable = Disables RS-485 mode
422 Enable = Enables RS-485 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,"'SET 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.
SET FAULT
DETECT OFF
Disables fault detection on the port. Fault detection is turned on by default.
Syntax:
SEND_COMMAND <DEV>, "’SET FAULT DETECT OFF’"
Example:
SEND_COMMAND RS232_1,"’SET FAULT DETECT OFF’"
SET FAULT
DETECT ON
Enables fault detection on the port. Fault detection is turned on by default.
Syntax:
SEND_COMMAND <DEV>, "’SET FAULT DETECT ON’"
Example:
SEND_COMMAND RS232_1,"’SET FAULT DETECT ON’"