[Paper Review] Applying Model Checking to Highly-Configurable Safety Critical Software: The SPS-PPS PLC Program
This paper applies PLCverif, a CERN-developed model checking platform, to verify the highly configurable SPS Personnel Protection System (PPS) PLC program, demonstrating its ability to detect both specification deficiencies and PLC bugs before system commissioning. The approach efficiently handles complex configuration spaces through automated model generation and formal verification, uncovering critical issues in safety-critical interlock logic.
An important aspect of many particle accelerators is the constant evolution and frequent configuration changes that are needed to perform the experiments they are designed for. This often leads to the design of configurable software that can absorb these changes and perform the required control and protection actions. This design strategy minimizes the engineering and maintenance costs, but it makes the software verification activities more challenging since safety properties must be guaranteed for any of the possible configurations. Software model checking is a popular automated verification technique in many industries. This verification method explores all possible combinations of the system model to guarantee its compliance with certain properties or specification. This is a very appropriate technique for highly configurable software, since there is usually an enormous amount of combinations to be checked. This paper presents how PLCverif, a CERN model checking platform, has been applied to a highly configurable Programmable Logic Controller (PLC) program, the SPS Personnel Protection System (PPS). The benefits and challenges of this verification approach are also discussed.
Motivation & Objective
- To address the challenge of verifying safety-critical, highly configurable PLC programs with vast configuration spaces.
- To evaluate the effectiveness of model checking via PLCverif in detecting specification and implementation flaws in real industrial control systems.
- To improve the reliability of the SPS-PPS system by identifying corner-case behaviors missed by traditional testing.
Proposed method
- Utilizes PLCverif, an open-source platform that automatically generates formal models from PLC code in FBD or STL.
- Integrates three state-of-the-art model checkers: nuXmv, Theta, and CBMC, for comprehensive verification.
- Applies abstraction and reduction techniques to mitigate state-space explosion in large configuration spaces.
- Formalizes functional requirements as assertions in PLCverif’s input format, derived from pseudo-formal specifications.
- Validates safety-critical functions such as mode transitions and key release logic using formal assertions.
- Analyzes counterexamples generated by the model checker to diagnose specification errors or PLC bugs.
Experimental results
Research questions
- RQ1Can model checking effectively verify highly configurable PLC programs with exponentially large configuration spaces?
- RQ2How effective is PLCverif in detecting specification gaps and implementation bugs in safety-critical interlock systems?
- RQ3To what extent can formal verification complement traditional testing in industrial control systems?
- RQ4What are the practical challenges in applying model checking to real-world PLC programs in particle accelerators?
- RQ5How does model checking improve expert understanding of complex system behaviors across all configurations?
Key findings
- PLCverif detected a specification error in the SIF-2 function due to a missing variable in the formalized assertion, which was not evident from documentation alone.
- A critical bug in the SIF-2 function’s logic for key release was identified through a counterexample, leading to a pre-commissioning fix.
- The formal verification of the SIF-2 function took 147 seconds and revealed a logic inconsistency in the key release condition for safety chain 15.
- The system’s mode transition logic was formally verified in 93 seconds, uncovering an incomplete specification that omitted key safety conditions.
- Model checking successfully identified undesirable corner cases that were difficult for experts to reason about manually, improving specification clarity.
- The approach proved effective as a complement to lab testing, especially for verifying behavior across all possible configurations in safety-critical systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.