Results 1 to 10 of 10

Thread: Program a leak detection sensor

  1. #1
    New User
    Join Date
    Apr 2018
    Location
    St Thomas usvi
    Posts
    12

    Program a leak detection sensor

    I hooked up a leak detection sensor to my fmm module. My question is, what code do I use to shut off my return pump if a leak is detected? Thanks in advance..

    Sent from my FRD-L04 using Tapatalk

  2. #2
    Frequent Contributor SuncrestReef's Avatar
    Join Date
    Feb 2018
    Location
    Beaverton, OR
    Posts
    3,105
    Quote Originally Posted by fishybizzness View Post
    I hooked up a leak detection sensor to my fmm module. My question is, what code do I use to shut off my return pump if a leak is detected? Thanks in advance..

    Sent from my FRD-L04 using Tapatalk
    Here's the code for my return pump:

    If LkCrpt CLOSED Then OFF
    If LkSump CLOSED Then OFF
    If S2_Flt OPEN Then OFF

    The three sensors I'm monitoring are:

    LkCrpt = Neptune leak sensor under my carpet
    LkSump = Neptune leak sensor in my sump cabinet
    S2_Flt = Float switch in my return chamber to sense if the water level drops too low to safely run the pump

  3. #3
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by SuncrestReef View Post
    Here's the code for my return pump:

    If LkCrpt CLOSED Then OFF
    If LkSump CLOSED Then OFF
    If S2_Flt OPEN Then OFF

    The three sensors I'm monitoring are:

    LkCrpt = Neptune leak sensor under my carpet
    LkSump = Neptune leak sensor in my sump cabinet
    S2_Flt = Float switch in my return chamber to sense if the water level drops too low to safely run the pump
    You are missing some stuff here...there is nothing to turn your return ON.

    You might be an engineer if...You have no life and can prove it mathematically.

  4. #4
    Frequent Contributor SuncrestReef's Avatar
    Join Date
    Feb 2018
    Location
    Beaverton, OR
    Posts
    3,105
    Quote Originally Posted by zombie View Post
    You are missing some stuff here...there is nothing to turn your return ON.

    You might be an engineer if...You have no life and can prove it mathematically.
    I'm running a COR-20. The code I posted above is what I have listed under the "Advanced" tab. That screen in Fusion states "Program statements may be entered here, and will be evaluated last. For example, if you'd like to specify a feed mode, this is the place."

    The settings for the COR main screen controls turning the pump on as long as none of the Advanced statements are active. I have tested each of these sensors and they each turn off the pump, but as soon as the problem is cleared up the pump automatically turns back on.

    Sorry if this wasn't clear in my original post. I assume a non-Neptune pump would require additional programming to turn it on.

  5. #5
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by SuncrestReef View Post
    I'm running a COR-20. The code I posted above is what I have listed under the "Advanced" tab. That screen in Fusion states "Program statements may be entered here, and will be evaluated last. For example, if you'd like to specify a feed mode, this is the place."

    The settings for the COR main screen controls turning the pump on as long as none of the Advanced statements are active. I have tested each of these sensors and they each turn off the pump, but as soon as the problem is cleared up the pump automatically turns back on.

    Sorry if this wasn't clear in my original post. I assume a non-Neptune pump would require additional programming to turn it on.
    Quote Originally Posted by SuncrestReef View Post
    Here's the code for my return pump:

    If LkCrpt CLOSED Then OFF
    If LkSump CLOSED Then OFF
    If S2_Flt OPEN Then OFF

    The three sensors I'm monitoring are:

    LkCrpt = Neptune leak sensor under my carpet
    LkSump = Neptune leak sensor in my sump cabinet
    S2_Flt = Float switch in my return chamber to sense if the water level drops too low to safely run the pump
    For both the OP and your code, I would reccomend a slightly different approach. There are two ways depending on whether you want self resetting or latching. This filters out noise spikes and ensures the return stays off.

    Self Resetting (retries every 2 hours is condition stops)

    StopRtn (virtual outlet)
    Set OFF
    If LkCrpt CLOSED Then ON
    If LkSump CLOSED Then ON
    If S2_Flt OPEN Then ON
    Defer 000:10 Then ON
    Min Time 120:00 Then ON

    Return & email
    (Existing code)
    If Output StopRtn = ON Then OFF


    Latching (stays OFF until you manually intervene)

    StopRtn (virtual outlet)
    Set OFF
    If LkCrpt CLOSED Then ON
    If LkSump CLOSED Then ON
    If S2_Flt OPEN Then ON
    Defer 000:10 Then ON
    Defer 000:03 Then OFF
    When On > 000:02 Then ON

    Return & email
    (Existing code)
    If Output StopRtn = ON Then OFF

    You might be an engineer if...You have no life and can prove it mathematically.

  6. #6
    Frequent Contributor SuncrestReef's Avatar
    Join Date
    Feb 2018
    Location
    Beaverton, OR
    Posts
    3,105
    Quote Originally Posted by zombie View Post
    For both the OP and your code, I would reccomend a slightly different approach. There are two ways depending on whether you want self resetting or latching. This filters out noise spikes and ensures the return stays off.

    Self Resetting (retries every 2 hours is condition stops)

    StopRtn (virtual outlet)
    Set OFF
    If LkCrpt CLOSED Then ON
    If LkSump CLOSED Then ON
    If S2_Flt OPEN Then ON
    Defer 000:10 Then ON
    Min Time 120:00 Then ON

    Return & email
    (Existing code)
    If Output StopRtn = ON Then OFF


    Latching (stays OFF until you manually intervene)

    StopRtn (virtual outlet)
    Set OFF
    If LkCrpt CLOSED Then ON
    If LkSump CLOSED Then ON
    If S2_Flt OPEN Then ON
    Defer 000:10 Then ON
    Defer 000:03 Then OFF
    When On > 000:02 Then ON

    Return & email
    (Existing code)
    If Output StopRtn = ON Then OFF

    You might be an engineer if...You have no life and can prove it mathematically.
    Thanks for the tip. One question: for the email alert, did you mean:

    If Output StopRtn = ON Then ON

  7. #7
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by SuncrestReef View Post
    Thanks for the tip. One question: for the email alert, did you mean:

    If Output StopRtn = ON Then ON
    Yes ON for email OFF for the return. O was too lazy to write it twice

    You might be an engineer if...You have no life and can prove it mathematically.

  8. #8
    Regular Vistor
    Join Date
    Mar 2019
    Location
    Eastern Canada
    Posts
    35
    Im following along. I would also like to set my Leak detection prob on my FMM module to shut off my return pump, and skimmer. Im very new to the apex however this is confusing? Although I'm learning slowly.

    I don't understand fully the code above? I do understand just having the return pump and skimmer shut off when the leak detector is in the closed position only turns them on again if say the sensor is removed from the water. Id like to use a visual outlet to turn both off until I actually turn them on by sliding the switch back to On. Id also need to prevent my skimmer from overflowing with some sort of delay? Can someone help me with this? I will label my equipment in hopes someone can give me the code needed.

    SUMP RETURN PUMP = RETPUMP_3
    SKIMMER PUMP = SKIMMER_2
    LEAK SENSOR = LkSump

  9. #9
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by 1lastcast View Post
    Im following along. I would also like to set my Leak detection prob on my FMM module to shut off my return pump, and skimmer. Im very new to the apex however this is confusing? Although I'm learning slowly.

    I don't understand fully the code above? I do understand just having the return pump and skimmer shut off when the leak detector is in the closed position only turns them on again if say the sensor is removed from the water. Id like to use a visual outlet to turn both off until I actually turn them on by sliding the switch back to On. Id also need to prevent my skimmer from overflowing with some sort of delay? Can someone help me with this? I will label my equipment in hopes someone can give me the code needed.

    SUMP RETURN PUMP = RETPUMP_3
    SKIMMER PUMP = SKIMMER_2
    LEAK SENSOR = LkSump
    See post #5

    Sent from my SM-G965U using Tapatalk

  10. #10
    New User
    Join Date
    Mar 2020
    Location
    Springfield, Mo.
    Posts
    2
    Quote Originally Posted by zombie View Post
    For both the OP and your code, I would reccomend a slightly different approach. There are two ways depending on whether you want self resetting or latching. This filters out noise spikes and ensures the return stays off.

    Self Resetting (retries every 2 hours is condition stops)

    StopRtn (virtual outlet)
    Set OFF
    If LkCrpt CLOSED Then ON
    If LkSump CLOSED Then ON
    If S2_Flt OPEN Then ON
    Defer 000:10 Then ON
    Min Time 120:00 Then ON

    Return & email
    (Existing code)
    If Output StopRtn = ON Then OFF


    Latching (stays OFF until you manually intervene)

    StopRtn (virtual outlet)
    Set OFF
    If LkCrpt CLOSED Then ON
    If LkSump CLOSED Then ON
    If S2_Flt OPEN Then ON
    Defer 000:10 Then ON
    Defer 000:03 Then OFF
    When On > 000:02 Then ON

    Return & email
    (Existing code)
    If Output StopRtn = ON Then OFF

    You might be an engineer if...You have no life and can prove it mathematically.
    For the latching code, why include the 'Defer 000:03 Then OFF' statement? You would want this switch to just stay on until you went in and reset it, correct?

Similar Threads

  1. Can I use my new ATO/FMM module to also run my Leak Detection sensor from my Apex Classic?
    By deputydog95 in forum A2 Apex/ApexEL and A3 Apex Pro/Apex/Apex Jr
    Replies: 4
    Last Post: 07-31-2020, 08:30
  2. Leak Detection Sensor Setup
    By Mlane155 in forum Fluid Monitoring Module (FMM), FMK, ATK, LDK, and FMM Accessories
    Replies: 1
    Last Post: 01-12-2020, 22:46
  3. Program for using Optical Sensor to control potential overflow/leak
    By checha in forum Fluid Monitoring Module (FMM), FMK, ATK, LDK, and FMM Accessories
    Replies: 3
    Last Post: 10-31-2019, 21:06
  4. Leak Detection Sensor Wire
    By Spyderturbo007 in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 5
    Last Post: 03-06-2017, 07:17
  5. Help! Leak Detection Sensor
    By krobojr in forum Apex Classic/Apex Lite/Apex Jr
    Replies: 4
    Last Post: 12-21-2013, 13:27

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •