SlideShare una empresa de Scribd logo
1 de 24
1www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.Copyright © ESI Group, 2019. All rights reserved.
www.esi-group.com
Model-based control development and automated code generation
Peter Dirnberger, Linz Center of Mechatronics GmbH
Scilab Conference 2019
2www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Content of the presentation
• Short introduction
• What is X2C
• Structure
• X2C Libraries
• X2C Communicator
• Building process
• Online Debugging and Tuning (X2C Scope)
• Example: Control of a bearingless motor with X2C
• What is a bearingless motor
• Position control
• Speed control
• Km transformation matrix
• Power fail
• Benefits of X2C
3www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Introduction
• Linz Center of Mechatronics GmbH (LCM)
• R & D service provider
• Transfers research results into industrial application
• Founded 2001
• 110 Employees
• 3 Business Areas
• Drives
• Electrical Drives
• Hydraulic Drives
• Mechanics & Control
• Sensors & Communication
• Peter Dirnberger
• I live in Linz, Austria
• I have studied Mechatronics at the Johannes Kepler University
• Since 2005 I have been working at LCM – Electrical Drives
Vienna
Linz
Salzburg
Munich
AUSTRIA
Praha
www.lcm.at
4www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Structure of a X2C control model
X2C-Hardware-Outports (OUT)X2C-Hardware-Inports (IN)
X2C-Blocks
X2C-Function-Blocks
Target
(ANSI C)
Model
Boot loader (optional)
PC
(Xcos)
X2C Communicator
Model
Frame program
Application
IN OUT
5www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Ready-made and tested blocks
X2C Libraries
General
Control
Math
MotorControl
BearinglessMotorControl
MotorSensorless
StateControl
X2C libraries of the free version Additional X2C libraries
6www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
X2C Block
Select block implementation:
• Boolean
• 8 bit fixed point
• 16 bit fixed point
• 32 bit fixed point
• 32 bit floating point
• 64 bit floating point
Input/change of a control parameter by
• typing a value
• pressing the arrow buttons
• turning the mouse wheel
Parameters can also be
defined by variables.
7www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
X2C Communicator
Setup communication via
• Serial
• CAN
• Ethernet
8www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Building Process
download to target
(X2C boot loader required)
create code (X2C.c/X2C.h)
compilation (with target IDE)
9www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Online parameter tuning
Tuning of a control parameter by
• typing a value
• pressing the arrow buttons
• turning the mouse wheel
• by a double click on the block in the Xcos model • by X2C Communicator GUI
In both cases the parameters can be determined online when the Communicator is connected to the target.
10www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Debugging – X2C Scope – a virtual oscilloscope
trigger modes
sampling time
The monitoring of
• block inputs
• block outputs
• global variables
• memory addresses
is possible
Gain and offset values
simplify interpretation, the
signal can be converted into
physical quantities
11www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Content of the presentation
• Short introduction
• What is X2C
• Structure
• X2C Libraries
• X2C Communicator
• Building process
• Online Debugging and Tuning (X2C Scope)
• Example: Control of a bearingless motor with X2C
• What is a bearingless motor
• Position control
• Speed control
• Km transformation matrix
• Power fail
• Benefits of X2C
12www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Bearingless motor
Drive
Radial bearing Axial bearing
Power
Electronics
Axial bearing
Radial bearing
Bearingless Motor
Power
Electronics
Backup bearing
• Magnetically supported drive
• Drive and suspension are decoupled
• Separate design/optimization of drive
and bearings is possible
• Mechanical and electrical hardware
demands are quite high
• “Bearingless” motor
• Compact system (mechanically and
electrically)
• Drive and suspension system are
coupled
• More complex control structure is
needed
Silber S.: „Beiträge zum lagerlosen Einphasenmotor“, Dissertation, Johannes Kepler University Linz, 2000
13www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Bearingless slice motor
Slice rotor = diameter of the rotor is large in comparison to its length
Advantage:
three of the six degrees of freedom can be stabilized passively by reluctance forces
• axial position
• two tilting directions
Only the radial position of the rotor must be controlled actively to levitate the rotor
Barletta N., Schöb R.: “Design of a bearingless blood pump”, Proc. 3rd Int. Symp. Magnetic Suspension Technology (ISMST), pp 265-274, 1995
14www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Bearingless slice motor
• Axial position - stabilized passively
Gruber W., Amrhein W., Haslmayr M.: “Bearingless segment motor with five stator elements - design and optimization”, IEEE Trans. Industry Applications, vol. 45, 2009
Gruber W., Amrhein W., Stallinger T.: "Bearingless segment motor with buried magnets", JSME Journal of System Design and Dynamics, vol. 3, no. 5, pp. 704-716, 2009
• Radial position – must be controlled actively
• Determine radial positon via position sensors
• With the five stator coils, forces are applied to center the rotor in the middle
• Torque – in addition a conventional rotating field is generated with the five stator coils
(like a standard PMSM)
• Two tilting directions - stabilized passively
x
y
15www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Bearingless slice motor
Gruber W., Silber S.: “20 Years Bearingless Slice Motor - its Developments and Applications”, ISMB15, 2016
Most common
design variants
16www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
X2C control scheme for bearingless motor control in Xcos
Position controlx
y
17www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
X2C control scheme for bearingless motor control in Xcos
Speed control
Rotor angle and speed determination
18www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
X2C control scheme for bearingless motor control in Xcos
Km transformation matrix
0 180 360
-20
0
20
0 180 360
-20
0
20
0 180 360
-500
0
500
0 180 360
-20
0
20
0 180 360
-20
0
20
0 180 360
-500
0
500
0 180 360
-20
0
20
0 180 360
-20
0
20
0 180 360
-500
0
500
0 180 360
-20
0
20
0 180 360
-20
0
20
0 180 360
-500
0
500
0 180 360
-20
0
20
0 180 360
-20
0
20
0 180 360
-500
0
500
φ[°]
Fx [A /N]turns Fy [A /N]turns T turns[A /Nm]
i1i5i4i3i2
Calculate target values for the five coils currents from the demanded force and torque values
Silber S., Amrhein W.: "Power optimal current control scheme for bearingless PM motors", Proc. 7th International Symp. on Magnetic Bearings (ISMB), pp. 401-406, 2000
• The Km matrix results from inverting the
Tm matrix.
• To determine the Tm matrix, the rotor is
centered and each phase is energized
one after the other. The phase-related
resulting forces acting on the rotor in x-
and y-direction as well as the torque are
determined as a function of the rotor
angular position and arranged in matrix
form as Tm.
x
y
19www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
X2C control scheme for bearingless motor control in Xcos
Current control
20www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
X2C control scheme for bearingless motor control in Xcos
Power failure - what now?
In order to keep the levitation of the rotor stable, energy is required.
 Use of the energy stored in the rotation of the rotor
21www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Content of the presentation
• Short introduction
• What is X2C
• Structure
• X2C Libraries
• X2C Communicator
• Building process
• Online Debugging and Tuning (X2C Scope)
• Example: Control of a bearingless motor with X2C
• What is a bearingless motor
• Position control
• Speed control
• Km transformation matrix
• Power fail
• Benefits of X2C
22www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
time
Benefits of using X2C
Conclusion
unit test
design
coding
X2C
Model
Block
time
specification acceptance test
integration test
23www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Benefits of using X2C
Conclusion
• Graphical design of the control scheme with pre-designed and pre-tested blocks
• X2C Scope - a virtual oscilloscope
intuitive tool for online data visualization and debugging
• Instant online parameter update from Xcos to target
• Simulation with “target code” in Xcos
• Automated documentation generation for projects
• Comprehensive libraries with pre-tested blocks
• Independent of target
• Multiple fixed and floating point implementations
• Inbuilt parameter conversion (e.g. continuous time to discrete time)
• Generated code is easily readable
24www.esi-group.com
Copyright © ESI Group, 2019. All rights reserved.
Thank you
This work has been supported by the COMET-K2 Center of the Linz Center of Mechatronics (LCM) funded
by the Austrian federal government and the federal state of Upper Austria
https://x2c.lcm.at/
x2c@lcm.at

Más contenido relacionado

La actualidad más candente

Adaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR ArchitectureAdaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR Architecture
AdaCore
 

La actualidad más candente (20)

Percepio Tracealyzer for FreeRTOS on MiniZED
Percepio Tracealyzer for FreeRTOS on MiniZEDPercepio Tracealyzer for FreeRTOS on MiniZED
Percepio Tracealyzer for FreeRTOS on MiniZED
 
Autosar MCAL (Microcontroller Abstraction Layer)
Autosar MCAL (Microcontroller Abstraction Layer)Autosar MCAL (Microcontroller Abstraction Layer)
Autosar MCAL (Microcontroller Abstraction Layer)
 
AUTOSAR 403 CAN Stack
AUTOSAR 403 CAN StackAUTOSAR 403 CAN Stack
AUTOSAR 403 CAN Stack
 
Under the Hood: Model-Based Development in the Automotive Industry by Darren ...
Under the Hood: Model-Based Development in the Automotive Industry by Darren ...Under the Hood: Model-Based Development in the Automotive Industry by Darren ...
Under the Hood: Model-Based Development in the Automotive Industry by Darren ...
 
Anti lock braking system
Anti lock braking systemAnti lock braking system
Anti lock braking system
 
KWP 2000 and UDS Protocols | Analysis & Comparison
KWP 2000 and UDS Protocols | Analysis & ComparisonKWP 2000 and UDS Protocols | Analysis & Comparison
KWP 2000 and UDS Protocols | Analysis & Comparison
 
Hyundai Elantra 2015.pdf
Hyundai Elantra 2015.pdfHyundai Elantra 2015.pdf
Hyundai Elantra 2015.pdf
 
Mercedes benz sensotronic
Mercedes benz sensotronicMercedes benz sensotronic
Mercedes benz sensotronic
 
UDS PPT
UDS PPTUDS PPT
UDS PPT
 
eCall
eCalleCall
eCall
 
Documento sobre inyeccion Electronica
Documento sobre inyeccion ElectronicaDocumento sobre inyeccion Electronica
Documento sobre inyeccion Electronica
 
What is AUTOSAR Communication Stack (ComStack)?Get introduced to CAN ComStack
What is AUTOSAR Communication Stack (ComStack)?Get introduced to CAN ComStackWhat is AUTOSAR Communication Stack (ComStack)?Get introduced to CAN ComStack
What is AUTOSAR Communication Stack (ComStack)?Get introduced to CAN ComStack
 
Autosar-software-component_0hg.pptx
Autosar-software-component_0hg.pptxAutosar-software-component_0hg.pptx
Autosar-software-component_0hg.pptx
 
Autosar fundamental
Autosar fundamentalAutosar fundamental
Autosar fundamental
 
Audi a3 sportback, listino prezzi e dettagli
Audi a3 sportback, listino prezzi e dettagliAudi a3 sportback, listino prezzi e dettagli
Audi a3 sportback, listino prezzi e dettagli
 
Carprog bmw airbag reset manual
Carprog bmw airbag reset manualCarprog bmw airbag reset manual
Carprog bmw airbag reset manual
 
Auto pilot technology in vehicles
Auto pilot technology in vehicles Auto pilot technology in vehicles
Auto pilot technology in vehicles
 
anti-lock braking system
anti-lock braking systemanti-lock braking system
anti-lock braking system
 
Adaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR ArchitectureAdaptive AUTOSAR - The New AUTOSAR Architecture
Adaptive AUTOSAR - The New AUTOSAR Architecture
 
ECU Verification & Validation
ECU Verification & ValidationECU Verification & Validation
ECU Verification & Validation
 

Similar a X2C -a tool for model-based control development and automated code generationfor microprocessors

INNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSION
INNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSIONINNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSION
INNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSION
iQHub
 
Medical Device Grade Wireless Charger Poster - Vitali Tikhomolov
Medical Device Grade Wireless Charger Poster - Vitali TikhomolovMedical Device Grade Wireless Charger Poster - Vitali Tikhomolov
Medical Device Grade Wireless Charger Poster - Vitali Tikhomolov
Vitali Tikhomolov
 

Similar a X2C -a tool for model-based control development and automated code generationfor microprocessors (20)

INNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSION
INNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSIONINNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSION
INNOVATIVE SOLUTIONS FOR HIGH-POWER-DENSITY E-MOTORS FOR AEROSPACE PROPULSION
 
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
A Real-Time Interface for Xcos – an illustrative demonstration using a batter...
 
Self Balancing Robot
Self Balancing RobotSelf Balancing Robot
Self Balancing Robot
 
Addressing the challenges of position sensor solutions in safety critical aut...
Addressing the challenges of position sensor solutions in safety critical aut...Addressing the challenges of position sensor solutions in safety critical aut...
Addressing the challenges of position sensor solutions in safety critical aut...
 
Induction Motors Matching Permanent Magnet Performances at Lower Costs
Induction Motors Matching Permanent Magnet Performances at Lower CostsInduction Motors Matching Permanent Magnet Performances at Lower Costs
Induction Motors Matching Permanent Magnet Performances at Lower Costs
 
System Simulation in the Development of Rolling Stock
System Simulation in the Development of Rolling StockSystem Simulation in the Development of Rolling Stock
System Simulation in the Development of Rolling Stock
 
IRJET- Surveillance System using Quadcopter
IRJET- Surveillance System using QuadcopterIRJET- Surveillance System using Quadcopter
IRJET- Surveillance System using Quadcopter
 
Speed Synchronization of Multiple Bldcmotors In Textile &Paper Mills Using Mi...
Speed Synchronization of Multiple Bldcmotors In Textile &Paper Mills Using Mi...Speed Synchronization of Multiple Bldcmotors In Textile &Paper Mills Using Mi...
Speed Synchronization of Multiple Bldcmotors In Textile &Paper Mills Using Mi...
 
Embedded Systems in Automotive
Embedded Systems in Automotive Embedded Systems in Automotive
Embedded Systems in Automotive
 
IRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo MotorsIRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Design and Fabrication of Steering System using Servo Motors
 
Drive by-wire systems in Automobiles ppt
Drive by-wire systems in Automobiles pptDrive by-wire systems in Automobiles ppt
Drive by-wire systems in Automobiles ppt
 
Efficient Motor Commutation through Advanced Position Sensing - The Trend tow...
Efficient Motor Commutation through Advanced Position Sensing - The Trend tow...Efficient Motor Commutation through Advanced Position Sensing - The Trend tow...
Efficient Motor Commutation through Advanced Position Sensing - The Trend tow...
 
11001422032_Snehasis Ghosh_TT.pptx
11001422032_Snehasis Ghosh_TT.pptx11001422032_Snehasis Ghosh_TT.pptx
11001422032_Snehasis Ghosh_TT.pptx
 
IRJET-3 Fabrication of Pedal Assist Bicycle
IRJET-3 	  Fabrication of Pedal Assist BicycleIRJET-3 	  Fabrication of Pedal Assist Bicycle
IRJET-3 Fabrication of Pedal Assist Bicycle
 
IRJET- IoT based Energy Efficient Ceiling Fan with BLDC Motor for Home Automa...
IRJET- IoT based Energy Efficient Ceiling Fan with BLDC Motor for Home Automa...IRJET- IoT based Energy Efficient Ceiling Fan with BLDC Motor for Home Automa...
IRJET- IoT based Energy Efficient Ceiling Fan with BLDC Motor for Home Automa...
 
Electric motor optimization
Electric motor optimizationElectric motor optimization
Electric motor optimization
 
20160706 Automotive SYS: "Evolving Needs for Software Systems - Demonstrated"
20160706 Automotive SYS: "Evolving Needs for Software Systems - Demonstrated"20160706 Automotive SYS: "Evolving Needs for Software Systems - Demonstrated"
20160706 Automotive SYS: "Evolving Needs for Software Systems - Demonstrated"
 
WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT
 
IRJET- Energy Generation from Flywheel using Magnet
IRJET- 	  Energy Generation from Flywheel using MagnetIRJET- 	  Energy Generation from Flywheel using Magnet
IRJET- Energy Generation from Flywheel using Magnet
 
Medical Device Grade Wireless Charger Poster - Vitali Tikhomolov
Medical Device Grade Wireless Charger Poster - Vitali TikhomolovMedical Device Grade Wireless Charger Poster - Vitali Tikhomolov
Medical Device Grade Wireless Charger Poster - Vitali Tikhomolov
 

Más de Scilab

Más de Scilab (20)

Statistical Analysis for Robust Design
Statistical Analysis for Robust DesignStatistical Analysis for Robust Design
Statistical Analysis for Robust Design
 
Asteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteAsteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 Keynote
 
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
Faster Time to Market using Scilab/XCOS/X2C for motor control algorithm devel...
 
Scilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modellingScilab and Xcos for Very Low Earth Orbits satellites modelling
Scilab and Xcos for Very Low Earth Orbits satellites modelling
 
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCosAircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
Aircraft Simulation Model and Flight Control Laws Design Using Scilab and XCos
 
Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3Scilab for real dummies j.heikell - part3
Scilab for real dummies j.heikell - part3
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2
 
Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1Scilab for real dummies j.heikell - part 1
Scilab for real dummies j.heikell - part 1
 
Multiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in ScilabMultiobjective optimization and Genetic algorithms in Scilab
Multiobjective optimization and Genetic algorithms in Scilab
 
Scilab optimization workshop
Scilab optimization workshop Scilab optimization workshop
Scilab optimization workshop
 
INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018
 
Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018
 
Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018
 
University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018University of Applied Science Esslingen @ Scilab Conference 2018
University of Applied Science Esslingen @ Scilab Conference 2018
 
DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018
 
Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018
 
Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018
 
CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018
 
Scilab Conference 2018 - Welcome to the Community
Scilab Conference 2018 - Welcome to the CommunityScilab Conference 2018 - Welcome to the Community
Scilab Conference 2018 - Welcome to the Community
 
Customizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and PaletteCustomizing Xcos with new Blocks and Palette
Customizing Xcos with new Blocks and Palette
 

Último

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Último (20)

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 

X2C -a tool for model-based control development and automated code generationfor microprocessors

  • 1. 1www.esi-group.com Copyright © ESI Group, 2019. All rights reserved.Copyright © ESI Group, 2019. All rights reserved. www.esi-group.com Model-based control development and automated code generation Peter Dirnberger, Linz Center of Mechatronics GmbH Scilab Conference 2019
  • 2. 2www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Content of the presentation • Short introduction • What is X2C • Structure • X2C Libraries • X2C Communicator • Building process • Online Debugging and Tuning (X2C Scope) • Example: Control of a bearingless motor with X2C • What is a bearingless motor • Position control • Speed control • Km transformation matrix • Power fail • Benefits of X2C
  • 3. 3www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Introduction • Linz Center of Mechatronics GmbH (LCM) • R & D service provider • Transfers research results into industrial application • Founded 2001 • 110 Employees • 3 Business Areas • Drives • Electrical Drives • Hydraulic Drives • Mechanics & Control • Sensors & Communication • Peter Dirnberger • I live in Linz, Austria • I have studied Mechatronics at the Johannes Kepler University • Since 2005 I have been working at LCM – Electrical Drives Vienna Linz Salzburg Munich AUSTRIA Praha www.lcm.at
  • 4. 4www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Structure of a X2C control model X2C-Hardware-Outports (OUT)X2C-Hardware-Inports (IN) X2C-Blocks X2C-Function-Blocks Target (ANSI C) Model Boot loader (optional) PC (Xcos) X2C Communicator Model Frame program Application IN OUT
  • 5. 5www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Ready-made and tested blocks X2C Libraries General Control Math MotorControl BearinglessMotorControl MotorSensorless StateControl X2C libraries of the free version Additional X2C libraries
  • 6. 6www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. X2C Block Select block implementation: • Boolean • 8 bit fixed point • 16 bit fixed point • 32 bit fixed point • 32 bit floating point • 64 bit floating point Input/change of a control parameter by • typing a value • pressing the arrow buttons • turning the mouse wheel Parameters can also be defined by variables.
  • 7. 7www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. X2C Communicator Setup communication via • Serial • CAN • Ethernet
  • 8. 8www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Building Process download to target (X2C boot loader required) create code (X2C.c/X2C.h) compilation (with target IDE)
  • 9. 9www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Online parameter tuning Tuning of a control parameter by • typing a value • pressing the arrow buttons • turning the mouse wheel • by a double click on the block in the Xcos model • by X2C Communicator GUI In both cases the parameters can be determined online when the Communicator is connected to the target.
  • 10. 10www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Debugging – X2C Scope – a virtual oscilloscope trigger modes sampling time The monitoring of • block inputs • block outputs • global variables • memory addresses is possible Gain and offset values simplify interpretation, the signal can be converted into physical quantities
  • 11. 11www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Content of the presentation • Short introduction • What is X2C • Structure • X2C Libraries • X2C Communicator • Building process • Online Debugging and Tuning (X2C Scope) • Example: Control of a bearingless motor with X2C • What is a bearingless motor • Position control • Speed control • Km transformation matrix • Power fail • Benefits of X2C
  • 12. 12www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Bearingless motor Drive Radial bearing Axial bearing Power Electronics Axial bearing Radial bearing Bearingless Motor Power Electronics Backup bearing • Magnetically supported drive • Drive and suspension are decoupled • Separate design/optimization of drive and bearings is possible • Mechanical and electrical hardware demands are quite high • “Bearingless” motor • Compact system (mechanically and electrically) • Drive and suspension system are coupled • More complex control structure is needed Silber S.: „Beiträge zum lagerlosen Einphasenmotor“, Dissertation, Johannes Kepler University Linz, 2000
  • 13. 13www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Bearingless slice motor Slice rotor = diameter of the rotor is large in comparison to its length Advantage: three of the six degrees of freedom can be stabilized passively by reluctance forces • axial position • two tilting directions Only the radial position of the rotor must be controlled actively to levitate the rotor Barletta N., Schöb R.: “Design of a bearingless blood pump”, Proc. 3rd Int. Symp. Magnetic Suspension Technology (ISMST), pp 265-274, 1995
  • 14. 14www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Bearingless slice motor • Axial position - stabilized passively Gruber W., Amrhein W., Haslmayr M.: “Bearingless segment motor with five stator elements - design and optimization”, IEEE Trans. Industry Applications, vol. 45, 2009 Gruber W., Amrhein W., Stallinger T.: "Bearingless segment motor with buried magnets", JSME Journal of System Design and Dynamics, vol. 3, no. 5, pp. 704-716, 2009 • Radial position – must be controlled actively • Determine radial positon via position sensors • With the five stator coils, forces are applied to center the rotor in the middle • Torque – in addition a conventional rotating field is generated with the five stator coils (like a standard PMSM) • Two tilting directions - stabilized passively x y
  • 15. 15www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Bearingless slice motor Gruber W., Silber S.: “20 Years Bearingless Slice Motor - its Developments and Applications”, ISMB15, 2016 Most common design variants
  • 16. 16www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. X2C control scheme for bearingless motor control in Xcos Position controlx y
  • 17. 17www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. X2C control scheme for bearingless motor control in Xcos Speed control Rotor angle and speed determination
  • 18. 18www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. X2C control scheme for bearingless motor control in Xcos Km transformation matrix 0 180 360 -20 0 20 0 180 360 -20 0 20 0 180 360 -500 0 500 0 180 360 -20 0 20 0 180 360 -20 0 20 0 180 360 -500 0 500 0 180 360 -20 0 20 0 180 360 -20 0 20 0 180 360 -500 0 500 0 180 360 -20 0 20 0 180 360 -20 0 20 0 180 360 -500 0 500 0 180 360 -20 0 20 0 180 360 -20 0 20 0 180 360 -500 0 500 φ[°] Fx [A /N]turns Fy [A /N]turns T turns[A /Nm] i1i5i4i3i2 Calculate target values for the five coils currents from the demanded force and torque values Silber S., Amrhein W.: "Power optimal current control scheme for bearingless PM motors", Proc. 7th International Symp. on Magnetic Bearings (ISMB), pp. 401-406, 2000 • The Km matrix results from inverting the Tm matrix. • To determine the Tm matrix, the rotor is centered and each phase is energized one after the other. The phase-related resulting forces acting on the rotor in x- and y-direction as well as the torque are determined as a function of the rotor angular position and arranged in matrix form as Tm. x y
  • 19. 19www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. X2C control scheme for bearingless motor control in Xcos Current control
  • 20. 20www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. X2C control scheme for bearingless motor control in Xcos Power failure - what now? In order to keep the levitation of the rotor stable, energy is required.  Use of the energy stored in the rotation of the rotor
  • 21. 21www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Content of the presentation • Short introduction • What is X2C • Structure • X2C Libraries • X2C Communicator • Building process • Online Debugging and Tuning (X2C Scope) • Example: Control of a bearingless motor with X2C • What is a bearingless motor • Position control • Speed control • Km transformation matrix • Power fail • Benefits of X2C
  • 22. 22www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. time Benefits of using X2C Conclusion unit test design coding X2C Model Block time specification acceptance test integration test
  • 23. 23www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Benefits of using X2C Conclusion • Graphical design of the control scheme with pre-designed and pre-tested blocks • X2C Scope - a virtual oscilloscope intuitive tool for online data visualization and debugging • Instant online parameter update from Xcos to target • Simulation with “target code” in Xcos • Automated documentation generation for projects • Comprehensive libraries with pre-tested blocks • Independent of target • Multiple fixed and floating point implementations • Inbuilt parameter conversion (e.g. continuous time to discrete time) • Generated code is easily readable
  • 24. 24www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Thank you This work has been supported by the COMET-K2 Center of the Linz Center of Mechatronics (LCM) funded by the Austrian federal government and the federal state of Upper Austria https://x2c.lcm.at/ x2c@lcm.at