Apex programming - Two OSC on one socket

Neptune

psumms

Active Member
Review score
+0 /0 /-0
View Badges
Joined
Sep 11, 2019
Messages
183
Reaction score
129
Review score
+0 /0 /-0
Location
United Kingdom
Rating - 0%
0   0   0
Hi all, I have my RO unit flush for 30 seconds every four hours. I want to increase that to every 30 minutes when my RO pump is running. I currently have the following on my RO pump socket:
Fallback ON
OSC 000:00/000:30/180:00 Then ON

What i'd like to do is find a solution to add a second line doing something like: (I know the syntax here isn't valid).
If Output RODI-PUMP = ON Then OSC 000:00/000:30/030:00

Any advice for the tidiest way to achieve this?
 
AS

SuncrestReef

That Apex guy
Review score
+0 /0 /-0
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,144
Review score
+0 /0 /-0
Location
Oregon
Rating - 0%
0   0   0
You can do this with a virtual output that runs the more frequent OSC code only when the RODI pump is on, then override your current schedule with the status of that virtual output:

RO_Running (virtual output)
-----------------
OSC 000:00/000:30/030:00 Then ON
If Output RODI-PUMP = OFF Then OFF

RO Flush:
--------------
Fallback ON
OSC 000:00/000:30/180:00 Then ON
If Output RO_Running = ON Then ON
 
AS
Neptune

Polyp polynomial: How many heads do you start with when buying zoas?

  • One head is enough to get started.

    Votes: 27 10.6%
  • 2 to 4 heads.

    Votes: 145 57.1%
  • 5 heads or more.

    Votes: 65 25.6%
  • Full colony.

    Votes: 10 3.9%
  • Other.

    Votes: 7 2.8%
UNLEASH THE FULL POTENTIAL OF YOUR REEF
Back
Top