APEX Programming - OFF > ON for 5 minutes then OFF

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
THought I was pretty good with my APEX knowledge, for some reason I can't get my head around this one!

I need an outlet OFF then when RO-CONTROL comes on, to have the outlet come on for four minutes then OFF. Simple! No problem if the SET is ON but I need the socket to be OFF for the all by four minutes every few days it will be on! (I know the below isn't valid BTW, its an example of what I need it to do!

Fallback OFF
Set OFF
If Output RO-CONTROL = ON Then ON
Defer 004:00 Then OFF
 
BRS

Brett S

Valuable Member
Review score
+0 /0 /-0
View Badges
Joined
Nov 28, 2016
Messages
1,062
Reaction score
1,368
Review score
+0 /0 /-0
Location
Orlando
Rating - 0%
0   0   0
You can do this, but you’ll need to use a virtual outlet as well.

OUTLET:
Fallback OFF
Set OFF
IF Output RO-CONTROL=ON Then ON
IF Output VIRTUAL=OFF Then OFF

VIRTUAL:
Set ON
IF Output RO-CONTROL=ON Then OFF
DEFER 004:00 Then OFF

This will turn the outlet on when RO-CONTROL goes on. The virtual outlet will turn off when RO-CONTROL goes on, but because of the DEFER command it won’t actually turn off for 4 minutes after RO-CONTROL has been on. So then after four minutes VIRTUAL turns off and that will turn off the actual outlet.
 
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%

New Posts

SR
Back
Top