User Guide

117
Standard NetLinx API (SNAPI) R 1.8.0
Relay Device
Component
Name: Relay Device
Interface: IRelayDeviceComponent
IRelayDeviceComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
getRelayChannelCount() ?RELAYCHANNELCOUNT Query for the number of channels on a relay device, responds with RELAYCHANNEL-
COUNT
getRelayChannel-
State(rly-chan)
?RELAYCHANNELSTATE-<rly-
chan>
Query for the relay channel state, where <rly-chan> is the integer channel number,
responds with RELAYCHANNELCOUNT
setRelayChannel-
State(rly-chan, rly-state)
RELAYCHANNELSTATE-<rly-
chan>,<rly-state>
Sets the relay channel state, where <rly-chan> is the integer channel number and <rly-
state> is ON or OFF
Listener
Name: Relay Device Listener
Interface: IRelayDeviceComponentListener
IRelayDeviceComponentListener
Listener Functions:
Name: Channel: Level: Command: Constant: Notes:
processRelayChannel-
CountEvent
RELAYCHANNELCOUNT-<count> Response to ?RELAYCHANNELCOUNT, where <count> is an integer value
processRelayChannel-
StateEvent
RELAYCHANNELSTATE-<rly-
chan>,<rly-state>
Response to ?RELAYCHANNELSTATE, where <rly-chan> is the integer channel num-
ber and <rly-state> is ON or OFF