Results 1 to 7 of 7

Thread: Review My Program Please

  1. #1
    New User
    Join Date
    May 2015
    Location
    Chicago
    Posts
    4

    Review My Program Please

    This program is for a pump that moves water from my sump to my tank when the tank is low or the sump is high ... (Except when the tank is high or the sump is low).

    SUMP_H, SUMP_L, TANK_H and TANK_L are float switches.


    For some reason, the program is NOT turning the pump outlet on when SUMP_H closes.

    Please tell what I'm doing wrong!




    Fallback OFF
    Set OFF
    If SUMP_H CLOSED Then ON
    Min Time 002:30 Then OFF
    If TANK_L CLOSED Then ON
    Min Time 002:30 Then OFF
    If Outlet VO_TANK_LOW = ON Then ON
    If Outlet VO_TANK_H = ON Then OFF
    If SUMP_L CLOSED Then OFF
    If TANK_H CLOSED Then OFF

  2. #2
    Frequent Visitor Todd's Avatar
    Join Date
    Jan 2013
    Location
    Huntsville, AL
    Posts
    583
    You dont need two Min Time statements. The command applies to the outlet as a whole rather than individual commands. The duration seems a bit small, so not sure what purpose it serves. Also, the Tank VOs seem redundant to the Tank floats. The code for the VOs needs to be posted to fully understand.

  3. #3
    Frequent Visitor
    Join Date
    Sep 2013
    Location
    Chicago
    Posts
    157
    Agreed the following is redundant and will be removed:

    If Outlet VO_TANK_LOW = ON Then ON

    Without the Min Time statements (I think) the pump will turn off as soon as TANK_L opens. I want the pump to run at lease 2 min 30 seconds to prevent the TANK_L switch from opening/closing a lot.

    Does that make sense???

  4. #4
    Frequent Visitor Todd's Avatar
    Join Date
    Jan 2013
    Location
    Huntsville, AL
    Posts
    583
    You dont need multiple Min Time statements. For Min Time and Defer, position is irrelevant. I prefer to put them at the end however, because it reads better. Speaking of which, I think you will want to use a Defer...OFF instead. The Min Time...OFF, means when it shuts OFF, stay that way for at least the specified duration before allowing it to change. The Defer...OFF requires that an OFF condition be true for the specified duration before allowing it to change.

    So what does VO_TANK_H do that the float TANK_H does not?

  5. #5
    Frequent Visitor
    Join Date
    Sep 2013
    Location
    Chicago
    Posts
    157
    >> So what does VO_TANK_H do that the float TANK_H does not?[/QUOTE] <<

    I deleted that as well. Its redundant

    So, if I add

    DEFER 002:30 then Off

    Will that cause the pump to stay on 2:30 after each instance the float switched close?

  6. #6
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by LHillman View Post
    >> So what does VO_TANK_H do that the float TANK_H does not?
    <<

    I deleted that as well. Its redundant

    So, if I add

    DEFER 002:30 then Off

    Will that cause the pump to stay on 2:30 after each instance the float switched close?[/QUOTE]Defer 002:30 Then OFF

    adds 2:30 after it would have otherwise turned off


    Min Time 002:30 Then ON

    Makes sure that the outlet is on for at least 2:30.

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

  7. #7
    Frequent Visitor
    Join Date
    Sep 2013
    Location
    Chicago
    Posts
    157
    Ok. I'll try that. I think that should work.

Similar Threads

  1. Review My Program Please ...
    By LHillman in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 03-28-2018, 11:10
  2. Review My Program Please
    By LWHillman in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 02-25-2018, 13:17
  3. Review My Program Review my program
    By alexatho in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 1
    Last Post: 09-05-2016, 12:07
  4. Ca program review
    By Linuxgangster in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 09-06-2015, 21:19
  5. Question: Review my program
    By MKOBIE in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 3
    Last Post: 08-12-2014, 14:48

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
  •