Results 1 to 5 of 5

Thread: PMUP delay

  1. #1
    Regular Vistor
    Join Date
    Nov 2016
    Location
    Calgary
    Posts
    24

    PMUP delay

    I have a pmup setup to work as an ato. I have an optical sensor on a virtual outlet and when the outlet turns on the pmup is supposed to turn on. When I am looking through my log sometimes the pmup turns on as soon as the optical outlet turns on. SOmetimes it take a few mintues before the pmup turns on. Any idea why it doesnt turn on right away when the optical turns on? Seems to me like the pmup should come on the second the optical outlet turns on but his is not hte case and I cant figure out why. Any help would be appreciated

    Here is My PMUP Programming
    Fallback OFF
    If Output Optical-1 = ON Then ON
    OSC 000:00/000:30/003:00 Then ON
    If Output Optical-1 = OFF Then OFF
    If Output ReturnPump = OFF Then OFF
    If Salt < 20.0 Then OFF
    If Output ATO-Lo = ON Then OFF
    If Output DOS1-NSW = ON Then OFF
    If Output DOSFillSalt = ON Then OFF
    If Output Optical-2 = ON Then OFF
    If Output Sump-LOW = ON Then OFF
    If Output WaterChange = ON Then OFF
    Min Time 000:20 Then ON
    When On > 005:00 Then OFF

    The Optical Switch Outlet Programming
    Fallback OFF
    Set OFF
    If Opt-1 OPEN Then ON
    If Output WaterChange = ON Then OFF
    Defer 001:30 Then ON
    Min Time 000:30 Then OFF
    When On > 060:00 Then OFF

    And my data log
    21 2017-12-02 03:26:00 -0700 PMUP ON
    22 2017-12-02 03:26:22 -0700 Optical-1 OFF
    23 2017-12-02 03:26:22 -0700 PMUP OFF
    24 2017-12-02 04:10:32 -0700 Optical-1 ON
    25 2017-12-02 04:10:47 -0700 Optical-1 OFF
    26 2017-12-02 04:12:42 -0700 Optical-1 ON
    27 2017-12-02 04:14:06 -0700 Optical-1 OFF
    28 2017-12-02 04:17:04 -0700 Optical-1 ON
    29 2017-12-02 04:17:53 -0700 Optical-1 OFF
    30 2017-12-02 04:20:06 -0700 Optical-1 ON
    31 2017-12-02 04:22:00 -0700 PMUP ON
    32 2017-12-02 04:22:10 -0700 Optical-1 OFF
    33 2017-12-02 04:22:21 -0700 PMUP OFF

  2. #2
    Frequent Contributor iamchadster's Avatar
    Join Date
    Aug 2013
    Location
    Wilsonville, Oregon
    Posts
    2,639
    The apex evaluates statements from top to bottom. In your programming, when the oscillate is in an "off" time it would trump the statement right above it which says to turn on when the virtual outlet is on. One the osc statement falls into an "on" time and the virtual outlet is on (so the off condition right below the osc statement doesn't trump it) the PMUP can come on. What is the purpose of the osc statement in your code?

    You could try this.

    Here is My PMUP Programming
    Fallback OFF
    Set Off
    If Output Optical-1 = ON Then ON

    If Output ReturnPump = OFF Then OFF
    If Salt < 20.0 Then OFF
    If Output ATO-Lo = ON Then OFF
    If Output DOS1-NSW = ON Then OFF
    If Output DOSFillSalt = ON Then OFF
    If Output Optical-2 = ON Then OFF
    If Output Sump-LOW = ON Then OFF
    If Output WaterChange = ON Then OFF
    Min Time 000:20 Then ON
    When On > 005:00 Then OFF

    Notice I deleted the OSC statement and placed a "Set Off" instead
    I also change the condition of the PMUP to come on when the virtual outlet is on, removing the statement to turn it off when off as it would be redundant with the Set Off statement.
    Chad

  3. #3
    Regular Vistor
    Join Date
    Nov 2016
    Location
    Calgary
    Posts
    24
    Ok that makes sense as the pmup never takes longer than 3min to turn on. The OSC command was to make sure the pmup only ran for 20secs then turn off so it didnt overheat.
    I thought the osc would only run its schedule if the pmup was on and wouldnt do anything if the pmup is off.
    It'll work pretty much the same way i wanted with the code changes you made. It really only runs for the min time of 20seconds then shuts off anyway so no need for the osc command.
    Thanks for the help

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Humpty View Post
    Ok that makes sense as the pmup never takes longer than 3min to turn on. The OSC command was to make sure the pmup only ran for 20secs then turn off so it didnt overheat.
    I thought the osc would only run its schedule if the pmup was on and wouldnt do anything if the pmup is off.
    It'll work pretty much the same way i wanted with the code changes you made. It really only runs for the min time of 20seconds then shuts off anyway so no need for the osc command.
    Thanks for the help
    The when command is the simple and easy way. OSC has it's benefit of being more effective in the event the switch "sticks" but doing so requires additional virtual outlets to detect when the switch is "stuck" so it will shut off completely when it has gone several fills in a row without the switch state changing. Really depends if you want simple and more than adequate or super control freak effectiveness with some extra time and complexity up front.

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

  5. #5
    Regular Vistor
    Join Date
    Nov 2016
    Location
    Calgary
    Posts
    24
    Ya I shortened the When time and that should work fine for me. The pmup is triggering immediately so now the whole ato system is working exactly as I would like it.
    It worked fine before it just bugged me that it didnt start immediately and I knew somebody here would have the answer for me. Thanks guys!

Similar Threads

  1. Replies: 14
    Last Post: 12-07-2022, 16:27
  2. Question: ATK and PMUP question- hour delay?
    By Joe DeSantis in forum Apex Classic/Apex Lite/Apex Jr
    Replies: 2
    Last Post: 06-04-2018, 18:11
  3. delay sometimes and not others
    By p7willm in forum Misc Apex Usage & Programming
    Replies: 0
    Last Post: 06-05-2016, 09:49
  4. Alarm Delay?
    By yachtdr22 in forum Misc Apex Usage & Programming
    Replies: 3
    Last Post: 03-11-2015, 06:52
  5. Momentary PB with Delay?
    By Reefnut in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 5
    Last Post: 02-17-2013, 05:56

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
  •