Specifications

NetLinx Programming
92
NI & DVX Central Controllers - WebConsole & Programming Guide
IR/Serial SEND_COMMANDs (Cont.)
Command Description
SET IO LINK Link an IR or Serial port to a selected I/O channel for use with the 'DE', 'POD', 'PON', and 'POF'
commands.
The I/O status is automatically reported on channel 255 on the IR port. The I/O channel is used for power
sensing (via a PCS or VSS). A channel of zero disables the I/O link.
Syntax:
SEND_COMMAND <DEV>,"'SET IO LINK <I/O number>'"
Variable:
I/O number = 1 - 8. Setting the I/O channel to 0 disables the I/O link.
Example:
SEND_COMMAND IR_1,"'SET IO LINK 1'"
Sets the IR_1 port link to I/O channel 1. The IR port uses the specified I/O input as power status for
processing 'PON' and 'POF' commands.
SET MODE Set the IR/Serial ports for IR or Serial-controlled devices to either IR, Serial, or Data mode.
Syntax:
SEND_COMMAND <DEV>, 'SET MODE <mode>'"
Variable:
mode = IR, SERIAL, or DATA.
Example:
SEND_COMMAND IR_1,"'SET MODE IR'"
Sets the IR_1 port to IR mode for IR control.
Note: The maximum baud rate for ports using SERIAL mode is 19200. Also, SERIAL mode works best
when using a short cable length (< 10 feet).
SP Generate a single IR pulse.
Use the 'CTON' to set pulse lengths and the 'CTOF' for time Off between pulses.
Syntax:
SEND_COMMAND <DEV>,"'SP',<code>"
Variable:
code = IR code value 1 - 252 (253-255 reserved).
Example:
SEND_COMMAND IR_1, "'SP',25"
Pulses IR code 25 on IR_1 device.
XCH Transmit the selected channel IR codes in the format/pattern set by the 'XCHM' send command.
Syntax:
SEND_COMMAND <DEV>,"'XCH <channel>'"
Variable:
channel = 0 - 9999.
Example:
For detailed usage examples, refer to the 'XCHM' command.
Note: This command supports 4-digit channels.