the reason for the enable is that until the time = > the setting , the output is not displayed , also the enable flag is used for other routines , hardware options and other timers., also if the values of the Set time all are 0 then that disables the flag for this timer for display on the Glcd's and other outputs

there are several timer clock options that need to show - time in secs only , mins+ sec only , hours,min, sec only ,currently these options turn off / on flags inside the main up/ down timer counter code to enable hours, mins ,sec changes

by changing the values to 59 from 60 for say the secs this results in the following

if set_hour= 0 set_min = 0, Set_sec = 10

if main elapsed time now shows = 0 hour, 1 min , 0 sec

If OT_sec = 60 - Set_sec + Seconds(main elapsed ) then

OT display = 50 (60 - 10 + 0)

if OT_sec = 59 - Set_sec + Seconds(main elapsed ) then

OT display = 49 (59 - 10 + 0)

if the event time was set for 10 sec and the main time is now 1 min then the overtime should read 50secs , not 49 sec

I think i have this correct , but i am still testing
cheers

Sheldon