Title |
Continuous Integration for PLC-based Control System Development |
Authors |
- B. Schofield, E. Blanco Viñuela, J.H.P.D.C. Borrego
CERN, Geneva, Switzerland
|
Abstract |
Continuous Integration and Continuous Deployment (CI/CD) is a software engineering methodology which emphasises frequent, small changes committed to a version control system, which are verified by a suite of automatic tests, and which may be deployed to different environments. While CI/CD is well established in software engineering, it is not yet widely used in the development of industrial controls systems. However, the advantages of using CI/CD for such systems are clear. In this paper we describe a complete CI/CD pipeline able to automatically build Siemens PLC projects from sources, download the program to a PLC, and run a sequence of tests which interact with the PLC via both a Simulation Unit Profibus simulator and an OPC UA interface provided by Simatic NET. To achieve this, a gRPC service wrapping the Simatic API was used to provide an interface to the PLC project from the pipeline. In addition, a Python wrapper was created for the Simulation Unit API, as well as for the OPC UA interface, which allowed the test suite to be implemented in Python. A particle accelerator interlock system based on Siemens S7-300 PLCs has been taken as a use case to demonstrate the concept.
|
Paper |
download TUPV035.PDF [0.469 MB / 6 pages] |
Cite |
download ※ BibTeX
※ LaTeX
※ Text/Word
※ RIS
※ EndNote |
Conference |
ICALEPCS2021 |
Series |
International Conference on Accelerator and Large Experimental Physics Control Systems (18th) |
Location |
Shanghai, China |
Date |
14-22 October 2021 |
Publisher |
JACoW Publishing, Geneva, Switzerland |
Editorial Board |
Kazuro Furukawa (KEK, Tsukuba, Japan); Yingbing Yan (SARI,Shanghai, China); Yongbin Leng (SARI,Shanghai, China); Zhichu Chen (SARI,Shanghai, China); Volker RW Schaa (GSI, Darmstadt, Germany) |
Online ISBN |
978-3-95450-221-9 |
Online ISSN |
2226-0358 |
Received |
08 October 2021 |
Accepted |
20 November 2021 |
Issue Date |
11 March 2022 |
DOI |
doi:10.18429/JACoW-ICALEPCS2021-TUPV035 |
Pages |
478-483 |
Copyright |
Published by JACoW Publishing under the terms of the Creative Commons Attribution 3.0 International license. Any further distribution of this work must maintain attribution to the author(s), the published article's title, publisher, and DOI. |
|