MAIN: WHILE (ifSetUpHours) ;While the input is actived: IF tDelay ;if the timer is expired tDelay = 500 ;reload the timer, swHours = swHours + 1 ;increase the hours counter. IF swHours GE 168 ;If the hours are more than 167 (great equal than 168) swHours = 0 ;reset the hours counter. ENDIF ENDIF WAIT 1 ENDWHILE WHILE (ifSetUpMinutes) ;While the input is actived: IF tDelay ;if the timer is expired tDelay = 500 ;reload the timer, sbMinutes = sbMinutes + 1 ;increase the minutes counter. IF sbMinutes GE 60 ;If the minutes are more than 59 (great equal than 60) sbMinutes = 0 ;reset the minutes counter. ENDIF ENDIF WAIT 1 ENDWHILE WAIT 1 JUMP MAIN END