pyhoff – connect Python ML models to Beckhoff/WAGO IO hardware

Built this Python package because I wanted to run machine learning based predictive control algorithms connected to industrial I/O hardware without jumping into PLC tool chains. For sure its not for ms‑cycle loops, or uptime critical production systems, but in applications with relaxed timing it allows for fast iteration on the setup - making prototyping a pleasure. Its easy to use, has no dependencies beside Python, its fully type annotated and MIT licensed. Internal it uses ModBus/TCP for hardware communication, the implementation is exposed, so it co-serves as ModBus/TCP client library.

I'd love to hear your use cases, feature ideas and general feedback!

Repo: https://github.com/Nonannet/pyhoff
Docs: https://nonannet.github.io/pyhoff
 
Top