Pump scheduling using defer in Apex

skyeshoppe

Community Member
View Badges
Joined
Apr 26, 2022
Messages
42
Reaction score
17
Location
Vancouver
Rating - 0%
0   0   0
I am trying to automate my mix station and before I add salt I would like to heat the water but I don't want the mix pump constantly running until the salt is added. I do want the pump to run for 5 mins every half hour to heat the water throughout.

The code I am using in a virtual outlet to achieve this is:

Set OFF
If Output VO_Mix_Fill = ON Then ON //Virtual outlet filling mix station
Defer 005:00 Then OFF
Defer 025:00 Then ON

I cannot get this virtual outlet to turn on. The virtual outlet referenced in the code is on. Am I using Defer wrong? Is there a better way to achieve this using Min Time or OSC?
 

Sean Clark

7500 Club Member
View Badges
Joined
May 16, 2019
Messages
8,055
Reaction score
31,580
Location
Michigan
Rating - 0%
0   0   0
I am trying to automate my mix station and before I add salt I would like to heat the water but I don't want the mix pump constantly running until the salt is added. I do want the pump to run for 5 mins every half hour to heat the water throughout.

The code I am using in a virtual outlet to achieve this is:

Set OFF
If Output VO_Mix_Fill = ON Then ON //Virtual outlet filling mix station
Defer 005:00 Then OFF
Defer 025:00 Then ON

I cannot get this virtual outlet to turn on. The virtual outlet referenced in the code is on. Am I using Defer wrong? Is there a better way to achieve this using Min Time or OSC?

I believe that you have your Defer statements inverted.

Try this:
Set OFF
If Output VO_Mix_Fill = ON Then ON //Virtual outlet filling mix station
Defer 005:00 Then ON
Defer 025:00 Then OFF
 
OP
OP
S

skyeshoppe

Community Member
View Badges
Joined
Apr 26, 2022
Messages
42
Reaction score
17
Location
Vancouver
Rating - 0%
0   0   0
I believe that you have your Defer statements inverted.

Try this:
Set OFF
If Output VO_Mix_Fill = ON Then ON //Virtual outlet filling mix station
Defer 005:00 Then ON
Defer 025:00 Then OFF
I have tried switching the defer statements. I tried testing the code (changed the time to 1:00 min for each to test). It just stays on now.
 

Sean Clark

7500 Club Member
View Badges
Joined
May 16, 2019
Messages
8,055
Reaction score
31,580
Location
Michigan
Rating - 0%
0   0   0
I miss read your initial intended use. A Vo is not needed for this case but can still be useful for other added applications.
Try this with your VO:

Pump outlet:
Fallback OFF
Set OFF
If Output VO_Mix_Fill = ON Then ON

Virtual outlet:
Set OFF
OSC 000:00/005:00/025:00 Then ON


Or just put this into your mixing station pump outlet and forget the VO all together if you do not have any additional control limits aside from the run time cycling:

Fallback OFF
Set OFF
OSC 000:00/005:00/025:00 Then ON
 
OP
OP
S

skyeshoppe

Community Member
View Badges
Joined
Apr 26, 2022
Messages
42
Reaction score
17
Location
Vancouver
Rating - 0%
0   0   0
I miss read your initial intended use. A Vo is not needed for this case but can still be useful for other added applications.
Try this with your VO:

Pump outlet:
Fallback OFF
Set OFF
If Output VO_Mix_Fill = ON Then ON

Virtual outlet:
Set OFF
OSC 000:00/005:00/025:00 Then ON


Or just put this into your mixing station pump outlet and forget the VO all together if you do not have any additional control limits aside from the run time cycling:

Fallback OFF
Set OFF
OSC 000:00/005:00/025:00 Then ON
Thanks @Sean Clark. I did some testing and I think I was able to make this work with one modification.

Virtual Outlet:
Set OFF
OSC 000:00/005:00/025:00 Then ON
If Output VO_Mix_Fill = OFF Then OFF //This is another VO that should trigger this VO but with OSC it seems like I have to turn it off if that VO is not on.
 

Creating a strong bulwark: Did you consider floor support for your reef tank?

  • I put a major focus on floor support.

    Votes: 39 43.8%
  • I put minimal focus on floor support.

    Votes: 20 22.5%
  • I put no focus on floor support.

    Votes: 28 31.5%
  • Other.

    Votes: 2 2.2%

New Posts

Back
Top