InputOutput
Component
Name: InputOutput
Interface: IIOComponent
Component Functions:
Name:
Channel:
Level: Command:
getIOCount()
getIODirection(io-chan)
getIOState(io-chan)
setIODirection(io-chan,
INPUT)
setIODirection(io-chan,
io-dir)
setIODirection(io-chan,
OUTPUT)
setIOState(io-chan, io-
state)
setIOState(io-chan, OFF)
setIOState(io-chan, ON)
Listener
Name: InputOutput Listener
Interface: IIOComponentListener
Listener Functions:
Name:
Channel:
Level: Command:
processIODirectionEvent
processIOStateEvent
processIOStateEvent
processIOStateEvent
Standard NetLinx API (SNAPI) R 1.7.0
IIOComponent
Constant:
?IOCOUNT
?IODIRECTION-<io-chan>
?IOSTATE-<io-chan>
IODIRECTION-<io-chan>,INPUT
IODIRECTION-<io-chan>,<io-dir>
IODIRECTION-<io-chan>,OUTPUT
IOSTATE-<io-chan>,<io-state>
IOSTATE-<io-chan>,OFF
IOSTATE-<io-chan>,ON
IIOComponentListener
Constant:
IOCOUNT-<count>
IODIRECTION-<io-chan>,INPUT
IODIRECTION-<io-chan>,<io-dir>
IODIRECTION-<io-chan>,OUTPUT
Notes:
Query for the number of channels on an IO device, responds with IOCOUNT
Query for direction of the I/O channel, where <io-chan> is the integer channel number
Query for state of the I/O channel, where <io-chan> is the integer channel number
Sets the I/O channel direction to INPUT, where <io-chan> is the integer channel num-
ber
Sets the I/O channel direction, where <io-chan> is the integer channel number and <io-
dir> is INPUT or OUTPUT
Sets the I/O channel direction to OUTPUT, where <io-chan> is the integer channel
number
Sets the I/O channel state, where <io-chan> is the integer channel number and <io-
state> is ON or OFF
Response to ?IOCOUNT, where <io-count> is the integer number of I/O channels
Response to ?IOSTATE, where <io-chan> is the integer channel number and <io-
state> is ON or OFF
Notes:
Response to ?IOCOUNT, where <count> is an integer value
Response to ?IODIRECTION, where <io-chan> is the integer channel number
Response to ?IODIRECTION, where <io-chan> is the integer channel number and <io-
dir> is INPUT or OUTPUT
Response to ?IODIRECTION, where <io-chan> is the integer channel number
61
Need help?
Do you have a question about the CAFE DUET STANDARD NETLINX API (SNAPI) COMPONENTS AND LISTENERS and is the answer not in the manual?
Questions and answers