Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Open source PLC

Open source PLC

Open source PLC

Dear friends,

I'm a Ph.D. student at the University of Alabama in Huntsville, and my research topic is SCADA cyber security. My goal is to find vulnerabilities in PLCs and try to fix them. However, its really hard to study something deep when you don't have the source code. Therefore, due to the lack of open source tools available in this field, I decided to create my own open source PLC. Then I realized that this could be useful for other researchers and professionals in the field, so I'm here sharing it with everyone.

The OpenPLC is a complete package with an editor and a compiler. The editor runs in Windows, Linux and MacOS and supports all the 5 IEC 61131-3 languages: ST, IL, LADDER, FBD and SFC. The compiler is responsible for getting the program written by the user and compile it to the platform in which the OpenPLC is running.

The OpenPLC currently runs on Raspberry Pi, Arduino, UniPi and also as a soft-PLC on Windows or Linux. If you guys have any of the mentioned boards laying down somewhere, it might be interesting to give the OpenPLC a try. More information can be found at the project's website: www.openplcproject.com

Let me know if you have any comments.


Thiago Alves 

RE: Open source PLC

Wow. Lotta work you've done there. I'll check it out.

Thanks for the sharing Thiago.

Keith Cress
kcress - http://www.flaminsystems.com

RE: Open source PLC

5 IEC 61131-3 languages: ST(Structured Text), IL, LADDER, FBD (Function Block Diagram) and SFC (Sequential Function Chart).

This always bugs me for some reason: When everyone does TLA (two-three letter acronyms) and never tell you at beginning what it means?

My question to also what would be more useful is if you created a PLC language export/import type of complier. Now that would be very useful and create chaos for PLC manufactures since a customer has a way out if they don't like AB, Siemens, or whatever flavor of PLC language.

Example: Allen Bradley has an export XML file called a *.L5K file. You take this file and try to translated into a Siemens STep7 file.

RE: Open source PLC

XML is getting close to being a 'universal' translation language for PLCs however not all in "XML" is created equal either. As an example GE Proficy ME can also Export/Import .xml how ever try Importing an xml from AB and it is rather interesting.

RE: Open source PLC

Great! Like!

I wish I had more time. Or that there were 48 h/day. This is something I will be following. How many hours does your day have?

Thanks for showing us.

Gunnar Englund
Half full - Half empty? I don't mind. It's what in it that counts.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


White Paper - Reshoring Prototyping and Production
In this whitepaper, we'll provide insight into why and when it makes sense for U.S. manufacturers to reshore prototyping and production, and how companies can leverage the benefits of working with local design, prototype, and manufacturing partners during the pandemic and beyond. Download Now
Engineering Report - Top 10 Defect Types in Production
This 22-page report from Instrumental identifies the most common production defect types discovered in 2020, showcases trends from 2019 to 2020, and provides insights on how to prevent potential downtime in 2021. Unlike other methods, Instrumental drives correlations between a variety of data sources to help engineers find and fix root causes. Download Now
White Paper - Addressing Tooling and Casting Requirements at the Design Stage
Several of the tooling and casting requirements of a part can be addressed at the design stage. If these requirements are not addressed at the design stage, lot of time is spent in design iteration when the design reaches the die caster. These design issues lead to increase in time and cost of production leading to delay in time to market and reduced profits for the organization. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close