• Welcome back Guest!

    MARSH is a private reefing group. Comments and suggestions are encouraged, but please keep them positive and constructive. Negative threads, posts, or attacks will be removed from view and reviewed by the staff. Continually disruptive, argumentative, or flagrant rule breakers may be suspended or banned.

Discuss Need Help Programming Neptune Liquid Level Sensor (LLS) (1 Viewer)

Users who are viewing this thread

gregg

President
Staff member
Administrator
Moderator
Board Member
Supporting Member
Build Thread Contributor
Joined
Jan 28, 2015
Messages
6,805
Reaction score
2,815
Location
Downtown
hey ya'll, hoping someone can help me. I'm missing something in this coding.

My goal here is to turn on a pump to refill my ATO tank when my Liquid Level Sensor (LLS) shows the level is below 3". Ive named the LLS - "L-ATO".
Then... I want it to stay on till the L-ATO is at 8.5" and then shut off. I put "When On > 030:00 Then OFF" just in case something fails so it doesn't stay on any longer than 30 minutes.

Here is my issue: Currently when my L-ATO gets below 3" it turns on as expected but then as it fills up and becomes greater than 3" it shuts back off, resulting in the pump constantly coming on and off at that point as it drops less than, and then greater than 3".

I assume my issue comes from the first 2 lines of code here but not sure... can someone give me some advice? I'd be grateful.

Here is the code i'm currently using.

Fallback OFF
Set OFF
If L-ATO < 3.0 Then ON
If L-ATO > 8.5 Then OFF
When On > 030:00 Then OFF
 

foos

Supporting Member
Build Thread Contributor
Joined
Apr 25, 2018
Messages
505
Reaction score
645
Location
Katy, TX
This is what I use with two optical sensors. I think the Set OFF may be what is getting you. I sorta remember having an issue like that but it has been forever.

Fallback OFF
If atobot OPEN Then ON
If atotop CLOSED Then OFF
 
OP
OP
gregg

gregg

President
Staff member
Administrator
Moderator
Board Member
Supporting Member
Build Thread Contributor
Joined
Jan 28, 2015
Messages
6,805
Reaction score
2,815
Location
Downtown
So basicly your saying to remove “Set OFF” from the code I posted above? I’m lost.

With the LLS there is no “open” or “closed” it’s either greater than or less than.
 

soymilk

Supporting Member
Joined
Feb 3, 2010
Messages
2,608
Reaction score
1,344
Location
Fresno, Texas
This is my code

Fallback OFF
If Rtnlvl < 5.5 Then ON
If Rtnlvl > 6.0 Then OFF
Defer 000:30 Then ON
Min Time 005:00 Then OFF
 

Cody

Vice President
Staff member
Administrator
Moderator
Content Moderator
Board Member
Supporting Member
Joined
Jul 23, 2014
Messages
7,320
Reaction score
4,253
Location
Spring, TX
This is my code

Fallback OFF
If Rtnlvl < 5.5 Then ON
If Rtnlvl > 6.0 Then OFF
Defer 000:30 Then ON
Min Time 005:00 Then OFF
I think that defer line is the missing piece for Gregg's situation.
 
OP
OP
gregg

gregg

President
Staff member
Administrator
Moderator
Board Member
Supporting Member
Build Thread Contributor
Joined
Jan 28, 2015
Messages
6,805
Reaction score
2,815
Location
Downtown
Ok thanks everyone … it was the code “set OFF” that was jacking things up. You don't use a “Set” when trying to refill a container using low & high sensors or low & high LLS readings… unlike an optical switch.
 

Cody

Vice President
Staff member
Administrator
Moderator
Content Moderator
Board Member
Supporting Member
Joined
Jul 23, 2014
Messages
7,320
Reaction score
4,253
Location
Spring, TX
Ok thanks everyone … it was the code “set OFF” that was jacking things up. You don't use a “Set” when trying to refill a container using low & high sensors or low & high LLS readings… unlike an optical switch.
Well this is good info. I'm going to set mine up soon. Thanks for solving this!
 

foos

Supporting Member
Build Thread Contributor
Joined
Apr 25, 2018
Messages
505
Reaction score
645
Location
Katy, TX
The Defer is for setting a timeout for starting it. Helpful for skimmers, hit feed, slow pumps and stop skimmer, feed ends pumps start back up but skimmer is deferred for xmin to let levels stabilize.
 
Top