Programming

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

Command

Description

 

 

CHARD

Syntax:

Set the delay time between

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

all transmitted characters to

Variable:

the value specified (in 100

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

Microsecond increments).

Example:

 

 

SEND_COMMAND RS232_1,"'CHARD-10'"

 

Sets a 1-millisecond delay between all transmitted characters.

 

 

CHARDM

Syntax:

Set the delay time between

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

all transmitted characters to

Variable:

the value specified

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

(in 1 Millisecond increments).

Example:

 

SEND_COMMAND RS232_1,"'CHARDM-10'"

 

Sets a 10-millisecond delay between all transmitted characters.

 

 

CTSPSH

This command turns On (enables) channel tracking of the handshaking pins. If

Enable Pushes, Releases,

Clear To Send (CTS) is set high, then channel 255 is On.

and Status information to be

Syntax:

reported via channel 255

SEND_COMMAND <DEV>,"'CTSPSH'"

using the CTS hardware

Example:

handshake input.

SEND_COMMAND RS232_1,"'CTSPSH'"

 

 

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

 

 

CTSPSH OFF

This command disables tracking. Turns CTSPSH Off.

Disable Pushes, Releases,

Syntax:

and Status information to be

SEND_COMMAND <DEV>,"'CTSPSH OFF'"

reported via channel 255.

Example:

 

SEND_COMMAND RS232_1,"'CTSPSH OFF'"

 

Turns off CTSPSH for the specified device.

 

 

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.

 

 

NI-3101-SIG Signature Series NetLinx Integrated Controller

133

 

 

Page 143
Image 143
AMX NI-3101-SIG manual Chardm, Ctspsh OFF, GET Baud, Hsoff, Hson, Rxclr