Well, i wanted the ability to automate a water change in my biocube, and am having a mental block with the programming.
Here is what I have planned, and want to make this effective.
- Use maxijet to pump water out of the tank
- Use my mixing pump to pump fresh salt water back into the tank.
- Use 1 float switch with Min time and defer statements regulate how much pumps out of the tank.
- create a virtual outlet to where I turn it on, and it starts the water change process.
Basically, I want to be able to hang the float switch in the display, and hit a button, pump water out for 1:10 minutes with the maxijet 1200 (takes 1 minutes to pump out about 5 gallons of water). After a minute is done, pump fresh saltwater back into the tank from my salt reservoir.
Here is my script so far, I'm having a brain fart, so it isnt complete.
switch 1 OPEN (float at the top)
pump_out (pumping water out of the tank)
switch 1 CLOSED (float at the bottom)
pump_in (Pump water into the tank)
Fall Back OFF
if switch 1 OPEN then pump_out ON
Defer 001:10 then OFF
Min time 010:00 then OFF
If outlet Water_Change = ON then ON
If outlet Water_Change = OFF then OFF
Fall Back OFF
if switch 1 CLOSED then pump_in ON
if switch 1 OPEN then pump_in OFF
defer 003:00 then ON
If outlet Water_Change = ON then ON
If outlet Water_Change = OFF then OFF
virtual outlet
Water_Change
Fall Back OFF
If feed D then on
my return pump, skimmer, and koralia will all be set off for feed D
I want to be able to control the water change via Feed D, or the virtual outlet I can switch on or off from the app on my phone.
So I read this script as:
- when the float switch is at the top, water will pump out of the tank for 1:10 min
- It will stay off for 10 minutes
- It will wait 3 minutes before the fresh salt water will be pumped back into the tank from the time the float switch starts dropping giving adequate time to let it drain out.
- Fresh salt water will then be pumped in until the float switch is back to the top again.
If you see any problems with this let me know. This was my first attempt to try something like this, I just want to make sure this programming is sound before I test it out with water, and make a mess everywhere.
Thanks!
Here is what I have planned, and want to make this effective.
- Use maxijet to pump water out of the tank
- Use my mixing pump to pump fresh salt water back into the tank.
- Use 1 float switch with Min time and defer statements regulate how much pumps out of the tank.
- create a virtual outlet to where I turn it on, and it starts the water change process.
Basically, I want to be able to hang the float switch in the display, and hit a button, pump water out for 1:10 minutes with the maxijet 1200 (takes 1 minutes to pump out about 5 gallons of water). After a minute is done, pump fresh saltwater back into the tank from my salt reservoir.
Here is my script so far, I'm having a brain fart, so it isnt complete.
switch 1 OPEN (float at the top)
pump_out (pumping water out of the tank)
switch 1 CLOSED (float at the bottom)
pump_in (Pump water into the tank)
Fall Back OFF
if switch 1 OPEN then pump_out ON
Defer 001:10 then OFF
Min time 010:00 then OFF
If outlet Water_Change = ON then ON
If outlet Water_Change = OFF then OFF
Fall Back OFF
if switch 1 CLOSED then pump_in ON
if switch 1 OPEN then pump_in OFF
defer 003:00 then ON
If outlet Water_Change = ON then ON
If outlet Water_Change = OFF then OFF
virtual outlet
Water_Change
Fall Back OFF
If feed D then on
my return pump, skimmer, and koralia will all be set off for feed D
I want to be able to control the water change via Feed D, or the virtual outlet I can switch on or off from the app on my phone.
So I read this script as:
- when the float switch is at the top, water will pump out of the tank for 1:10 min
- It will stay off for 10 minutes
- It will wait 3 minutes before the fresh salt water will be pumped back into the tank from the time the float switch starts dropping giving adequate time to let it drain out.
- Fresh salt water will then be pumped in until the float switch is back to the top again.
If you see any problems with this let me know. This was my first attempt to try something like this, I just want to make sure this programming is sound before I test it out with water, and make a mess everywhere.
Thanks!