User Guide

Programming
15
NXI NetLinx Integrated Controller
RS-232/422/485 Send_Commands (Cont.)
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.
SET BAUD
Sets the RS-232/422/485
port's communication param-
eters.
Syntax:
SEND_COMMAND <DEV>,'SET BAUD
(Baud),(Parity),(Data),(Stop) (485 DISABLE/
ENABLE)'
Variables:
Baud = 150, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 (factory set
default), 57600, 76800, 115200, 230400
Parity = N (none), O (odd), E (even), M (mark), S (space)
Data = 7 or 8 data bits
Stop = 1 or 2 stop bits
485 Disable = Disables RS-485 mode and enables RS-422.
485 Enable = Enables RS-485 mode and disables RS-422.
Example:
SEND_COMMAND RS232_1,'SET BAUD 9600,N,8,1 485
ENABLE'
Sets the RS232_1 port's communication parameters to 9,600 baud, no parity, 8
data bits, 1 stop bit, and enables RS-485 mode.
TSET BAUD
Temporarily sets the RS-232/
422/485 port's communica-
tion parameters.
Syntax:
SEND_COMMAND <DEV>,'TSET BAUD
(Baud),(Parity),(Data), (Stop) (485 DISABLE/
ENABLE)'
TSET BAUD works the same as SET BAUD, except that the changes are not
permanent, and the previous values will be restored if the power is cycled on
the device.
HSOFF
Disables hardware hand-
shaking (default).
Syntax:
SEND_COMMAND <DEV>,'HSOFF'
Example:
SEND_COMMAND RS232_1,'HSOFF'
Disables hardware handshaking on the RS232_1 device.