Results 1 to 7 of 7

Thread: Why is this simple ON/OFF code not working?

  1. #1
    New User
    Join Date
    Jul 2014
    Location
    California
    Posts
    7

    Why is this simple ON/OFF code not working?

    I am trying to turn on a pump and drain my sump 1 minute every day at 6pm. The pump turns on but does not turn OFF.

    Am I missing anything here?

    Set OFF
    Fallback OFF
    If Time 18:00 to 18:01 Then ON

  2. #2
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,486
    If Time 18:00 to 18:01 Then ON is actually 2 minutes.

    Use this:

    Fallback OFF
    Set OFF
    If Time 17:59 to 18:00 Then ON
    Defer 1:00 Then ON

    -or-

    Fallback OFF
    OSC 0:00/1:00/59:00 Then ON
    If Time 19:00 to 17:59 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
    Jul 2014
    Location
    California
    Posts
    7
    Thank you master!

    Quote Originally Posted by RussM View Post
    If Time 18:00 to 18:01 Then ON is actually 2 minutes.

    Use this:

    Fallback OFF
    Set OFF
    If Time 17:59 to 18:00 Then ON
    Defer 1:00 Then ON

    -or-

    Fallback OFF
    OSC 0:00/1:00/59:00 Then ON
    If Time 19:00 to 17:59 Then OFF

  4. #4
    Frequent Contributor
    Join Date
    Apr 2013
    Location
    Santa Cruz, CA
    Posts
    1,842
    What outlet do you have the pump plugged into as if you are using an Aqualifter or any other pump under 5 watts needs to be on outlet #4 or #8
    Jon

  5. #5
    New User
    Join Date
    Jul 2014
    Location
    California
    Posts
    7
    Quote Originally Posted by jonmos75 View Post
    What outlet do you have the pump plugged into as if you are using an Aqualifter or any other pump under 5 watts needs to be on outlet #4 or #8
    I have a 1100 lph pump for the drain.

    Now I have to program my solenoid to open(on) every Saturday at 6:30pm for 30mins

    will this code work? I will have all the equipment in to physically setup this week.

    Set OFF
    Fallback OFF
    If DoW ------S Then ON
    If Time 18:30 to 19:00 Then ON
    Defer 030:00 Then ON

  6. #6
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    You want this.

    Fallback OFF
    Set OFF
    If Time 18:30 to 18:59 Then ON
    If DOW SMTWTF- Then OFF

  7. #7
    New User
    Join Date
    Jul 2014
    Location
    California
    Posts
    7
    Thanks!

    Quote Originally Posted by zombie View Post
    You want this.

    Fallback OFF
    Set OFF
    If Time 18:30 to 18:59 Then ON
    If DOW SMTWTF- Then OFF

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. Review My Program Simple ATO Code
    By 1EyedKing in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 2
    Last Post: 08-06-2017, 16:49
  3. super simple VO now working
    By ufo8mycow in forum Misc Apex Usage & Programming
    Replies: 3
    Last Post: 01-15-2016, 14:03
  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
  •