Assistance please - Code Checking

psionicdragon

Active Member
View Badges
Joined
Dec 13, 2009
Messages
176
Reaction score
14
Location
bay area
Rating - 0%
0   0   0
Hi!

I am trying to have the Ozone outlet do a few things. I want the outlet to turn on the ozone from 8am to 8pm, but if the ORP exceeds 300, I want it to be off regardless of the time.

Will the configuration achieve this task?



1570391800038.png
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,688
Location
Oregon
Rating - 0%
0   0   0
Yes, your code will work. Though to be nit-picky, the If Time values are inclusive, so technically your code will turn the output off at 8:01pm. If you really want it off at 8:00pm, change it to:

Fallback OFF
Set OFF
If Time 08:00 To 19:59 Then ON
If ORP > 300 Then OFF

For more details on If Time and other timer-related topics, see my programming tutorial on Apex Timers here: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
 
OP
OP
P

psionicdragon

Active Member
View Badges
Joined
Dec 13, 2009
Messages
176
Reaction score
14
Location
bay area
Rating - 0%
0   0   0
Thanks! I am ok if it is off +/- 10 min. Was more concern about overdosing ozone. My orp reading looks low at 200
 

ca1ore

10K Club member
View Badges
Joined
Oct 28, 2014
Messages
14,193
Reaction score
19,712
Location
Stamford, CT
Rating - 100%
2   0   0
May want to put a defer line in to prevent cycling of the ozonizer around the 300 mark

Defer 001:00 Then OFF
 

TOP 10 Trending Threads

Back
Top