https://github.com/tomlxxvi/python-unipi-plc
Python programming on Unipi 1.1
https://github.com/tomlxxvi/python-unipi-plc
plc-programming python3 unipi-board
Last synced: 22 days ago
JSON representation
Python programming on Unipi 1.1
- Host: GitHub
- URL: https://github.com/tomlxxvi/python-unipi-plc
- Owner: TomLXXVI
- License: mit
- Created: 2025-03-18T20:05:31.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2025-03-25T09:29:48.000Z (about 1 month ago)
- Last Synced: 2025-03-25T10:32:29.370Z (about 1 month ago)
- Topics: plc-programming, python3, unipi-board
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PLC Programming with Python on the Unipi 1.1 PLC Board
This repository holds a package `unipi` to emulate a PLC, while the PLC programs
are written in pure Python. To test the package and play with it, the Unipi 1.1
PLC board with a Raspberry Pi 3 was used.The communication between the PLC board and the PLC application running on the
Raspberry Pi happens with Unipi EVOK 3 API. Class `GPIO` in module `gpio.py` of
the package is the underlying module which takes care of the communication
between the Python program and the EVOK 3 API.To write a PLC application with the `unipi` package, the core class is
`AbstractPLC` in module `plc.py`. Every PLC application must inherit from this
class and should implement the abstract methods of this core class (
`control_routine`, `exit_routine`, and `emergency_routine`).Some application examples can be found in the folder `applications` of this
repository.