AMX NetLinx NXM Series User Manual

Page 16

Advertising
background image

NXC-COM2 Dual COM Port Control Card

10

NetLinx Cardframe, Control Cards, and NetModules

NXC-COM2 Send_Commands (Cont.)

Command

Description

GET BAUD
Get the RS-232/422/485
port’s current
communication
parameters.

Device sends the response out the Master program port.
Syntax:

SEND_COMMAND <DEV>,"'GET BAUD'"

Example:

SEND_COMMAND RS232_1,"'GET BAUD'"

Device responds with:
<port #>,<baud>,<parity>,<data>,<stop> 485 <ENABLED | DISABLED>

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.

Advertising