![](/images/new-backgrounds/1306409/30640951x1.webp)
NXC-IRS4 Send_Commands (Cont.)
Command | Description |
|
|
SET MODE | Set the IR/Serial ports for IR or |
| 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 | Generate a single IR pulse. You can 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 |
| 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 - 999. |
| Example: |
| For detailed usage examples, refer to the 'XCHM' command. |
|
|
XCHM | Changes the IR output pattern for the 'XCH' send command. |
| Syntax: |
| SEND_COMMAND |
| Variable: |
| extended channel mode = 0 - 4. |
| Example: |
| SEND_COMMAND |
| Sets the IR_1 device's extended channel command to mode 3. |
| Mode 0 Example (default): [x][x]<x><enter> |
| SEND_COMMAND |
| Transmits the IR code as |
| SEND_COMMAND |
| Transmits the IR code as |
| SEND_COMMAND |
| Transmits the IR code as |
| Mode 1 Example: <x> <x> <x> <enter> |
| SEND_COMMAND |
| Transmits the IR code as |
| SEND_COMMAND |
| Transmits the IR code as |
| SEND_COMMAND |
| Transmits the IR code as |
|
|
20 | NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide |