SimplePLC is a lightweight, software-based PLC designed for educational use, simulations, and small-scale automation projects.
- Modbus TCP & OPC UA servers
- Lua scripting for control logic
- 100ms cyclic execution with hot-reload
- Cross-platform (Linux, macOS, Windows)
mkdir build && cd build
cmake ..
make
Linux
sudo apt install libmodbus lua open62541
macOS
brew install libmodbus lua open62541
Ensure the following files are in the same folder (examples in scripts folder):
settings.ini
active.plc
(optional)world.plc
Then run:
./SimplePLC
Build it yourself or get pre-built binaries from GitHub Releases.