AMX NetLinx Integrated Controllers NI-3000 User Manual

Page 121

Advertising
background image

Programming

115

NetLinx Integrated Controllers

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

B9MON

Overrides and sets the
communication settings on
the RS-232 port to nine data
bits and one stop bit.

This command works in conjunction with the B9MOFF command.

Syntax:

SEND_COMMAND <DEV>,'B9MON'

Example:

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

Sets the delay time between
transmitted characters in 100
microsecond increments.

Syntax:

SEND_COMMAND <DEV>,'CHARD<Time>'

Variable:

Time: 0-255 in 100 microsecond increments

Example:

SEND_COMMAND RS232_1,'CHARD10'

Sets a 1mS delay between all transmitted characters.

CHARDM

Sets the delay time between
transmitted characters in 1
millisecond increments.

Syntax:

SEND_COMMAND <DEV>,'CHARDM<Time>'

Variable:

Time: 0-255 in 1 millisecond increments

Example:

SEND_COMMAND RS232_1,'CHARDM10'

Sets a 10 mS delay between all transmitted characters.

CTSPSH

Enables Pushes, Releases,
and status information to be
reported via channel 255.

If Clear To Send (CTS) is high, the channel 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

Disables Pushes, Releases,
and status information to be
reported via channel 255.

Turns CTSPSH off.

Syntax:

SEND_COMMAND <DEV>,'CTSPSH OFF'

Example:

SEND_COMMAND RS232_1,'CTSPSH OFF'

Turns off CTSPSH on the specified device.

GET BAUD

Gets the RS-232/422/485
port’s current communication
parameters.

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

Syntax:

’GET BAUD’

Example:

SEND_COMMAND <DEV>,’GET BAUD’

System response example:

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

HSOFF

Disables hardware
handshaking (default).

Syntax:

SEND_COMMAND <DEV>,'HSOFF'

Example:

SEND_COMMAND RS232_1,'HSOFF'

Disables hardware handshaking on the RS232_1 device.

Advertising
This manual is related to the following products: