Programming

IR/Serial Send_Commands (Cont.)

CH

Syntax:

Sends IR pulses to select a

SEND_COMMAND <DEV>," 'CH',<Number>"

channel. All channels below

Variable:

100 are transmitted as two

Number = 0-199

digits. If the IR code for

 

ENTER (#21) is loaded, an

Example:

Enter will follow the number. If

SEND_COMMAND IR_1," 'CH',18"

the channel is greater than or

The Controller performs the following:

equal to 100, the IR function

 

127 is generated for the one

• Transmits IR signals for 1 (IR code 11). The transmit time is set with the

hundred digit.

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 Controller performs steps 5 and 6.

 

• Transmits IR signals for Enter (IR code 21).

 

• Waits for the time set with the CTOF command elapses.

 

 

CP

Syntax:

Clears buffered IR

SEND_COMMAND <DEV>,"'CP',<Number>"

commands, and sends a

Variable:

single IR pulse. You can set

Number = 1-252 (253-255 reserved)

the Pulse and Wait times with

 

the CTON and CTOF

Example:

commands.

SEND_COMMAND IR_1,"'CP',2"

 

 

Clears the active/buffered commands and pulses IR_1 port's channel 2.

 

 

CTOF

This command is associated with the SP (single pulse) and CP (clear pulse)

Sets the duration of off time

commands.

 

(no signal) between IR pulses

Syntax:

for channel and IR function

SEND_COMMAND <DEV>,"'CTOF',<Time>"

transmissions. Off time

Variable:

settings are stored in

 

non-volatile memory. The

Time = 0-255 in tenths of a second increments

factory default for channel off

Example:

time is 5 (.5 second).

SEND_COMMAND IR_1,"'CTOF',10"

 

 

Sets the off time between each IR pulse to 1 second.

 

 

CTON

Syntax:

Sets the total time of IR

SEND_COMMAND <DEV>," 'CTON',<Time>"

pulses transmitted, and is

Variable:

stored in non-volatile

Time = 0-255 in tenths of a second increments; default = 5 (.5 second).

memory.

 

 

Example:

 

SEND_COMMAND IR_1,"'CTON',20"

 

Sets the IR pulse duration to 2 seconds.

NetLinx Integrated Controllers

119

 

 

 

 

Page 125
Image 125
AMX NI-2000, NI-3000 Sendcommand IR1, CH,18, Sendcommand IR1,CP,2, Sendcommand IR1,CTOF,10, Sendcommand IR1,CTON,20