User Guide
107
Standard NetLinx API (SNAPI) R 1.8.0
Power
Power Listener State Charts
Component
Name: Power
Interface: IPowerComponent
IPowerComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
cyclePower() 9 POWER Momentary Function Channel: Cycle power when channel is activated
setPower(OFF) 28 PWR_OFF Momentary Function Channel: Power is turned off when channel is activated
setPower(ON) 27 PWR_ON Momentary Function Channel: Power is turned on when channel is activated
setPower(ps) 255 POWER_ON Discrete Function Channel: Power is on while channel is active
setPowerSen-
sor(nld,nIOChan)
IOLINK-<dps>,<channel> Associate a Power Sensor with the device where <dps> is the DPS in string form, i.e.
17:1:0, and <channel> is the channel on the IO device to which the power sensor is
connected.
Listener
Name: Power Listener
Interface: IPowerComponentListener
IPowerComponentListener
Listener Functions:
Name: Channel: Level: Command: Constant: Notes:
processPowerEvent 255 POWER_FB Feedback Channel: Power state changed, power is on while channel is on
processPowerEvent
State Channel 255
OFF OFF
ON ON