Results 1 to 4 of 4

Thread: Buffer pump program

  1. #1
    Regular Vistor
    Join Date
    Feb 2013
    Location
    Burnaby
    Posts
    48

    Buffer pump program

    I am not sure if I fully understand the application of defer and min (despite reading lots). I would appreciate a second look at my programming.

    I have two pH probes and would like the buffer pump to run only when both are in agreement. I don't want the buffer pump to turn on and off quickly if the pH jumps around a little. Lastly, if the buffer pump runs for more than 30 min, send me a message (as the solution is out).

    Virtual outlet for the second pH probe called BackpH:

    BackpH
    If pH2 < 8.00 Then ON
    If pH2 > 8.20 Then OFF


    Virtual outlet for the timer called VBuffertimer:

    VBuffertimer
    Set OFF
    If Output Buffer-Pump = ON Then ON
    Defer 030:00 Then ON


    Outlet controlling the buffer pump called Buffer-Pump:

    Buffer-Pump
    Set OFF
    If pH1 < 8.00 Then ON
    If Output BackpH = ON Then ON
    If Output VBufferTimer = ON Then OFF
    Min Time 002:00 Then OFF
    Defer 001:00 Then ON

    Then a line in my e-mail alarm:

    If Output VBufferTimer = ON Then ON


    I am not sure if I am using the defer and min commands properly in the virtual timer and outlet properly.

    Many thanks.

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    That won't work. You need a latch. This will set the pump to manual OFF if it runs too long. Buffertimer is not needed. You also did an OR with the backup and main probes. The change I made turns it into an AND.

    Virtual outlet for the second pH probe called BackpH:

    BackpH
    If pH2 < 8.00 Then ON
    If pH2 > 8.20 Then OFF


    Outlet controlling the buffer pump called Buffer-Pump:

    Buffer-Pump
    Set OFF
    If pH1 < 8.00 Then ON
    If Output BackpH = OFF Then OFF
    Defer 001:00 Then ON
    When On > 030:00 Then OFF

    Then a line in my e-mail alarm:

    If Error Buffer-Pump Then ON




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

  3. #3
    Regular Vistor
    Join Date
    Feb 2013
    Location
    Burnaby
    Posts
    48
    Hey Zombie

    That's more concise and clear and I almost understand it - and more importantly correct. One quick question: What triggers the Error for the e-mail alarm?

  4. #4
    Regular Vistor
    Join Date
    Feb 2013
    Location
    Burnaby
    Posts
    48
    Figured it out. I found a sticky on the use of WHEN including error messages. Perfect.

    Thanks Zombie.

Similar Threads

  1. DOS programming for adding dKH buffer
    By JurisHP in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 1
    Last Post: 01-18-2022, 19:04
  2. Buffer vs storage solutions
    By Trailermann in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 0
    Last Post: 05-31-2021, 11:36
  3. Question: Using colored pH Buffer solution for probe calibration?
    By jordanM in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 4
    Last Post: 09-20-2018, 19:40
  4. Question: DOS and liquid ph buffer
    By alistairandjeff in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 6
    Last Post: 12-30-2015, 07:18
  5. Pump program
    By Tab28 in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 03-21-2014, 15: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
  •