18
1 © 2012 The MathWorks, Inc. Model-Based Design for Automation Systems November 2012 Design and test your designs using simulation and automatically implement it on Allen-Bradley PLCs

Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

Embed Size (px)

Citation preview

Page 1: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

1© 2012 The MathWorks, Inc.

Model-Based Design for Automation Systems

November 2012

Design and test your designs using simulation and automatically implement it on Allen-Bradley PLCs

Page 2: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

2

Mechatronic Systems

Robotic arms

Web applications– Printing presses– Steel rolling mills

Machines– Packaging machines

Page 3: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

3

Mechatronics integrates mechanical, electronic, control, and embedded software systems

Mechatronics

Mechanics Electronics

SoftwareControls

“Mechatronics is really all about design of any physical system, where you integrate controls, electronics, and computers from the very start of the design process.”

Prof. Kevin CraigMechanical Engineering, Marquette University

Page 4: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

4

Challenges of Designing Mechatronics

Source: System Design: New Product Development for Mechatronics, January 2008, Aberdeen Group

Problems uncovered

late

Multi-discipline

complexity

Page 5: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

5

As errors propagate through a project they become more expensive to fix in later phases

Requirements Design Coding Integration & Testing

Relative cost to fix an error

Project phase where error is fixed

Type of error: - requirements- design- coding

Source: Return on Investment for Independent Verification & Validation, NASA, 2004

Page 6: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

6

Engineers struggle to integrate multiple disciplines into mechatronic systems

Development challenges Optimizing the system across multiple

technical disciplines Detecting integration problems before

prototyping electromechanical systems

Integrating more software to provide improved features and performance

Mechatronics

Mechanics Electronics

SoftwareControls

Page 7: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

7

manroland Develops High-Precision Commercial Printing Press Controller

http://www.mathworks.com/company/user_stories/manroland-Develops-High-Precision-Commercial-Printing-Press-Controller.html

Video:

Page 8: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

8

Model-Based DesignDesign and test using simulation

DESIGN

RESEARCH REQUIREMENTS Modeled Physical Behavior of paper web

Environmental Models

Control Algorithms

Mechanical Electrical

Supervisory Logic

Designed controller and implemented it

Page 9: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

9

REAL-TIME TESTING

DESIGN

Control Algorithms

Supervisory Logic

Environmental Models

Mechanical Electrical

RESEARCH REQUIREMENTS

MCU DSP FPGA ASIC

Structured Text

VHDL, VerilogC, C++

PLC

Control Algorithms

Supervisory Logic

Model-Based DesignTest and validate in real-time

Modeled Physical Behavior of paper web

Designed controller and implemented it

Tested the controller in real-time on the press

Page 10: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

10INTEGRATION

IMPLEMENTATION

TEST & VER

IFICATIO

N

DESIGN

Control Algorithms

Supervisory Logic

Environmental Models

Mechanical Electrical

RESEARCH REQUIREMENTS

MCU DSP FPGA ASIC

Structured Text

VHDL, VerilogC, C++

PLC

Control Algorithms

Supervisory Logic

Model-Based DesignImplement embedded software

Modeled Physical Behavior of paper web

Designed controller and implemented it

Tested the controller in real-time on the press

Page 11: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

11

Manroland

Overcame 3 challenges:– Modeled Physical Behavior of paper web– Designed controller and implemented it– Tested the controller in real-time on the press

Results:– Shortened development time by 50 percent– Ensured software for customers are error free– Saved time and money

Page 12: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

12

Problem to Solve

Logic for luggage conveyor belt at an airport

Page 13: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

13

Problem to Solve

Simplistic representation

Page 14: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

14

Today’s Workflow

RSLogixLD, FB, SFC, STManual Programming

Control Algorithms

Code compiled to

PLC

Validation is done using hardware

Page 15: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

15

Model-Based Design WorkflowDesign and test using simulation

Simulink & Stateflow

LD, FB, SFC, STManual Programming

Code compiled to

PLC

RSLogix

Control Algorithms

Page 16: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

16

Model-Based Design WorkflowTest and validate in real-time

Simulink & Stateflow

LD, FB, SFC, ST

Control Algorithms

Manual Programming

Code compiled to

PLC

Structured Text

Simulink PLC Coder

RSLogix

Page 17: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

17

Model-Based Design WorkflowTest and validate in real-time

Simulink & Stateflow

LD, FB, SFC, ST

Control Algorithms

Manual Programming

Code compiled to

PLC

Structured Text

ANSIC-Code

Simulink Coder

Hardware-in-the-Loop

Simulink PLC Coder

RSLogix

Real-TimeSystem

Machine Model

Validation is done using real-time

simulation

Page 18: Model-Based Design for Automation Systems · Model-Based Design for Automation Systems ... RESEARCH REQUIREMENTS Modeled Physical Behavior of ... Simulink PLC Coder RSLogix Real-Time

18

Model-Based Design WorkflowImplement embedded software

Simulink & Stateflow

LD, FB, SFC, ST

Control Algorithms

Manual Programming

Code compiled to

PLC

Structured Text

Simulink PLC Coder

RSLogix

Machine Model

Final validation is done using hardware