Help with my Apex Programming

Darwin stinton

Active Member
View Badges
Joined
Mar 2, 2017
Messages
103
Reaction score
27
Location
Minneapolis, MN
Rating - 0%
0   0   0
So I'm befuddled as why my RODI water tank fill programming doesn't work the way I think it should.

I have a low water eye and a high water eye, the logic in my programming is to have water solenoid turn on when the water level drops below the LowWtr eye and turn off after 300 minutes. And to be safe to turn off if it goes up to the Hghwtr eye. My problem is that it turns the control on the (Wtr_Sol) Slider completely off and doesn't stay in Auto. Thanks in advance for your clearing my thinking up.

Fallback OFF
If LowWtr OPEN Then ON
If Hghwtr CLOSED Then OFF
When On > 300:00 Then OFF
Defer 000:10 Then ON
Defer 000:04 Then OFF
 

RamsReef

Valuable Member
View Badges
Joined
Aug 18, 2016
Messages
1,754
Reaction score
1,495
Rating - 0%
0   0   0
Thats what the when on statement does, it's the failsafe

You want, Im on phone sorry not going to full code it

fallback off
set off
LowWtr open then on
defer 0:10 then on
mintime 300:00 then on
Highwtr closed then off
defer 0:10 then off

This will

open your solenoid on low water detected after 10 seconds

keep it open 300 minutes

close it after 300 or highwtr closed

This is probably what you dont want but it is as described
 

Engloid

Valuable Member
View Badges
Joined
Mar 26, 2010
Messages
2,082
Reaction score
315
Location
Tennessee
Rating - 0%
0   0   0
or...

Defer 300:00 then off
When on 301:00 then off

That will keep it on for 300 minutes, and then turn it off... but not switch the dashboard switch to off. If it runs for 301 minutes, it will switch the dashboard switch to off (failsafe).
 
Back
Top