AMX NXI Network Card User Manual


 
Programming
21
NXI NetLinx Integrated Controller
Input/Output Send_Commands
The following Send_Commands program the I/O ports on the NXI.
IR/Serial Send_Commands (Cont.)
ZAP HIGH
Deletes all IR data stored in
the NXI ports 12-15.
Syntax:
SEND_COMMAND <DEV>, 'ZAP HIGH'
Example:
SEND_COMMAND IR_4, 'ZAP HIGH'
Deletes IR commands in ports 12-15 of the IR_4 device.
ZAP LOW
Deletes all IR data stored in
the NXI ports 8-11.
Syntax:
SEND_COMMAND <DEV>, 'ZAP LOW'
Example:
SEND_COMMAND IR_1, 'ZAP LOW'
Deletes IR commands in ports 8-11 of the IR_1 device.
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.