APEX OSC command

Passedyouby

Active Member
View Badges
Joined
Jan 17, 2019
Messages
472
Reaction score
314
What state or country do you live in
Michigan
Rating - 0%
0   0   0
Hello everyone!

I have a float switch programmed to turn on a virtual outlet (SumpLoVirt) when my water level drops. I tried to set up a 24v 1/4 water valve to open when the virtual switch is is on and that works, but now I want it to turn on for 30 seconds, then off for 1 minute to let the fresh water dissipate some and make sure the float valve isn't stuck or anything.

My command isn't working. I understand apex follows the bottom command, so I understand why this failed, but I'm not sure how to resolve without another virtual outlet, but that seems messy!


Screenshot_20200306-175503_Apex Fusion.jpg
 
You could change the sequence of events to first have it attempt to turn on and off the valve with OSC, then after a period of time if the float is still indicating an issue to leave the valve open with a Defer timer:

[24v port]
OSC 000:00/000:30/001:00 Then ON
If Output SumpLoVirt = ON Then ON
If Float CLOSED Then OFF

[SumpLoVirt]
Set OFF
If Float OPEN Then ON
Defer 001:30 Then ON

This code assumes the float switch is named "Float" and also assumes it is OPEN when the water is too low.
 

WHAT MOST MAKES A BLACK FRIDAY REEF DEAL WORTH CONSIDERING?

  • A real discount on something already on my list

    Votes: 52 75.4%
  • Free or reduced shipping

    Votes: 13 18.8%
  • A useful bundle of gear or supplies

    Votes: 3 4.3%
  • A good price on livestock I’ve already researched

    Votes: 16 23.2%
  • A rare chance to get something hard to find

    Votes: 15 21.7%
  • A seller or brand I trust

    Votes: 14 20.3%
  • I buy when I need something, sale or not

    Votes: 13 18.8%
  • Other (Post in the comments)

    Votes: 2 2.9%
Back
Top
Home
Post thread…
Market
What's new