Siemens PLC Controller completed

easttn

Premium Member
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.
SystemRequirements.jpg


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.
 
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.
Inside.jpg

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.
MainScreen.jpg

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:
TankLightControl.jpg


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:
SecondaryLighting.jpg

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:
ManualPumpModes.jpg

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:
Maintenance.jpg


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.
TempStatus.jpg


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.
 
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 :D

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!
 
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.
 
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
 
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.
 
<a href=showthread.php?s=&postid=7379858#post7379858 target=_blank>Originally posted</a> by easttn
Niether was SIemens, look at the date we first started the first thread. Never give up.

It's been quite a while since I got the first one, which went from the box it was sent in, to the one it now sits in :D I got it to reconize itself, bout it :p
 
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
 
Damn Charles, You've been busy!!!!
That touch panel is the Dogs Danglies!!!

Gresh, Do you ever read your PMs? :D
 
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
 
It requires more then you sent :D I have a bunch of SSR's all ready, so why not?

I've been following what you sent via the 4' x 8' schematic :D Man that thing is huge :lol:
 
Back
Top