Programming

IR/Serial Send_Commands (Cont.)

Command

Description

 

 

XCHM (Cont.)

Mode 6 Example: <x><x><x><x>

 

SEND_COMMAND IR_1,"'XCH 3'"

 

Transmits the IR code as 0-0-0-3.

 

SEND_COMMAND IR_1,"'XCH 34'"

 

Transmits the IR code as 0-0-3-4.

 

SEND_COMMAND IR_1,"'XCH 343'"

 

Transmits the IR code as 0-3-4-3.

 

SEND_COMMAND IR_1,"'XCH 1343'"

 

Transmits the IR code as 1-3-4-3.

 

 

Input/Output Send_Commands

The following Send_Commands program the I/O ports on the Integrated Controller.

In these examples: <DEV> = device.

I/O ports: Port 17.

Channels: 1 - 8 I/O channels.

I/O Send_Commands

GET INPUT

An active state can be high (logic high) or low (logic low or contact closure).

Get the active state for the

Channel changes, Pushes, and Releases generate reports based on their

selected channels.

active state. The port responds with either 'HIGH' or 'LOW'.

 

Syntax:

 

SEND_COMMAND <DEV>,"'GET INPUT <channel>'"

 

Variable:

 

channel = Input channel 1 - 8.

 

Example:

 

SEND_COMMAND IO,"'GET INPUT 1'"

 

Gets the I/O port's active state.

 

The system could respond with:

 

INPUT1 ACTIVE HIGH

 

 

SET INPUT

An active state can be high (logic high) or low (logic low or contact closure).

Set the input channel's active

Channel changes, Pushes, and Releases generate reports based on their

state.

active state. Setting an input to ACTIVE HIGH will disable the ability to use that

 

channel as an output.

 

Syntax:

 

SEND_COMMAND <DEV>,"'SET INPUT <channel> <state>'"

 

Variable:

 

channel = Input channel 1 - 8.

 

state = Active state HIGH or LOW (default).

 

Example:

 

SEND_COMMAND IO,"'SET INPUT 1 HIGH'"

 

Sets the I/O channel to detect a high state change, and disables output on the

 

channel.

 

 

142

NI-3101-SIG Signature Series NetLinx Integrated Controller

Page 152
Image 152
AMX NI-3101-SIG manual Input/Output SendCommands, GET Input, SET Input