Wavemaker programming query

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)

techdef

Active Member
View Badges
Joined
May 28, 2020
Messages
161
Reaction score
140
Rating - 0%
0   0   0
Hey folks, looking for some wisdom. I'm stumped and I know I'm trying to program someting the hard way, but for (what seems to be me) good reason.

Scope: Press a physical button -> return pump shuts down -> delay 2 min then gyres shut down -> 5 min gyres back on -> 2 min return pumps back on.

My concept (failed :-0) is that its very simple to turn the return pump on/off. The hard part is getting the Gyre to turn back on 2 minutes before without putting a delay in the return pump line, which I prefer not to do. So, my idea is that the physical button (or Feed button, or whatever), also triggers a timer circuit for the Gyre. That's V_WavDelay. Idea is after 2 minutes, V_WavDelay turns On and Gyre turns off. There's a second timer which is supposed to disable V_WavDelay.

This could probably be simplfied if I could have made 2 Defers work in one virtual outlet? As in: if button push, defer 002 then on, defer 007 then off.


V_Button A
Set OFF
If Sw1 CLOSED Then ON
Defer 010:00 Then OFF

COR
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If Output V_Button_A = ON Then OFF
If Output V_Button_B = ON Then OFF
If Output V_Button_C = ON Then 5
If Output V_Button_D = ON Then OFF
If Output V_Feeder = ON Then OFF
If Output V_PwrOut2min = ON Then PowerOutPum
If Leak CLOSED Then OFF

Gyres_Pwr
Fallback ON
Set ON
If Output V_WavDelay = ON Then OFF
If FeedB 000 Then OFF
If FeedC 000 Then OFF
If Output V_Button_B = ON Then OFF
If Output V_Button_D = ON Then OFF
If Output V_PwrOut2min = ON Then OFF
If Time 05:00 to 08:30 Then OFF
If Time 14:30 to 15:00 Then OFF

V_WavDelay
Set OFF
If FeedA 000 Then ON
If Output V_Feeder = ON Then ON
If Sw1 CLOSED Then ON
Defer 002:00 Then ON
If Output V_WavDelayOF = ON Then OFF

V_WavDelayOF
Set OFF
If FeedA 000 Then ON
If Output V_Feeder = ON Then ON
If Sw1 CLOSED Then ON
Defer 007:00 Then OFF
 

GlassMunky

2500 Club Member
View Badges
Joined
Jan 30, 2014
Messages
2,950
Reaction score
3,845
Location
NJ-Philly Burbs
Rating - 0%
0   0   0
This can maye help
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,225
Location
Oregon
Rating - 0%
0   0   0
Try using the Min Time command in addition to a Defer to create the needed delays:

[V_ButtonA]
Set OFF
If Sw1 CLOSED Then ON
Defer 003:00 Then OFF

[Delay_Gyre]
Set OFF
If Output V_ButtonA = ON Then ON
Defer 002:00 Then ON
Min Time 005:00 Then ON

[Delay_COR]
Set OFF
If Output V_ButtonA = ON Then ON
Min Time 009:00 Then ON

[COR]
(original code here)
If Output Delay_COR = ON Then OFF

[Gyres_Pwr]
(original code here)
If Output Delay_Gyre = ON Then OFF
 

Just grow it: Have you ever added CO2 to your reef tank?

  • I currently use a CO2 with my reef tank.

    Votes: 6 6.2%
  • I don’t currently use CO2 with my reef tank, but I have in the past.

    Votes: 4 4.1%
  • I have never used CO2 with my reef tank, but I plan to in the future.

    Votes: 5 5.2%
  • I have never used CO2 with my reef tank and have no plans to in the future.

    Votes: 77 79.4%
  • Other.

    Votes: 5 5.2%
Back
Top