Programming

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

Command

Description

 

 

XON

Syntax:

Enable 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

This device also has some special SEND_STRING escape sequences:

If any of the 3 character combinations below are found anywhere within a SEND_STRING program instruction, they will be treated as commands and not the literal characters.

In these examples: <DEV> = device.

RS-232/422/485 Send_String Escape Sequences

Command

Description

 

 

27,17,<time>

Syntax:

Send a break character for a

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

specified duration to a

Variable:

specific device.

time = 1 - 255. Measured 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,0

Used in conjunction with the 'B9MON' command.

Clear the ninth data bit by

Syntax:

setting it to 0 on all character

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

transmissions.

Example:

 

 

SEND_STRING RS232_1,"27,18,0"

 

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

 

 

27,18,1

Used in conjunction with the 'B9MON' command.

Set the ninth data bit to 1 for

Syntax:

all subsequent characters to

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

be transmitted.

Example:

 

 

SEND_STRING RS232_1,"27,18,1"

 

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

 

 

27,19,<time>

Syntax:

Insert a time delay before

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

transmitting the next

Variable:

character.

time = 1 - 255. Measured 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.

 

 

27,20,0

Syntax:

Set the RTS hardware

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

handshake's output to high

Example:

(> 3V).

SEND_STRING RS232_1,"27,20,0"

 

 

Sets the RTS hardware handshake's output to high on the RS232_1 device.

 

 

158

NI-3101-SIG Signature Series NetLinx Integrated Controller

Page 164
Image 164
AMX NI-3101-SIG manual RS-232/422/485 SendString Escape Sequences, Xon