Rs-232/422/485 send_string escape sequences – AMX NetLinx Integrated Controllers NI-3000 User Manual

Page 123

Advertising
background image

Programming

117

NetLinx Integrated Controllers

RS-232/422/485 Send_String Escape Sequences

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

TXCLR

Stops and clears all
characters waiting in the
transmit buffer.

Syntax:

SEND_COMMAND <DEV>,'TXCLR'

Example:

SEND_COMMAND RS232_1,'TXCLR'

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

XOFF

Disables software
handshaking (default).

Syntax:

SEND_COMMAND <DEV>,'XOFF'

Example:

SEND_COMMAND RS232_1,'XOFF'

Disables software handshaking on the RS232_1 device.

XON

Enables software
handshaking.

Syntax:

SEND_COMMAND <DEV>,'XON'

Example:

SEND_COMMAND RS232_1,'XON'

Enables software handshaking on the RS232_1 device.

RS-232/422/485 Send_String Escape Sequences

27,17,

Sends device-specific break
characters for a specified
duration.

Syntax:

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

Variable:

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

Sets the ninth data bit to 1 on
all character transmissions.

You can use this escape sequence with the B9MON command.

Syntax:

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

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

You can use this escape sequence with the B9MON command.

Syntax:

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,

Inserts time delays before
transmitting the next
character.

Syntax:

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

Variable:

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.

Advertising
This manual is related to the following products: