Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 66
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Capper (60)
cereus (73)
Mcanderson (43)


Next birthdays
11/06 dan (37)
11/06 rchydro (64)
11/06 CapRack (30)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Looking for a PLC

1 2 3 
Move Thread LAN_403
Zum Beispiel
Sat Jan 14 2012, 01:42AM Print
Zum Beispiel Registered Member #514 Joined: Sun Feb 11 2007, 12:27AM
Location: Somewhere in Pirkanmaa, Finland
Posts: 295
Hello all,

I'm building a home automation rig. I currently have all my weekly wake-ups programmed into a simple timer that turns the lights and radio on in the morning. There's also a power monitor and some other crud hooked up at the moment, I may make a thread about it in the future. I've been thinking about adding more functions, such as light gates that detect when I leave or enter the apartment, turning the lights and other things on or off.

I think a programmable logic controller of some sort would probably do nicely here, but I really don't know much about them (yet, there's a few courses coming up in school). It would be nice that every time I want to add a new function I wouldn't have to rewire the whole thing, but instead just change the code.

Anyone here have any experience with them? What I'm looking for can be summed up like so:

1. Around 10 Digital inputs / outputs (a little room for growth).
2. A compact package with the CPU, I/Os and PSU in the same box.
3. Cheap. I guess I could drop around 200€+ for a complete package (Controller & Software)

Omron or Siemens would be a bonus, as those are the ones they teach at school.

Any suggestions?
Back to top
teravolt
Sat Jan 14 2012, 04:31AM
teravolt Registered Member #195 Joined: Fri Feb 17 2006, 08:27PM
Location: Berkeley, ca.
Posts: 1111
I think that a adruino is most common. and the compiler is open source.you could use your PLC to turn on triacs even do things like dimming. you could also use

Link2

is user friendly to generate your own code.
Back to top
Chip Fixes
Sat Jan 14 2012, 06:19AM
Chip Fixes Registered Member #3781 Joined: Sat Mar 26 2011, 02:25AM
Location:
Posts: 701
Ah that would be cool if you posted a thread about home automation! I've always wanted my alarm clock to turn on my lights (or bright led lights) in the morning instead of making that horrid sound
Back to top
Sulaiman
Sat Jan 14 2012, 08:57AM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
For home automation have a look at x10 devices on eBay.
e.g. Link2 and Link2 etc.

The 'best' PLC would be one exactly like the one that you will be learning on
(make sure that you keep the receipts in case of misunderstandings)
There's a steep learning curve for setting up and communicating with PLCs
so using the same (presumably affordable) model at home will help with the course.
Even identical model numbers can have different firmware levels which can add another layer of complication.
Same model numbers can even have quite different pcbs inside also!

P.S. Imagine what a hacker could do to/with your home automation system. SCARY!
Back to top
Dr. Slack
Sat Jan 14 2012, 11:34AM
Dr. Slack Registered Member #72 Joined: Thu Feb 09 2006, 08:29AM
Location: UK St. Albans
Posts: 1659
Have a quick google for Raspberry Pi, and then have another think about whether you want a PLC.
Back to top
CT2
Sat Jan 14 2012, 08:44PM
CT2 Registered Member #180 Joined: Thu Feb 16 2006, 02:12AM
Location: Ontario, Canada
Posts: 187
That Raspberry Pi looks pretty neat (and they seem to have great ethics), although for home automation I think a PLC would be easier to implement, I mean that is what it's designed for. It has all the I/O ports (as long as you get the cards) to interface with the electronics in your home easily and directly, Raspberry Pi does not, and you would need to build them.

I worked with PLC's in school, AllenBradley units, I even went to a friends school to help him with his Mechanical Engineering course that used PLC's and pneumatics. I really enjoyed them, they are super easy to connect up and program. As for doing the things you want, it wouldn't be a very hard task at all. It was mentioned that the learning curve is steep, and although it may be for some, I didn't find it difficult at all. Ladder logic is pretty basic and intuitive (although you can get into different programming methods that are more complex), and for what you need it would work great. It probably would be a good idea to get the same ones (or at least similar) to the ones you'll be using in school. Would make life a lot easier, and also you can get help easily from teachers and students!

You're requirements are pretty common for PLC's. You can get the CPU card and power supply and then one 10-20x I/O card all in a small rack, adding more functions only means plugging in another card (say Ethernet, or A/D) and adding some simple code. You don't need to worry about a hackar, unless you go online with your system for remote access or something.

Oh and btw a student in my program did exactly what you want to do with PLC's as her final project, it controlled everything; lights, heating (furnace and AC) monitored power, and other things I can't remember. So I think you're on the right track.

So, keep us posted, sounds like a really cool project, any questions just ask, myself and many others on here can probably help a lot.
Back to top
radiotech
Sat Jan 14 2012, 09:09PM
radiotech Registered Member #2463 Joined: Wed Nov 11 2009, 03:49AM
Location:
Posts: 1546
I have a GE micro PLC, 10 inputs and outputs, plus another 10 with an expansion module.

The software runs on an IBM pc. Connects with serial RS232. The should be lats of these on
Ebay.

A PLC is a self contained system which uses ladder logic programming, so in the
very basic units, it looks for a contact closure input and outputs same. The rules for
these devices generally solve one line of logic before solving the next.

They absolutely drive clever computer people mad because, for the price of a pic
and a handful of relays, they believe they can duplicate everything the PLC can do.
While this is true, the one thing such a array of parts cant do, is serve as tested
component in a machine that has a safety approval rating.

The first PLCs were huge boxes with magnetic core memory with limited storage
and the executive was so private, if it got corrupted, we had to download a new
one with a acoustic modem over the phone lines.(Modicon)

Here is a picture of the Micro running in the 'jungle' here. The three green lights
on the main unit (top box) are : power, run, ok. If the run light is out, the program
is not processing. It will stop if something corrupts a line of logic. It can only be
started from the computer terminal, or from a hand-held programmer which I
didn't buy. If downpowered for a week or so, the battery keeping the memory
runs out and reloading from PC is necessary.



=



1326575376 2463 FT132252 Microplcrunning
Back to top
Pinky's Brain
Sat Jan 14 2012, 09:23PM
Pinky's Brain Registered Member #2901 Joined: Thu Jun 03 2010, 01:25PM
Location:
Posts: 837
Raspberry Pi is woefully short of I/Os (or rather they weren't able to break them out from the chip, which I find a little strange since modern motherboards can manage with 6 layers as well). They are making an I/O extension board though (I/O expansion is good enough for slow signals, but attaching something like a fast ADC to the Raspberry Pi is impossibe).

BTW, I can't applaud a so called "open" project where the only guy able to make that board is someone working at the main CPU manufacturer ... since he is the only one with access to the datasheet ...
Back to top
Daedronus
Sat Jan 14 2012, 09:35PM
Daedronus Registered Member #2329 Joined: Tue Sept 01 2009, 08:25AM
Location:
Posts: 370
Arduino = glorified AVR

The AVR micro iteself is great, nice (and free) development software for asm and most importantly C.

With just a ft232 you can make a AVR usb programmer.
Back to top
Patrick
Sun Jan 15 2012, 02:07AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
are you planning to make your own, or do you want to buy a fully ready to go system?

as a previous poster said, the Allen Bradley stuff is capable, but expensive compared to any other solution.
maybe you can snag a used one cheap though.

if i were you id go with an Arduino and get something going then you can continue to expand your system as needed
Back to top
1 2 3 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.