|Top Previous Next|
DeepSleep will stop the processor of the RTCU device for a number of milliseconds - thereby lowering the power consumption considerably.
This function is equivalent to pmDeepSleep().
During deep sleep mode the timers (TP, TON, TOF, etc.) will not be updated and the time spent in deep sleep mode will not be counted.
The real-time clock functions (clockNow, clockGet, etc.) will be updated correctly.
The DeepSleep function will degrade to a Sleep() operation when the RTCU IDE (or any other RACP1-compatible host) is connected to the device. This is to ensure stable communication without interruptions.
delay : INT (0..32767)
Number of milliseconds to sleep.
The actual deep sleep period will be adjusted into steps of 250 ms.