NetLinx Programming
IR / Serial Ports Channels
IR / Serial Ports Channels
00001 - 00229 | IR commands. |
|
|
00229 - 00253 | May be used for system call feedback. |
|
|
00254 | Power Fail. (Used with the 'PON' and 'POF' commands). |
|
|
00255 | Power status. (Shadows I/O Link channel status). |
|
|
IR/Serial Port (Port 3) Commands
The IR port is located at Port 3 in NetLinx D:P:S nomenclature. The following IR and IR/Serial Send_Commands generate control signals for external equipment.
In these examples: <DEV> = device. The IR port shall support the following commands.
IR/Serial Send_Commands
Command | Description | |
|
| |
CAROFF | Syntax: | |
Disable the IR carrier signal | SEND_COMMAND <DEV>,"'CAROFF'" | |
until a 'CARON' command is | Example: | |
received. | ||
SEND_COMMAND IR_1,"'CAROFF'" | ||
| ||
| Stops transmitting IR carrier signals to the IR_1 port. | |
|
| |
CARON | Syntax: | |
Enable the IR carrier signals | SEND_COMMAND <DEV>,"'CARON'" | |
(default). | Example: | |
| ||
| SEND_COMMAND IR_1,"'CARON'" | |
| Starts transmitting IR carrier signals to the IR_1 port. | |
|
| |
CH | All channels below 100 are transmitted as two digits. If the IR code for ENTER | |
Send IR pulses for the | (function #21) is loaded, an Enter will follow the number. If the channel is | |
greater than or equal to (>=) 100, then IR function 127 or 20 (whichever exists) | ||
selected channel. | ||
is generated for the one hundred digit. Uses 'CTON' and 'CTOF' times for pulse | ||
| ||
| times. | |
| Syntax: | |
| SEND_COMMAND <DEV>,"'CH',<channel number>" | |
| Variable: | |
| channel number = 0 - 199. | |
| Example: | |
| SEND_COMMAND IR_1,"'CH',18" | |
| This device performs the following: | |
| • Transmits IR signals for 1 (IR code 11). The transmit time is set with the | |
| CTON command. | |
| • Waits until the time set with the CTOF command elapses. | |
| • Transmits IR signals for 8 (IR code 18). | |
| • Waits for the time set with the CTOF command elapses. | |
| • If the IR code for Enter (IR code 21) is programmed, the device performs | |
| steps 5 and 6. | |
| • Transmits IR signals for Enter (IR code 21). | |
| • Waits for the time set with the CTOF command elapses. | |
|
|
94 |