- Joined
- May 28, 2017
- Messages
- 986
- Reaction score
- 444
I am trying to write code for an automatic water change. It is working currently as I have two outlets programmed to work based on time. What I would like to do is set up the outlets so the work off each other and water changes can be completed using a feed cycle or virtual outlet.
Right now I can not manually trigger the event to occur as it is based off time and I have to wait for the preset times for the water changes to occur.
I have one pump on one outlet (PumpDrain), that pumps water out daily, based on a timer, and a float switch. When the preset time comes on the outlet turns the pump on until a low limit switch is trigger which shuts the pump off. Then the timer turns the outlet off after a few minutes. Then after a few more minutes, one pump (PumpFill) turns on and pumps fresh salt water into the sump until it reaches the normal operation switch. Then after a few minutes it turns off.
I would like to make a task that does the same thing but doesn’t work off time. Basically, when PumpDrain turns off from draining the sump, the act of PumpDrain turning off triggers PumpFill to turn on. Once PumpFill reaches normal operating level, it turns the outlets off until the next scheduled water change or I manually trigger the task to occur.
I have never worked with tasks or anything like that. Everything I have done so far has been through advanced code at each outlet. Would this be better suited for a virtual outlet or task?
Right now I can not manually trigger the event to occur as it is based off time and I have to wait for the preset times for the water changes to occur.
I have one pump on one outlet (PumpDrain), that pumps water out daily, based on a timer, and a float switch. When the preset time comes on the outlet turns the pump on until a low limit switch is trigger which shuts the pump off. Then the timer turns the outlet off after a few minutes. Then after a few more minutes, one pump (PumpFill) turns on and pumps fresh salt water into the sump until it reaches the normal operation switch. Then after a few minutes it turns off.
I would like to make a task that does the same thing but doesn’t work off time. Basically, when PumpDrain turns off from draining the sump, the act of PumpDrain turning off triggers PumpFill to turn on. Once PumpFill reaches normal operating level, it turns the outlets off until the next scheduled water change or I manually trigger the task to occur.
I have never worked with tasks or anything like that. Everything I have done so far has been through advanced code at each outlet. Would this be better suited for a virtual outlet or task?