```
PROGRAM SimpleTimer
VAR
bStartStop : BOOL := FALSE;
bReset : BOOL := FALSE;
nSeconds : INT := 0;
nMinutes : INT := 0;
END_VAR
IF bStartStop THEN
IF NOT tmr1000.bEnable THEN
tmr1000(IN := TRUE, PT := T#1S);
ELSE
nSeconds := tmr1000.nCurrentValue MOD 60;
nMinutes := tmr1000.nCurrentValue DIV 60;
END_IF
ELSEIF bReset THEN
tmr1000(IN := FALSE);
nSeconds := 0;
nMinutes := 0;
END_IF
```