Results 1 to 3 of 3

Thread: IF Time and DoW

  1. #1
    Frequent Visitor powers2001's Avatar
    Join Date
    Aug 2013
    Location
    Montana
    Posts
    319

    IF Time and DoW

    I want this outlet to be ON at 1 pm for 1 minute just Monday and Wednesday also ON at 6 pm for 1 minute Sunday through Thursday. Will it work?

    Set OFF
    If Time 18:00 to 18:01 Then ON
    If DoW -----FS Then OFF
    If Time 13:01 to 13:00 Then OFF
    If DoW -M-W--- Then ON

  2. #2
    NSI Member eschulist's Avatar
    Join Date
    Nov 2015
    Location
    Minneapolis, MN USA
    Posts
    467

    IF Time and DoW

    I believe those two statements will conflict with eachother and it will never have a situation where its true.

    Also the last statement in a program usually overrides everything above it so in your scenario it would be off all the time but On the entire day Mon and Wed.

    For this programming it would be best to create two unique virtual outlets each having a separate day and time configuration.

    Virtual Outlet Labeled
    MonWed
    Set OFF
    If time 13:00 to 13:01 then ON
    If DOW S-T-TFS then OFF

    New virtual Outlet Labeled
    SunThu
    Set OFF
    If time 18:00 to 18:01 Then ON
    If DoW -----FS Then OFF

    In your original outlet put in
    Set OFF
    If Outlet MonWed On then On
    If Outlet SunThu On then On


    Sent from my iPhone using Tapatalk

  3. #3
    Frequent Contributor iamchadster's Avatar
    Join Date
    Aug 2013
    Location
    Wilsonville, Oregon
    Posts
    2,639
    Quote Originally Posted by eschulist View Post
    I believe those two statements will conflict with eachother and it will never have a situation where its true.

    Also the last statement in a program usually overrides everything above it so in your scenario it would be off all the time but On the entire day Mon and Wed.

    For this programming it would be best to create two unique virtual outlets each having a separate day and time configuration.

    Virtual Outlet Labeled
    MonWed
    Set OFF
    If time 13:00 to 13:01 then ON
    If DOW S-T-TFS then OFF

    New virtual Outlet Labeled
    SunThu
    Set OFF
    If time 18:00 to 18:01 Then ON
    If DoW -----FS Then OFF

    In your original outlet put in
    Set OFF
    If Outlet MonWed = On then On
    If Outlet SunThu = On then On


    Sent from my iPhone using Tapatalk
    You may want a Fallback statement in your original outlet depending on the device. Also, don't forget those "=" signs.
    Chad

Similar Threads

  1. DOW with Time coding question
    By Thales in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 04-21-2020, 09:36
  2. Help! programming using DoW
    By lilchris in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 04-14-2017, 18:46
  3. Review My Program DoW & Time of Day
    By Salty1 in forum Apex Programming for Dosing, ATO, and AWC
    Replies: 4
    Last Post: 08-03-2015, 14:58
  4. Question: Lighting time different for different DoW
    By iamchadster in forum Apex Programming for Lighting
    Replies: 5
    Last Post: 03-15-2014, 07:26

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
  •