In order to make the OpenPLC Stack Software available to other platforms, some parts of it have to be rewritten. The OpenPLC Ladder IDE combines the graphical utility to write ladder programs and the compiler on one application. However, it is a Windows-only software and relies a lot on the Win32 API.


The OPLC Compiler is a new compiler based on ldmicro code to generate a .cpp file based on a ladder file. It runs on Windows, Linux, MacOS and even on some embedded platforms. The generated .cpp file can then be compiled to the target platform using a C++ compiler.

The OPLC Compiler doesn't have a GUI. It is intended to be a command-line utility only and serve as the engine behind the OpenPLC.



If you want to contribute with the code, this is the github link for the project.



Thiago Alves