Hey there,
I've recently started dosing ReefEnergy AB+ and I'm trying to setup a recurring program for it through my Apex and DOS.
I've written the code but don't think it's right and could use a second set of eyes.
Objective - I want to dose ReefEnergy twice a day (at 11:29am and 11:29pm), and when I do I want the following sequence of events to occur:
1) shut off the return pumps, skimmer, and reactor
2) set the WAVs to 1%
3) wait 1 minute
4) Dose 12ml of ReefEnergy
5) wait 30 mins and turn the return pumps back on and return the WAVs to their regular program
6) wait another 60 mins and turn back on the skimmer and reactor
NOTE: While it would be straight forward to setup the dosing schedule through the DOS task and then program the other devices based on the same schedule, I'd really like all this to run off a single Virtual Outlet that I can add to Fusion so that I can selectively choose to disable and enable the whole program as required (for example, if I choose to target feed my coral, I don't want it to also dose ReefEnergy in the same 12 hour period ... so by simply moving the virtual outlet from "Auto" to "off", I can disable it).
I'm using a set of virtual outlets to drive all of this ... here's my code:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
RE_Timer (Virtual outlet that I add to my Fusion home page)
Set OFF
If Time 11:29 to 11:59 Then ON
If Time 23:29 to 23:59 Then ON
RE_Start (Virtual Outlet)
Set OFF
If Output RE_Timer = ON Then ON
Defer 001:00 Then ON
RE_Stop (Virtual Outlet)
Set OFF
If Output RE_Timer = ON Then ON
Defer 090:00 Then OFF
Return_Left (also same program as Return_Right)
Fallback ON
tdata 00:00:00,0,0,75,0,0,0,0,0,0,0,0,0,0
tdata 23:59:00,0,0,75,0,0,0,0,0,0,0,0,0,0
If Output RE_Timer = ON Then OFF
Skimmer
Fallback OFF
Set ON
If Output RE_Stop = ON Then OFF
Reactor
Set ON
Fallback OFF
If Output RE_Stop = ON Then OFF
WAV_Left (same program as WAV_Right)
Fallback OFF
tdata 00:00:00,0,0,5,7,0,0,0,0,0,0,0,0,0
tdata 04:00:00,0,0,10,7,0,0,0,0,0,0,0,0,0
tdata 06:00:00,0,0,25,7,0,0,0,0,0,0,0,0,0
tdata 18:00:00,0,0,25,7,0,0,0,0,0,0,0,0,0
tdata 21:00:00,0,0,10,7,0,0,0,0,0,0,0,0,0
tdata 23:59:00,0,0,5,7,0,0,0,0,0,0,0,0,0
If Output RE_Timer = ON Then 1
RE_DOS (my DOS unit with ReefEnergy)
Fallback OFF
If Output RE_Start = ON Then Dos12
Dos12 (a profile)
Dose 12 mL ONCE
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
What I'm concerned about is the code to actually dose 12 ml ... my concern is that while the profile says dose 12 ml ONCE, the code for RE_DOS calls that profile as long as the RE_Start virtual outlet is ON ... and it is ON for 30 mins at a time! So taken together, will it dose only once? Or will it keep trying to dose for 30 mins straight?
Are there any other errors in my code?
Thanks in advance for the help!
I've recently started dosing ReefEnergy AB+ and I'm trying to setup a recurring program for it through my Apex and DOS.
I've written the code but don't think it's right and could use a second set of eyes.
Objective - I want to dose ReefEnergy twice a day (at 11:29am and 11:29pm), and when I do I want the following sequence of events to occur:
1) shut off the return pumps, skimmer, and reactor
2) set the WAVs to 1%
3) wait 1 minute
4) Dose 12ml of ReefEnergy
5) wait 30 mins and turn the return pumps back on and return the WAVs to their regular program
6) wait another 60 mins and turn back on the skimmer and reactor
NOTE: While it would be straight forward to setup the dosing schedule through the DOS task and then program the other devices based on the same schedule, I'd really like all this to run off a single Virtual Outlet that I can add to Fusion so that I can selectively choose to disable and enable the whole program as required (for example, if I choose to target feed my coral, I don't want it to also dose ReefEnergy in the same 12 hour period ... so by simply moving the virtual outlet from "Auto" to "off", I can disable it).
I'm using a set of virtual outlets to drive all of this ... here's my code:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
RE_Timer (Virtual outlet that I add to my Fusion home page)
Set OFF
If Time 11:29 to 11:59 Then ON
If Time 23:29 to 23:59 Then ON
RE_Start (Virtual Outlet)
Set OFF
If Output RE_Timer = ON Then ON
Defer 001:00 Then ON
RE_Stop (Virtual Outlet)
Set OFF
If Output RE_Timer = ON Then ON
Defer 090:00 Then OFF
Return_Left (also same program as Return_Right)
Fallback ON
tdata 00:00:00,0,0,75,0,0,0,0,0,0,0,0,0,0
tdata 23:59:00,0,0,75,0,0,0,0,0,0,0,0,0,0
If Output RE_Timer = ON Then OFF
Skimmer
Fallback OFF
Set ON
If Output RE_Stop = ON Then OFF
Reactor
Set ON
Fallback OFF
If Output RE_Stop = ON Then OFF
WAV_Left (same program as WAV_Right)
Fallback OFF
tdata 00:00:00,0,0,5,7,0,0,0,0,0,0,0,0,0
tdata 04:00:00,0,0,10,7,0,0,0,0,0,0,0,0,0
tdata 06:00:00,0,0,25,7,0,0,0,0,0,0,0,0,0
tdata 18:00:00,0,0,25,7,0,0,0,0,0,0,0,0,0
tdata 21:00:00,0,0,10,7,0,0,0,0,0,0,0,0,0
tdata 23:59:00,0,0,5,7,0,0,0,0,0,0,0,0,0
If Output RE_Timer = ON Then 1
RE_DOS (my DOS unit with ReefEnergy)
Fallback OFF
If Output RE_Start = ON Then Dos12
Dos12 (a profile)
Dose 12 mL ONCE
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
What I'm concerned about is the code to actually dose 12 ml ... my concern is that while the profile says dose 12 ml ONCE, the code for RE_DOS calls that profile as long as the RE_Start virtual outlet is ON ... and it is ON for 30 mins at a time! So taken together, will it dose only once? Or will it keep trying to dose for 30 mins straight?
Are there any other errors in my code?
Thanks in advance for the help!
Last edited: