gregbazar
Member
I have decided to learn PLCs - just for fun, and thought I would have a crack at my sprinkler system.
Here is what I have:
- 11 sprinkler zones, 2 drip zones
- Automation Direct D06 PLC
- 24VAC power via Y0-Y16 relays
I have a basic system written for single zones. I created a minute counter, and a day counter that activate Y0 for drip, and Y1 for sprinklers. Every X days, the sprinkler zone runs for Y minutes.
It all works great for the single zone that I have so far.
So here is my question. I want to cycle through all the zones in each system (1-11 for sprinkler, and 1-2 for drip).
What is the best way to do that? I initially thought of using an OUT coil that used a pointer do discover what zone should be watered right now.
Since that doesn't seem possible, I thought I would ask for help.
How can I cyle through each of the zones, after the previous finished without writing a whole new block of code for each zone, with seperate timers for each?
Thanks for helping a newbie.
Greg
Here is what I have:
- 11 sprinkler zones, 2 drip zones
- Automation Direct D06 PLC
- 24VAC power via Y0-Y16 relays
I have a basic system written for single zones. I created a minute counter, and a day counter that activate Y0 for drip, and Y1 for sprinklers. Every X days, the sprinkler zone runs for Y minutes.
It all works great for the single zone that I have so far.
So here is my question. I want to cycle through all the zones in each system (1-11 for sprinkler, and 1-2 for drip).
What is the best way to do that? I initially thought of using an OUT coil that used a pointer do discover what zone should be watered right now.
Since that doesn't seem possible, I thought I would ask for help.
How can I cyle through each of the zones, after the previous finished without writing a whole new block of code for each zone, with seperate timers for each?
Thanks for helping a newbie.
Greg