Programming

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

B9MON

This command works in conjunction with the B9MOFF command.

Overrides and sets the

Syntax:

communication settings on

SEND_COMMAND <DEV>,'B9MON'

the RS-232 port to nine data

Example:

bits and one stop bit.

 

 

SEND_COMMAND RS232_1,'B9MON'

 

Resets the RS-232 port's communication parameters to nine data bits, one

 

stop bit, and locks-in the baud rate.

 

 

CHARD

Syntax:

Sets the delay time between

SEND_COMMAND <DEV>,'CHARD<Time>'

transmitted characters in 100

Variable:

microsecond increments.

Time: 0-255 in 100 microsecond increments

 

 

Example:

 

SEND_COMMAND RS232_1,'CHARD10'

 

Sets a 1mS delay between all transmitted characters.

 

 

CHARDM

Syntax:

Sets the delay time between

SEND_COMMAND <DEV>,'CHARDM<Time>'

transmitted characters in 1

Variable:

millisecond increments.

Time: 0-255 in 1 millisecond increments

 

 

Example:

 

SEND_COMMAND RS232_1,'CHARDM10'

 

Sets a 10 mS delay between all transmitted characters.

 

 

CTSPSH

If Clear To Send (CTS) is high, the channel is on.

Enables Pushes, Releases,

Syntax:

and status information to be

SEND_COMMAND <DEV>,'CTSPSH'

reported via channel 255.

Example:

 

 

SEND_COMMAND RS232_1,'CTSPSH'

 

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

 

 

CTSPSH OFF

Turns CTSPSH off.

Disables 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 on the specified device.

 

 

GET BAUD

The port sends the data through the Master’s Program port.

Gets the RS-232/422/485

Syntax:

port’s current communication

’GET BAUD’

parameters.

Example:

 

 

SEND_COMMAND <DEV>,’GET BAUD’

 

System response example:

 

Device 1, 38400,N,8,1 485 DISABLED

 

 

HSOFF

Syntax:

Disables hardware

SEND_COMMAND <DEV>,'HSOFF'

handshaking (default).

Example:

 

 

SEND_COMMAND RS232_1,'HSOFF'

 

Disables hardware handshaking on the RS232_1 device.

 

 

NetLinx Integrated Controllers

115

 

 

 

 

Page 121
Image 121
AMX NI-4000 Sendcommand DEV,B9MON, Sendcommand RS2321,B9MON, Sendcommand RS2321,CHARD10, Sendcommand RS2321,CHARDM10