Results 1 to 5 of 5

Thread: Virtual Outlet Newbie

  1. #1
    Regular Vistor
    Join Date
    Jun 2016
    Location
    PST
    Posts
    22

    Virtual Outlet Newbie

    Need some help with my code below. I've been working on this all day and don't understand the logic and at this point it doesn't even work. My goal is to feed my tank daily, twice each day at 15:00 and 18:00 except for Tuesday and Friday. On Tuesday and Friday I just want 1 feeding at 15:00. I feed frozen during the evening on Tuesday and Friday.

    I've created 3 virtual outlets - Please guide me in the right direction to figure this out.

    Virtual Outlet - vAFS
    OSC 000:00/000:30/000:30 Then ON
    If Time 00:00 to 15:00 Then OFF
    If Time 15:02 to 00:00 Then OFF
    If DoW --T--F- Then OFF

    Virtual Outlet - vAFS1
    OSC 000:00/000:30/000:30 Then ON
    If Time 00:00 to 15:00 Then OFF
    If Time 15:02 to 16:30 Then OFF
    If Time 16:32 to 00:00 Then OFF
    If DoW SM-WT-S Then OFF

    Virtual Outlet - vAFS2
    OSC 000:00/000:30/000:30 Then ON
    If FeedA 000 Then ON

    Feeder program
    If Output vAFS = ON Then ON
    If Output vAFS1 = ON Then ON
    If Output vAFS2 = ON Then ON




    Thanks in advance for your help

  2. #2
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    Quote Originally Posted by Justjohno View Post
    Feeder program
    If Output vAFS = ON Then ON
    If Output vAFS1 = ON Then ON
    If Output vAFS2 = ON Then ON
    There is nothing to turn the AFS off. Add a Set OFF statement:

    Set OFF
    If Output vAFS = ON Then ON
    If Output vAFS1 = ON Then ON
    If Output vAFS2 = ON 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.

  3. #3
    Regular Vistor
    Join Date
    Jun 2016
    Location
    PST
    Posts
    22
    Russ,

    Thanks for the quick reply. I've added the "Set Off" and it started to work, but it continued to run. I'm sure its from vAFS2 outlet, which I turned off. I don't use the feed buttons and feel I dont need it. It was added after looking at other examples.

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Remove the OSC statement from vafs2 and/or remove it entirely and just add the FeedA to the feeder code directly

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

  5. #5
    Regular Vistor
    Join Date
    Jun 2016
    Location
    PST
    Posts
    22
    Zombie,

    Thanks for the help, I removed vAFS2 altogether and added FeedA to feeder code as suggested. Lets see what happens today...thanks again for the advice.

Similar Threads

  1. Newbie Question for Virtual Outlets
    By Russwalters in forum Misc Apex Usage & Programming
    Replies: 3
    Last Post: 07-16-2017, 15:42
  2. Replies: 3
    Last Post: 04-19-2017, 18:41
  3. Outlet is grey in programming in virtual outlet
    By NepNoob in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 03-20-2017, 22:59
  4. Can a Virtual Outlet be used to control other Virtual Outlet(s)?
    By tige21v in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 01-16-2017, 09:15
  5. Possible to program Vortech virtual outlet to default outlet?
    By iCraigerz in forum Apex Programming for Vortech, Tunze, & Other Controllable Pumps
    Replies: 6
    Last Post: 03-01-2014, 02: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
  •