Results 1 to 14 of 14

Thread: Another AFS programming question/help

  1. #1
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60

    Another AFS programming question/help

    I just installed the AFS and the automatic programming works great to get it to turn on. However, is there a way to have the code in the AFS trigger FeedA ?
    -OR-
    Do I have to manually enter code into the skimmer, WAV's, and return pumps to turn off at the same time I want the AFS to rotate?

  2. #2
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    Ok... SO I made a Virtual Outlet called AutoFeed, turns things off or lowers output for 7-8 minutes. How should the AFS code be updated to work with the virtual outlet? Or just tell teh auto feeder to do it rotation at 18:00?

    AutoFeed Outlet code is as follows:

    Set Off
    If Time 18:00 to 18:08 Then On

    Adding the following code to other devices:
    Both my COR20 On My UV Sterlizer and My COR 20 Return is as follows:

    If FeedA 005 Then OFF
    If FeedB 010 Then OFF
    If Outlet AutoFeed = On Then Off

    Skimmer Code:

    Fallback ON
    Set ON
    If FeedA 005 Then OFF
    Defer 005:00 Then ON
    If FeedB 010 Then OFF
    Defer 005:00 Then ON
    If Outlet AutoFeed = On Then Off
    Defer 005:00 Then On

    WAV Code to turn power down to 5%:

    If FeedA 000 Then 5
    If FeedB 010 Then OFF
    If Outlet AutoFeed = On Then 5

  3. #3
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    This is my AFS code, also want to verify that the AFS is delayed 20 seconds if FeedA is activated. How to make it run using just the virtual outlet AutoFeed or FeedA. Only 1 rotation. If I wanted to add a second rotation what do I need to add?

    Current Code:
    OSC 000:00/000:30/000:30 Then ON
    If Time 00:00 To 18:00 Then OFF
    If Time 18:02 To 00:00 Then OFF
    If FeedA 000:20 Then ON

    Proposed Code, will it work?

    OSC 000:00/000:30/000:30 Then ON
    If FeedA 000:20 Then ON
    If Outlet AutoFeed = On 000:20 Then ON

  4. #4
    Frequent Visitor
    Join Date
    Nov 2017
    Location
    Sydney Australia GMT+10
    Posts
    194
    I don’t think you can use a delay directly in an IF statement for an outlet statement in the same way you can to test for a Feed cycle. You need to use a Defer statement instead.

    For the 2nd rotation you need to use an OSC but I haven’t used that personally so will let someone else comment. In terms of my code below this would just be a change to your AFS code, the rest would stay the same.

    I use a single cycle, here is my code as an example. Rather than duplicate all the logic in multiple outlets I find it simpler to ‘daisy chain’ from my return pump - in my case it is only my skimmer I do this for. I only use my AFS when we are away so don’t trigger it from FeedA. FeedB is my maintenance cycle.

    [V-Feed]
    Set OFF
    If Time 19:00 to 19:09 Then ON

    [AutoFeeder]
    Set OFF
    If Outlet V-Feed = ON then ON
    Defer 1:00 then ON

    [ReturnPump]
    Fallback ON
    Set ON
    If FeedA 000 Then OFF
    If FeedB 000 Then OFF
    If Outlet V-Feed = ON then OFF

    [Skimmer]
    Fallback OFF
    Set ON
    If Outlet ReturnPump = OFF Then OFF
    If FeedB 000 Then OFF
    If Power EB6_1 OFF 001 Then OFF
    Defer 2:00 Then ON


    Sent from my iPad using Tapatalk

  5. #5
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    SO I made a bunch of virtual outlets to simulate some code attempts at the autofeed I am trying to setup.....well I failed horribly, not sure why, but I ended up with a tank full of food. I made a virtual outlet to simulate the AFS but never referenced the actual feeder in the code, but managed to get about a dozen revolutions of food in the tank. Lost an hour vacuuming sand and food out of tanbk.

    Deleted all the virtual outlets and currently only have the AFS set to turn on by manual FeedA button push.
    Back to the drawing board. This will be the last time I practice code upstairs away from the tank.

  6. #6
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    Ok, trying to edit my code, please someone look it over and make suggestions as needed. What I want is the AFS to only feed with one rotation on Monday/Wednesday/Friday at 6 pm. I want things to slow down or shut off for 10 minutes. Also, I want the AFS to run if I hit FeedA. I want the skimmer to delay its restart for 5 minutes if FeedA, FeedB, AutoFeed, or return pump is off.

    [Virtual Outlet for Autofeeding "VO_AutoFeed" - ONLY FEEDS AT 6 PM Mon/Wed/Fri]
    Set OFF
    If Time 18:00 to 18:10 Then On
    If DoW S-T-T-S Then OFF


    [PROPOSED AFS PROGRAMMING - ONLY WANT 1 ROTATION]
    Set OFF
    If VO_AutoFeed = ON Then ON
    If FeedA 001 Then ON
    Defer 1:00 Then ON


    [PROPOSED WAV PROGRAMMING]
    If FeedA 000 Then 5
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then 5


    [PROPOSED COR_RTN PROGRAMMING]
    If FeedA 000 Then OFF
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then OFF


    [PROPOSED COR_UV PROGRAMMING}
    If FeedA 000 Then OFF
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then OFF


    [PROPOSED SKIMMER PROGRAMMING]
    Fallback ON
    Set ON
    If FeedA 000 Then OFF
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then OFF
    If COR_RTN = OFF Then OFF
    Defer 005:00 Then ON

  7. #7
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by rbarr110 View Post
    Ok, trying to edit my code, please someone look it over and make suggestions as needed. What I want is the AFS to only feed with one rotation on Monday/Wednesday/Friday at 6 pm. I want things to slow down or shut off for 10 minutes. Also, I want the AFS to run if I hit FeedA. I want the skimmer to delay its restart for 5 minutes if FeedA, FeedB, AutoFeed, or return pump is off.

    [Virtual Outlet for Autofeeding "VO_AutoFeed" - ONLY FEEDS AT 6 PM Mon/Wed/Fri]
    Set OFF
    If Time 18:00 to 18:10 Then On
    If DoW S-T-T-S Then OFF


    [PROPOSED AFS PROGRAMMING - ONLY WANT 1 ROTATION]
    Set OFF
    If VO_AutoFeed = ON Then ON
    If FeedA 001 Then ON
    Defer 1:00 Then ON


    [PROPOSED WAV PROGRAMMING]
    If FeedA 000 Then 5
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then 5


    [PROPOSDED COR_RTN PROGRAMMING]
    If FeedA 000 Then OFF
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then OFF


    [PROPOSED COR_UV PROGRAMMING}
    If FeedA 000 Then OFF
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then OFF


    [PROPOSDED SKIMMER PROGRAMMING]
    Fallback ON
    Set ON
    If FeedA 000 Then OFF
    If FeedB 000 Then OFF
    If Outlet VO_AutoFeed = ON Then OFF
    If COR_RTN = OFF Then OFF
    Defer 005:00 Then ON
    Your feeding code is fine, but you want to add this line to your skimmer code to prevent overflows after power outages or reboots.

    If Power Apex Off 001 Then OFF

    Sent from my SM-G965U using Tapatalk

  8. #8
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    Thank you. Tested the code and it worked with two minor changes on the skimmer code and VO_Autofeed, had to add outlet (output) to the COR-RTN and VO line of code.

  9. #9
    Frequent Visitor
    Join Date
    Nov 2017
    Location
    Sydney Australia GMT+10
    Posts
    194
    I test my AFS on the dining room table emptying into a container. I had to modify the opening to restrict the output as my tank is only 65g and the standard settings were either too much or almost nothing, so had to run quite a few test cycle.


    Sent from my iPad using Tapatalk

  10. #10
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    My code worked yesterday when I tested my manually turning the virtual outlet on. Tonight and tomorrow will be the true test if it feeds tonight and then not on Tuesday. The feeder is currently empty to avoid any mishaps again.

  11. #11
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    So I watched the APEX run the code, and I am not 100% sure as there was no food in the AFS, but I dont think the feeder made its one rotation. It extended out and went back in one time, but pretty sure no rotation. Is that due to not having the OSC code? Or is it a mechanical malfunction?

  12. #12
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by rbarr110 View Post
    So I watched the APEX run the code, and I am not 100% sure as there was no food in the AFS, but I dont think the feeder made its one rotation. It extended out and went back in one time, but pretty sure no rotation. Is that due to not having the OSC code? Or is it a mechanical malfunction?
    OSC is only needed for multiple rotations per feed. If it's not spinning, you need to take it apart and make sure nothing is clogging it. Stray pellets stuck in the gears can cause it to not rotate.

    Sent from my SM-G965U using Tapatalk

  13. #13
    Frequent Visitor
    Join Date
    Oct 2017
    Location
    seattle
    Posts
    60
    Code has been working well, however I think I need to add a rotation to the feeder. I have the slider over to the lowest/smallest setting for amount of food to feed as too much comes out one notch over. However, the single rotation is not quite enough. I have manually made it do a second rotation, but cant figure out or understand the coding for a second rotation.

    How should the OSC code look added to the current working 1 rotation code? Once again, thank you for the help.

    Set OFF
    If VO_AutoFeed = ON Then ON
    If FeedA 001 Then ON
    Defer 1:00 Then ON

  14. #14
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by rbarr110 View Post
    Code has been working well, however I think I need to add a rotation to the feeder. I have the slider over to the lowest/smallest setting for amount of food to feed as too much comes out one notch over. However, the single rotation is not quite enough. I have manually made it do a second rotation, but cant figure out or understand the coding for a second rotation.

    How should the OSC code look added to the current working 1 rotation code? Once again, thank you for the help.

    Set OFF
    If VO_AutoFeed = ON Then ON
    If FeedA 001 Then ON
    Defer 1:00 Then ON
    StartFeed
    Set OFF
    If vFeed = ON Then ON
    Defer 001:00 Then ON

    StopFeed
    Set OFF
    If vFeed = ON Then ON
    Defer 002:30 Then ON

    Feeder
    OSC 000:00/000:30/000:30 Then ON
    If Output StartFeed = OFF Then OFF
    If Output StopFeed = ON Then OFF

    Sent from my SM-G965U using Tapatalk

Similar Threads

  1. Review My Program AFS Programming Question
    By ohioreef in forum Misc Apex Usage & Programming
    Replies: 2
    Last Post: 01-10-2022, 08:27
  2. AFS Programming Question
    By howieumd in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 09-12-2016, 11:42
  3. Yet another AFS programming question...
    By techdef in forum AquaBus Modules, Probes, and Breakout Boxes
    Replies: 0
    Last Post: 06-16-2016, 15:23
  4. Question: AFS programming question
    By jrlamountain in forum Apex Classic/Apex Lite/Apex Jr
    Replies: 2
    Last Post: 05-19-2015, 11:53
  5. Another AFS programming question
    By Gotfrogs in forum Misc Apex Usage & Programming
    Replies: 8
    Last Post: 06-30-2014, 14:51

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
  •