software modelling and verification for plc-based

18
1 © 2015 The MathWorks, Inc. Software modelling and verification for PLC-based automation plants Alessandro Fantechi, Daniele Menchetti, Maurizio Tommasini Dip. di Ingegneria dell'Informazione Università di Firenze - Italy

Upload: others

Post on 18-Dec-2021

22 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Software modelling and verification for PLC-based

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

2

THE REAL WORLD

Page 3: Software modelling and verification for PLC-based

3

SAFETY LEVEL

People injury

Unavailability of services

Economic losses

Page 4: Software modelling and verification for PLC-based

4

PLC: A MULTILANGUAGE LITTLE BIG BRAIN

Ladder Diagram Structured Text

Page 5: Software modelling and verification for PLC-based

5

HOW TO TEST IT?

1. Code porting

2. Model to test

3. Feedback

Page 6: Software modelling and verification for PLC-based

6

FIRST APPROACH:

using SIMULINK to model the Ladder Diagrams behaviour

SA-System Tool

Page 7: Software modelling and verification for PLC-based

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

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

9

CONVERSION TO STATEFLOW LOGICAL MODEL

SA-System Tool

Page 10: Software modelling and verification for PLC-based

10

INSIDE A SINGLE STATE BLOCK....

SA-System Tool

Page 11: Software modelling and verification for PLC-based

11

TESTING:

What will happen???

Semantic and syntactical

Functionality

Formal verification

Page 12: Software modelling and verification for PLC-based

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

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

14

…. TO TEST REPORT!

Visual checkingVisual matching

Page 15: Software modelling and verification for PLC-based

15

FORMAL VERIFICATION

Requirements

High coverageObserver

blocks

Page 16: Software modelling and verification for PLC-based

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

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

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]