Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Seafox_C
Published © GPL3+

Writing PLC code and use an Arduino as PLC with OpenPLC

PLC languages are used in industrial controllers and now it is possible to write this code directly to an Arduino board!

BeginnerFull instructions provided1 hour24,761

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Resistor 220 ohm
Resistor 220 ohm
×3
5 mm LED: Red
5 mm LED: Red
×1
5 mm LED: Yellow
5 mm LED: Yellow
×1
3 mm LED: Green
3 mm LED: Green
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Story

Read more

Schematics

Schematic

Code

PLC editor code

D
If you follow the video and create a new project you don't need the code but it can help if you get stuck on an issue.
No preview (download only).

Credits

Seafox_C
10 projects • 49 followers
I'm 29 years old and live in Belgium. I love the Arduino community and like to learn and make projects.
Thanks to Thiago Alves.

Comments