Hi,
I need to write some code to do the following:
1. When the start button is pressed, select online cleaning
2. If online cleaning is selected, go to sub-routine 'Online 1'
3. In 'Online 1' sub-routine, after Timer1 (10 sec) close Valve 10 for 10 sec.
After that, open Valve 10 and close valve 11 for 10 sec, and so on until valve
19.
4. After Valve 19 opens, wait for Timer2 (20 sec) and then goto 'Online 2'.
5. In 'Online 2' subroutine, after Timer1 (10 sec) close Valve 20 for 10 sec.
After that, open Valve 20 and close valve 21 for 10 sec, and so on until valve
29.
6. And so on, upto 'Online 5' sub-routine.
I need help with Steps 3-6.
I'm confused about the sequencing/looping, the number of timers I need. I want a short, smart way to program this logic...
I need to write some code to do the following:
1. When the start button is pressed, select online cleaning
2. If online cleaning is selected, go to sub-routine 'Online 1'
3. In 'Online 1' sub-routine, after Timer1 (10 sec) close Valve 10 for 10 sec.
After that, open Valve 10 and close valve 11 for 10 sec, and so on until valve
19.
4. After Valve 19 opens, wait for Timer2 (20 sec) and then goto 'Online 2'.
5. In 'Online 2' subroutine, after Timer1 (10 sec) close Valve 20 for 10 sec.
After that, open Valve 20 and close valve 21 for 10 sec, and so on until valve
29.
6. And so on, upto 'Online 5' sub-routine.
I need help with Steps 3-6.
I'm confused about the sequencing/looping, the number of timers I need. I want a short, smart way to program this logic...