The OpenPLC Runtime was designed with portability in mind. Its core was written in pure C, allowing it to be ported to many different hardware platforms. For the most common operating systems, like Windows and Linux, there is a ready to use installer that deploys the runtime as an application that you can run. For embedded systems without a full blown OS, the runtime must be deployed as part of the PLC program itself. The OpenPLC Editor makes this task very easy for all officially supported boards. Once you’re ready to deploy your PLC program on your Arduino-compatible board, all you have to do is click on the Arduino icon at the toolbar on the top:
This will bring an upload dialog which allows you to select which hardware platform you’re deploying OpenPLC Runtime to:
The upload dialog allows you to configure a couple things on the micro-runtime, such as if Modbus should be enabled and on which interface it must listen to requests. Once you’re done configuring the options you want, just hit the ‘Upload’ button. A version of the OpenPLC micro-runtime especially crafted for the selected hardware platform will be merged with the PLC program and uploaded to your board at the end of the process. The upload process is finished when you see the message “Done uploading!” at the end of the console output.