Exploring Code Clones in Programmable Logic Controller Software

被引:0
作者
Thaller, Hannes [1 ]
Ramler, Rudolf [2 ]
Pichler, Josef [2 ]
Egyed, Alexander [1 ]
机构
[1] Johannes Kepler Univ Linz, Inst Software Syst Engn, Linz, Austria
[2] Software Competence Ctr Hagenberg GmbH, Hagenberg, Austria
来源
2017 22ND IEEE INTERNATIONAL CONFERENCE ON EMERGING TECHNOLOGIES AND FACTORY AUTOMATION (ETFA) | 2017年
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The reuse of code fragments by copying and pasting is widely practiced in software development and results in code clones. Cloning is considered an anti-pattern as it negatively affects program correctness and increases maintenance efforts. Programmable Logic Controller (PLC) software is no exception in the code clone discussion as reuse in development and maintenance is frequently achieved through copy, paste, and modification. Even though the presence of code clones may not necessary be a problem per se, it is important to detect, track and manage clones as the software system evolves. Unfortunately, tool support for clone detection and management is not commonly available for PLC software systems or limited to generic tools with a reduced set of features. In this paper, we investigate code clones in a real-world PLC software system based on IEC 61131-3 Structured Text and C/C++. We extended a widely used tool for clone detection with normalization support. Furthermore, we evaluated the different types and natures of code clones in the studied system and their relevance for refactoring. Results shed light on the applicability and usefulness of clone detection in the context of industrial automation systems and it demonstrates the benefit of adapting detection and management tools for IEC 611313-3 languages.
引用
收藏
页数:8
相关论文
共 50 条
[31]   Implementation programmable logic controller for THAILAND industries [J].
Gulpanich, Suphan ;
Tipsuwanporn, Vittaya ;
Suesut, Taweepol ;
Tirasesth, Kitti .
International Conference on Computational Intelligence for Modelling, Control & Automation Jointly with International Conference on Intelligent Agents, Web Technologies & Internet Commerce, Vol 2, Proceedings, 2006, :234-239
[32]   PROGRAMMABLE LOGIC-CONTROLLER - HOW IT WORKS [J].
POWELL, GS .
ELECTRICAL REVIEW, 1977, 200 (22) :52-53
[33]   PARALLEL CONTROLLER SYNTHESIS FOR PROGRAMMABLE LOGIC DEVICES [J].
PARDEY, J ;
AMROUN, A ;
BOLTON, M ;
ADAMSKI, M .
MICROPROCESSORS AND MICROSYSTEMS, 1994, 18 (08) :451-457
[34]   Managing the invisible assets [programmable logic controller] [J].
Barrett, Michael .
Engineering and Technology, 2008, 3 (12) :50-52
[35]   Semantic characterization of programmable logic controller programs [J].
Xiao, Litian ;
Wang, Rui ;
Gu, Ming ;
Sun, Jiaguang .
MATHEMATICAL AND COMPUTER MODELLING, 2012, 55 (5-6) :1819-1824
[36]   THE PROGRAMMABLE (LOGIC) CONTROLLER - ADAPTING IN AN ENVIRONMENT OF CHANGE [J].
LEVINE, PS .
INTECH, 1995, 42 (03) :52-56
[37]   A New Simulation System of Programmable Logic Controller [J].
Hu, Zhaoyong ;
He, Hanwu ;
Duan, Yutao .
MANUFACTURING ENGINEERING AND AUTOMATION I, PTS 1-3, 2011, 139-141 :1954-1958
[38]   Source Code Metrics for Programmable Logic Controller (PLC) Ladder Diagram (LD) Visual Programming Language [J].
Kumar, Lov ;
Jetley, Raoul ;
Sureka, Ashish .
PROCEEDINGS OF 2016 IEEE/ACM 7TH INTERNATIONAL WORKSHOP ON EMERGING TRENDS IN SOFTWARE METRICS (WETSOM), 2016, :15-21
[39]   Utilizing electromagnetic emanations for out-of-band detection of unknown attack code in a programmable logic controller [J].
Boggs, Nathaniel ;
Chau, Jimmy C. ;
Cui, Ang .
CYBER SENSING 2018, 2018, 10630
[40]   SOFTWARE ENGINEERING APPLIED TO PROGRAMMABLE CONTROLLER SOFTWARE-DESIGN [J].
FRENCH, AC .
ADVANCES IN INSTRUMENTATION AND CONTROL, VOL 44, PT 1-4, 1989, 44 :945-957