May 2011
Aalto University
«
«
H
H
ARDWARE
ARDWARE
-
-
I
I
N
N
-
-
THE
THE
-
-
L
L
OOP
OOP
(
(
HIL
HIL
)
)
S
S
IMULATION AND
IMULATION AND
EMR
EMR
»
»
Prof. A. Bouscayrol
(University Lille1, L2EP, MEGEVH, France)
based on the tutorial
“HIL simulation”, EVS’2009, Stavanger (Norway)
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 2 Outline
-1.
1.
W
W
HAT IS HAT ISHIL
HIL
S
S
IMULATIONIMULATION?
?
2
2
. .S
S
IGNALS AND IGNALS ANDP
P
OWER OWERHIL
HIL
S
S
IMULATION IMULATION3
3
. .F
F
ULL AND ULL ANDR
R
EDUCEDEDUCED--SCALE SCALEHIL
HIL
S
S
IMULATION IMULATION4
4
. .E
E
XAMPLES OF XAMPLES OFHIL
HIL
S
S
IMULATIONIMULATION1 example using EMR
Aalto University, May 2011 3 Classical approach of development of new product
-Example of an EV
simulation
Prototype I, II, III….
http://www.renault.com
real vehicle
Long development time Important cost Material waste Intermediary step ? HIL simulation ? (towards a unique Prototype)
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 4
process control (blue)
Physical power system (orange)
Graphical and colour Code
-power variables mathematical model (purple) signal variables SIMULATION SOFTWARE REAL-TIME CONTROLLER SUBSYSTEM UNDER TEST
May 2011
Aalto University
1.
1.
W
W
HAT IS
HAT IS
H
H
ARDWARE
ARDWARE
-
-
I
I
N
N
-
-
THE
THE
-
-
L
L
OOP
OOP
S
S
IMULATION
IMULATION
?
?
• Software simulation
• HIL simulation
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 6
POWER SYSTEM CONTROLLER BOARD (ECU) measurements process control control signals power electronics electric machine mechanical power train System & Control
-How to develop the control? Software simulation Example of an electric drive for traction
Aalto University, May 2011 7 SIMULATION ENVIRONMENT power electronics measurements electric machine mechanical power train process control control signals
Limitations of Software simulation
-How to check the control
before real-time implementation? HIL simulation? model accuracy simulation solver
sensor effects (quantification, EMI..) ECU effects (discrete-time...)
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 8
SUBSYSTEM UNDER TEST CONTROLLER BOARD (ECU) power electronics electric machine mechanical power train process control control signals
Hardware-In-the-Loop (HIL) simulation:
one simulation part is replaced by an actual part HIL simulation (1)
-Example: test of ECU and Power Electronics electric
machine
mechanical power train
SIMULATION ENVIRONMENT
Aalto University, May 2011 9 Interface System CONTROLLER BOARD (ECU) power electronics process control HIL simulation:
Includes a hardware part, a software part and a specific interface HIL simulation (2) -electric machine mechanical power train HARDWARE SOFTWARE
HIL simulation = Real-time simulation (but including a hardware part) = Emulation
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 10 Models for HIL simulation
-HIL simulation =
Hardware (energy conversion) + Models computed in real-time in dynamic interactions
HARDWARE
REAL-TIME SIMULATION
energetic model causal model dynamic model
power
efficient results requires an accurate model and a well-defined interface system!
Aalto University, May 2011 11 HIL simulation appraoch
-Example of an EV simulation prototype http://www.renault.com real vehicle HIL platform
Aalto University Finland
May 2011
« Energy Management of EVs & HEVs using Energetic Macroscopic Representation »
Aalto University
2.
2.
S
S
IGNALS AND
IGNALS AND
P
P
OWER
OWER
HIL
HIL
S
S
IMULATIONS
IMULATIONS
• Signal HIL simulation
Aalto University, May 2011 13 CONTROLLER BOARD (ECU) power electronics measurements electric machine mechanical power train process control control signals
The actual controller board containing the process control is tested.
Signal HIL simulation (1)
-subsystem to test
Objectives:
- control assessment - reliability of ECU
- fault operation of ECU - …
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 14
SYSTEM UNDER TEST CONTROLLER BOARD (ECU) power electronics measurements electric machine mechanical power train process control control signals
Signal HIL simulation (3)
-Second controller board with its own interface Fast dynamic: FPGA?
Aalto University, May 2011 15 Example of signal HIL simulation
-ECU subsystem to test EMULATION CONTROLLER battery + chopper (1) DC machine (2) (3) mechanical trans. (4)-(6) drive control sij u uchop idcm idcm_meas Tdcm
gear
gear_meas Vbat_meas SYSTEM UNDER TEST CONTROLLER BOARD (ECU)Remark: dynamic causal models
(2) e Ri u i dt d L dcm chop dcm dcm u uchop idcm
uchopdtHIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 16
CONTROLLER BOARD (ECU) power electronics measurements electric machine mechanical power train process control control signals
Power HIL simulation (1)
-subsystem to test
Objectives:
- control assessment
- power device assessment - interactions (EMI…)
- … The actual controller board and a power subsystem are tested.
Aalto University, May 2011 17 SIMULATION ENVIRONMENT SYSTEM UNDER TEST CONTROLLER BOARD (ECU) power electronics electric machine mechanical power train process control control signals
Power HIL simulation (2)
-Interface System: • control and power signals • equivalent measurements • power action and reaction
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 18
EMULATION CONTROLLER SYSTEM UNDER TEST CONTROLLER BOARD (ECU) power electronics electric machine mechanical power train process control control signals
Power HIL simulation (4)
-The same controller board can be used for: • control of the emulation system
• real-time simulation of subsystems
emulation system
emulation control
Aalto University, May 2011 19 CONTROLLER BOARD (ECU) power electronics measurements electric machine mechanical power train process control control signals
Power HIL simulation (extension)
-subsystem to test
Objectives:
- drive assessment
- test on static platform - …
Electrical power HILS
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 20 Example of electrical power HIL simulation (1)
-ECU subsystem to test L u uchop idcm
idcm_ref current loop
example of emulation system
idcm idcm battery + chopper DC machine (2) (3) u uchop battery + chopper emulation system u uchop must impose the same current
Aalto University, May 2011 21
EMULATION CONTROLLER
• fast current loop
• small sampling period Example of electrical power HIL simulation (2)
-L u uchop idcm idcm_ref current loop emulation system real battery and chopper drive control ECU DC machine (2) (3) u uchop_est mechanical trans. (4)-(6)
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 22 Example of mechanical power HIL simulation (1)
-ECU
subsystem to test
gear _ref speed / current loopsexample of emulation system
Tdcm
gearmust impose the same speed
gear DC machine mechanical trans. (4)-(6) Tdcm ?Aalto University, May 2011 23 emulation system Tdcm
gear real machine real bat. & chopper EMULATION CONTROLLERExample of mechanical power HIL simulation (2)
-drive control ECU T Tdcm_est mechanical trans. (4)-(6)
gear _refAalto University Finland
May 2011
« Energy Management of EVs & HEVs using Energetic Macroscopic Representation »
Aalto University
4. E
4. E
XAMPLES OF XAMPLES OFHIL S
HIL S
IMULATIONSIMULATIONS a. Test of traction drive for an EVa. Test of traction drive for an EV
[Bouscayrol 2006b] In collaboration with
Aalto University, May 2011 25 Objectives -wh2 Tdiff2 Vbat iinv gear Tim diff Tgear wh1 Tdiff1 s11 s21 s31
Traction of the studied EV: VSI + Induction machine + differential + 2 driven wheels
Drive implementation for an Electric Vehicle ?
1. Simulation of the EV (drive + vehicle dynamics) 2. Test of the actual traction drive
3. Test of the whole prototype
drive control
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 26 Park’s transformation Tim gear induction machine udq idq edq idq d/s rw lw Tdif Tdif Tgear dif gearbox differential msteer chassis environ. wheels MS vev Ftot Flw Frw Fres vev vlw vrw battery ES ubat ivsi VSI svsi uvsi iim rw Tdif ubat ivsi gear Tim dif Tgear lw Tdif s11 s21 s31
-Aalto University, May 2011 27
control
Maximum control structure
-msteer
battery VSI Park’s transformation chassis environ. wheels MS vev Ftot Flw Frw Fres vev vlw vrw rw lw Tdif Tdif Tgear Tim dif ES ubat ivsi svsi gear uvsi induction machine udq idq iim idq edq d/s gearbox differential power Ftot-ref vev-ref vev-mes Fres-mes Flw-ref kR kP Tdiff-ref1 Tgear-ref Tim-ref Frw-ref Tdiff-ref2 PWM m-ref idq-ref vdq-ref uvsi-ref FOC d/s-est
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 28
control
Estimation and strategy
-msteer
battery VSI Park’s transformation chassis environ. wheels MS vev Ftot Flw Frw Fres vev vlw vrw rw lw Tdif Tdif Tgear Tim dif ES ubat ivsi svsi gear uvsi induction machine udq idq iim idq edq d/s gearbox differential power kR kP Ftot-ref vve-ref Flw-ref Tdiff-ref1 Tgear-ref Tim-ref vev-mes Fres-mes Frw-ref Tdiff-ref2 idq-ref vdq-ref uvsi-ref FOC m-ref d/s-est strategy PWM model idq_est edq m-est
Aalto University, May 2011 29
control
Synthetic EMR
-msteer
battery VSI Park’s transformation chassis environ. wheels MS vev Ftot Flw Frw Fres vev vlw vrw rw lw Tdif Tdif Tgear Tim dif ES ubat ivsi svsi gear uvsi induction machine udq idq iim idq edq d/s gearbox differential power vev-mes kR kP Ftot-ref vve-ref Flw-ref Tdiff-ref1 Tgear-ref Tim-ref Fres-mes Frw-ref Tdiff-ref2 idq-ref vdq-ref uvsi-ref FOC m-ref d/s-est PWM traction drive drive control mechanical power train power train control vev-ref Tim-ref Tim
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 30
mechanical power train traction drive
drive control
control
HIL simulation principle
-power power train control vev-ref Tim-ref Tim Tim model mechanical power train DC load drive drive control
ref=
mod
Aalto University, May 2011 31
controller board
HIL simulator
Overall HIL simulation
-MS ES
vve-ref
PWM FOC
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 32 Experimental setup
-IM
DCM
inverter chopper dSPACE 1103 controller boardAalto University, May 2011 33 Experimental setup
-IM
DCM
inverter chopper dSPACE 1103 controller boardHIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 34
Ngear-mes Tim-ref iim1-mes idcm-mes vlw-mod Ngear-ref im-ref ubat vev-ref vev-mod vrw-mod ma2-est
-May 2011
Aalto University
C
C
ONCLUSION
ONCLUSION
HIL simulation interest:
valuable intermediary step before the implementation of the control or a new subsystem in a real process
HIL simulation requirements:
• respect of interactions between subsystems
• respect of the physical causality for real-time implementation • development of an adapted interface system
• use of a accurate causal dynamical model
EMR = valuable tool for organization of the numerous blocks of HIL simulation
HIL S
HIL SIMULATION USING IMULATION USING EMREMR
Aalto University, May 2011 36 References
-A. L. Allègre, -A. Bouscayrol, J. N. Verhille, P. Delarue, E. Chattot, S. El Fassi, “Reduced-scale power Hardware-In-the-Loop simulation of an innovative subway", IEEE transactions on Industrial Electronics, vol. 57, no. 4, April 2010, pp. 1175-1185 (common paper of L2EP Lille and Siemens Transportation Systems).
A. Bouscayrol, W. Lhomme, P. Delarue, B. Lemaire-Semail, S. Aksas, “Hardware-in-the-loop simulation of electric vehicle traction systems using Energetic Macroscopic Representation”, IEEE-IECON'06, Paris, November 2006, (common paper L2EP Lille and dSPACE France).
A. Bouscayrol, X. Guillaud, R. Teodorescu, P. Delarue, W. Lhomme, “Hardware-in-the-loop simulation of different wind turbines using Energetic Macroscopic Representation”, IEEE-IECON'06, Paris, November 2006, , (common paper L2EP Lille and Aalborg university, Denmark).
A. Bouscayrol, “Different types of Hardware-In-the-Loop simulation for electric drives”, IEEE-ISIE’08, Cambridge (UK), June 2008,
A. Bouscayrol, X. Guillaud, P. Delarue, B. Lemaire-Semail, “Energetic Macroscopic Representation and inversion-based control illustrated on a wind energy conversion systems using Hardware-in-the-loop simulation”, IEEE transaction on Industrial Electronics,vol. 56, no. 12, December 2009, pp. 4826-4835.
A. Bouscayrol, "Hardware-In-the-Loop simulation", Industrial Electronics Handbook, second edition, tome 3, Chapter M35, Editions Taylor & Francis, Chicago, March 2010, ISBN 9781848210967.
H. Hanselmann, "HIL simulation testing and its integration into a CACSD toolset", IEEE-CACSD’96, Dearborn, September 96.
Aalto University, May 2011 37 References (2)
-H. Li, M. Steurer, S. Woodruff, K. L. Shi, D. Zhang, "Development of a unified design, test, and research platform for wind energy systems based on hardware-in-the-loop real time simulation", IEEE trans. on Industrial Electronics, vol. 53, no. 4, June 2006, pp. 1144-1151.
W. Lhomme, R. Trigui, P. Delarue, A. Bouscayrol, B. jeanneret, F. Badin, “Validation of clutch modeling for hybrid electric vehicle using Hardware-In-the-Loop simulation”, IEEE-VPPC’07, Arlington (USA), September 2007, (common paper L2EP Lille and LTE INRETS Bron according to MEGEVH project).
D. Maclay, "Simulation gets into the loop", IEE Review, May 1997, pp. 109-112.
J. N. Verhille, A. Bouscayrol, P. J. Barre, J. P. Hautier, “Validation of anti-slip control for a subway traction system using Hardware-In-the-Loop simulation”, IEEE-VPPC’07,Arlington (USA), September 2007, (common paper L2EP Lille and Siemens Transportation Systems).
C. A. Rabbath, M. Abdoune, J. Belanger, K. Butts, “Simulating hybrid dynamic systems”, IEEE Robotics & Automation Magazine,Vol. 9, no. 2, June 2002, pp. 39 – 47.
P. Terwiesch, T. Keller, E. Scheiben, "Rail vehicle control system integration testing using digital
hardware-in-the-loop simulation', IEEE trans. on Control System Technology, Vol. 7, no. 3, May 99, pp. 352-362.
R. Trigui, B. Jeanneret, B. Malaquin, F. Badin, "Hardware-In-the-Loop Simulation of a diesel parallel mild hybrid vehicle", IEEE-VPPC’07, Arlington (USA), September 2007.