Programming

 

IR/Serial Send_Commands (Cont.)

 

 

Command

Description

 

 

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

tenths of seconds.

time (no signal) between IR

Syntax:

pulses for channel and IR

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.

 

 

GET BAUD

The port sends the parameters to the device that requested the information.

Get the IR port’s current

Only valid if the port is in Data Mode (see SET MODE command).

 

DATA mode communication

The port responds with:

parameters.

<port #> <baud>,<parity>,<data bits>,<stop bits>

 

 

Syntax:

 

SEND_COMMAND <DEV>,"'GET BAUD'"

 

Example:

 

SEND_COMMAND IR_1,"'GET BAUD'"

 

System response example:

 

PORT 9 IR,CARRIER,IO LINK 0

 

 

GET MODE

The port responds with: <port #> <mode>,<carrier>,<io link channel>.

Poll the IR/Serial port's

Syntax:

configuration parameters and

SEND_COMMAND <DEV>,"'GET MODE'"

report the active mode

Example:

settings to the device

 

requesting the information.

SEND_COMMAND IR_1,"'GET MODE"

 

The system could respond with:

 

PORT 4 IR,CARRIER,IO LINK 0

 

 

IROFF

Syntax:

Halt and Clear all active or

SEND_COMMAND <DEV>,"'IROFF'"

buffered IR commands being

Example:

output on the designated

SEND_COMMAND IR_1,"'IROFF"

port.

 

Immediately halts and clears all IR output signals on the IR_1 port.

 

 

NI-3101-SIG Signature Series NetLinx Integrated Controller

161

 

 

Page 167
Image 167
AMX NI-3101-SIG manual Ctof, Cton, GET Mode, Iroff