Results 1 to 11 of 11

Thread: want pump on 30 sec on every 15 min. but on all night

  1. #1
    Regular Vistor
    Join Date
    Dec 2016
    Location
    montreal, quebec
    Posts
    43

    want pump on 30 sec on every 15 min. but on all night

    Hi

    I want my pump to turn on for 30 sec. every 15 min. during the day 10:00 to 21:00
    but i want to override osc at night and have pump continuous on at night on from 21:00 to 10:00

    I have read and search a lot but im french native and dont get the ocs concept it anyone could help me

    i use this code but it wont turn on at night

    Fallback ON
    Set ON
    If Time 21:00 to 10:00 Then ON
    OSC 000:00/000:15/010:00 Then ON

  2. #2
    Frequent Visitor
    Join Date
    Nov 2017
    Location
    Sydney Australia GMT+10
    Posts
    194
    The code below should do what you want. The logic is fall-thru, so the status of the outlet will be whatever conditional statement changes it last. In your code the OSC will override the If Time statement.

    Fallback ON
    Set ON
    OSC 000:00/000:30/014:30 Then ON
    If Time 21:00 To 10:00 Then ON

    This code will default to turning the pump on for 30 secs, then off for 14 mins 30 secs (to give you your 30 secs/15 min), and if the time is between 21:00 and 10:00 override this to constant on.


    Sent from my iPad using Tapatalk

  3. #3
    Regular Vistor
    Join Date
    Dec 2016
    Location
    montreal, quebec
    Posts
    43
    tanks seem to work perfect

  4. #4
    Frequent Visitor
    Join Date
    Nov 2017
    Location
    Sydney Australia GMT+10
    Posts
    194
    Glad to hear. Happy reefing!


    Sent from my iPad using Tapatalk

  5. #5
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,489
    The Set statement is not needed because OSC has explicit ON and OFF states. It can be deleted.
    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.

  6. #6
    Frequent Visitor
    Join Date
    Nov 2017
    Location
    Sydney Australia GMT+10
    Posts
    194
    I agree it is redundant. I left it mostly as I include a Fallback for powered outlets and Set for powered and virtual as a default starting position for all my code.


    Sent from my iPad using Tapatalk

  7. #7
    Regular Vistor
    Join Date
    Dec 2016
    Location
    montreal, quebec
    Posts
    43
    ok i say victory to fast something is wrong it work at night continuous from 21:00 To 10:00
    but it never start during the day anyting wrong with my code

    Fallback ON
    Set ON
    OSC 000:00/000:30/014:30 Then ON
    If Time 21:00 to 10:00 Then ON
    If FeedA 005 Then OFF
    Defer 005:00 Then ON
    If Output Sicce_2_3 = OFF Then OFF
    Defer 001:00 Then ON



    Sicce_2_3 is my return pump alway on so it should create conflict

  8. #8
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by reefsolution View Post
    ok i say victory to fast something is wrong it work at night continuous from 21:00 To 10:00
    but it never start during the day anyting wrong with my code

    Fallback ON
    Set ON
    OSC 000:00/000:30/014:30 Then ON
    If Time 21:00 to 10:00 Then ON
    If FeedA 005 Then OFF
    Defer 005:00 Then ON
    If Output Sicce_2_3 = OFF Then OFF
    Defer 001:00 Then ON



    Sicce_2_3 is my return pump alway on so it should create conflict
    You cant mix defer and OSC the way you did. Defer applies to the entire outlet.

    Sent from my SM-G965U using Tapatalk

  9. #9
    Regular Vistor
    Join Date
    Dec 2016
    Location
    montreal, quebec
    Posts
    43
    this outlet is my gyre for water movvement i want them off when i stop my return pump and want to have a 1 min delay to let the level up in the tank so it wont slash all over the place
    it is what cause the problem? i can't use this function?

  10. #10
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,489
    Delete the Set ON. It serves no purpose. Delete the Defer 005:00 Then ON too; you can only have a single Defer xxx Then ON statement, and if you do use two or more, only the last one will be operative.

    You need to adjust the OSC statement so the ON time is longer than the 1 minute delay created by the Defer 1:00 Then ON statement. Change the middle value in the OSC from 0:30 to 1:30. You must also adjust the 3rd value (OFF duration) to keep the overall OSC cycle time at 15 minutes. Change the OSC line to:

    OSC 000:00/001:30/013:30 Then ON
    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.

  11. #11
    Regular Vistor
    Join Date
    Dec 2016
    Location
    montreal, quebec
    Posts
    43
    should it look like this?

    Fallback ON

    OSC 000:00/001:30/013:30 Then ON
    If Time 21:00 to 10:00 Then ON
    If FeedA 005 Then OFF
    If Output Sicce_2_3 = OFF Then OFF
    Defer 001:00 Then ON

    thank a lot this forum is so useful tank to all for the great support

Similar Threads

  1. Replies: 6
    Last Post: 07-24-2017, 10:50
  2. Help! Programming pump to turn on only at night + OSC?
    By Tajabaho1 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 04-02-2016, 20:08
  3. brs 50ml/min pump for ATO
    By 96slowbra in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 5
    Last Post: 04-13-2015, 17:31
  4. how to shut off ato when pump runs more than 3 min
    By Savant in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 31
    Last Post: 09-30-2014, 16:38
  5. Help! Meaning of Min and Max in Pump Profile.
    By marc in forum Apex Programming for Vortech, Tunze, & Other Controllable Pumps
    Replies: 1
    Last Post: 11-05-2013, 17:43

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
  •