User Guide
Programming
21
NXI NetLinx Integrated Controller
IR/Serial Send_Commands (Cont.)
SET MODE
Sets the IR/Serial ports for IR
or Serial-controlled devices
connected to a CardFrame or
NetModule.
Syntax:
SEND_COMMAND <DEV>, 'SET MODE <Mode>'
Variable:
Mode = IR or Serial
Example:
SEND_COMMAND IR_1, 'SET MODE IR'
Sets the IR_1 port to IR mode for IR control.
SP
Generates a single IR pulse.
You can use the CTON to set pulse lengths and CTOF for time off between
pulses.
Syntax:
SEND_COMMAND <DEV>," 'SP',<IR OUT>"
Variable:
IR OUT = 1-252 and 256-65,000
Example:
SEND_COMMAND IR_1, " 'SP',25"
Pulses IR code 25 on IR_1 device.
XCHM
Changes the IR output pat-
tern for the XCH command.
Syntax:
SEND_COMMAND <DEV>,'XCH-<Mode>'
Variable:
Mode = 0-4
Example:
SEND_COMMAND IR_1,'XCH 3'
Sets the IR_1 device's extended channel command to mode 3.
Mode 0 Example (default): [x] [x] <x> <enter>
SEND_COMMAND IR_1, 'XCH 3'
Transmits the IR code as 3-enter.
SEND_COMMAND IR_1, 'XCH 34'
Transmits the IR code as 3-4-enter.
SEND_COMMAND IR_1, 'XCH 343'
Transmits the IR code as 3-4-3-enter.
Mode 1 Example: <x> <x> <x> <enter>
SEND_COMMAND IR_1, 'XCH 3'
Transmits the IR code as 0-0-3-enter.
SEND_COMMAND IR_1, 'XCH 34'
Transmits the IR code as 0-3-4-enter.
SEND_COMMAND IR_1, 'XCH 343'
Transmits the IR code as 3-4-3-enter.
Mode 2 Example: <x> <x> <x>
SEND_COMMAND IR_1, 'XCH 3'
Transmits the IR code as 0-0-3.
SEND_COMMAND IR_1, 'XCH 34'
Transmits the IR code as 0-3-4.
SEND_COMMAND IR_1, 'XCH 343'
Transmits the IR code as 3-4-3.
Continued