Quick Apex Program question (easy one)

D.WhiteShark

Shoulder Deep in Saltwater.......Again
View Badges
Joined
Jul 7, 2017
Messages
1,389
Reaction score
1,054
Location
Paso Robles, CA
Rating - 0%
0   0   0
If I want to program my Apex to run a doser for 30 seconds once per day starting at 10AM does this look right?
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,688
Location
Oregon
Rating - 0%
0   0   0
OP
OP
D.WhiteShark

D.WhiteShark

Shoulder Deep in Saltwater.......Again
View Badges
Joined
Jul 7, 2017
Messages
1,389
Reaction score
1,054
Location
Paso Robles, CA
Rating - 0%
0   0   0
Fallback OFF
Set OFF
If Time 09:59 To 10:00 Then ON
Defer 001:30 Then ON

This will turn on the doser at 10:00:30 and turn if off at 10:01:00, for a total of 30 seconds. For more details on "If Time" and "Defer", including why the Defer is needed in this scenario, see my tutorial on Apex Timers: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/

forgot to include what I had already DUH:

Fallback OFF
OSC 600:00/000:30/839:30 Then ON
 

GK3

Valuable Member
View Badges
Joined
Jan 16, 2017
Messages
1,923
Reaction score
1,328
Location
Cincinnati
Rating - 100%
2   0   0
forgot to include what I had already DUH:

Fallback OFF
OSC 600:00/000:30/839:30 Then ON
If you want to just do it one time everyday, don’t use OSC, do what @SuncrestReef said. If you are trying to do it on a more frequent cycle, like hourly, then I’d recommend OSC.
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,688
Location
Oregon
Rating - 0%
0   0   0
forgot to include what I had already DUH:

Fallback OFF
OSC 600:00/000:30/839:30 Then ON

That also works. In this case, here are the 3 OSC timers:

Initial OFF time: 10 hours (first run begins at 10:00am)
ON time: 30 seconds
OFF time: 13:59:30 hours

The total cycle time is 24 hours, so it repeats each day at 10:00am.
 

TOP 10 Trending Threads

Back
Top