Relay Device Functions (Cont.)
Name
processPassbackEvent(byte[])
getRelayChannelCount()
getRelayChannelState(rly-chan)
setRelayChannelState(rly-chan, rly-state)
processRelayChannelCountEvent(count)
processRelayChannelStateEvent(rly-state)
218
Component
Channel Level Command
IModuleComponentListener
IRelayDeviceComponent
IRelayDeviceComponent
IRelayDeviceComponent
IRelayDeviceComponentListener
IRelayDeviceComponentListener
Constant
?RELAYCHANNEL-
COUNT
?RELAYCHANNEL-
STATE-<rly-chan>
RELAYCHANNEL-
STATE-<rly-chan>,<rly-
state>
RELAYCHANNEL-
COUNT-<count>
RELAYCHANNEL-
STATE-<rly-chan>,<rly-
state>
Notes
When passback is on, each string received
form the device is sent to the NetLinx pro-
gram as a string. Use a DATA_EVENT
event with a STRING handler to caputre
the data from the device.
Query for the number of channels on a
relay device, responds with RELAYCHAN-
NELCOUNT
Query for the relay channel state, where
<rly-chan> is the integer channel number,
responds with RELAYCHANNELCOUNT
Sets the relay channel state, where <rly-
chan> is the integer channel number and
<rly-state> is ON or OFF
Response to ?RELAYCHANNELCOUNT,
where <count> is an integer value
Response to ?RELAYCHANNELSTATE,
where <rly-chan> is the integer channel
number and <rly-state> is ON or OFF
Standard NetLinx API (SNAPI) R 1.8.0
Need help?
Do you have a question about the CAFE DUET STANDARD NETLINX API (SNAPI) DEVICES and is the answer not in the manual?
Questions and answers