Apex dos coding help

  • Thread starter Thread starter Heres_doe_
  • Start date Start date
  • Tagged users Tagged users None

Heres_doe_

Valuable Member
View Badges
Joined
May 29, 2021
Messages
1,272
Reaction score
642
Location
USA
Rating - 100%
1   0   0
How can I tell my dos to turn off for 4 hours if ALK gets higher than 9.2?
 
How can I tell my dos to turn off for 4 hours if ALK gets higher than 9.2?
You asked the same question on the Neptune Facebook group, and I replied with a question, but you didn't answer it there.

Please don't cross-post to different forums as it just leads to confusion on tracking the conversation.
 
For those following along here on R2R, here's the solution I posted to the Facebook group:

You'll need to create two virtual outputs, one that tracks the Alkx reading, and one to act as the 4 hour timer, then reference that output in the Advanced tab on your DOS:

[Pause_Alk]
Set OFF
If Alkx# > 9.2 Then ON
If Output Alk_Timer = ON Then OFF
(substitute # in Alkx# with the AquaBus address of your Trident)

[Alk_Timer]
Set OFF
If Output Pause_Alk = ON Then ON
Defer 240:00 Then ON
Min Time 120:00 Then ON

Place this code into your DOS Advanced tab:

If Output Pause_Alk = ON Then OFF

If you're not familiar with virtual outputs, see my tutorial here:
https://www.reef2reef.com/.../neptune-apex-programming.../
 

TOP 10 Trending Threads

WHAT FIRST SPARKED YOUR INTEREST IN REEFING?

  • I saw a reef tank that hooked me

    Votes: 13 26.5%
  • I was already keeping freshwater aquariums

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

    Votes: 7 14.3%
  • Corals and inverts were the draw

    Votes: 8 16.3%
  • A friend or family member introduced me

    Votes: 6 12.2%
  • The science and ecosystem challenge appealed to me

    Votes: 9 18.4%
  • I stumbled into it… and here we are

    Votes: 4 8.2%
  • Other (Post in the comments)

    Votes: 7 14.3%
Back
Top
Home
Post thread…
Market
What's new