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,275
Reaction score
647
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.../
 

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 44 52.4%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 40 47.6%
Back
Top
Home
Post thread…
Market
What's new