ok well EL0 is counting up , EL1 and EL3 are copys of EL0
EL4 is the time left in the event
Event1_OT = time duration of event
Event2_OT = Time when to display the timeleft clock
i
f EVent1_OT all 0 then disable time left clock
if Event2_OT all 0 then no timeleft clock
Event2_OT can not be > Event1_OT set time
Code:
if Event1_OT_Day = 0 and Event1_OT_hour = 0 and Event1_OT_Min = 0 and _ ' if all values are 0 , then dont enable the overrun timer
Event1_OT_sec = 0 and Event1_OT_100th = 0 then
EL2_Enable = 0 ' Disable El2 Counter
EL2_Allow = 0 ' clear Flag so EL4 wont start
else
EL2_Allow = 1 ' Event1 setting Higher than 0 so allow EL4 to be enabled if Event2 settings are higher than 0
endif
' ---------------------
if Event2_OT_Day = 0 and Event2_OT_hour = 0 and Event2_OT_Min = 0 and _
Event2_OT_sec = 0 and Event2_OT_100th = 0 then
EL4_Allow = 0 ' disable Event End Timer - EL4
else
EL4_Allow = 1 ' Allow Event End Timer - EL4
endif
if EL2_Allow = 1 and EL4_Allow = 1 then ' if Event1 times set and Event2 times set then allow EL4_enable to start Event End timer
if EL1_Days <= Event2_OT_Day and EL1_Hours <= Event2_OT_Hour and _
EL1_Minutes <= Event2_OT_Min and EL1_Seconds <= Event2_OT_Sec and _
EL1_100th <= Event2_OT_100th then EL4_Enable = 1 ' show clock when time left in event
all i have so far
Bookmarks