Io Device - AMX CAFE DUET STANDARD NETLINX API (SNAPI) DEVICES Instruction Manual

Standard netlinx api (snapi) r 1.8.0 devices
Table of Contents

Advertisement

IO Device

IIODeviceComponent
IIODeviceComponentListener
IModuleComponent
IModuleComponentListener
Name: IO Device
Interface: IIODevice
IO Device Functions
Name
getIOChannelCount()
getIOChannelDirection(io-chan)
getIOChannelInputSense(io-chan)
getIOChannelState(io-chan)
setIOChannelDirection(io-chan, io-dir)
setIOChannelInputSense(io-chan,io-sense)
setIOChannelState(io-chan, io-state)
processIOChannelCountEvent(count)
processIOChannelDirectionEvent(io-dir)
processIOChannelInputSenseEvent(io-
sense)
processIOChannelStateEvent(io-state)
Standard NetLinx API (SNAPI) R 1.8.0
Component
Channel Level Command
IIODeviceComponent
IIODeviceComponent
IIODeviceComponent
IIODeviceComponent
IIODeviceComponent
IIODeviceComponent
IIODeviceComponent
IIODeviceComponentListener
IIODeviceComponentListener
IIODeviceComponentListener
IIODeviceComponentListener
Constant
?IOCHANNELCOUNT
?IOCHANNELDIREC-
TION-<io-chan>
?IOCHANNELINPUT-
SENSE-<io-chan>
?IOCHANNELSTATE-
<io-chan>
IOCHANNELDIREC-
TION-<io-chan>,<io-
dir>
IOCHANNELINPUT-
SENSE-<io-chan>,<io-
sense>
IOCHANNELSTATE-
<io-chan>,<io-state>
IOCHANNELCOUNT-
<count>
IOCHANNELDIREC-
TION-<io-chan>,<io-
dir>
IOCHANNELINPUT-
SENSE-<io-chan>,<io-
sense>
IOCHANNELSTATE-
<io-chan>,<io-state>
Notes
Query for the number of channels on an IO
device, responds with IOCHANNEL-
COUNT
Query for direction of the I/O channel,
where <io-chan> is the integer channel
number, responds with IOCHANNEL-
DIRECTION
Query for input sense of the I/O channel,
where <io-chan> is the integer channel
number, responds with IOCHANNELIN-
PUTSENSE
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
Response to ?IOCHANNELCOUNT, where
<count> is an integer value
Response to ?IOCHANNELDIRECTION,
where <io-chan> is the integer channel
number and <io-dir> is INPUT or OUTPUT
Response to ?IOCHANNELINPUT-
SENSE, 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
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cafe duet

Table of Contents