AMX Signature Series NetLinx Integrated Controller NI-3101-SIG User Manual

Page 143

Advertising
background image

Programming

133

NI-3101-SIG Signature Series NetLinx Integrated Controller

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

Command

Description

CHARD
Set the delay time between
all transmitted characters to
the value specified (in 100
Microsecond increments).

Syntax:

SEND_COMMAND <DEV>,"'CHARD-<time>'"

Variable:

time = 0 - 255. Measured in 100 microsecond increments.

Example:

SEND_COMMAND RS232_1,"'CHARD-10'"

Sets a 1-millisecond delay between all transmitted characters.

CHARDM
Set the delay time between
all transmitted characters to
the value specified
(in 1 Millisecond increments).

Syntax:

SEND_COMMAND <DEV>,"'CHARDM-<time>'"

Variable:

time = 0 - 255. Measured in 1 millisecond increments.

Example:

SEND_COMMAND RS232_1,"'CHARDM-10'"

Sets a 10-millisecond delay between all transmitted characters.

CTSPSH
Enable Pushes, Releases,
and Status information to be
reported via channel 255
using the CTS hardware
handshake input.

This command turns On (enables) channel tracking of the handshaking pins. If
Clear To Send (CTS) is set high, then channel 255 is On.
Syntax:

SEND_COMMAND <DEV>,"'CTSPSH'"

Example:

SEND_COMMAND RS232_1,"'CTSPSH'"

Sets the RS232_1 port to detect changes on the CTS input.

CTSPSH OFF
Disable Pushes, Releases,
and Status information to be
reported via channel 255.

This command disables tracking. Turns CTSPSH Off.
Syntax:

SEND_COMMAND <DEV>,"'CTSPSH OFF'"

Example:

SEND_COMMAND RS232_1,"'CTSPSH OFF'"

Turns off CTSPSH for the specified device.

GET BAUD
Get the RS-232/422/485
port’s current communication
parameters.

The port sends the parameters to the device that requested the information.
The port responds with:

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

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
Disable hardware
handshaking (default).

Syntax:

SEND_COMMAND <DEV>,"'HSOFF'"

Example:

SEND_COMMAND RS232_1,"'HSOFF'"

Disables hardware handshaking on the RS232_1 device.

HSON
Enable RTS (ready-to-send)
and CTS (clear-to-send)
hardware handshaking.

Syntax:

SEND_COMMAND <DEV>,"'HSON'"

Example:

SEND_COMMAND RS232_1,"'HSON'"

Enables hardware handshaking on the RS232_1 device.

RXCLR
Clear all characters in the
receive buffer waiting to be
sent to the Master.

Syntax:

SEND_COMMAND <DEV>,"'RXCLR'"

Example:

SEND_COMMAND RS232_1,"'RXCLR'"

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

Advertising