NXC-COM2 Dual COM Port Control Card
10
NetLinx Cardframe, Control Cards, and NetModules
NXC-COM2 Send_Commands (Cont.)
Command
Description
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 receive buffer waiting to be sent to the Master.
RXOFF
Disable the transmission
of incoming received
characters to the Master
(default).
Syntax:
SEND_COMMAND <DEV>,"'RXOFF'"
Example:
SEND_COMMAND RS232_1,"'RXOFF'"
Disable the transmission of incoming received characters to the Master (default).
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'"
Stops the RS232_1 device from transmitting 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: 230400, 115200, 76800, 57600, 38400, 19200, 9600,
4800, 2400, 1200, 600, 300, 150.
Parity: N (none), O (odd), E (even), M (mark), S (space)
Data: 7 or 8 data bits
Stop: 1 or 2 stop bits
485 Disable: Disables RS-485 mode and enables RS-232/422
485 Enable: Enables RS-485 mode and disables RS-234/422
Note: The only valid 9 bit combination is (baud),N,9,1.
Example:
SEND_COMMAND SOMEDEVICE_1,"'SET BAUD 115200,N,8,1, 485 ENABLE'"
Sets the SOMEDEVICE port's communication parameters to 115,200 baud, no
parity, 8 data bits, 1 stop bit, and enables RS-485 mode.
Содержание NetLinx NXC-COM2
Страница 4: ......
Страница 8: ...iv NetLinx Cardframe Control Cards and NetModules Table of Contents...
Страница 14: ...NXF CardFrame and NetModules 6 NetLinx Cardframe Control Cards and NetModules...
Страница 24: ...NXC I O10 Input Output Control Card 16 NetLinx Cardframe Control Cards and NetModules...
Страница 32: ...NXC IRS4 4 Port IR S Control Card 24 NetLinx Cardframe Control Cards and NetModules...
Страница 49: ...NXC VOL4 Volume Control Card 41 Enter the Document Name Here...