Wavemaker programming query

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

techdef

Active Member
View Badges
Joined
May 28, 2020
Messages
161
Reaction score
141
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
 
This can maye help
 
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
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top