![]() |
![]() |
![]() |
#1 |
Premium Member
![]() Join Date: Jul 2002
Location: East TN thank God
Posts: 2,423
|
Siemens PLC Controller completed
Hey guys,
Built a custom system for one of the greatest reefers in the business and thought I'd share. As I had Siemens PLCs availabe it seemed natural that I follow what I know. The hardware is a follows: 1 - 6AV6 545-0AA15-2AX0 - Siemens Touch Panel TP070 1 - 216-2BD22-0XB0 - Siemens 226 CPU AC/DC/RLY 1 - 223-1BH21-0XA0 - Siemens EM223 1 - 231-7PD22-0XA0 - Siemens EM231 Some Din rails, wire, cheap thermocouples, and a NEMA enclosure. The I/O quantity and general specifications can be found here: Siemens PLCs Gresham and I spent a bit of time tweaking the controls he wanted, and some did change as we went through the list but here was one of the original drafts. You will see the final controls as I progress. ![]() I'll post pics, schematics and code over the next few days. Stay tuned. This turned out rather well if I do say so myself.
__________________
HONOR.......Simply put, A VETERAN - whether Active Duty, Retired, National Guard or Reserve - is someone who, at one point in their life, wrote a blank check made payable to "The United States of America," for an amount of "Up to and including my life." That is HONOR, and there are way too many people in this country who no longer understand that. --Author Unknown-- Current Tank Info: Maintenance Free |
![]() |
![]() |
![]() |
#2 | |
Registered Member
Join Date: Nov 2002
Location: SF Bay Area, CA
Posts: 9,474
|
![]() ![]() Quote:
![]()
__________________
Gresham _______________________________ Feeding your reef...one polyp at a time |
|
![]() |
![]() |
![]() |
#3 |
Premium Member
![]() Join Date: Jul 2002
Location: East TN thank God
Posts: 2,423
|
We'll start with the guts. Gresham still needs to connect his relays so as to isolate the load from each on the controlling outputs, or inputs. Every single parameter here will set either a silent alarm (burglar), or audible water outside specified parameters, or temp not within specification.
Please excuse the disarray of wires, it will get a tuck and a trim once all the connections are made. These connections are strictly power and control for the 4 units I described above. ![]() The top unit is the primary CPU and an add-on for more I/O. The smaller unit is a analog unit that will be used to monitor tank temperature. Here is the front of the unit and the main display screen. ![]() This is the default screen when unit is initiated, I wanted the system to default at startup then check for any anomalies. Its only a 10mS time period to check all conditions. What you see here is the main tank temp, and that of the sump. The TC for the sump is inside the NEMA box so you can see a slight variation in air temperature from inside to out. In the application these TC's will be submerged in water. There are five primary controls on this screen, Lighting setup and Test, Manual control of all pumps, Temp control, Clock setup, and Maintenance functions. The two other buttons on the touch screen are to reset any alarm once fixed, and to place the aquarium system into a manual mode. I'll splain later. There are secondary menus behind each of the main five functions. For example, I selected "Lighting Setup and Test", and this screen appears: ![]() Gresh told me how many lights he had and named them specifically, this screen allow him to set any of the primary tank lights to any time he cares to. Timer accurate to .001 second per month. All time entered as military time. When I select Secondary Lighting, this screen appears: ![]() These lamps can now be controlled at will. Going back to the main menu, I now select manual pump mode, and these are Gresham's options: ![]() If any maintenance needs to be preformed, this cuts power to any and all pumps, including his wave machines. Notice the "maintenance Function" here. The following menu is displayed for maintenance: ![]() The two primary actions here are "Feed Fish", touch the pad and main pumps, skimmer, and motion pumps turn off for 12 minutes. They automatically reengage and the tank returns to auto pilot. The "clean the tank" disengages all power to all the pumps. He can reselect as need to help the cleaning process. Selecting again, all pumps return to the Auto mode as identified in the pump setup menu. "Extend VHO" are for night watching, each time the panel is selected the VHO's are extended by 15 minutes. Once extended time ends, VHOs return to cycle as set in lighting menu. The download button will allow any parameter being measured to be freeported to a PC. It will also set alarms via pager if something happens while away. This feature depends on the s/w Gresh wants to run on his dedicated PC. It will be something he and I can work out over the next few weeks. This screen displays the multiple tank temperatures and energizes the heaters, chillers, and ambient air fans to keep the tank at +/- .2 degree F. ![]() If there is ever a need to change the time of day clock (DST is automatically detected), the values can be entered here. The next post will dig a bit more into the schematic. The last will discuss code and theory of operation.
__________________
HONOR.......Simply put, A VETERAN - whether Active Duty, Retired, National Guard or Reserve - is someone who, at one point in their life, wrote a blank check made payable to "The United States of America," for an amount of "Up to and including my life." That is HONOR, and there are way too many people in this country who no longer understand that. --Author Unknown-- Current Tank Info: Maintenance Free |
![]() |
![]() |
![]() |
#4 |
Registered Member
Join Date: Nov 2002
Location: SF Bay Area, CA
Posts: 9,474
|
Holy smokes, look at the GUI
![]() ![]()
__________________
Gresham _______________________________ Feeding your reef...one polyp at a time |
![]() |
![]() |
![]() |
#5 |
Registered Member
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,772
|
what is the average street price on each component... man I like hte touch screen! I have been looking at them for my controller.
BTW easttn... I etched up a few boards for the goodies you sent my way. I am practicing my SMT soldering before do the real deal! Who needs you professional PCB guys anway ![]() I am very pleased with the Laserprinter transfer method for my small projects ![]() If it were me, I would put this on the living room wall beside the thermostat, so people can SEE it! |
![]() |
![]() |
![]() |
#6 |
Premium Member
![]() Join Date: Jul 2002
Location: East TN thank God
Posts: 2,423
|
Bean,
The S7 200 line is no longer built in the US (Thanks again NAFTA), bide your time on EBAY. One piece at a time, you can prolly get it all for much less than the aquacontroller.
__________________
HONOR.......Simply put, A VETERAN - whether Active Duty, Retired, National Guard or Reserve - is someone who, at one point in their life, wrote a blank check made payable to "The United States of America," for an amount of "Up to and including my life." That is HONOR, and there are way too many people in this country who no longer understand that. --Author Unknown-- Current Tank Info: Maintenance Free |
![]() |
![]() |
![]() |
#7 |
Registered Member
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,772
|
please don't temp me into another project! That screen is making me drool!
|
![]() |
![]() |
![]() |
#8 |
Moved On
Join Date: Aug 2004
Location: Humboldt County, CA
Posts: 2,024
|
ok well i'm interested in this. i know nothing about plc's but feel i go wing one of them with some help. i have found most of the equip you have listed on various places for quite cheap. now if i could only find a touch screen for cheap. also how do you go about programming one of these. using a computer or something like that. or is it all done on the touch screen
Tim |
![]() |
![]() |
![]() |
#9 |
Registered Member
Join Date: May 2006
Location: Orient Oh - just s. of GC
Posts: 86
|
I wan't one....lol
__________________
Stewie: Whether you think you can or you can't, you're right. Current Tank Info: 30gl Reef (soon to be 90gl) 29gl fresh |
![]() |
![]() |
![]() |
#10 |
Registered Member
Join Date: Nov 2005
Location: OC
Posts: 200
|
Wow! This is something that I need to follow up on. More input.
![]()
__________________
Don't look back...Always look ahead. Current Tank Info: Nano |
![]() |
![]() |
![]() |
#11 |
Premium Member
![]() Join Date: Jul 2002
Location: East TN thank God
Posts: 2,423
|
__________________
HONOR.......Simply put, A VETERAN - whether Active Duty, Retired, National Guard or Reserve - is someone who, at one point in their life, wrote a blank check made payable to "The United States of America," for an amount of "Up to and including my life." That is HONOR, and there are way too many people in this country who no longer understand that. --Author Unknown-- Current Tank Info: Maintenance Free |
![]() |
![]() |
![]() |
#12 |
Registered Member
Join Date: Feb 2004
Location: Oconomowoc
Posts: 1,242
|
I've got some Allen-Bradley stuff at home, but I have no clue how to work it. I can program the AB Micrologix to do some limited stuff, but I can't for the life of me figure out how to program the PanelView to do the GUI. AB stuff isn't terribly easy to learn on your own unfortunately.
__________________
Used to have many SW tanks, now starting over with one... |
![]() |
![]() |
![]() |
#13 |
Premium Member
![]() Join Date: Jul 2002
Location: East TN thank God
Posts: 2,423
|
Niether was SIemens, look at the dat we first started the first thread. Never give up.
__________________
HONOR.......Simply put, A VETERAN - whether Active Duty, Retired, National Guard or Reserve - is someone who, at one point in their life, wrote a blank check made payable to "The United States of America," for an amount of "Up to and including my life." That is HONOR, and there are way too many people in this country who no longer understand that. --Author Unknown-- Current Tank Info: Maintenance Free |
![]() |
![]() |
![]() |
#14 | |
Registered Member
Join Date: Nov 2002
Location: SF Bay Area, CA
Posts: 9,474
|
Quote:
![]() ![]()
__________________
Gresham _______________________________ Feeding your reef...one polyp at a time |
|
![]() |
![]() |
![]() |
#15 |
Registered Member
Join Date: Feb 2004
Location: Oconomowoc
Posts: 1,242
|
I've gotten some basic ladder done, but I can't do anything with the GUI. I've gotten the computer to recognize the panelview and I can send stuff to the panel, but I have NO idea how to get the panelview to talk to the PLC. Whenever I think I find some info on the Internet, there's another page one click later that contradicts the previous page.
Anyway, here's a thread that I started a while back. http://www.myreef.com/smf/index.php?topic=3.0
__________________
Used to have many SW tanks, now starting over with one... |
![]() |
![]() |
![]() |
#16 |
Pro builder/aquarist hack
![]() Join Date: Jul 2002
Location: NORCAL (Vacaville, CA)
Posts: 5,125
|
Damn Charles, You've been busy!!!!
That touch panel is the Dogs Danglies!!! Gresh, Do you ever read your PMs? ![]() |
![]() |
![]() |
![]() |
#17 |
Registered Member
Join Date: Nov 2002
Location: SF Bay Area, CA
Posts: 9,474
|
Nah, I'm ignoring you (j/k)
![]() ![]()
__________________
Gresham _______________________________ Feeding your reef...one polyp at a time |
![]() |
![]() |
![]() |
#18 |
Registered Member
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,772
|
Gresh your box is full...
Instead of me explaining the SSR stuff... you can read a better version from the pros ![]() Here is a decent site that has a basic run down of SSR applications. The nav menu on the right will also get you to motor, heating and other types of apps (other than lighting). http://solid-state-relay.crouzet-usa...lighting.shtml Bean |
![]() |
![]() |
![]() |
#19 |
Premium Member
![]() Join Date: Jul 2002
Location: East TN thank God
Posts: 2,423
|
You don't need the SSR's. Use your PLC to control the coils on the relays I sent long ago. Follow the stuff I sent. Take your time.
C
__________________
HONOR.......Simply put, A VETERAN - whether Active Duty, Retired, National Guard or Reserve - is someone who, at one point in their life, wrote a blank check made payable to "The United States of America," for an amount of "Up to and including my life." That is HONOR, and there are way too many people in this country who no longer understand that. --Author Unknown-- Current Tank Info: Maintenance Free |
![]() |
![]() |
![]() |
#20 |
Registered Member
Join Date: Nov 2002
Location: SF Bay Area, CA
Posts: 9,474
|
It requires more then you sent
![]() I've been following what you sent via the 4' x 8' schematic ![]() ![]()
__________________
Gresham _______________________________ Feeding your reef...one polyp at a time |
![]() |
![]() |
![]() |
#21 |
Premium Member
![]() Join Date: Jul 2002
Location: East TN thank God
Posts: 2,423
|
C'mon Gresh, let's see what's happening.
I like this thread, it doesn't get buried in a day.
__________________
HONOR.......Simply put, A VETERAN - whether Active Duty, Retired, National Guard or Reserve - is someone who, at one point in their life, wrote a blank check made payable to "The United States of America," for an amount of "Up to and including my life." That is HONOR, and there are way too many people in this country who no longer understand that. --Author Unknown-- Current Tank Info: Maintenance Free |
![]() |
![]() |
![]() |
#22 |
Registered Member
Join Date: Nov 2002
Location: SF Bay Area, CA
Posts: 9,474
|
Got my 20 float switches, TC wire, and new Dell computer. I'm just waiting on the Din rail, relays, and some other assorted stuff.
I'm moving it in to a larger box to accomadate the relays. After reviewing in the in's and out's, it looks like I may need to have some more programming done for some new features I added (controll of the linear actuators, skimmerair input kill, etc). I'm having my float switch holders being machined as we speak ![]()
__________________
Gresham _______________________________ Feeding your reef...one polyp at a time Last edited by GreshamH; 06/03/2006 at 10:57 AM. |
![]() |
![]() |
![]() |
#23 |
Registered Member
Join Date: Nov 2002
Location: SF Bay Area, CA
Posts: 9,474
|
OK, got most my stuff lined up to get this puppy rolling...
![]() Got the touch panel put into a new enclosure, 30 relays, and DIN rail. ![]() It'll all fit nicely into it's new home ![]() ![]() Gotta love my new relays. They have a force on switch and indictor lights, plus a filter ![]()
__________________
Gresham _______________________________ Feeding your reef...one polyp at a time |
![]() |
![]() |
![]() |
#24 |
Registered Member
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,772
|
Where did you source the relays? Cost?
I see you decided to avoid the SSRs ![]() You need a bigger box to fit wire duct in there and make it look cleaner (and bigger!). I saw some 4'x6' nema 4 boxes on ebay the other day. Maybe you could squeeze the stuff into one of them ![]() Nice job gresh... I am etching boards for my controller today (though I found a few small errors and may need to etch again (I hate patching with jumber wires). Wanna split a box of wire duct from eBay? |
![]() |
![]() |
![]() |
#25 |
Registered Member
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,772
|
I am also trying to source #18 #22 #26 stranded MTW wire in rainbows of colors and small quantities. I shudder to think of the cost of a 250' put up of each color. I also don't like THHN as it is just to darn stiff. Any ideas anybody?
|
![]() |
![]() |
![]() |
|
|