Input/output send_commands – AMX NetLinx Integrated Controllers NI-3000 User Manual

Page 129

Advertising
background image

Programming

123

NetLinx Integrated Controllers

Input/Output Send_Commands

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

I/O SEND_COMMANDS

GET INPUT

Gets the input channels
active state.

An active state can be high (logic high) or low (logic low or contact closure).
Channel changes, Pushes, and Releases generate reports based on their
active state.

Syntax:

SEND_COMMAND <DEV>,'GET INPUT <CHAN>'

Variable:

CHAN = 1-8

Example:

SEND_COMMAND IO,'GET INPUT 1'

Gets the I/O port's active state.

System response:

INPUT1 ACTIVE HIGH

SET INPUT

Sets the input channel's
active state.

An active state can be high (logic high) or low (logic low or contact closure).
Channel changes, Pushes, and Releases generate reports based on their
active state. Setting an input to ACTIVE HIGH will disable the output for that
channel.

Syntax:

SEND_COMMAND <DEV>,'SET INPUT <Channel> <State>'

Variable:

State = LOW or HIGH

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.

Advertising
This manual is related to the following products: