[EN] Club Automation presentation "Quality Model for Industrial Automation", Nov. 22nd 2011
Model-Based Design in Industrial Automation
Transcript of Model-Based Design in Industrial Automation
![Page 1: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/1.jpg)
Model Based Design in Automation
Ashraf Zarur
Tetra Pak
Public
A.Zarur/2016-04-19
![Page 2: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/2.jpg)
We specialise in providing customers with complete solutions
for the processing, packaging and distribution of food products
Focused on our customers
Public
A.Zarur/2016-04-19 / 2
![Page 3: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/3.jpg)
Present in more than 175 countries and operations in all continents
Carton packaging material, millions of packs
179,888
Distribution machines
1,425
Packaging machines
484Processing units
1,847
Public
A.Zarur/2016-04-19 / 3
![Page 4: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/4.jpg)
Tetra Pak development set up
BackgroundCarton Value & Economy
Carton Bottle & Gable Top
► Company is split in to− Market companies
− Platforms based on package formats
− Central organization which focuses on technologies
► Developments are made in each parts.
► The following presentation is the result of a platform
development.
Tetra Recart
Public
A.Zarur/2016-04-19 / 4
![Page 5: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/5.jpg)
Background
Public
A.Zarur/2016-04-19
![Page 6: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/6.jpg)
Difficulties in the Packaging industry
Background
► Customers buy platforms to build on
► Platform is maintained for decades
► Local modifications are made on site
► Integration in to plant systems
Public
A.Zarur/2016-04-19 / 6
![Page 7: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/7.jpg)
Difficulties in the Packaging industry
Complexity creates the need for high quality software design
► All customer lines are unique
► Machines must support a myriad of packages− different materials
− volumes
− formats
► Machines support different configurations
► Higher line capacities requires smarter solutions for managing the increased
mechanical strain
Background
Public
A.Zarur/2016-04-19 / 7
![Page 8: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/8.jpg)
Traditional workflow
Public
A.Zarur/2016-04-19
![Page 9: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/9.jpg)
Automation area
Control
systems
Computer
science
CAD
Mechanics
Automation
and
Mechatronics
Motion
Statistics and
performance
Electric design
Electronics
Public
A.Zarur/2016-04-19 / 9
![Page 10: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/10.jpg)
Traditional non-model based development
Workflow
Manual
1. Functions are modeled
using UML
2. UML is translated to PLC
logic according to standards
3. Function is tested on
the machine or simulation.
Issues are found and
function is updated
4. Model in UML is updated according
to changes made during tests
Public
A.Zarur/2016-04-19 / 10
![Page 11: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/11.jpg)
Traditional non-model based development
IEC-61131-3 Programming languages
Workflow
Ladder Logic Sequential Function Charts Structured text
Public
A.Zarur/2016-04-19 / 11
![Page 12: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/12.jpg)
Traditional non-Model Based Design issues
► Current UML tool is non-interactive and supports limited code generation
► No testing capabilities
► As production line capacities are increased, complexity increases
► We need more simulation and early prototyping
Faster development
Shorter time to market
Workflow
Public
A.Zarur/2016-04-19 / 12
![Page 13: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/13.jpg)
Model Based Design roll out
A.Zarur/2016-04-19
Public
![Page 14: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/14.jpg)
Established workflow in mechanical design
Mechanical design
► CAD drawings designed in PTC Creo (formerly Pro Engineer)
► Early simulations/Rapid prototyping using CAD tools − Supports finite element analysis for, flow-, stress- and thermaldynamic simulation
using Creo, Abaqus and Ansys
A.Zarur/2016-04-19
Model Based Design roll out
/ 14
Public
![Page 15: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/15.jpg)
Simulation and analysis of concept
► CAD drawings are imported to MATLAB/Simulink− Using SimMechanics Link with PTC Creo
► Advanced simulations, contact modeling
► Algorithm prototyping
► Forces, Accelerations, Inertias and trajectories found
A.Zarur/2016-04-19
Model Based Design roll out
/ 15
Public
New workflow combining Mechanics, Mechanics, Motion and Software
![Page 16: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/16.jpg)
New workflow combining Mechanics, Motion and Software
Motion and actuator design
► Forces, Accelerations, Inertia and trajectories are to dimension
motors; Servo drives, Frequency drives, AC/DC-stepper motors
► Motion is designed to minimize accelerations and input to tuning for
minimizing vibrations
A.Zarur/2016-04-19
Model Based Design roll out
/ 16
Public
![Page 17: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/17.jpg)
Software design workflow
A.Zarur/2016-04-19
Public
Model Based Design roll out
3. Function is tested on the
machine or simulation.
4. Once issues have been found changes
are applied in Simulink/Stateflow
1. Functions are modelled in
Simulink/Stateflow
2. Code is generated to PLC
logic
Simulation
and V&V Automatic
/ 17
![Page 18: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/18.jpg)
Software Verification and Validation possibilities
A.Zarur/2016-04-19
Public
Model Based Design roll out
► Coverage reports− Helps find dead logic and design error and generates reports, no such
capabilities exist today in any target system
► Test cases− Design verifier helps generate test cases that are quite random in nature with
different coverage goals; e.g. Decision coverage, Condition coverage, etc.
− Manual tests cases are separately developed to cover use cases and intended
applications
Code which has not been
executed
/ 18
![Page 19: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/19.jpg)
AA/2015-06-22 / 19
Impressions from initial projects
► Concepts and improvements tested at an early stage
► Dimensioning of actuators has proved promising
► Since code is generated instead of manually translated
► Features of the MATLAB and Simulink greatly simplifies development
A.Zarur/2016-04-19
Public
Model Based Design roll out
![Page 20: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/20.jpg)
Summary - Issues and future needs
► No debugging together with our specific target system.
► Lack of readability of generated code affecting field service
► Simulated torques and dynamics from CAD drawings are not
matching mechanics 100% BUT relative improvements are reliable
► Design Verifier tests are useful but must be manually augmented
► Generated code MUST be tested in the target environment
Model Based Design roll out
Public
A.Zarur/2016-04-19 / 20
![Page 21: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/21.jpg)
Semi - Model Based Design roll out
A.Zarur/2016-04-19
Public
![Page 22: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/22.jpg)
Semi Model Based ApproachOther use cases and additional values
Mathematical libraries and calculations
Common calculations and deployed analysisf(x)
Pure discrete event functions
Libraries managing State machines, sequences and module
coordination
Hardware libraries
Abstraction of hardware components such as
Frequency drives and IOs
Public
A.Zarur/2016-04-19 / 22
![Page 23: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/23.jpg)
A.Zarur/2016-04-19
Public
/ 23Results – Stateflow vs. UML state machine
Semi - Model Based Design roll out
Pure discrete event functions and state machines
![Page 24: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/24.jpg)
Semi Model Based ApproachOther use cases and additional values
Pure discrete event functions
Libraries managing State machines, sequences and module
coordination
Hardware libraries
Abstraction of hardware components such as
Frequency drives and IOs
Public
A.Zarur/2016-04-19 / 24
Mathematical libraries and calculations
Common calculations and deployed analysisf(x)
![Page 25: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/25.jpg)
AA/2015-06-22 / 25A.Zarur/2016-04-19
Public
/ 25
Semi - Model Based Design roll out
Common calculations
For functions that are more mathematical in nature we found that
results are often more readable and easily tested than our original
functions
![Page 26: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/26.jpg)
Semi Model Based ApproachOther use cases and additional values
Pure discrete event functions
Libraries managing State machines, sequences and module
coordination
Hardware libraries
Abstraction of hardware components such as
Frequency drives and IOs
Public
A.Zarur/2016-04-19 / 26
Mathematical libraries and calculations
Common calculations and deployed analysisf(x)
![Page 27: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/27.jpg)
A.Zarur/2016-04-19
Public
/ 27
Semi - Model Based Design roll out
Abstractions of hardware components
Why
► Code reuse is more easily achieved
► Prerequisite for Model Based Design rollout
![Page 28: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/28.jpg)
A.Zarur/2016-04-19
Public
/ 28
Model Based Design roll out
Workflow – Abstractions of hardware components
► Frequency inverter library
![Page 29: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/29.jpg)
Test environments
A.Zarur/2016-04-19
Public
Semi - Model Based Design roll out
► We have found that often test harnesses are more efficient when
making a separate function block simulating the hardware interaction
► This function block is then also generated and used to drive tests in
the target systems for subsystem tests
/ 29
![Page 30: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/30.jpg)
Summary
A.Zarur/2016-04-19
Public
![Page 31: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/31.jpg)
Summary
A.Zarur/2016-04-19
Public
Model based design roll out
► So far only a limited deployment of Model Based Design has been
achieved for smaller functions and pieces of overall software
► To be able to fully roll out Model Based Design as a development
practice debugging capability and visualization of state diagrams is
needed.
/ 31
![Page 32: Model-Based Design in Industrial Automation](https://reader034.fdocuments.in/reader034/viewer/2022042702/6265f6d569907c68fe71455a/html5/thumbnails/32.jpg)
Summary
A.Zarur/2016-04-19
Public
Model based design roll out
The major advantages include
► Easier testing and verification with coverage reports
► Advantages in algorithm development
► Easily integrated workflow in V-model
► Step change in early prototyping using Virtual Engineering
/ 32