Improving my Apex

Discussion in 'Equipment: Setup and Discussion' started by RSnodgrass, Dec 14, 2017.

  1. RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    giphy.gif
    How I feel every time I program something new on my Apex and it works!

    Today was alarms and a feeding timer.
     
    • Like Like x 2
  2. eschulist

    eschulist That Office Nano Guy
    Lifetime Member

    Joined:
    Jan 31, 2012
    Messages:
    1,640
    Likes Received:
    186
    Location:
    Maplewood, MN, United States
    Fishies collected:
    15,577
    Isn't it fun!

    My best programming accomplishment so far has been this. It seems so simple but for my tiny tank its amazing.

    COR
    Set Restart
    If ATK_Cr OPEN Then 35
     
  3. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    You list me until "Open then" then lost me again, lol.
     
  4. DarkSky

    DarkSky I contributed!
    Lifetime Member Event Committee

    Joined:
    Jul 8, 2016
    Messages:
    464
    Likes Received:
    97
    Location:
    Eden Prairie
    Fishies collected:
    11,156
    This is why I went into software development. Every day has a chance to feel like you built fire.
     
    • Like Like x 3
  5. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    Screenshot_20171214-205531.png
    Had a client event at the office... Pretty obvious what all that CO2 does.

    Screenshot_20171214-205632.png
    Any idea what the highlighted alert is? It's not very informative.
     
  6. eschulist

    eschulist That Office Nano Guy
    Lifetime Member

    Joined:
    Jan 31, 2012
    Messages:
    1,640
    Likes Received:
    186
    Location:
    Maplewood, MN, United States
    Fishies collected:
    15,577
    Set Off means your alarm turned off as the error went away. The last 3 logs all happened within 2 minutes as the ph probe went up and down right at the alarm point. Sometimes its nice to add a defer statement. This means it either has to be true or false for longer than a few seconds or even minutes before alerting you.

    Because somethings you want to be instantly notified of: leak sensors for example. Its a best practice to create virtual outlets with their own defers rather than a global inside the alarm tile itself.


    Sent from my iPhone using Tapatalk
     
    • Informative Informative x 1
  7. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    Anyone see a problem with this program to shut off my skimmer if either of the two returns turn off?

    Fallback OFF
    Set ON
    If Output RetPump_Orng = OFF Then OFF
    Defer 005:00 Then ON
    If Output RetPump_Red = OFF Then OFF
    Defer 005:00 Then ON
     
  8. eschulist

    eschulist That Office Nano Guy
    Lifetime Member

    Joined:
    Jan 31, 2012
    Messages:
    1,640
    Likes Received:
    186
    Location:
    Maplewood, MN, United States
    Fishies collected:
    15,577
    You can remove the first Defer and just have one at the end. It will work for both.
     
    • Like Like x 1
  9. Jonty

    Jonty I contributed!
    Lifetime Member

    Joined:
    Jul 5, 2009
    Messages:
    1,918
    Likes Received:
    93
    Fishies collected:
    16,810
    What are you trying to do with the salt statement? trying to regulate salinity with conductivity readings can be fraught with peril as the reading is very susceptible to stray voltage and changes in environment. I only know from bad experience ;)
     
    #9 Jonty, Dec 28, 2017
    Last edited: Dec 28, 2017
  10. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    That is good information, I need to go back and tweak it but generally speaking I have it to passively tell me if my ATO is possibly malfunctioning... or apparently if I'm going to shock myself reaching into the tank! It doesn't actually control any devices.
     
  11. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    OK now I know what I'm reading, I'm going to be using a version of this for my feed timer so it doesn't shut off fully to prevent back siphoning.
     
  12. eschulist

    eschulist That Office Nano Guy
    Lifetime Member

    Joined:
    Jan 31, 2012
    Messages:
    1,640
    Likes Received:
    186
    Location:
    Maplewood, MN, United States
    Fishies collected:
    15,577
    Yep you can put "If FeedA 000 then 15" in your pumps programming if its a DC powered pump. During a feed mode it will power down to 15%.

    In my case ATK_Cr is my lower level sensor that slows my pump down when the water level drops. 35% just happened to be the amount that kept my tank in equilibrium to wait while the siphon restarted. Its higher due to my second open drain picking up some of the flow.


    Sent from my iPhone using Tapatalk
     
  13. tomte25

    tomte25 Junior Member
    TCMAS Member

    Joined:
    Feb 12, 2017
    Messages:
    34
    Likes Received:
    4
    Location:
    Minneapolis
    Fishies collected:
    2,146
    And I thought I was doing good installing a magnetic switch on my cabinet door to control some new led strip lights I installed for my sump area. Now I can really see all the salt creep :) But had to make room on my EB8 for it.
     
    • Like Like x 1
  14. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    Question, I have this line of code to turn off my skimmer pump if either of the two return pumps stop and wait 5min. It doesn't work... nothing happens. Also, it keeps putting extra zeros for my times after I save it so I left it in the code so you can see.

    Fallback OFF
    Set ON
    If FeedA 005 Then OFF
    Defer 000:01 Then ON
    If Output RetPump_Orng = OFF Then OFF
    If Output RetPump_Red = OFF Then OFF
    Defer 005:00 Then ON
     
  15. Ben Nicholls

    Ben Nicholls TCMAS Old Timer
    Lifetime Member

    Joined:
    Feb 22, 2007
    Messages:
    1,126
    Likes Received:
    96
    Location:
    Burnsville
    Fishies collected:
    13,008
    Only one defer applies for an outlet. So the first one of 1 second is the one applying. Remove that and you would have a 5 minute defer.

    It just adds the extra zeros to pad out the size of the time field.
     
    • Like Like x 1
  16. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    One of these days someone will create a non-programer friendly version of all this.

    I currently (momentarily) hooked up my 10v to my VarioS. After an hour of watching videos and reading I've still not found how to simply say "run at 60% power" and don't shut off for 1min at 11:59pm. I don't know if it actually shuts off but the language strongly implies it.
     
  17. jlanger

    jlanger "The North Remembers"
    Lifetime Member Event Committee

    Joined:
    May 8, 2010
    Messages:
    3,544
    Likes Received:
    556
    Location:
    New Richmond, WI
    Fishies collected:
    43,865
    When they do, it'll be known as "Langer's terms"; not layman's terms.
    When I get my new Apex, I'm thinking about making a big batch of pulled pork or chicken chili to bribe a few "experts" to come out and spend a day implementing the codes that I would need/want. [Learned that from what Angie does when she needs something done.]
     
  18. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    Hahahaha that is an excellent idea! I think the meeting Eschulist is going to do will be a great idea.

    This Apex is impressive in what it can do but it reminds me of learning to use Photoshop as an amateur. It's really a professional tool for professionals but it's also so obvious that nothing else can come close to what it can do even if it's just "auto correct".
     
    • Like Like x 1
  19. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    I think I got it figured out, it takes a lot to write it and a lot less to do it.

    Possibly got the pump slow down working during feeding time also.
     
  20. OP
    RSnodgrass

    RSnodgrass TCMAS President
    Staff Member BOD Lifetime Member Event Committee

    Joined:
    Apr 7, 2007
    Messages:
    3,370
    Likes Received:
    353
    Location:
    Lynd, MN, United States
    Fishies collected:
    52,072
    pH vs ORP... is this coincidence or is this something others see happen as well? My ORP tends to drop and pH spike in unison as well as the opposite.
    Screenshot_20180109-143118.png
     

Share This Page