Log in

View Full Version : My PLC tank automation thread



perpetual98
03-05-2006, 05:09 PM
Well, this weekend I actually had some time to sit down and do some long awaited project work. I'm working on doing some PLC (Programmable Logic Controller) stuff for my two 120 gallon tanks downstairs in the living room. It involves a lot of wiring and planning, so I thought that I'd take another small PLC that I had at my disposal and set up a prototype for my tank in the bedroom which is my 20L tank.

The first thing that I had to do was come up with an enclosure for them. I wanted something plastic, because it's much easier to work with. I started with the square box, but figured it would be too small for that I wanted to do. I could have jammed it all in that box, but I have some future expansion plans and using the two boxes allows for that expansion if I ever get around to it.

To explain the fist picture, it's the two enclosures mounted together and with the tops off. The Sola device is the power supply. It provides me with all of the 24V DC that I can shake a stick at. That powers not only the PLC (mounted above it in this picture) but all of my relays too. I think the PLC will handle switching 120V AC, but I figured that I leave the control side of things at 24V to make myself feel better. It was way more work, but for a prototype, I figured it was worth it. On the left of the powersupply and PLC (at least in this picture) is the little 24V power distribution center that I made with some terminal blocks.

Moving to the right in the picture is the smaller slave box that houses the relays and all of the 120V AC stuff. Again, I made a distribution block with some terminal blocks.

http://www.ericfeige.com/gallery/albums/userpics/10001/plc4.jpg


This is a closer shot of the AC box. All of the red wires are 24V control wires leading to the PLC. The PLC determines which output (10 total) will energize which relay. All of that is determined by programming it with some software, which I did the other day. When the PLC energizes and output, the relay closes and passes 120V from the distribution block to the corresponding outlet.

http://www.ericfeige.com/gallery/albums/userpics/10001/plc3.jpg

The last picture is of everything assembled and the covers on. I put 4 switches on the cover, and each switch controls an outlet. There's also a constant on set of outlets on the side, just because I had extra stuff lying around. :)

http://www.ericfeige.com/gallery/albums/userpics/10001/plc5.jpg

As far as "well that sure looks nifty, but what does it do?" Here goes:

Lets name the outlets for the sake of making things easy. 4 pairs of outlets, pair on being 1 & 2 (1 on top) pair 2 being 3 & 4, etc...

Outlet 1 is programmed for my actinic lights. At 2:00PM the PLC switches that outlet on and the actinics come on. They run until 10:00PM. Switch 2 is the for daylight bulbs. They come on at 2:30PM and switch off at 9:30PM. Outlet 3 is for the auto top-off. In the picture above, you can see a small gray wire. That goes to the float-switch. When the swich is low, the PLC turns on outlet 3 powering a pump that pumps RO/DI water into the tank until the float switch says that it's not thirsty any more. I also too this opportunity to paint the snail guard black. It was annoying me white. :)

Ok, outlet 4. Constant on right now. If I get bold, it will eventually control the heater via a thermocouple module for temp control. Right now the heater is just operating on it's own.

Outlets 5, 6, 7 and 8 are controlled by the 4 switches in the cover. 5 & 6 are my SEIO 620 and another pump for water flow, and 7 & 8 are for the two refugiums that I have on the tank.

Seeing as 74% of you won't even read this far, I'll just stop for now.

Questions/comments?

Eric

flame
03-05-2006, 05:29 PM
Yes Eric but the 26% of us that has read to the end expects more soon.
:)

Really nice work very clean and neat. Thank you for the share

Dirt4dinner
03-05-2006, 05:47 PM
My brain hurts...but I like it.

perpetual98
03-05-2006, 05:49 PM
Your brain always hurts. ;)

Whoyah
03-05-2006, 08:42 PM
Man, that is awesome. I have consider using a PLC for this same type of thing but to see all put together is awesome. Very Cool. Thanks for sharing. Let us know how this goes for you.

dakar
03-05-2006, 09:02 PM
Count me into the 26% as well.

Very tidy construction! Is she now live and running the tank? Where could a fella get ahold of those project boxes?

Reef_Angel
03-05-2006, 10:44 PM
I'm in that 26% too! That is one tidy way of doing things. Now if you could expand it to control all your tanks...what an idea huh? Hmmm....knowing where you got your software to program this, where would the average person get this software?

perpetual98
03-06-2006, 08:24 AM
It's running live on my 20L as we speak. I was like a proud father last night when the wife and I were watching TV in bed last night and 'click' the daylights went off at 9:30 and the actinics went off at 10:00. :)

I got the software where I work. One of the tech support guys hooked me up with an activation key for it. I have no idea how much it costs normally, but I think it's pretty spendy. If you didn't have a hookup for the software, going the Allen-Bradley route isn't very cost effective.

Ok, I just looked up the software in our system. I don't know what list price is, but we sold one copy to a customer for $2499.99. Ouch. I should buy my tech guy lunch for hooking me up with an "educational" copy of it. :)

If I didn't work here, I'd maybe check out AutomationDirect (http://web3.automationdirect.com/adc/Shopping/Catalog/PLC_Hardware) for the hardware and stuff.

graphixx
03-06-2006, 10:54 AM
I am proud to say I am 26%!!! very nice Eric very clean and tidy!!!

jojo22
03-06-2006, 02:09 PM
I think I'm going to talk to my father in law. He untill recently owned a custom machine building company. He built automated plastics machines. This thread has given me more than one good idea. Thanks.
I'm thinking like a 10 plug setup to turn different power heads on and off to simulate changes in current. auto top off, lights, heaters, maby even throw some power heads in the refuge to tun on periodicly. Of course this is after I transfer to the 75 gal.

roadcrew
03-06-2006, 03:26 PM
hello all and great job Eric. i think we all want one. ive been trying to build something like that for a while and nothing even comes close. maybe you could make some extra income off of us..... hehehe.
btw ill get my tank info up soon.