zpPowerDown (Function) |
Top Previous Next |
The device enters Zero Power mode and waits for a specific event to occur before restart. Zero Power mode is similar to pmPowerDown but uses much less power which allows operation for several years solely from the on-board battery of the device.
The device will wake up and reboot when one of several events occur:
•Vibration. •Timeout. •Digital input 1 change (controlled by dip-switch). •Digital input 2 change (controlled by dip-switch). •External power applied. •Hardware reset (reset switch).
Please refer to the technical manual for the RTCU SX1 series for detailed information on the configuration of the digital inputs.
After exiting the Zero Power mode, the wake-up cause can be received by querying the boot event with zpBootEvent.
Input: Time: DINT (-1 .. 2147483647) (default -1) This is the time to power down in minutes. Leave this empty if not used.
Vibration: BOOL (default FALSE) This enables vibration detection (see pmSetVibrationSensivity for adjusting sensitivity).
Returns: None.
Declaration: FUNCTION zpPowerDown;
Example: INCLUDE rtcu.inc |