Programming

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

TXCLR

Syntax:

Stops and clears all

SEND_COMMAND <DEV>,'TXCLR'

characters waiting in the

Example:

transmit buffer.

SEND_COMMAND RS232_1,'TXCLR'

 

 

Clears and stops all characters waiting in the RS232_1 device's transmit buffer.

 

 

XOFF

Syntax:

Disables software

SEND_COMMAND <DEV>,'XOFF'

handshaking (default).

Example:

 

 

SEND_COMMAND RS232_1,'XOFF'

 

Disables software handshaking on the RS232_1 device.

 

 

XON

Syntax:

Enables software

SEND_COMMAND <DEV>,'XON'

handshaking.

Example:

 

 

SEND_COMMAND RS232_1,'XON'

 

Enables software handshaking on the RS232_1 device.

RS-232/422/485 Send_String Escape Sequences

RS-232/422/485 Send_String Escape Sequences

27,17,

Syntax:

Sends device-specific break

SEND_STRING <DEV>,"27,17,<Time>"

characters for a specified

Variable:

duration.

Time = 1-255 in 100 microsecond increments

 

 

Example:

 

SEND_STRING RS232_1,"27,17,10"

 

Sends a break character of 1 millisecond to the RS232_1 device.

 

 

27,18,1

You can use this escape sequence with the B9MON command.

Sets the ninth data bit to 1 on

Syntax:

all character transmissions.

SEND_STRING <DEV>,"27,18,1"

 

 

Example:

 

SEND_STRING RS232_1,"27,18,1"

 

Sets the RS232_1 device's ninth data bit to 1 on all character transmissions.

 

 

27,18,0

You can use this escape sequence with the B9MON command.

Sets the ninth data bit to 0 on

Syntax:

all character transmissions.

SEND_STRING <DEV>,"27,18,0"

 

 

Example:

 

SEND_STRING RS232_1,"27,18,0"

 

Sets the RS232_1 devices ninth data bit to 0 on all character transmissions.

 

 

27,19,

Syntax:

Inserts time delays before

SEND_STRING <DEV>,"27,19,<Time>"

transmitting the next

Variable:

character.

Time = 1-255 in 1 millisecond increments

 

 

Example:

 

SEND_STRING RS232_1,"27,19,10"

 

Inserts a 10 millisecond delay before transmitting characters to the RS232_1

 

device.

NetLinx Integrated Controllers

117

 

 

 

 

Page 123
Image 123
AMX NI-3000, NI-4000, NI-2000 instruction manual RS-232/422/485 SendString Escape Sequences