Results 1 to 9 of 9

Thread: Alerting Based on Run Time

  1. #1
    New User
    Join Date
    Apr 2016
    Location
    Washington, DC
    Posts
    7

    Alerting Based on Run Time

    Hey All! Have what I'm sure is a pretty basic question, I'm trying to determine the right way to alert via Apex when my ATO has been running for X time. Basically, what I've found is that my pump runs about an hour when it's activated (it's the Avast Peristaltic Pump - so very slow drips) and what I'm trying to do is have Apex alert when it's been on for an extended period of time which usually is indicative of the ATO reservoir being empty. Suggestions on the right way to program this type of statement?

    Thanks!

  2. #2
    Classic User
    Join Date
    Sep 2015
    Location
    Alexandria, Virginia 22311
    Posts
    753
    What do you have hooked up to what for this ATO setup? What turns it on? What turns it off?

  3. #3
    Frequent Contributor iamchadster's Avatar
    Join Date
    Aug 2013
    Location
    Wilsonville, Oregon
    Posts
    2,642
    Chad

  4. #4
    Classic User
    Join Date
    Sep 2015
    Location
    Alexandria, Virginia 22311
    Posts
    753
    @Chad, That is an elegant solution, a clever useage of DEFER.

  5. #5
    New User
    Join Date
    Apr 2016
    Location
    Washington, DC
    Posts
    7
    Thank you all for the quick responses and Chad, I'm not sure if that's doing what I'm looking for. Basically, I have a switch that when closed, activates the ATO pump, and when open turns it back off. It would seem to me that I could create a statement in the Alarm page that would be something like -

    IF ATO_Pump ON > 60:00:00 Then ON

    But I'm not sure if that's the correct way to code it or if it's possible without the creation of the virtual outlet suggested in Chad's thread?

  6. #6
    Frequent Visitor
    Join Date
    May 2016
    Location
    Lansdale, PA
    Posts
    589
    In a normal programming language yes. In Apex no. You need the virtual outlet in Apex.

  7. #7
    Frequent Visitor
    Join Date
    Jan 2016
    Location
    Cincinnati, ohio
    Posts
    709
    Check out the comprehensive reference manual. My here is a nice summary at the back with all the commands and their syntax. Unfortunately the one you would like isn't available. But as others have shown a little creative coding and you can make a lot of things happen.

  8. #8
    New User
    Join Date
    Dec 2015
    Location
    Arizona
    Posts
    4

    Alerting Based on Run Time

    Simple enough. I do this same thing with my setup
    Create a new virtual outlet and add this code

    Outlet name: ATO_Empty

    Code:
    Set OFF
    Fallback OFF
    If Outlet ATO = ON Then ON
    Defer 090:00 Then ON

    If your main outlet is on for 90mins this will turn on.

    You just need to edit the email outlet so when this outlet turns on it will notify you

    Alarm outlet:
    Code:
    If Outlet ATO_Empty = ON Then ON
    Hope that helps

  9. #9
    New User
    Join Date
    Apr 2016
    Location
    Washington, DC
    Posts
    7
    Thank you juanes66 - I think I got this setup correctly per your guidance and I'll guess we'll see in the next week. Thanks Again!

Similar Threads

  1. Question: Alerting command if a switch has not opened or closed in a specific period of time
    By aquarays in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 03-18-2020, 23:05
  2. Question: Program Pump to Run Based On Time Within The Hour
    By JMarsh178 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 05-04-2018, 14:10
  3. Question: Outlet time out / max run time
    By NineAndAhalf in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 10
    Last Post: 03-10-2018, 20:04
  4. Temp based on time
    By ouch in forum Apex Programming for Heaters and Chillers
    Replies: 3
    Last Post: 11-09-2017, 23:42
  5. Run feed mode based on breakout box switch?
    By dmglakewood in forum Misc Apex Usage & Programming
    Replies: 3
    Last Post: 09-04-2014, 12:09

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
  •