User manual
IEC61131 User and Reference Manual 
April 22, 2008     
368 
sleep 
Put controller in sleep mode 
Description 
The sleep function places the SCADAPack controller into sleep mode. Sleep mode reduces 
power consumption to a minimum by halting the microprocessor clock and shutting down the 
power supply.  
Note:  SCADAPack32 and SCADAPack32P controllers do not support the sleep function. 
Application programs containing the sleep function will continue to execute but the 
controller will not enter the sleep mode. 
All programs halt until the controller resumes execution. All output points turn off while the 
controller is in sleep mode. 
The controller will resume execution when any of the following conditions occur. 
Hardware Reset  Application programs execute from start of program. 
Real Time Clock Alarm  Program execution continues from point sleep function was 
executed. 
External Interrupt  Program execution continues from point sleep function was 
executed. 
LED Power Button  Program execution continues from point sleep function was 
executed. 
Hardware Counter Rollover  Software portion of counter is incremented. Program 
execution continues from point sleep function was executed. 
enableSleepMode
typeOfAlarm
houre
minute
second
sleep
WakeSource
Arguments 
Inputs 
Type 
Description 
enableSleepMode 
Boolean 
The controller is put in the sleep mode when TRUE. 
This input must be set to FALSE for controller to 
operate normally. 
typeOfAlarm 
Integer 
Type of real time clock alarm 
0 = no alarm 
1 = absolute time alarm 
2 = elapsed time alarm 
Hour 
Integer 
Real time clock hours for absolute or elapsed time 
alarm, valid values 0 to 23. 










