|Top Previous Next|
PowerDown will switch the power completely off to the RTCU and subsequently switch it on again after a number of seconds. When the device starts again, the program starts from the beginning - just as if the power had been reconnected.
On devices that support an IGNITION input, the device will also power up if this input goes high while the device is in power down mode. If the IGNITION input is high when the PowerDown() function is called, an error code will be returned.
seconds : DINT (0..2147483648)
Number of seconds to sleep.
-1 will keep the device powered down forever (until the power is recycled or the ignition input is triggered).
If the power-down succeeds, the device will power down for the specified time.
If the function does not succeed, it will return with:
FUNCTION PowerDown : INT;