Pages: [1]   Go Down
Author Topic: PLC with ARDUINO  (Read 842 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 2
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all

I want to build a PLC  with ARDUINO .
My question is how do I implement inputs and outputs .

What kind of components I use for input and for output .

Thanks
Elico

 
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34519
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
how do I implement inputs and outputs .
Just like any other arduino application digitalRead() for inputs and dightalWrite() for outputs.

Quote
What kind of components I use for input and for output .
It depends on what inputs and outputs you have. A PLC can use relays so you will need a transistor to drive a relay coil from an arduino output. Contact closure inputs are easy, connect them between input and ground and enable the internal pull up resistors.
Logged

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1025
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The components required for Inputs and Outputs will depend on what kind of devices you are connecting. AC or DC? 12V, 24V, 120V, 240V. If you want to do any analog you will probably have to change from 0-5V on the Arduino to somehow have 0-5V, 0-10V, -5 - +5V, -10 - +10V,  2 - 20mA.

It all depends on what you want to connect to.

One option is to look at Opto-22 devices.
Logged

St. Louis, Missouri
Offline Offline
Sr. Member
****
Karma: 1
Posts: 279
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here are a couple of opensource ladder logic projects that may be useful: http://ldcompiler.sourceforge.net/   http://sites.google.com/site/classicladder/
« Last Edit: April 26, 2012, 10:21:58 pm by Yankee » Logged

'round the world...
Offline Offline
Faraday Member
**
Karma: 42
Posts: 3287
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The closest I've seen on the hardware part was this:

http://ruggedcircuits.com/html/ruggeduino.html

On the software, there was a guy that built one based on an AVR... but just as a proof of concept, so it wasn't very powerful.
Logged

Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 209
Posts: 13024
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Something like this?
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1267907942
Logged

Pages: [1]   Go Up
Jump to: