APEX DoW programming

Accidentalreefers

Community Member
View Badges
Joined
Feb 20, 2020
Messages
64
Reaction score
17
What state or country do you live in
Canada
Rating - 0%
0   0   0
Hey everyone, sorry for posting this here as for some reason on the apex forms when i try and make an account it says I'm a spammer and can't register...

I need some help with programming, I have an auto water changing system and I want my return pump, skimmer, power head, to turn off every Tuesday and Thursday at 17:00 to 18:35, here is my programming

Fallback ON
Set ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If Time 17:00 to 18:35 Then OFF
If DoW --T-T-- Then OFF
The issue is it turned off Today (Monday) at 17:00 I just changed it today before i had it as

Fallback ON
Set ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If Time 17:00 to 18:35 Then OFF
If DoW SM-W-FS Then OFF

when I had it this way I woke up at 6am today (Monday) and it was all off I'm not sure why that happened.
if I could get a proper line for turning my equipment off every Tuesday and Thursday between 17:00 to 18:35 that would be great thanks.
 
In your case you need a virtual outlet

(VO-name)
Fallback ON
Set ON
If Time 17:00 to 18:35 Then OFF
If DoW SM-W-FS Then on

Your existing code

Fallback ON
Set ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If outlet (VO-name) = off then off
 
In your case you need a virtual outlet

(VO-name)
Fallback ON
Set ON
If Time 17:00 to 18:35 Then OFF
If DoW SM-W-FS Then on

Your existing code

Fallback ON
Set ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If outlet (VO-name) = off then off
Thanks!! Ill give that a shot
 
In your case you need a virtual outlet
This is incorrect. No VO is needed; using a VO in this case is adding unnecessary programming complexity to overcome a programming logic error.

@Accidentalreefers

The error is that the If DoW has the wrong logic, and the order is incorrect to achieve what you want:

Fallback ON
Set ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If Time 17:00 to 18:35 Then OFF
If DoW --T-T-- Then OFF
The issue is it turned off Today (Monday) at 17:00 I just changed it today before i had it as

What you need to do to fix this to use Dow differently:

If DoW SM-W-FS Then ON, and change the sequence of the statements to:

Fallback ON
Set ON
If Time 17:00 to 18:35 Then OFF
If DoW SM-W-FS Then ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF

The outlet will be ON by default. The programming will try to turn off the outlet during the specified timeframe, but the If DoW will override that, keeping the output ON all days except Tuesday and Thursday. Previously, the If Feed statements would not always work. With the change in statement order, they will now always work.
 

HOW MUCH DOES A FISH’S FEEDING REQUIREMENTS AFFECT YOUR STOCKING DECISIONS?

  • A lot! - I avoid fish that require frequent or specialized feeding

    Votes: 20 34.5%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 8 13.8%
  • It depends on whether my nutrient export can handle it

    Votes: 8 13.8%
  • It depends on how badly I want the fish

    Votes: 12 20.7%
  • Not much. I’m willing to adjust my routine

    Votes: 9 15.5%
  • Not at all. Feeding demands don’t limit my stocking choices

    Votes: 9 15.5%
  • I usually learn about the demanding feeding schedule after buying the fish!

    Votes: 2 3.4%
  • I haven’t really considered this before

    Votes: 4 6.9%
  • Something else (see my comments in the thread)

    Votes: 2 3.4%
Back
Top
Home
Post thread…
Market
What's new