Specifications

Programming
173
NetLinx Integrated Controllers
RS232/422/485 Ports Channels
RS232/422/485 ports are Ports 1-7 (NI-4X00/3X00) and Ports 1-3 (NI-2X00).
RS-232/422/485 Send_Commands
In these examples: <DEV> = device.
LED Send_Commands (Cont.)
Command Description
LED-EN
Enable the LED (on 32 LED
hardware) for a port
(by default).
When the port is active, the LED is lit. When the port is not active, the LED is
not lit. Issue the command to port 1 to enable the LEDs on the Controller
(default setting). When activity occurs on a port(s) or Controller, the LEDs
illuminate.
Syntax:
SEND_COMMAND <DEV>,'LED-EN'
Example:
SEND_COMMAND System_1,'LED-EN'
Enables the System_1 Controller's LEDs.
RS232/422/485 Ports Channels
255 - CTS push channel Reflects the state of the CTS input if a 'CTSPSH' command was sent to the
port.
RS-232/422/485 Send_Commands
Command Description
B9MOFF
Set the port's communication
parameters for stop and data
bits according to the software
settings on the RS-232 port
(default).
Disables 9-bit in 232/422/455 mode. By default, this returns the communication
settings on the serial port to the last programmed parameters. This command
works in conjunction with the 'B9MON' command.
Syntax:
SEND_COMMAND <DEV>,"'B9MOFF'"
Example:
SEND_COMMAND RS232_1,"'B9MOFF'"
Sets the RS-232 port settings to match the port's configuration settings.
B9MON
Override and set the current
communication settings and
parameters on the RS-232
serial port to 9 data bits with
one stop bit.
Enables 9-bit in 232/422/455 mode. 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
Set the delay time between
all transmitted characters to
the value specified (in 100
Microsecond increments).
Syntax:
SEND_COMMAND <DEV>,"'CHARD-<time>'"
Variable:
time = 0 - 255. Measured in 100 microsecond increments.
Example:
SEND_COMMAND RS232_1,"'CHARD-10'"
Sets a 1-millisecond delay between all transmitted characters.