![background image](http://html1.mh-extra.com/html/amx/netlinx-integrated-nxi/netlinx-integrated-nxi_operation-reference-manual_2937861022.webp)
Programming
18
NXI NetLinx Integrated Controller
IR/Serial Send_Commands (Cont.)
PON
Turns on a device, based on
input Link.
If at any time the IR sensor reads that the device is off (such as if one turned it
off manually at the front panel), the card automatically attempts to turn the
device back on. If three attempts fail, card will continue executing commands in
the buffer. If there are no commands in the buffer, the card will continue to try
until a 'POF' or 'POD' command is received. If it fails to turn the device on, a
PUSH and RELEASE is made on channel 254 to indicate a power failure error.
Channel 255 changes are disabled after receipt of this command.
You can only use the PON and POF commands when an IR device has a
linked I/O channel.
Syntax:
SEND_COMMAND <DEV>,'PON'
Example:
SEND_COMMAND IR_1,'PON'
Sends power up IR commands 27 or 9 to the IR_1 port.
PTOF
Sets the time between power
pulses in .10-second incre-
ments, and is stored in per-
manent memory.
Syntax:
SEND_COMMAND <DEV>," 'PTOF',<Time>"
Variable:
Time = 0-255 in tenths of a second increments; default = 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
Sets the duration of power
pulses in .10-second incre-
ments. Time is stored in per-
manent 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 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.