You are required to read and agree to the below before accessing a full-text version of an article in the IDE article repository.

The full-text document you are about to access is subject to national and international copyright laws. In most cases (but not necessarily all) the consequence is that personal use is allowed given that the copyright owner is duly acknowledged and respected. All other use (typically) require an explicit permission (often in writing) by the copyright owner.

For the reports in this repository we specifically note that

  • the use of articles under IEEE copyright is governed by the IEEE copyright policy (available at http://www.ieee.org/web/publications/rights/copyrightpolicy.html)
  • the use of articles under ACM copyright is governed by the ACM copyright policy (available at http://www.acm.org/pubs/copyright_policy/)
  • technical reports and other articles issued by M‰lardalen University is free for personal use. For other use, the explicit consent of the authors is required
  • in other cases, please contact the copyright owner for detailed information

By accepting I agree to acknowledge and respect the rights of the copyright owner of the document I am about to access.

If you are in doubt, feel free to contact webmaster@ide.mdh.se

PyLC: A Framework for Transforming and Validating PLC Software using Python and Pynguin Test Generator

Fulltext:


Publication Type:

Conference/Workshop Paper

Venue:

SAC2023, The 38th ACM/SIGAPP Symposium On Applied Computing

Publisher:

ACM

DOI:

https://doi.org/10.1145/3555776.3577698


Abstract

Many industrial application domains utilize safety-critical systems to implement Programmable Logic Controllers (PLCs) software. These systems typically require a high degree of testing and stringent coverage measurements that can be supported by state-of-the-art automated test generation techniques. However, their limited application to PLCs and corresponding development environments can impact the use of automated test generation. Thus, it is necessary to tailor and validate automated test generation techniques against relevant PLC tools and industrial systems to efficiently understand how to use them in practice. In this paper, we present a framework called PyLC, which handles PLC programs written in the Function Block Diagram and Structured Text languages such that programs can be transformed into Python. To this end, we use PyLC to transform industrial safety-critical programs, showing how our approach can be applied to manually and automatically create tests in the CODESYS development environment. We use behaviour-based, translation rules-based, and coverage-generated tests to validate the PyLC process. Our work shows that the transformation into Python can help bridge the gap between the PLC development tools, Python-based unit testing, and test generation.

Bibtex

@inproceedings{Ebrahimi Salari6626,
author = {Mikael Ebrahimi Salari and Eduard Paul Enoiu and Wasif Afzal and Cristina Seceleanu},
title = {PyLC: A Framework for Transforming and Validating PLC Software using Python and Pynguin Test Generator},
pages = {1--10},
month = {April},
year = {2023},
booktitle = {SAC2023, The 38th ACM/SIGAPP Symposium On Applied Computing},
publisher = {ACM},
url = {http://www.es.mdu.se/publications/6626-}
}