Just something to tryCode:if EL2_Enable = 1 THEN ; EL2 = EL1 current values - set overrun value EL2_100th = EL1_100TH - Event1_OT_100th+100 if EL2_100th<100 then EL1_Seconds=EL1_Seconds-1 Else EL2_100th=EL2_100th-100 endif EL2_Seconds = EL1_Seconds - Event1_OT_sec+60 if EL2_Seconds<60 then EL1_Minutes=EL1_Minutes-1 else EL2_Seconds =EL2_Seconds -60 endif EL2_Minutes = EL1_Minutes - Event1_OT_Min +60 if EL2_Minutes<60 then EL1_Hours=EL1_Hours-1 else EL2_Minutes =EL2_Minutes -60 endif EL2_Hours = EL1_Hours - Event1_OT_hour+24 if EL2_Hours<24 then EL1_Days=EL1_Days-1 else EL2_Hours =EL2_Hours -24 endif EL2_Days = EL1_Days - Event1_OT_Day endif
Bookmarks