AMX NetLinx Integrated Controllers NI-3000 User Manual

Page 127

Advertising
background image

Programming

121

NetLinx Integrated Controllers

IR/Serial Send_Commands (Cont.)

PTOF

Sets the time between power
pulses in .10-second
increments, and is stored in
permanent 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
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 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.

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 (253-255 reserved)

Example:

SEND_COMMAND IR_1, " 'SP',25"

Pulses IR code 25 on IR_1 device.

XCH

Transmits IR code in the
format set with the XCHM
mode command.

Syntax:

SEND_COMMAND <DEV>,'XCH <Channel>'

Variable:

Channel = 0-999

Advertising
This manual is related to the following products: