Software modelling and verification for PLC-based ...
Transcript of Software modelling and verification for PLC-based ...
![Page 1: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/1.jpg)
1© 2015 The MathWorks, Inc.
Software modelling and verification for PLC-based automation plantsAlessandro Fantechi, Daniele Menchetti, Maurizio TommasiniDip. di Ingegneria dell'InformazioneUniversità di Firenze - Italy
![Page 2: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/2.jpg)
2
THE REAL WORLD
![Page 3: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/3.jpg)
3
SAFETY LEVEL
People injury
Unavailability of services
Economic losses
![Page 4: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/4.jpg)
4
PLC: A MULTILANGUAGE LITTLE BIG BRAIN
Ladder Diagram Structured Text
![Page 5: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/5.jpg)
5
HOW TO TEST IT?
1. Code porting
2. Model to test
3. Feedback
![Page 6: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/6.jpg)
6
FIRST APPROACH:
using SIMULINK to model the Ladder Diagrams behaviour
SA-System Tool
![Page 7: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/7.jpg)
7
SIMULINK DRAWBACKS
High
structural
complexity of
the model
Inaccurate modelling
of LD sequential
processing
Loss of
generality of
the approach
![Page 8: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/8.jpg)
8
SECOND APPROACH:
Choice of the Stateflow tool
Better model readability
Optimal model for sequential rungs execution
Higher model generality
![Page 9: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/9.jpg)
9
CONVERSION TO STATEFLOW LOGICAL MODEL
SA-System Tool
![Page 10: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/10.jpg)
10
INSIDE A SINGLE STATE BLOCK....
SA-System Tool
![Page 11: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/11.jpg)
11
TESTING:
What will happen???
Semantic and syntactical
Functionality
Formal verification
![Page 12: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/12.jpg)
12
SEMANTIC AND SYNTACTICT TESTS
Example: missed initialization of variable
Focal point: from logical model go back to PLC software to
resolve the error
![Page 13: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/13.jpg)
13
FUNCTIONAL TESTS: FROM REQUIREMENTS.....
Textual requirements Graphics requirements
Transformed in test signals using Signal Builder
![Page 14: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/14.jpg)
14
…. TO TEST REPORT!
Visual checkingVisual matching
![Page 15: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/15.jpg)
15
FORMAL VERIFICATION
Requirements
High coverageObserver
blocks
![Page 16: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/16.jpg)
16
CONCLUSIONS
SA-System tool with Matlab Stateflow/Simulink permits to obtain a
unique testing/porting methods of PLC source code.
SA-System team is working with industrial partners to optimize the
tool.
Potential application domains: Rail (RAMS Standards), Aerospace,
Nuclear, Oil & Gas, Automation.
![Page 17: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/17.jpg)
17
FUTURE DEVELOPMENTS
Design Verifier: formal system verification. DV needs free system input
for testing all combinations
Industrial software: some system input have mutual links, must follow
with attention!!
Generalize the Front End: to deal with different languages and
dialects
![Page 18: Software modelling and verification for PLC-based ...](https://reader030.fdocuments.in/reader030/viewer/2022012805/61bd398e61276e740b1099d9/html5/thumbnails/18.jpg)
18
SPECIAL THANKS TO:
- Nuovo Pignone and Sirio Sistemi Elettronici
- A. Bacciottini, F. Contini, G. Giusti (bachelor and master theses)
Thank you for the attention
Software modelling and verification for PLC-based automation plants.
Prof. Alessandro Fantechi, Ing. Daniele Menchetti, Ing. Ph.D Maurizio
Tommasini
Dip. di Ingegneria dell'Informazione
Università di Firenze - Italy
email: [email protected]