SlideShare a Scribd company logo
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

More Related Content

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

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...
Scilab
 
Self Balancing Robot
Self Balancing RobotSelf Balancing Robot
Self Balancing Robot
Dhaval Solanki
 
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...
HEINZ OYRER
 
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
fernando nuño
 
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
SimulationX
 
IRJET- Surveillance System using Quadcopter
IRJET- Surveillance System using QuadcopterIRJET- Surveillance System using Quadcopter
IRJET- Surveillance System using Quadcopter
IRJET Journal
 
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...
IJERA Editor
 
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
IRJET Journal
 
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
ABHISHEKPUND
 
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...
HEINZ OYRER
 
11001422032_Snehasis Ghosh_TT.pptx
11001422032_Snehasis Ghosh_TT.pptx11001422032_Snehasis Ghosh_TT.pptx
11001422032_Snehasis Ghosh_TT.pptx
GhoshVolu
 
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 Journal
 
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...
IRJET Journal
 
Electric motor optimization
Electric motor optimizationElectric motor optimization
Electric motor optimization
Scilab
 
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"
Alexander Much
 
WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT
KrishGupta94
 
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
IRJET Journal
 
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 TikhomolovVitali Tikhomolov
 
Future Onshore Wind Energy Technology
Future Onshore Wind Energy TechnologyFuture Onshore Wind Energy Technology
Future Onshore Wind Energy Technology
Philip Totaro
 

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

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
 
Future Onshore Wind Energy Technology
Future Onshore Wind Energy TechnologyFuture Onshore Wind Energy Technology
Future Onshore Wind Energy Technology
 

More from Scilab

Statistical Analysis for Robust Design
Statistical Analysis for Robust DesignStatistical Analysis for Robust Design
Statistical Analysis for Robust Design
Scilab
 
Asteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 KeynoteAsteroidlanding - Scilab conference 2019 Keynote
Asteroidlanding - Scilab conference 2019 Keynote
Scilab
 
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
 
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
Scilab
 
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
 
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
 
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
 
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
Scilab
 
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
 
Scilab optimization workshop
Scilab optimization workshop Scilab optimization workshop
Scilab optimization workshop
Scilab
 
INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018INRA @ Scilab Conference 2018
INRA @ Scilab Conference 2018
Scilab
 
Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018Qualcomm @ Scilab Conference 2018
Qualcomm @ Scilab Conference 2018
Scilab
 
Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018Sanofi @ Scilab Conference 2018
Sanofi @ Scilab Conference 2018
Scilab
 
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
Scilab
 
DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018DLR @ Scilab Conference 2018
DLR @ Scilab Conference 2018
Scilab
 
Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018Fraunhofer IIS @ Scilab Conference 2018
Fraunhofer IIS @ Scilab Conference 2018
Scilab
 
Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018Arcelormittal @ Scilab Conference 2018
Arcelormittal @ Scilab Conference 2018
Scilab
 
CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018CNES @ Scilab Conference 2018
CNES @ Scilab Conference 2018
Scilab
 
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
Scilab
 
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
Scilab
 

More from 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
 

Recently uploaded

Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 

Recently uploaded (20)

Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 

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