public static void TimeOut1(Object myObject, EventArgs myEventArgs) { int cycleNo = Globals.Tags.InCycle.Value; int timer = Globals.Tags.InCycleTimer.Value; int loop = Globals.Tags.LoopCounter.Value; int isOn = Globals.Tags.prewashRestTime.Value; int isOn1 = Globals.Tags.prewashWaterTime.Value; if (timer <= 0) { if (isOn == 0 && isOn1 == 0) { loop = 0; Stop(); } else if (loop > 0) { CycleTimerScript.Start(); } else { Stop(); } } }
public static void TimeOut1(Object myObject, EventArgs myEventArgs) { int cycleNo = Globals.Tags.InCycle.Value; int timer = Globals.Tags.InCycleTimer.Value; int loop = Globals.Tags.LoopCounter.Value; if (timer <= 0) { if (loop >= 0) { CycleTimerScript.Start(); } } }