Io Device - AMX CAFE DUET STANDARD NETLINX API (SNAPI) COMPONENTS AND LISTENERS Instruction Manual

Standard netlinx api (snapi) r 1.8.0 components/listeners
Table of Contents

Advertisement

IO Device

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cafe duet

Table of Contents