pwerboost Posted January 25, 2017 Share Posted January 25, 2017 Hi guys. i need help with a program basically i need a program for my irrigation system. The program needs to open a shut off valve first then start zone 1 for 5 min then move to next zone, total 5 zones, then repeat the whole process 4 times and after the Repeat command is completed, i need to close the shutoff valve. I can get almost everything to work but i don't know how to execute an order only when the Repeat cycle is completed. Thanks Link to comment
andyf0 Posted January 25, 2017 Share Posted January 25, 2017 (edited) To end a repeat cycle add a "Repeat 1 time" to the end of the repeat body. Then you can add another program line to shut off your valve. Edited January 25, 2017 by andyf0 Link to comment
pwerboost Posted January 25, 2017 Author Share Posted January 25, 2017 The only place where i have to add the "Repeat command" is at the end and none at the beginning? Link to comment
andyf0 Posted January 25, 2017 Share Posted January 25, 2017 (edited) You said you had it working apart from the last command to close the valve. Open Valve Repeat 4 times Start Zone 1 Wait 5 minutes Start Zone 2 Wait 5 minutes ...... Repeat 1 time Close Valve Edited January 25, 2017 by andyf0 Link to comment
pwerboost Posted January 25, 2017 Author Share Posted January 25, 2017 Thank you for the explanation sir, one last question. It would matter if i put Repeat 4 time at the end or it has to say Repeat 1 time, i just wonder what would happen. Link to comment
stusviews Posted January 25, 2017 Share Posted January 25, 2017 Only statement that occur after the Repeat command are repeated. Link to comment
pwerboost Posted January 25, 2017 Author Share Posted January 25, 2017 Thank you guys! Link to comment
Recommended Posts