Results 1 to 3 of 3

Thread: Simple ATO Code

  1. #1
    New User
    Join Date
    Aug 2017
    Location
    US, Central Time
    Posts
    2

    Question Simple ATO Code

    I am trying to make my ATO perform the following functions:
    If switch 1 is closed for more than 1 minute, turn pump on
    If switch 2 is closed - turn pump off (high float)
    I want to make sure that if the pump runs longer than 2 minutes it shuts the ATO down, and I only want the ATO to run once an hour.
    Have I got the right code?

    Set OFF
    If Sw1 CLOSED Then ON
    If Sw2 CLOSED Then OFF
    When On > 002:00 Then OFF
    Defer 001:00 Then ON
    Min Time 060:00 Then OFF

    Thanks in advance!

  2. #2
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    Nicely done! Your code looks good. I would add a statement to keep the ATO running for a very brief period after Sw1 opens:

    Defer 000:05 Then OFF
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  3. #3
    New User
    Join Date
    Aug 2017
    Location
    US, Central Time
    Posts
    2
    Quote Originally Posted by RussM View Post
    Nicely done! Your code looks good. I would add a statement to keep the ATO running for a very brief period after Sw1 opens:

    Defer 000:05 Then OFF
    Thank you for the quick reply!!

    So the final code will be this:

    Set OFF
    If Sw1 CLOSED Then ON
    If Sw2 CLOSED Then OFF
    When On > 002:00 Then OFF
    Defer 001:00 Then ON
    Min Time 060:00 Then OFF
    Defer 000:02 Then OFF (allows pump to run 2 seconds after Switch 1 opens)

Similar Threads

  1. Need simple WAV code using advance tab only
    By musical thinker in forum WAV Powerheads
    Replies: 2
    Last Post: 07-02-2018, 23:59
  2. Could this code work to utilize my DOS as an ATO pump, and How would I add the code?
    By alexx2208 in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 4
    Last Post: 08-17-2017, 08:56
  3. Why is this simple ON/OFF code not working?
    By Gino in forum Misc Apex Usage & Programming
    Replies: 6
    Last Post: 11-24-2015, 20:54
  4. Simple AFS code needed
    By Nola26 in forum Misc Apex Usage & Programming
    Replies: 20
    Last Post: 05-31-2015, 04:24
  5. Replies: 3
    Last Post: 01-12-2015, 21:03

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
  •