Results 1 to 5 of 5

Thread: Programming Day and Time

  1. #1
    Regular Vistor
    Join Date
    Sep 2016
    Location
    Indianapolis, IN
    Posts
    34

    Programming Day and Time

    Hello,

    Is there a way to have something like:

    If DoW -M--T-- And Time 00:00 to 12:00 Then ProfileName

    Please advise.

    Thank you,

    Don
    Last edited by dsdoyle; 02-22-2018 at 15:17. Reason: Correct syntax

  2. #2
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,464
    Set OFF
    If Time 0:00 to 12:00 Then profile-name
    If DoW S-TW-FS Then OFF

    Note the difference in how I specified the days in the DoW statement compared to your post. The key is to keep the output OFF on those days you do not want it to operate.
    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
    Regular Vistor
    Join Date
    Sep 2016
    Location
    Indianapolis, IN
    Posts
    34
    So I could do:

    Set OFF
    If Time 0:00 to 12:00 Then profile-name
    If DoW S-TW-FS Then OFF
    If Time 0:00 to 23:00 Then another-profile
    If DoW -M--T-- Then OFF

    Correct?
    Last edited by dsdoyle; 02-22-2018 at 15:36. Reason: Edit

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by dsdoyle View Post
    So I could do:

    Set OFF
    If Time 0:00 to 12:00 Then profile-name
    If DoW S-TW-FS Then OFF
    If Time 0:00 to 23:00 Then another-profile
    If DoW -M--T-- Then OFF

    Correct?
    Nope. The lower lines will override the upper ones and won't behave how you expect. Different weekly behaviors require virtual outlets.

    VOname (virtual outlet)
    Set OFF
    If Time 00:00 to 22:59 Then ON
    If DOW -M--T-- Then OFF

    Physical Outlet
    Set OFF
    If Time 00:00 to 11:59 Then profile1
    If DOW S-TW-FS Then OFF
    If Output VOname = ON Then profile2

    You might be an engineer if...You have no life and can prove it mathematically.

  5. #5
    Frequent Visitor Todd's Avatar
    Join Date
    Jan 2013
    Location
    Huntsville, AL
    Posts
    583
    No, the net effect of your DOW commands are all days OFF. And your second Time command encompasses the first. Why dont you describe in words what you are trying to do. It helps to think in terms of a default/nominal behavior with exceptions.

    -edit-
    It looks like zombie figured out what you wanted.

Similar Threads

  1. Programming my fan to be dependant on both heat and time of day
    By Ricky in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 11-14-2018, 12:58
  2. Time of day temperature programming
    By Bingo1213 in forum Apex Programming for Heaters and Chillers
    Replies: 2
    Last Post: 06-12-2018, 10:21
  3. Question: Programming Day of week and time of day
    By cspearce2 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 04-06-2018, 10:51
  4. Programming a Feed Cycle to start a particular time of day
    By bigblue in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 03-30-2018, 14:01
  5. Question: Programming pH variability with time of day
    By hemigrapsus in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 11-14-2016, 11:37

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
  •