Apex programming for hysteresis functionality

Neptune

s_tooz_123

Community Member
Review score
+0 /0 /-0
View Badges
Joined
Nov 2, 2020
Messages
58
Reaction score
82
Review score
+0 /0 /-0
Location
Leesburg, Virginia
Rating - 0%
0   0   0
I have an ozone generator plugged into one of my EB832 ports. I currently have it programmed to turn on below 300:

Fallback OFF
Set OFF
If ORP < 300 Then ON

While the above keeps very tight control over the ORP, it causes frequent cycling of the EB832 port because it turns on at 299 and off at 300.

Ideally, I would like to reduce the number cycles of the port by providing a hysteresis like functionality. For example, I would like to turn on the port at ORP < 290 and turn if off when ORP > 310.

Any tips in how to accomplish this would be appreciated.
 

Sean Clark

7500 Club Member
Review score
+0 /0 /-0
View Badges
Joined
May 16, 2019
Messages
8,055
Reaction score
31,445
Review score
+0 /0 /-0
Location
Michigan
Rating - 0%
0   0   0
You can do this many ways here are two examples.

Cycle within a range of ORP values:
Fallback OFF
If PosORP > 310 Then OFF
If PosORP < 290 Then ON
If Output Skimmer = OFF Then OFF
Defer 004:00 Then ON

Cycle with a set "off" timer (10 minutes in this example) once the target ORP value has been achieved:
Fallback OFF
Set ON
If PosORP > 310 Then OFF
If Output Skimmer = OFF Then OFF
Min Time 010:00 Then OFF
 
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%
Extreme Corals
Back
Top