Sure, it'll do that really easy.

Code:
IF MinutesChanged THEN
    MinutesChanged = 0
    IF Minutes = 30 THEN
        ; turn off whatever it is here
        GOSUB ResetTime
    ENDIF
ENDIF