Programming
11
NetLinx Integrated Controller (No Master) - Operation Reference Guide
IR/Serial Send_Commands (Cont.)
PTON
Sets the duration of power pulses in .10-second increments.
Time is stored in permanent memory.
Syntax:
SEND_COMMAND <DEV>," 'PTON',<Time>"
Variable:
Time = 0-255 in tenths of a second increments; default = 5 (.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 IO LINK
Links an IR or Serial port to an I/O channel for use with DE, POD, PON and POF commands.
The I/O status is automatically reported on channel 255 on the IR port.
Syntax:
SEND_COMMAND <DEV>,"'SET IO LINK <Number>'
Variable:
Number = 1-8; set the I/O channel to 0 to disable I/O link settings.
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
Sets the IR/Serial ports for IR or Serial-controlled devices connected to a Card Frame 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.