User Guide

61
Standard NetLinx API (SNAPI) R 1.7.0
InputOutput
Component
Name: InputOutput
Interface: IIOComponent
IIOComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
getIOCount() ?IOCOUNT Query for the number of channels on an IO device, responds with IOCOUNT
getIODirection(io-chan) ?IODIRECTION-<io-chan> Query for direction of the I/O channel, where <io-chan> is the integer channel number
getIOState(io-chan) ?IOSTATE-<io-chan> Query for state of the I/O channel, where <io-chan> is the integer channel number
setIODirection(io-chan,
INPUT)
IODIRECTION-<io-chan>,INPUT Sets the I/O channel direction to INPUT, where <io-chan> is the integer channel num-
ber
setIODirection(io-chan,
io-dir)
IODIRECTION-<io-chan>,<io-dir> Sets the I/O channel direction, where <io-chan> is the integer channel number and <io-
dir> is INPUT or OUTPUT
setIODirection(io-chan,
OUTPUT)
IODIRECTION-<io-chan>,OUTPUT Sets the I/O channel direction to OUTPUT, where <io-chan> is the integer channel
number
setIOState(io-chan, io-
state)
IOSTATE-<io-chan>,<io-state> Sets the I/O channel state, where <io-chan> is the integer channel number and <io-
state> is ON or OFF
setIOState(io-chan, OFF) IOSTATE-<io-chan>,OFF Response to ?IOCOUNT, where <io-count> is the integer number of I/O channels
setIOState(io-chan, ON) IOSTATE-<io-chan>,ON Response to ?IOSTATE, where <io-chan> is the integer channel number and <io-
state> is ON or OFF
Listener
Name: InputOutput Listener
Interface: IIOComponentListener
IIOComponentListener
Listener Functions:
Name: Channel: Level: Command: Constant: Notes:
processIODirectionEvent IOCOUNT-<count> Response to ?IOCOUNT, where <count> is an integer value
processIOStateEvent IODIRECTION-<io-chan>,INPUT Response to ?IODIRECTION, where <io-chan> is the integer channel number
processIOStateEvent IODIRECTION-<io-chan>,<io-dir> Response to ?IODIRECTION, where <io-chan> is the integer channel number and <io-
dir> is INPUT or OUTPUT
processIOStateEvent IODIRECTION-<io-chan>,OUTPUT Response to ?IODIRECTION, where <io-chan> is the integer channel number