Results 1 to 4 of 4

Thread: DoW Question

  1. #1
    Regular Vistor Salty1's Avatar
    Join Date
    Feb 2013
    Location
    Dallas, TX
    Posts
    27

    DoW Question

    I have 2 feeders on my aquarium the idea is to have them feed on alternating days I have programmed as follows but they are both feeding every day. Where have I gone wrong?

    Feeder Lft

    Fallback OFF
    Set OFF
    If DoW --T-T-S Then OFF
    OSC 000:00/000:30/000:30 Then ON
    If DoW --T-T-S Then ON
    If Time 00:00 to 18:03 Then OFF
    If Time 18:05 to 00:00 Then OFF
    If FeedA 000 Then ON

    Feeder Rt

    Fallback OFF
    Set OFF
    If DoW SM-W-F- Then ON
    OSC 000:00/000:30/000:30 Then ON
    If Time 00:00 to 18:03 Then OFF
    If Time 18:05 to 00:00 Then OFF
    If FeedA 000 Then ON

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Remember that the apex evaluates statements from top to bottom where the last true statement wins. You need to make these changes. (Side note, it's best not to use non-standard fonts and colors in posts. It actually makes it harder for us to make modifications to code)

    Feeder Lft

    Fallback OFF
    Set OFF
    OSC 000:00/000:30/000:30 Then ON
    If Time 00:00 to 18:03 Then OFF
    If Time 18:05 to 00:00 Then OFF
    If DoW --T-T-S Then OFF
    If FeedA 000 Then ON

    Feeder Rt

    Fallback OFF
    OSC 000:00/000:30/000:30 Then ON
    If Time 00:00 to 18:03 Then OFF
    If Time 18:05 to 00:00 Then OFF
    If DoW SM-W-F- Then OFF
    If FeedA 000 Then ON



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

  3. #3
    Regular Vistor Salty1's Avatar
    Join Date
    Feb 2013
    Location
    Dallas, TX
    Posts
    27
    Thanks again zombie my old mind just can't keep things straight. Sorry about the the font issue I was cutting and pasting so I would make a mistake in the statements.

  4. #4
    New User
    Join Date
    Apr 2020
    Location
    eastern
    Posts
    13
    HI, I am so new to this, but trying to get my powerheads to turn off during my auto feeder being on on certain days. My auto feeder code is as follows, please advise on how to implement DOW to mimic the feeding time (thank you in advance):

    OSC 000:00/000:30/000:30 Then ON
    If Time 00:00 to 21:00 Then OFF
    If Time 21:02 to 00:00 Then OFF
    If FeedA 000 Then ON
    If DoW S-T-T-S Then OFF

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. Review My Program dow not working
    By cromag27 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 10-08-2018, 09:09
  3. Review My Program using DOW Command
    By cspearce2 in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 04-22-2018, 05:15
  4. Help! programming using DoW
    By lilchris in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 04-14-2017, 18:46
  5. Review My Program AFS and DoW
    By reefer PT in forum Misc Apex Usage & Programming
    Replies: 5
    Last Post: 07-07-2015, 06:19

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
  •