Paper | Title | Page |
---|---|---|
FPO011 | PyPLC, a Versatile PLC-to-PC Python Interface | 182 |
|
||
The PyPLC [1] Tango Device Server provides a developer-friendly dynamic interface to any Modbus-based control device. Raw data structures from PLC are obtained efficiently and converted into highly customized attributes using the python programing language. The device server allows to add or modify attributes dynamically using single-line python statements. The compact python dialect used is enhanced with Modbus commands and methods to prototype, simulate and implement complex behaviors. As a generic device, PyPLC has been versatile enough to interact with PLC systems used in ALBA [2] Accelerators as well as to our Beamlines SCADA (Sardana [3]). This article describes the mechanisms used to enable this versatility and how the dynamic attribute syntax allowed to speed up the transition from PLC to user interfaces.
[1] www.tango-controls.org [2] www.cells.es [3] www.sardana-controls.org |
||
![]() |
Poster FPO011 [1.603 MB] | |