AMX nxc manual Hson, Rxclr, Rxoff, Rxon, SET Baud

Models: nxc

1 46
Download 46 pages 61.34 Kb
Page 14
Image 14

NXC-COM2 Dual COM Port Control Card

NXC-COM2 Send_Commands (Cont.)

Command

Description

 

 

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

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'"

 

Start transmitting received characters to the Master (default).

 

 

SET BAUD

Set the RS-232/422/485 port's communication parameters.

 

Syntax:

 

SEND_COMMAND <DEV>,"'SET BAUD <baud>,<parity>,<data>,<stop> [485 <EnableDisable>]'"

 

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.

 

 

8

NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide

Page 14
Image 14
AMX nxc manual Hson, Rxclr, Rxoff, Rxon, SET Baud