Programming

 

IR/Serial Send_Commands (Cont.)

 

 

Command

Description

 

 

CH

All channels below 100 are transmitted as two digits. If the IR code for ENTER

Send IR pulses for the

(function #21) is loaded, an Enter will follow the number. If the channel is

selected channel.

greater than or equal to (>=) 100, then IR function 127 or 20 (whichever exists)

 

is generated for the one hundred digit. Uses 'CTON' and 'CTOF' times for pulse

 

times.

 

Syntax:

 

SEND_COMMAND <DEV>,"'CH',<channel number>"

 

Variable:

 

channel number = 0 - 199.

 

Example:

 

SEND_COMMAND IR_1,"'CH',18"

 

This device performs the following:

 

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

 

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

You can set the Pulse and Wait times with the 'CTON' and 'CTOF' commands.

Halt and Clear all active or

Syntax:

buffered IR commands, and

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

then send a single IR pulse.

Variable:

 

code = IR port's channel value 0 - 252 (253 - 255 reserved).

 

Example:

 

SEND_COMMAND IR_1,"'CP',2"

 

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

 

 

CTOF

Off time settings are stored in non-volatile memory. This command sets the

Set the duration of the Off

delay time between pulses generated by the 'CH' or 'XCH' send commands in

time (no signal) between IR

tenths of seconds.

pulses for channel and IR

Syntax:

function transmissions.

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

 

Variable:

 

time = 0 - 255. Given in 1/10ths of a second. Default is 5 (0.5 seconds).

 

Example:

 

SEND_COMMAND IR_1,"'CTOF',10"

 

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

 

 

CTON

This command sets the pulse length for each pulse generated by the 'CH' or

Set the total time of IR pulses

'XCH' send commands in tenths of seconds.

transmitted and is stored in

Syntax:

non-volatile memory.

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

 

Variable:

 

time = 0 - 255. Given in 1/10ths of a second. Default is 5 (0.5 seconds).

 

Example:

 

SEND_COMMAND IR_1,"'CTON',20"

 

Sets the IR pulse duration to 2 seconds.

 

 

NI-3101-SIG Signature Series NetLinx Integrated Controller

137

 

 

Page 147
Image 147
AMX NI-3101-SIG manual Ctof, Cton