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

WHAT FIRST SPARKED YOUR INTEREST IN REEFING?

  • I saw a reef tank that hooked me

    Votes: 17 21.3%
  • I was already keeping freshwater aquariums

    Votes: 31 38.8%
  • A particular fish got me interested

    Votes: 10 12.5%
  • Corals and inverts were the draw

    Votes: 14 17.5%
  • A friend or family member introduced me

    Votes: 10 12.5%
  • The science and ecosystem challenge appealed to me

    Votes: 16 20.0%
  • I stumbled into it… and here we are

    Votes: 10 12.5%
  • Other (Post in the comments)

    Votes: 10 12.5%
Back
Top
Home
Post thread…
Market
What's new