AMX MAX-CSE RS-232/422/485Send_Commands Cont, NetLinx Programming, Description, Chardm, Ctspsh

Models: MAX-CSD 10 MAX-CSE

1 110
Download 110 pages 20.97 Kb
Page 96
Image 96
RS-232/422/485 Send_Commands (Cont.)

NetLinx Programming

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

Command

Description

 

 

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.

Syntax:

and Status information to be

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,38400,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.

 

 

90

MAX-CSE/MAX-CSD10 Operation/Reference Guide

Page 96
Image 96
AMX MAX-CSE RS-232/422/485Send_Commands Cont, NetLinx Programming, Description, Chardm, Ctspsh Off, Get Baud, Hsoff