Programming

IR/Serial Send_Commands (Cont.)

Command

Description

 

 

SET IO LINK

The I/O status is automatically reported on channel 255 on the IR port. The I/O

Link an IR or Serial port to a

channel is used for power sensing (via a PCS or VSS). A channel of zero

selected I/O channel for use

disables the I/O link.

with the 'DE', 'POD', 'PON',

Syntax:

and 'POF' commands.

SEND_COMMAND <DEV>,"'SET IO LINK <I/O number>'"

 

Variable:

 

I/O number = 1 - 8. Setting the I/O channel to 0 disables the I/O link.

 

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 an IR port to either IR, Serial, or Data mode.

Set the IR/Serial ports for IR

Note: IR DATA Mode works best when using both a lower baud rate and a

or Serial-controlled devices

short cable length (< 10 feet).

connected to a CardFrame or

Syntax:

NetModule.

SEND_COMMAND <DEV>, 'SET MODE <mode>'"

 

 

Variable:

 

mode = IR, SERIAL, or DATA.

 

Example:

 

SEND_COMMAND IR_1,"'SET MODE IR'"

 

Sets the IR_1 port to IR mode for IR control.

 

 

SP

You can use the 'CTON' to set pulse lengths and the 'CTOF' for time Off

Generate a single IR pulse.

between pulses.

 

Syntax:

 

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

 

Variable:

 

code = IR code value 1 - 252 (253-255 reserved).

 

Example:

 

SEND_COMMAND IR_1, "'SP',25"

 

Pulses IR code 25 on IR_1 device.

 

 

XCH

Syntax:

Transmit the selected chan-

SEND_COMMAND <DEV>,"'XCH <channel>'"

nel IR codes in the format/

Variable:

pattern set by the 'XCHM'

channel = 0 - 999.

send command.

Example:

 

 

For detailed usage examples, refer to the 'XCHM' command.

 

 

140

NI-3101-SIG Signature Series NetLinx Integrated Controller

Page 150
Image 150
AMX NI-3101-SIG manual SET IO Link, SET Mode, Short cable length 10 feet, Xch