Apex programming - Two OSC on one socket

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
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?
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,685
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
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 34 26.6%
  • 100% dry rock + 100% live sand

    Votes: 45 35.2%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 28 21.9%
  • 75% live rock, 25% live sand

    Votes: 11 8.6%
  • 25% live rock, 75% live sand

    Votes: 10 7.8%
Back
Top