Results 1 to 19 of 19

Thread: Once a week switch

  1. #1
    Frequent Visitor
    Join Date
    Mar 2015
    Location
    United Kingdom
    Posts
    61

    Once a week switch

    Hi I'm looking for code for a virtual outlet so that it comes on for just 1min at 8pm on Sunday and off the whole rest of the time.

    Many thanks in advance.

    Dave

  2. #2
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,492

    Once a week switch

    Set ON
    If Time 20:01 to 19:59 Then OFF
    IF DoW -MTWTFS 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
    Frequent Visitor
    Join Date
    Mar 2015
    Location
    United Kingdom
    Posts
    61
    Hi many thanks I just tried it moving the day to Monday etc but if didn't come on?? just stayed off.

  4. #4
    Frequent Visitor vinnie's Avatar
    Join Date
    Sep 2014
    Location
    UK
    Posts
    299
    Set ON
    If Time 20:01 to 19:59 Then OFF
    IF DoW S-TWFTS Then OFF

    Must fill in days not used

  5. #5
    Frequent Visitor
    Join Date
    Mar 2015
    Location
    United Kingdom
    Posts
    61
    Set ON
    If Time 13:30 to 13:26 Then OFF
    If DoW S-TWTFS Then OFF

    I tried this but it didn't turn on

  6. #6
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,492
    The Apex clock is correct as seen on the display? The VO is on AUTO?

    BTW, I had accidentally swapped the letters for Thurs & Fri - I fixed that in my previous post.
    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.

  7. #7
    Frequent Visitor
    Join Date
    Mar 2015
    Location
    United Kingdom
    Posts
    61
    image.pngimage.jpg As far as I can tell it's all set up corrects the outputs on auto. Thanks Dave

  8. #8
    Regular Vistor
    Join Date
    May 2015
    Location
    Burke, VA
    Posts
    25
    Dave,

    Personally, I would use this code:
    Set OFF
    If Time 13:26 to 13:29 Then ON
    If DoW S-TWTFS Then OFF

    When doing it this way, keep in mind 13:29 is really until 13:29:59 (aka 13:30). Also, this is obviously more than one minute...so if you still want to use just one minute you'll need to make that adjustment. You changed more than just switching to Monday

  9. #9
    Frequent Visitor
    Join Date
    May 2016
    Location
    Lansdale, PA
    Posts
    589
    It looks like there is a problem with the time. Since 13:26 is before 13:30 will this come on at 13:30 and stay on over midnight until 13:26:59 the next day and with the DOW be on from midnight to 13:26:59, off until 13:30 and then on until midnight?

  10. #10
    Frequent Visitor
    Join Date
    Jan 2016
    Location
    Cincinnati, ohio
    Posts
    709
    Your problem is the clock, not the code. I forget the fix, I think it is in the daylight savings setting, but search the forum and you will find it. There should not be two different times.

  11. #11
    Regular Vistor
    Join Date
    Dec 2016
    Location
    Wheatfield, IN
    Posts
    36
    I was wanting my metal halide to not come on one day a week...
    or maybe just less time one day of the week.
    So far I have it so it doesn't come on on Sundays.
    I was looking through these posts and I always keep seeing on the DoW programing that they use ( -MTWTFS). I have it backwards and it has worked today and not come on but I don't know about tomorrow when I want it on so my question is will this work the way I have it?


    Sent from my iPhone using Tapatalk

  12. #12
    Regular Vistor
    Join Date
    Dec 2016
    Location
    Wheatfield, IN
    Posts
    36
    And after this code do I just put
    (If Time 11:00 to 03:00 Then On)
    Or is there more to it then that for that particular DoW


    Sent from my iPhone using Tapatalk

  13. #13
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,492
    That If DoW looks fine. However, a Min Time of 30 seconds is not right for use with metal halides; that statement is intended to allow sufficient cool down time for the MH lamp if it is shut off for some reason, making it stay off for a suitable period of time before trying to turn it back on. The usual value to use is 30 minutes.
    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.

  14. #14
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,492
    Quote Originally Posted by haanstang View Post
    And after this code do I just put
    (If Time 11:00 to 03:00 Then On)
    Or is there more to it then that for that particular DoW
    Yes, that will give you reduced lighting hours on Sundays. Add it after the If DoW line.
    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.

  15. #15
    Regular Vistor
    Join Date
    Dec 2016
    Location
    Wheatfield, IN
    Posts
    36
    Ok.
    I didn't even notice that I changed that. Thanks


    Sent from my iPhone using Tapatalk

  16. #16
    Regular Vistor
    Join Date
    Dec 2016
    Location
    Wheatfield, IN
    Posts
    36
    If I want it just less time instead of off do I leave out the off and put ( if time ...)?


    Sent from my iPhone using Tapatalk

  17. #17
    Regular Vistor
    Join Date
    Dec 2016
    Location
    Wheatfield, IN
    Posts
    36
    So would this be right for having Sunday light time different from other days of the week?


    Sent from my iPhone using Tapatalk

  18. #18
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,492
    Upon taking another look, the sequence needs to change. Move the If Tmp and Min Time to the end.

    BTW, in cases like this, please post the programming by copy and paste of the actual program text. This makes is easy for someone helping you to give you modifications without having to retype it all. Sometimes screenshots are quite valuable but sometimes (like this) they can be counterproductive
    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.

  19. #19
    Regular Vistor
    Join Date
    Dec 2016
    Location
    Wheatfield, IN
    Posts
    36
    Ok I will do that next time
    Thanks for the tip

    So move line 4&5 to the bottom after line 6&7 and then everything will work?



    Sent from my iPhone using Tapatalk

Similar Threads

  1. ordering 240 this week
    By Fred in forum The Neptune Café
    Replies: 1
    Last Post: 12-19-2017, 13:15
  2. Atk this week?
    By thor2j in forum Pre-Sales Questions
    Replies: 11
    Last Post: 06-10-2017, 19:45
  3. Programming for once a week
    By Houm in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 03-27-2017, 17:46
  4. Question: How do I program an outlet to come on once a week?
    By aj27662 in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 06-07-2015, 09:29
  5. day of the week
    By slosoaks in forum DŌS & DDR – Dosing and Fluid Metering System
    Replies: 1
    Last Post: 02-22-2015, 10:50

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
  •