Apex: Best way to turn an outlet off for four hours.

Oberst Hajj

Well-Known Member
View Badges
Joined
Dec 23, 2012
Messages
978
Reaction score
853
Location
Colorado
Rating - 0%
0   0   0
I have a roller filter mat that I'm currently running 27/7 except for when I do maintenance. I'd like to play around with running it for less time each day to see how it effects my systems parameters. Below is my current code:

Code:
Set ON
Fallback ON
If Output ReturnPumpA = OFF Then OFF
If Output ReturnPumpB = OFF Then OFF
If Output Maintenance = ON Then OFF
Defer 005:00 Then ON

If I wanted to only run it in four hour blocks, could I simply add this code after the Fallback ON statement?

Code:
OSC 0:00/240:00/240:00 Then OFF

Finally, if I wanted to adjust the start time of that four hour block, I would simply had the number of minutes to the first part of that code and that would adjust it from midnight?
 

ZombieEngineer

Valuable Member
View Badges
Joined
Apr 3, 2022
Messages
1,310
Reaction score
1,178
Location
Broomfield
Rating - 0%
0   0   0
Yes, except you want Then ON not OFF

Then ON has this form initial off time / on time / off time

Then OFF is ON / OFF / ON

So if you want 4 hour block starting at 1am, you want

OSC 060:00/240:00/180:00 Then ON
 
Upvote 0
OP
OP
Oberst Hajj

Oberst Hajj

Well-Known Member
View Badges
Joined
Dec 23, 2012
Messages
978
Reaction score
853
Location
Colorado
Rating - 0%
0   0   0
Thanks Zombie, but I think gives me the opposite schedule to what I want?? I'd like the outlet to be off from 0100 to 0459, on from 0500 to 0859, off again from 0900 to 1259, back on at 1300 to 1659, off yet again from 1700 to 2059, and finally on again from 2100 to 0059.
 
Upvote 0

ZombieEngineer

Valuable Member
View Badges
Joined
Apr 3, 2022
Messages
1,310
Reaction score
1,178
Location
Broomfield
Rating - 0%
0   0   0
Thanks Zombie, but I think gives me the opposite schedule to what I want?? I'd like the outlet to be off from 0100 to 0459, on from 0500 to 0859, off again from 0900 to 1259, back on at 1300 to 1659, off yet again from 1700 to 2059, and finally on again from 2100 to 0059.
Then use Then OFF
 
Upvote 0
Back
Top