| NetLinx Programming | |
| ||
IR/Serial Send_Commands (Cont.) | ||
|
| |
Command | Description | |
|
| |
PTOF | This time increment is stored in permanent memory. This command also sets | |
Set the time duration | the delay between pulses generated by the 'PON' or 'POF' send commands in | |
tenths of seconds. It also sets the delay required after a power ON command | ||
between power pulses in | ||
before a new IR function can be generated. This gives the device time to power | ||
up and get ready for future IR commands. | ||
| ||
| Syntax: | |
| SEND_COMMAND <DEV>,"'PTOF',<time>" | |
| Variable: | |
| time = 0 - 255. Given in 1/10ths of a second. Default is 15 (1.5 seconds). | |
| Example: | |
| SEND_COMMAND IR_1,"'PTOF',15" | |
| Sets the time between power pulses to 1.5 seconds for the IR_1 device. | |
|
| |
PTON | This time increment is stored in permanent memory. This command also sets | |
Set the time duration of the | the pulse length for each pulse generated by the 'PON' or 'POF' send | |
commands in tenths of seconds. | ||
power pulses in | ||
| ||
Syntax: | ||
| SEND_COMMAND <DEV>,"'PTON',<time>" | |
| Variable: | |
| time = 0 - 255. Given in 1/10ths of a second. Default is 5 (0.5 seconds). | |
| Example: | |
| SEND_COMMAND IR_1,"'PTON',15" | |
| Sets the duration of the power pulse to 1.5 seconds for the IR_1 device. | |
|
| |
SET BAUD | Only valid if the port is in Data Mode (see SET MODE command). | |
Set the IR port's DATA mode | Syntax: | |
communication parameters. | SEND_COMMAND <DEV>,"'SET BAUD | |
| ||
| <baud>,<parity>,<data>,<stop>'" | |
| Variables: | |
| baud = baud rates are: 19200, 9600, 4800, 2400, and 1200. | |
| parity = N (none), O (odd), E (even), M (mark), S (space). | |
| data = 7 or 8 data bits. | |
| stop = 1 and 2 stop bits. | |
| Note: AMX does not recommend using a cable longer than 10 feet | |
| (3.05 meters) for the IR Ports. | |
| Example: | |
| SEND_COMMAND IR_1,"'SET BAUD 9600,N,8,1'" | |
| Sets the IR_1 port's communication parameters to 9600 baud, no parity, 8 data | |
| bits, and 1 stop bit. | |
|
| |
SET IO LINK | The I/O status is automatically reported on channel 255 on the IR port. The I/O | |
Link an IR or Serial port to a | channel is used for power sensing (via a PCS or VSS). A channel of zero | |
disables the I/O link. | ||
selected I/O channel for use | ||
Syntax: | ||
with the 'DE', 'POD', 'PON', | ||
and 'POF' commands. | SEND_COMMAND <DEV>,"'SET IO LINK <I/O number>'" | |
| ||
| Variable: | |
| I/O number = 1 - 2. 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. | |
|
|
97 | |
|
|