Tset 1,0 //Initializes counter to be off Ontimer 1,"@Count()" // will run only when timer 1 is turned on Onchange "Start","@Timer_start()" // Will turn on the timer Onchange "Counter","@Ten_Minute_Delay()" // will check if you turn on the timer Function Count() counter@ = counter@ + 1 // will keep incrementing each second Endfn Function Timer_Start() if Start@ = 0 Then Tset 1,0 // Turns timer off Counter@ = 0 // sets timer back to 0 endif if Start@ = 1 Then Tset 1,1 // Turns on the timer and will go off every 1 second endif Endfn Function Offline_Reboot() If counter@ > 600 Then // will execute after 600 seconds Tset 1,0 // Turns Timer off counter@ = 0 // resets the counter // // Put your code here // Endif ENDFN