User Guide
59
Standard NetLinx API (SNAPI) R 1.7.0
InputOutput Device Component
Component
Name: InputOutput Device Component
Interface: IIODeviceComponent
IIODeviceComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
getIOChannelCount() ?IOCHANNELCOUNT Query for the number of channels on an IO device, responds with IOCHANNELCOUNT
getIOChannelDirec-
tion(io-chan)
?IOCHANNELDIRECTION-<io-
chan>
Query for direction of the I/O channel, where <io-chan> is the integer channel number,
responds with IOCHANNELDIRECTION
getIOChannelInput-
Sense(io-chan)
?IOCHANNELINPUTSENSE-<io-
chan>
Query for input sense of the I/O channel, where <io-chan> is the integer channel num-
ber, responds with IOCHANNELINPUTSENSE
getIOChannelState(io-
chan)
?IOCHANNELSTATE-<io-chan> Query for state of the I/O channel, where <io-chan> is the integer channel number,
responds with IOCHANNELSTATE
setIOChannelDirec-
tion(io-chan, INPUT)
IOCHANNELDIRECTION-<io-
chan>,INPUT
Sets the I/O channel direction to INPUT, where <io-chan> is the integer channel num-
ber
setIOChannelDirec-
tion(io-chan, io-dir)
IOCHANNELDIRECTION-<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
setIOChannelDirec-
tion(io-chan, OUTPUT)
IOCHANNELDIRECTION-<io-
chan>,OUTPUT
Sets the I/O channel direction to OUTPUT, where <io-chan> is the integer channel
number
setIOChannelInput-
Sense(io-chan, HIGH)
IOCHANNELINPUTSENSE-<io-
chan>,HIGH
Sets the I/O channel input sense to HIGH, where <io-chan> is the integer channel num-
ber
setIOChannelInput-
Sense(io-chan, LOW)
IOCHANNELINPUTSENSE-<io-
chan>,LOW
Sets the I/O channel input sense to LOW, where <io-chan> is the integer channel num-
ber
setIOChannelInput-
Sense(io-chan,io-sense)
IOCHANNELINPUTSENSE-<io-
chan>,<io-sense>
Sets the I/O channel input sense, where <io-chan> is the integer channel number and
<io-sense> is HIGH or LOW
setIOChannelState(io-
chan, io-state)
IOCHANNELSTATE-<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
setIOChannelState(io-
chan, OFF)
IOCHANNELSTATE-<io-chan>,OFF Sets the I/O channel state to OFF, where <io-chan> is the integer channel number
setIOChannelState(io-
chan, ON)
IOCHANNELSTATE-<io-chan>,ON Sets the I/O channel state to ON, where <io-chan> is the integer channel number
Listener
Name: InputOutput Device Component Listener
Interface: IIODeviceComponentListener
IIODeviceComponentListener
Listener Functions:
Name: Channel: Level: Command: Constant: Notes:
processIOChannel-
CountEvent
IOCHANNELCOUNT-<count> Response to ?IOCHANNELCOUNT, where <count> is an integer value