Modularity and Architecture of PLC-based Software PDF
Modularity and Architecture of PLC-based Software PDF
B. Vogel-Heuser, J. Fischer, S. Feldmann, S. Ulewicz and S. Rösch. "Modularity and Architecture of PLC-based Software for
Automated Production Systems: An analysis in industrial companies", Journal of Systems and Software (JSS), vol. 131, pp.
35-62, May 2017.
1
Lehrstuhl AIS
Maschinenwesen Technical Constraints of aPS and Motivation
Technical constraints of automated Production
Systems (aPS):
− Hard real-time requirements, cyclic
behavior (1µs – 1s), and
proprietary hardware (PLC). Source: Siemens AG Source: Bayer AG, Leverkusen
Sensor signals
(IEC 61131-3) Inputs
Technical
20- 50 Years Process PLC-Code Process
Mechanics (Context)
(context) Execution Data
10 - 15 Years Automation hardware incl.
Electric (Platform)
Development 1,5
Software
and Design Years Actuator signals
Outputs
© AIS
Chips
Transition 2 Text LDN Var1
1,5 Years Step3 OUT:= ANDN Var 2
Transition 3 (Var1 & Var2 & Var3) OR ANDN Var3
. (Var4 & Var5) ST OUT
Life Cycle .
.
consistency checks
• machine suppliers
questionnaire
modularity
iteratively
scoring
criteria
2 (3–14)
visions normalization • plant suppliers
companies weaknesses/
(15–16)
comparison to
strengths average 1
proof
Expert use case
analysis (company)
3
Expert analysis (E)
© AIS
16 world-leading companies in machine and plant manufacturing including four case studies
Do the three different sub- Maturity level differ among MMOD, MTEST, MOP. (H2)
maturity levels deliver further
insights compared to one general Q
maturity level? (RQ2)
What are the most significant Universally low maturity levels arise in the different phases, indicating possible
weaknesses in software maturity causes or prerequisites for weaknesses in software maturity. (H3.1) Q
in aPS and in which phase do
High MMOD AND high MTEST high MOP.
they occur and what are possible
A proper engineering process eases and shortens start-up, operation and Q
causes / reasons / prerequisites?
maintenance. (H3.2)
(RQ3)
Different release procedures for SW libraries due to on-site changes (H3.3) Q
Weaknesses in the tool chain support can be identified for selected aspects
(H3.4). Q
Module libraries, release procedure, version management and change tracking are
prerequisites for all ways of reuse (H3.5). Q
© AIS
E
Decomposability, composability, understandability and protection enable high
governance level mature SW architecture & code graph higher MMOD. (H4.4) Q&E
Machine
H1.2: Platform suppliers reach higher maturity
values than machine suppliers than plant
manufacturers.
MMOD
MOP
High scores
Interdependencies of maturity levels (* mean value)
Low scores
Platform Machine Plant
- Need more samples High scores Low scores
© AIS
Maturity levels of case studies compared to the machine
<Overview of maturity levels of companies> manufacturing companies mean
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018 5
Lehrstuhl AIS Most significant weaknesses in software maturity phase do
Maschinenwesen
they occur, possible causes / reasons / prerequisites?
H3.3: Due to necessity of on-site changes in plant manufacturing, machine and plant
manufacturers follow different release procedures for software libraries.
© AIS
Release procedure (workflow) of library element in machine (a) vs. plant manufacturing industry (b)
H3.4: Weaknesses in the tool chain support (mean value machine manufacturing
companies) can be identified for selected aspects, e.g. continuous integration, code
generation or version management.
© AIS
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018 7
Lehrstuhl AIS
Maschinenwesen Prerequisites of Reuse
H3.5: Appropriate module libraries, release procedure of library components, version
management and change tracking are prerequisites for all ways of reuse.
Table I. Correlations with Interaction Variable for Questionnaire Items # 23, # 24, # 26, # 27
Influencing Items # 28 and # 30
interaction
(# 28) (# 30)
variable
interaction variable 1.000 .739** .520*
(question # 28) code
.739** 1.000 .846**
generation from tools
(question # 30) code
.520* .846** 1.000
configuration (templates)
© AIS
**. Correlation is significant at the 0.01 level (2-tailed).
*. Correlation is significant at the 0.05 level (2-tailed).
H4.2: Different approaches for code configuration exist in industry, that can be assigned to
different governance levels.
© AIS
Prof. Dr.-Ing. Birgit Vogel-Heuser | Lehrstuhl für Automatisierung und Informationssysteme | 4 July 2017 9
Lehrstuhl AIS
Maschinenwesen
Prerequisites of Modularity Maturity MMOD
H4.4: The better the criteria
decomposability, composability,
understandability and protection are
fulfilled, the higher the governance level,
the more mature the software
architecture level as well as the code
graph, and the higher the modularity
maturity (MMOD).
Partially true
© AIS
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018
Lehrstuhl AIS
Maschinenwesen
Research questions and hypotheses results
Research Questions Related Hypotheses Proof Results
Does the questionnaire deliver Questionnaire delivers valid results (H1.1) Q&E
valid results to identify Maturity level: Platform suppliers > Machine suppliers > Plant
weaknesses in gaining software manufacturers (H1.2) Q
modularity of aPS? (RQ1)
Do the three different sub- Maturity level differ among MMOD, MTEST, MOP. (H2)
maturity levels deliver further
insights compared to one Q
general maturity level? (RQ2)
What are the most significant Universally low maturity levels arise in the different phases, indicating
weaknesses in software possible causes or prerequisites for weaknesses in software maturity. (H3.1) Q
maturity in aPS and in which High MMOD AND high MTEST high MOP.
phase do they occur and what A proper engineering process eases and shortens start-up, operation and Q
are possible causes / reasons / maintenance. (H3.2)
prerequisites? (RQ3)
Different release procedures for SW libraries due to on-site changes (H3.3) Q
Weaknesses in the tool chain support can be identified for selected aspects
(H3.4). Q
© AIS
Decomposability, composability, understandability and protection enable high
governance level mature SW architecture & code graph higher MMOD. Q&E
(H4.4)
© AIS
based on templates
usage of templates
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018 12
SWMAT4aPS-Benchmark process to identify strengths and
Lehrstuhl AIS
Maschinenwesen weaknesses in software modularity
results
expert expert
interviews workshops
pre-processing/
Questionnaire (Q)
consistency checks
questionnaire
modularity
iteratively
criteria scoring
2
visions normalization
proof
Expert use case
analysis (company)
3
− SWMAT4aPSi/m
Expert analysis (E)
© AIS
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018 13
Thank you for
your attention!
Univ.-Prof. Dr.-Ing. Birgit Vogel-Heuser
Institute of Automation and Information Systems
Technical University of Munich
http://www.ais.mw.tum.de
[email protected]
© AIS
14
Lehrstuhl AIS
Maschinenwesen
Questions of the first questionnaire
© AIS
Prof. Dr.-Ing. Birgit Vogel-Heuser | Lehrstuhl für Automatisierung und Informationssysteme 15
Lehrstuhl AIS
Maschinenwesen Questions of the first questionnaire
© AIS
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018 16
Lehrstuhl AIS
Maschinenwesen Questions of the first questionnaire
Sub items included in start-up, operation and maintenance maturity calculation (MOP)
• Is the start-up of the machine/plant done on-site by the designer/programmer?
• How is the delivery to the customer conducted?
• How are updates installed?
Does the service department know the current customer’s software status on-site?
Manually evaluated questions from the questionnaire (not included in company profile lines
because of insufficient answers)
• How long does a typical start-up process take?
• How are new elements added to libraries? – related additional text to #24
• Please describe the release procedure of a library element (from implementation/programming
of the element to its library integration) – related additional text to #24
• By whom is the start-up of the machine/plant done on-site otherwise?
© AIS
• On which level of the software do you use which programming language?
• Which are the most critical technical tasks to be automatically controlled in your applications?
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018 17
Lehrstuhl AIS
Maschinenwesen Towards Industrie 4.0
• Software engineering for automated production systems (aPS) seems to be lagging
behind classical software engineering
• The changes towards Industrie 4.0 require the software to be more maintainable over
decades for thousands of machine and plant variants
• Reusability and variants & version manageability are key factors for efficient development
for multi and frequent customization
• Manage and identify the view on software modularity
o Industrial companies from automated production systems (machine and plant
manufacturing)
• A diagnosis tool or process is needed for detecting weaknesses in software
engineering or workflow characteristics
© AIS
Prof. Dr.-Ing. Birgit Vogel-Heuser | SE 2018 | 09. March 2018 18