Programming

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

Command

Description

 

 

GET BAUD

The port sends the parameters to the device that requested the information.

Get the RS-232/422/485

The port responds with:

port’s current communication

<port #>,<baud>,<parity>,<data>,<stop> 485 <ENABLED DISABLED>

parameters.

Syntax:

 

 

SEND_COMMAND <DEV>,"'GET BAUD'"

 

Example:

 

SEND_COMMAND RS232_1,"'GET BAUD'"

 

System response example:

 

Device 1,115200,N,8,1 485 DISABLED

 

 

HSOFF

Syntax:

Disable hardware

SEND_COMMAND <DEV>,"'HSOFF'"

handshaking (default).

Example:

 

 

SEND_COMMAND RS232_1,"'HSOFF'"

 

Disables hardware handshaking on the RS232_1 device.

 

 

HSON

Syntax:

Enable 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:

Clear all characters in the

SEND_COMMAND <DEV>,"'RXCLR'"

receive buffer waiting to be

Example:

sent to the Master.

SEND_COMMAND RS232_1,"'RXCLR'"

 

 

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

 

to the Master.

 

 

RXOFF

Syntax:

Disable the transmission of

SEND_COMMAND <DEV>,"'RXOFF'"

incoming received

Example:

characters to the Master

SEND_COMMAND RS232_1,"'RXOFF'"

(default).

 

Stops the RS232_1 device from transmitting received characters to the Master.

 

 

RXON

Enables sending incoming received characters to the Master. This command is

Start transmitting received

automatically sent by the Master when a 'CREATE_BUFFER' program

instruction is executed.

characters to the Master

 

(default).

Syntax:

 

SEND_COMMAND <DEV>,"'RXON'"

 

Example:

 

SEND_COMMAND RS232_1,"'RXON'"

 

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

 

 

156

NI-3101-SIG Signature Series NetLinx Integrated Controller

Page 162
Image 162
AMX NI-3101-SIG manual GET Baud, Hsoff, Hson, Rxclr, Rxoff, Rxon