1.3 Installing OpenPLC Runtime on Windows
Welcome! We are excited that you want to learn more about OpenPLC. This page contains step-by-step instructions on how to get OpenPLC Runtime installed in your system. The OpenPLC Runtime core was written with POSIX compatibility. Therefore, to be able to run on Windows, OpenPLC Runtime needs a special software called MSYS2. MSYS2 is a fork of Cygwin which provides substantial POSIX API functionality on Windows, and also has a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution.
The OpenPLC v3 Windows installer is no longer distributed. The source code is available in the OpenPLC_v3 repository on GitHub, and the steps below install it manually.
Install OpenPLC Runtime Manually
- Download MSYS2 installer from https://www.msys2.org/
- Open file explorer and go to the folder where you downloaded MSYS2 setup (for example Downloads).
- Double-click on the MSYS2 installer and follow the screen prompts to get MSYS2 installed in your system
Once MSYS2 is installed, installing OpenPLC Runtime is simple and straightforward. Just open “MSYS2 MSYS” from the Windows menu and type:
pacman -Suy --noconfirm pacman -S git --noconfirm git clone https://github.com/thiagoralves/OpenPLC_v3.git cd OpenPLC_v3 ./install.sh win_msys2
After typing these commands, OpenPLC Runtime installation will start inside MSYS2. It may take a while (up to 15 minutes depending on your computer and internet speed). Once the installation finishes, you can start OpenPLC Runtime by typing the following commands on MSYS2 Terminal:
cd OpenPLC_v3
./start_openplc.sh

