Results 1 to 11 of 11

Thread: Programming with leak detector (ALD module with solid surface detector)

  1. #1
    Frequent Visitor
    Join Date
    Apr 2017
    Location
    Calabasas, California
    Posts
    64

    Programming with leak detector (ALD module with solid surface detector)

    Suggestions on how to program a leak detector. I have a electronic ball valve on my fill line. I also have an electronic ball valve on my drain line. I can get my leak detector to make the electronic ball valve stop the fill line but I also want it to turn on the drain ball valve. The kicker is I only want the drain on for a short period of time ( like 30 seconds) and then turn off. Is there a program line like “if swx8_1 closed then on 000:30”. I tried that and was “successful” but the 000:30 seemed to get erased. Thanks

  2. #2
    Frequent Visitor Todd's Avatar
    Join Date
    Jan 2013
    Location
    Huntsville, AL
    Posts
    583
    As you found, that is not valid syntax. You could use the WHEN command. Assuming you have other code already for the Drain outlet, you will probably also need to use a Virtual Outlet. Please post your existing code.
    If you are not using current firmware, it can also be done using DEFER and a VO.

  3. #3
    Frequent Visitor
    Join Date
    Apr 2017
    Location
    Calabasas, California
    Posts
    64
    Thanks.
    Drain outlet:
    fallback OFF
    Set OFF
    If FeedD 000 Then ON
    If Swx8_1 CLOSED Then ON

    Fill outlet:
    fallback OFF
    Set OFF
    If Swx8_1 CLOSED Then ON

    I have not updated firmware yet.

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Use a virtual outlet and add a defer to filter out trying to drain for noise spikes.

    LeakDrain
    Set OFF
    If Swx8_1 CLOSED Then ON
    Defer 000:40 Then ON

    Drain outlet:
    fallback OFF
    Set OFF
    If FeedD 000 Then ON
    If Swx8_1 CLOSED Then ON
    If Output LeakDrain = ON Then OFF
    Defer 000:10 Then ON



    Fill outlet:
    fallback OFF
    Set OFF
    If Swx8_1 CLOSED Then ON




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

  5. #5
    Frequent Visitor
    Join Date
    Apr 2017
    Location
    Calabasas, California
    Posts
    64
    So will this program turn ON my fill outlet when swx8_1 is closed ( which stops the water from going in) and at the same time turn ON my drain outlet for a total of 30 seconds and then turn OFF the drain outlet indefinitely? I’m not worried so much about the noise because if my leak detector touches any water this needs to all work.

  6. #6
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by epsteino View Post
    So will this program turn ON my fill outlet when swx8_1 is closed ( which stops the water from going in) and at the same time turn ON my drain outlet for a total of 30 seconds and then turn OFF the drain outlet indefinitely? I’m not worried so much about the noise because if my leak detector touches any water this needs to all work.
    Yep. I don't understand why you would want to turn in a fill outlet when a leak is detected, but it will do that.

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

  7. #7
    Frequent Visitor
    Join Date
    Apr 2017
    Location
    Calabasas, California
    Posts
    64
    Right. The fill outlet is connected to a normally open electronic ball valve. In the off position it is open and fills the tank. To shut it when a leak is detected it needs to be turned on.

  8. #8
    Frequent Visitor
    Join Date
    Apr 2017
    Location
    Calabasas, California
    Posts
    64
    Thanks Zombie! It works like a charm. Didn't need the defer for 10 seconds cause if a leak is detected, it is not from any "noise" source.

  9. #9
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by epsteino View Post
    Thanks Zombie! It works like a charm. Didn't need the defer for 10 seconds cause if a leak is detected, it is not from any "noise" source.
    They actually can but if you don't want to wait a whole 10 seconds, I would at least do a 1 second defer. Leak detectors can get quick noise spikes from EMI fairly easily since they are so sensitive.

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

  10. #10
    Frequent Visitor
    Join Date
    Apr 2017
    Location
    Calabasas, California
    Posts
    64
    Gotcha. This noise from emi, does it cause the switch to close momentarily and then turn right back to open or does it stay closed for a while? Then Maybe I should put a defer on the alarm code too.

  11. #11
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by epsteino View Post
    Gotcha. This noise from emi, does it cause the switch to close momentarily and then turn right back to open or does it stay closed for a while? Then Maybe I should put a defer on the alarm code too.
    EMI is unpredictable. The majority of cases are from utility power surges or starting large pumps with wires nearby the sensor. Most spikes only last a second or so, but certain spikes like starting a pump can potentially last up to 10 seconds (which is why I use that as a starting point). I would suggest using a 10 second defer for all alarms as this can happen to any sensor and is even more prominent on something like a cond or pH probe.

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

Similar Threads

  1. Leak detector module connection
    By Tapio in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 2
    Last Post: 03-31-2018, 12:39
  2. Solved: Solid Surface Leak Detector False Alarms
    By jmkirk in forum Misc Aquarium Automation Discussions
    Replies: 2
    Last Post: 09-05-2017, 17:10
  3. Solved: Solid Surface Leak Detector False Alarms
    By jmkirk in forum A2 Apex/ApexEL and A3 Apex Pro/Apex/Apex Jr
    Replies: 1
    Last Post: 09-05-2017, 16:34
  4. Having immediate alarm on my ATK/FMM when istalling a flat surface leak detector
    By linko in forum Fluid Monitoring Module (FMM), FMK, ATK, LDK, and FMM Accessories
    Replies: 9
    Last Post: 08-11-2017, 06:49
  5. Replies: 5
    Last Post: 04-18-2017, 19:04

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
  •