Build a Simple PLC using Arduino http://program-plc.blogspot.com.ar/2015/01/build-simple-plc-using-ard...
Home Donate Download Get Free PLC eBook Contact Us Youtube Facebook Twitter Google+
Build a Simple PLC using Arduino
Anuncios Google
► Build robot
► How to Build
► Build Lego
This article about build a simple PLC for simple ladder diagram programming.
Ladder diagram for this simple PLC only: LD,LDI,AND,ANI,OR,ORI,OUT.
For CPU PLC using Arduino, and Input/Output Module use optocoupler and relay.
In PLC input module use Voltage 24VDC and PLC output module use relay.
This image about defference PLC and Simple PLC using Arduino:
Hardware is needed to build a simple PLC:
1. Optocoupler TLP521
2. 5V Active Low Relay Board Module
3. Arduino UNO
4.Power Supply 24VDC
1 de 7 19/02/2016 09:37 p.m.
Build a Simple PLC using Arduino http://program-plc.blogspot.com.ar/2015/01/build-simple-plc-using-ard...
5. AC Adaptor with Output 9VDC for power to Arduino UNO
6. Switch / Push Button
Build 24VDC Input Modules:
1. Resistor 3.3K ohm
2. Resistor 10K ohm
3. Optocoupler TLP521
Build Relay Output Modules:
1. Resistor 560 ohm
2. Optocoupler TLP521
3. 5V Active Low Dual Channel Relay Board Module
Fb
Hardware of Simple PLC using Arduino: Free PLC ebook
2 de 7 19/02/2016 09:37 p.m.
Build a Simple PLC using Arduino http://program-plc.blogspot.com.ar/2015/01/build-simple-plc-using-ard...
How to Convert from PLC Ladder Diagram to Arduino Programming?
1. Check link about the duty cycle of PLC http://program-plc.blogspot.com/2010/02/scan-time-of-plc.html
There are 3 cycles of PLC:
- Input Processing
- Program Execution
- Output Processing
2. PLC ladder diagram for simple PLC using Arduino:
Example: PLC Ladder Diagram of Allen Bradley MicroLogix 1000 Fb
Free PLC ebook
3 de 7 19/02/2016 09:37 p.m.
Build a Simple PLC using Arduino http://program-plc.blogspot.com.ar/2015/01/build-simple-plc-using-ard...
3. PLC Ladder Diagram to Arduino Programming:
3.1. Input Processing:
use code: digitalRead(pin)
example: i00 = digitalRead(i00pin)
3.1. Program Execution:
3.3. Output Processing:
use code: digitalWrite(pin, value)
example: digitalWrite(o00pin, o00)
See the Results:
Download Project File:
1. PLC Ladder Diagram for MicroLogix 1000, click here
2. Arduino project file, click here
Arduino Code:
//Input/Output Pin
const int i00pin = 2; //Connect to Push Button
const int i01pin = 3; //Connect to Push Button
const int i02pin = 4; //Connect to Push Button
const int o00pin = 8; //Connect to Relay
const int o01pin = 9;//Connect to Relay
//Variable Name for Input/Output
boolean i00;
boolean i01;
boolean i02;
Fb
boolean o00;
boolean o01;
void setup() {
//Input Pin Setup Free PLC ebook
4 de 7 19/02/2016 09:37 p.m.
Build a Simple PLC using Arduino http://program-plc.blogspot.com.ar/2015/01/build-simple-plc-using-ard...
pinMode(i00pin, INPUT);
pinMode(i01pin, INPUT);
pinMode(i02pin, INPUT);
//Output Pin Setup
pinMode(o00pin, OUTPUT);
pinMode(o01pin, OUTPUT);
}
void loop()
{
//The duty cycle of PLC http://program-plc.blogspot.com/2010/02/scan-time-of-plc.html
//1.Input processing
i00 = digitalRead(i00pin);
i01 = digitalRead(i01pin);
i02 = digitalRead(i02pin);
o00 = digitalRead(o00pin);
o01 = digitalRead(o01pin);
//2.Program execution
//(I:0/0 OR O:0/0 ) AND NOT I:0/2
if ((i00 || o00) && !i02) {
o00 = true;
}else {
o00 = false;
}
//((O:0/0 AND I:0/1 ) OR O:0/1) AND NOT I:0/2
if (((o00 && i01) || o01) && !i02) {
o01 = true;
}else {
o01 = false;
}
//3.Output processing
digitalWrite(o00pin, o00);
digitalWrite(o01pin, o01);
}
must be read :
Fb
Snack Vending Car Ticketing Fountain Application Guidance how we PLC Programming
Machine Simulation Machine using PLC Using CP1L Omr... can use Arduino as ... for Snack Vending
fo... M...
Free PLC ebook
5 de 7 19/02/2016 09:37 p.m.
Build a Simple PLC using Arduino http://program-plc.blogspot.com.ar/2015/01/build-simple-plc-using-ard...
Labels: Build a Simple PLC , PLC and Arduino , PLC Application , PLC using Arduino , Simple PLC
Posted by Cartiman Iman 1/11/2015 05:03:00 PM
You may also like these ebook:
Get Free PLC eBook directly sent to your email,
and email subscription to program-plc.blogspot.com
Enter your email here
Submit PLC eBook to My Email
Fb
We hate SPAM. Your information is never sold or shared with anyone.
Free PLC ebook
6 de 7 19/02/2016 09:37 p.m.
Build a Simple PLC using Arduino http://program-plc.blogspot.com.ar/2015/01/build-simple-plc-using-ard...
Fb
Free PLC ebook
7 de 7 19/02/2016 09:37 p.m.