Inputoutput Device Component - 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

InputOutput Device Component

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

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Cafe duet

Table of Contents