LDmicro is a program for creating, developing and editing ladder diagrams, simulation of a ladder diagram work and the compilation of ladder diagrams into the native hexadecimal firmware code of the Atmel AVR and Microchip PIC controllers.
Download executable binaries buildXXXX.zip from the Latest release
You probably need to install the Microsoft Visual C ++ Redistributable Package if Visual C ++ is not installed in your operating system. See MSVCP100.dll is missing error
Building with make
LDmicro is built using the Microsoft Visual C++ compiler. If that is installed correctly, then you should be able to just run
and see everything build.
Various source and header files are generated automatically. The perl scripts to do this are included with this distribution, but it's necessary to have a perl.exe in your path somewhere.
The makefile accepts an argument, D=LANG_XX, where XX is the language code. make.bat supplies that argument automatically, as LANG_EN (English).
Building with Cmake
For building LDmicro with Cmake you need Cmake itself, Perl interpreter and C++11 compiler.
You should use out-of-source-tree builds, so create e.g. a directory
build in the main ldmicro directory. (If you choose to build in other
directory, replace the
.. in the following instructions with path pointing
to the root/ldmicro directory.)
To build with MSYS + mingw-w64 + Make:
$ mkdir build $ cd build $ cmake -G "MSYS Makefiles" .. $ make
To build with MSYS + mingw-w64 + Ninja:
$ mkdir build $ cd build $ cmake -G "Ninja" .. $ ninja
To build within MSYS2, make sure you have these MSYS2 packages installed:
Build with Microsoft Visual Studio 2017
Visual Studio 2017 supports CMake build system, so you may just follow these instructions.
- Start Visual Studio 2017.
- In menu File, choose submenu Open and Folder.
- In the open dialog, navigate to LDmicro/ldmicro folder and open it.
- In menu CMake, choose to Build all.
Build with Older Version of Microsoft Visual Studio
To build with older Microsoft Visual Studio 2013 or 2015, you have to generate project files manually:
$ mkdir build $ cd build $ cmake -G "Visual Studio 12 2013" .. # MSVC 2013, 32-bit build $ cmake -G "Visual Studio 12 2013 Win64" .. # MSVC 2013, 64-bit build $ cmake -G "Visual Studio 14 2015" .. # MSVC 2015, 32-bit build $ cmake -G "Visual Studio 14 2015 Win64" .. # MSVC 2015, 64-bit build
Then open the generated solution file
build/ldmicro.sln in Visual Studio and
build the target
You can also choose LDmicro language. For that, you should set LDLANG variable for Cmake. LDLANG can be one of those values: EN, DE, ES, FR, IT, PT, TR, RU, JA or ALL.
cmake -G "Ninja" -DLDLANG=DE ..