Towards the safe-IOCOS relation -- On testing and correction of errors in an implementation to ensure safety
Doktorsavhandling, 2021
Automated machines are predominantly controlled via programmable logic controllers (PLCs) to carry out the nominal tasks. For safety critical tasks, though, special devices in conjunction with safety PLCs are used to prevent material damage and accidents leading to human injuries.
Before physical commissioning of a manufacturing system, the nominal PLC code is tested to uncover faults. This can be done either by running tests on the physical system or using a simulation model via virtual commissioning. However, the safety code is usually tested during the factory acceptance test phase on the actual physical system. The faults found in the safety code are corrected manually, which is time consuming and error prone.
The formal methods community has developed testing relations and approaches that can be used to automatically test and amend faults in the implementation. The work presented in this thesis is based on such a testing relation and formal approach.
The safe input-output conformance simulation relation (safe-IOCOS) is a testing relation that requires equality for traces composed of safety behaviors. However, in practical settings, many safety behaviors in a production system are implemented for each nominal operation. And these behaviors get tested multiple times during testing, which increases the testing time unnecessarily. To counter this problem, an approach to minimize testing time is proposed.
Furthermore, an approach to automatically amend a faulty implementation to ensure safety properties with respect to a safety specification is presented. This approach uses the procedure of synthesis, from the framework of supervisory control theory, based on the infimial controllable superlanguage, which not only removes the faults from the implementation but also guarantees to make it safe-IOCOS.
PLC
Safety
Supervisory control theory
Input-output conformance simulation relation
Model-based testing
Författare
Adnan Khan
Chalmers, Elektroteknik, System- och reglerteknik
Testing and validation of safety logic in the virtual environment
CIRP Journal of Manufacturing Science and Technology,;Vol. 26(2019)p. 1-9
Artikel i vetenskaplig tidskrift
On testing and automatic mending of safety PLC code
CIRP Journal of Manufacturing Science and Technology,;Vol. 35(2021)p. 431-440
Artikel i vetenskaplig tidskrift
On test case reduction for testing safety properties of manufacturing systems
Journal of Manufacturing Systems,;Vol. 63(2022)p. 203-213
Artikel i vetenskaplig tidskrift
Now, to make sure that the manufacturing systems do the required job in a safe manner, a dedicated PLC called safety PLC is used. The safety PLC can supersede commands given by other PLCs that are usually busy controlling nominal tasks of the manufacturing systems. The safety PLC works in combination with safety-sensors and actuators to keep the machines and humans safe in case of unforeseen circumstances.
After the implementation of the physical system along with the PLC, a test engineer checks the code implemented for the nominal tasks as well as the safety tasks for possible errors. This procedure is carried out before starting up the manufacturing systems. If any errors are uncovered, then the engineers manually correct the PLC code. Now, this whole activity of manual testing and correction of PLC code is time consuming and itself error prone.
In this thesis, first an approach to test safety PLC code based on a simulation model to identify errors and reduce testing time is presented. Secondly, it is shown how a mathematical approach can be used to reduce test cases and hence time spent in testing without compromising the quality of the test procedure. Finally, it is shown how an automatic approach can help in removing errors in the safety PLC code.
Systematisk testning av cyberfysiska system (SyTeC)
Vetenskapsrådet (VR) (2016-06204), 2017-01-01 -- 2022-12-31.
Styrkeområden
Produktion
Ämneskategorier
Elektroteknik och elektronik
ISBN
978-91-7905-467-0
Doktorsavhandlingar vid Chalmers tekniska högskola. Ny serie: 4934
Utgivare
Chalmers