Apex Multiple DOW + Time statements on same outlet

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
Location
United Kingdom
What state or country do you live in
United Kingdom
Rating - 0%
0   0   0
Is it possible to have multiple time + day statements on an outlet, e.g. as below, testing this seems to suggest not. Is there a workaround?

If Time 00:00 to 08:50 Then OFF
If DOW ----TFS Then OFF
If Time 08:53 to 14:50 Then OFF
If DOW SMT---- Then OFF
 
In order to combine multiple conditions, you’ll need to split it out into separate virtual outputs, then use the status of those virtual outputs to control the physical output. Example:

[SMT_Control] — virtual output
Set OFF
If Time 00:00 to 08:00 Then ON
If DOW SMT---- Then OFF

[TFS_Control] — virtual output
Set OFF
If Time 12:00 to 20:00 Then ON
If DOW ----TFS Then OFF

[Device] — physical output
Set OFF
If Output SMT_Control = ON Then ON
If Output TFS_Control = ON Then ON

Adjust the times and days to your preference.

If you’re not familiar with virtual outputs see my tutorial here:
https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-5-virtual-outputs.703/
 

TOP 10 Trending Threads

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

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

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

    Votes: 6 12.8%
  • It depends on whether my nutrient export can handle it

    Votes: 6 12.8%
  • It depends on how badly I want the fish

    Votes: 11 23.4%
  • Not much. I’m willing to adjust my routine

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

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

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

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

    Votes: 1 2.1%
Back
Top
Home
Post thread…
Market
What's new