Programming
86
NI Series WebConsole & Programming Guide
RS-232/422/485 Send_Commands (Cont.)
Command
Description
HSOFF
Disable hardware handshak-
ing (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 charac-
ters to the Master (default).
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.
SET BAUD
Set the RS-232/422/485
port's communication
parameters.
Syntax:
SEND_COMMAND <DEV>,"'SET BAUD
<baud>,<parity>,<data>,<stop> [485 <Enable | 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.
485 Disable = Disables RS-485 mode and enables RS-422.
485 Enable = Enables RS-485 mode and disables RS-422.
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.
Содержание NetLinx Master-Ethernet Card/Module NXC-ME260
Страница 8: ...vi NI Series WebConsole Programming Guide Table of Contents ...
Страница 12: ...Overview 4 NI Series WebConsole Programming Guide FIG 1 Internet Explorer with BonJour plug in ...
Страница 13: ...Overview 5 NI Series WebConsole Programming Guide ...
Страница 14: ...Overview 6 NI Series WebConsole Programming Guide ...
Страница 34: ...Onboard WebConsole User Interface 26 NI Series WebConsole Programming Guide ...
Страница 36: ...WebConsole WebControl Options 28 NI Series WebConsole Programming Guide ...
Страница 88: ...WebConsole System Options 80 NI Series WebConsole Programming Guide ...
Страница 104: ...Programming 96 NI Series WebConsole Programming Guide ...
Страница 156: ...Appendix A IPSec Configuration File 148 NI Series WebConsole Programming Guide ...
Страница 161: ...Terminal Program Port Telnet Commands 153 NI Series WebConsole Programming Guide ...