How to use a PLC to control your fish tank.

Discussion in 'Tutorials' started by ian_m, 3 Oct 2016.

  1. ian_m

    ian_m Global Moderator Staff Member

    Joined:
    25 Jan 2012
    Messages:
    5,138
    Location:
    Eastleigh
    cfrancop likes this.
  2. cfrancop

    cfrancop Newly Registered

    Joined:
    13 Jan 2019
    Messages:
    9
    Location:
    Bogota
    I think I will buy this PLC, question... What happens if there is a power failure, Does the LOGO PLC keep the current time/date after power is up again?
     
  3. ian_m

    ian_m Global Moderator Staff Member

    Joined:
    25 Jan 2012
    Messages:
    5,138
    Location:
    Eastleigh
    Yes it has a battery backed up real time clock, so if using the timer blocks will just carry on with correct time when power comes back.

    Also for things like counter blocks you can set an attribute to remember the value at power off. You can store things like which 2 tubes out of my 4 were/are on.

    Never had an issue due to power failure or being powered off whilst tank fiddling.
     
    cfrancop and Ady34 like this.
  4. Zeus.

    Zeus. Member

    Joined:
    1 Oct 2016
    Messages:
    2,695
    Location:
    Yorkshire,UK
    Plus if you use Ians brilliant 'TankyMYTank' timer design into your software design, you still get the same Photo period etc etc etc
     
  5. ian_m

    ian_m Global Moderator Staff Member

    Joined:
    25 Jan 2012
    Messages:
    5,138
    Location:
    Eastleigh
    Use this button the Logo!Soft Comfort simulator to simulate power going on and off when simulating your design. :p

    upload_2019-1-27_16-23-59.png

    Tick this box to make a counter (for instance) remember over power cycles.
    upload_2019-1-27_16-26-22.png
     
  6. Filip Krupa

    Filip Krupa Member

    Joined:
    13 Oct 2016
    Messages:
    573
    Location:
    Liverpool
    Got your program.
    Trying to understand it is like trying to understand instructions in a foreign language!
    Hold my beer though... I got this!

    :D

    Thanks again Ian, this is great fun.
    Fil
     
    Zeus. and ian_m like this.
  7. Filip Krupa

    Filip Krupa Member

    Joined:
    13 Oct 2016
    Messages:
    573
    Location:
    Liverpool
    To anyone thinking of getting one of these babies.

    Jesus Tapdancing Christ is this thing reliable! I know Ian has mentioned this before but...
    I’m running a massive high tech tank, and recently changed careers ending up putting in 12hr days Monday-Friday.
    By God am I happy I invested the money. I go a whole week without worrying about anything (the Mrs feeds the fish daily, and even that could be automated as per Ian’s instructions!) then just water change over the weekend.

    If anything needs adjusting, few clicks on my phone, done.

    All that while probably only using a tiny % of the logo8’s capabilities (and that’s with control over 2 tanks, 2000L and 200L). Amazing.

    Thanks again!
    Fil
     
    ian_m, Zeus. and zozo like this.
  8. ian_m

    ian_m Global Moderator Staff Member

    Joined:
    25 Jan 2012
    Messages:
    5,138
    Location:
    Eastleigh
    Glad you liked it. Using the PLC just makes the tank run itself and makes making changes very easy. I have followed your system and it is a perfect application of PLC.

    Its a shame that people spend £1000's on tank and equipment, spend months devising all these wonderful plumbing & filtration schemes and then trust it all to a £9.99 timer.

    If you are looking for further ideas for PLC code (I can't do as only 33 blocks out of 400 left :().
    - A algae blackout setting. Runs tank for 3 or 4 days, no lights, no CO2, no fertilisation and no feeding. After 3 or 4 days all runs normal.
    - A night time setting for if guests are sleeping in same room as tank. Turns off all pumps and filters between hours 11pm to 8am so tank is silent.
    - If your Logo is 8.2 it has a web server so can render HTML pages with active buttons and controls on.
     
    zozo and Filip Krupa like this.
  9. DeepMetropolis

    DeepMetropolis Member

    Joined:
    20 Jul 2018
    Messages:
    298
    Location:
    Netherlands
    This is really interesting i would definitely buy one if I get a bigger tank one day..
     
    Filip Krupa likes this.
  10. ian_m

    ian_m Global Moderator Staff Member

    Joined:
    25 Jan 2012
    Messages:
    5,138
    Location:
    Eastleigh
    My tank us only 180l, so tiny compared to 2000l. PLC just ticks away, turning the things on and off. Been running over 20,000 hours now with no issue.
     
    Filip Krupa and Zeus. like this.
  11. Zeus.

    Zeus. Member

    Joined:
    1 Oct 2016
    Messages:
    2,695
    Location:
    Yorkshire,UK
    My second tank with a PLC is 50l
     
    ian_m and Filip Krupa like this.
  12. Zeus.

    Zeus. Member

    Joined:
    1 Oct 2016
    Messages:
    2,695
    Location:
    Yorkshire,UK
    Been using Fe DTPA due to having hard water and the pH isnt low enough for Fe EDTA, however Fe DTPA does have a very short half-life in light so to combat the issue the PLC solves it easy

    upload_2019-4-17_22-25-35.png

    Basically it splits the single dose time for my Auto doser into 20 smaller doses and pumps the 1/20 dose in every 24mins. I was using Minutes for my timer but I just changed it over to secs multiplying the minutes by 60 and I think I have it sorted
     

    Attached Files:

    ian_m and Filip Krupa like this.
  13. Zeus.

    Zeus. Member

    Joined:
    1 Oct 2016
    Messages:
    2,695
    Location:
    Yorkshire,UK
    I had missed the Analog flags off B292 and B168 for it to work on the Logo itself :rolleyes: sorted before uploading OFC ;)
     
    Filip Krupa likes this.
  14. Marc Jackson

    Marc Jackson Member

    Joined:
    16 Mar 2019
    Messages:
    136
    Location:
    Suffolk - almost
    Shouldn't you be designing space rockets Zeus, very impressive schematic. :woot:

    What are your initial water parameters?
     
    Filip Krupa likes this.
  15. Filip Krupa

    Filip Krupa Member

    Joined:
    13 Oct 2016
    Messages:
    573
    Location:
    Liverpool
    Agreed
    You should see Ian's too!

    I use some strictly on a "copy-paste" basis. No idea how they work, they just do ;)

    Fil
     
  16. Zeus.

    Zeus. Member

    Joined:
    1 Oct 2016
    Messages:
    2,695
    Location:
    Yorkshire,UK
    Olympus calling First post attached file - very hard water;)
     
  17. ian_m

    ian_m Global Moderator Staff Member

    Joined:
    25 Jan 2012
    Messages:
    5,138
    Location:
    Eastleigh
    For those of you "following along at home" (Zeus & Filip & anyone else?) there is a new version of Logo!Soft Comfort V8.2.1 as well as and update to the Logo Web Edit and firmware updates for Logo Modules V8.2.

    upload_2019-6-3_9-32-41.png
    This is my Logo!Soft Comfort as of this morning.

    Not sure what is new in V8.2.1 or the 8.2 module firmware updates. My Logo is V1.08.02 so firmware updates don't apply, as is very old o_O, but hey ho still working years later 100% reliability, 22035 hours runtime 2 1/2 years now...
    upload_2019-6-3_9-46-32.png

    The upgrade is here, you have to agree export conditions and get authorisation to download...
    https://support.industry.siemens.co...logo!-8-2-sp1-operating-system?dti=0&lc=en-WW

    File is rather large (1.4GB) as contains Windows and Linux 64bit & 32bit & MacOS versions of the Logo!Soft Comfort. Enjoy.
     

    Attached Files:

    Zeus. and Filip Krupa like this.
  18. Filip Krupa

    Filip Krupa Member

    Joined:
    13 Oct 2016
    Messages:
    573
    Location:
    Liverpool
    Thanks for the heads up!

    Love it!

    Fil
     
  19. Zeus.

    Zeus. Member

    Joined:
    1 Oct 2016
    Messages:
    2,695
    Location:
    Yorkshire,UK
  20. Zeus.

    Zeus. Member

    Joined:
    1 Oct 2016
    Messages:
    2,695
    Location:
    Yorkshire,UK
    upload_2019-6-9_22-45-32.png

    Opps I had it as 'Hobby' changed it to 'Private use' and re applied

    But it worked for the last update and had Hobby then :rolleyes:
     

Share This Page

Facebook Page
Twitter Page
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice