AMX NI-2000 RS-232/422/485 SendCommands Cont, Hson, Rxclr, Rxoff, Rxon, Set Baud, Tset Baud

Models: NI-2000 NI-4000 NI-3000

1 134
Download 134 pages 57.78 Kb
Page 122
Image 122
HSON

Programming

RS-232/422/485 Send_Commands (Cont.)

HSON

Syntax:

Enables RTS (ready-to-send)

SEND_COMMAND <DEV>,'HSON'

and CTS (clear-to-send)

Example:

hardware handshaking.

SEND_COMMAND RS232_1,'HSON'

 

 

Enables hardware handshaking on the RS232_1 device.

 

 

RXCLR

Syntax:

Clears all characters in the

SEND_COMMAND <DEV>,'RXCLR'

receive buffer waiting to be

Example:

sent to the Master Card.

SEND_COMMAND RS232_1,'RXCLR'

 

 

Clears all characters in the RS232_1 device's receive buffer waiting to be sent

 

to the Master Card.

 

 

RXOFF

Syntax:

Stops transmitting received

SEND_COMMAND <DEV>,'RXOFF'

characters to the Master Card

Example:

(default).

SEND_COMMAND RS232_1,'RXOFF'

 

 

Stops the RS232_1 device from transmitting received characters to the Master

 

Card.

 

 

RXON

This command is sent automatically when issuing a CREATE_BUFFER

Starts transmitting received

Send_Command.

 

characters to the Master

Syntax:

Card.

SEND_COMMAND <DEV>,'RXON'

 

 

Example:

 

SEND_COMMAND RS232_1,'RXON'

 

Sets the RS232_1 device to transmit received characters to the Master Card.

 

 

SET BAUD

Syntax:

Sets the RS-232/422/485

SEND_COMMAND <DEV>,'SET BAUD

port's communication

(Baud),(Parity),(Data),(Stop) (485 DISABLE/

parameters.

ENABLE)'

 

 

Variables:

 

Baud = 150, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 (factory set

 

default), 57600, 76800, 115200

 

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-422.

 

485 Enable = Enables RS-485 mode and disables RS-422.

 

Example:

 

SEND_COMMAND RS232_1,'SET BAUD 9600,N,8,1 485

 

ENABLE'

 

Sets the RS232_1 port's communication parameters to 9,600 baud, no parity, 8

 

data bits, 1 stop bit, and enables RS-485 mode.

 

 

TSET BAUD

Syntax:

Temporarily sets the RS-232/

SEND_COMMAND <DEV>,'TSET BAUD

422/485 port's

(Baud),(Parity),(Data), (Stop) (485 DISABLE/

communication parameters.

ENABLE)'

 

 

TSET BAUD works the same as SET BAUD, except that the changes are not

 

permanent, and the previous values will be restored if the power is cycled on

 

the device.

 

 

 

116

NetLinx Integrated Controllers

 

 

 

Page 122
Image 122
AMX NI-2000, NI-3000, NI-4000 RS-232/422/485 SendCommands Cont, Hson, Rxclr, Rxoff, Rxon, Set Baud, Tset Baud