mathworks technology session at ge closed-loop motor

40
1 ยฉ 2012 The MathWorks, Inc. MathWorks Technology Session at GE Closed-Loop Motor Control Development February 28, 2013 Brad Hieb Tom Priestley Marc Semma

Upload: others

Post on 18-Dec-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

2

Design Controller

Control System Toolbox

Robust Control Toolbox

Model Predictive Control Tbx

Optimize Control System

Simulink Control Design

Simulink Design Optimization

Model Physical Plant

System Identification Toolbox

Model-Based Calibration Tbx

Simscape

data model

3

Embedded System

Motor

Hardware

Controller

C Code

System Model

Model Based Design for Embedded Controls

Controller

C Code

Controller

Model

Motor

Model

Motor

Hardware

4

Embedded System

Motor

Hardware

Controller

C Code

System Model

System Modeling and Simulation

GE Tech

Session, Tues.

March 26

Controller

C Code

Controller

Model

Motor

Model

Motor

Hardware

6 ยฉ 2012 The MathWorks, Inc.

Characterizing a Permanent Magnet

Synchronous Machine

Brad Hieb โ€“ Application Engineer

7

Motivation

Why characterize the motor?

โ€“ To develop a plant model

Why develop a plant model?

โ€“ To simulate the system

Why simulate the system?

โ€“ Simulation is a safe environment to try out new ideas without

the risk of damaging prototype hardware.

โ€“ Visualization and analysis of the complex data in our system.

โ€“ Gain confidence in our controller design before deploying on

hardware.

8

Example use of simulation

Develop a velocity controller to meet performance

requirements

9

But Does it Work on Hardware?

10

Key Point

Create accurate plant models by executing tests,

identify parameter values and verifying against real-

world data

Test Identify

Parameters Verify

11

What do These Particular Models Look Like?

12

Surface Mount PMSM Equations

Mechanical Model

Electrical Model

๐‘ฃ๐‘‘ = ๐‘…๐‘–๐‘‘ โˆ’ ๐ฟ๐‘ž๐‘๐œ”๐‘Ÿ ๐‘–๐‘ž + ๐ฟ๐‘‘

๐‘‘

๐‘‘๐‘ก๐‘–๐‘‘

๐‘ฃ๐‘ž = ๐‘…๐‘–๐‘ž + ๐‘๐œ”๐‘Ÿ ๐ฟ๐‘‘ ๐‘–๐‘‘ + ๐œ† + ๐ฟ๐‘ž

๐‘‘

๐‘‘๐‘ก๐‘–๐‘ž

๐œ”๐‘’ = ๐‘๐œ”๐‘Ÿ

๐‘‡๐‘’ = 1.5๐‘ ๐œ†๐‘–๐‘ž + ๐ฟ๐‘‘ โˆ’ ๐ฟ๐‘ž ๐‘–๐‘‘ ๐‘–๐‘ž

๐‘‡๐‘’ = ๐พ๐‘ก๐‘–๐‘ž ๐‘Ž๐‘ ๐‘ ๐‘ข๐‘š๐‘’๐‘  ๐‘Ÿ๐‘œ๐‘ข๐‘›๐‘‘ ๐‘Ÿ๐‘œ๐‘ก๐‘œ๐‘Ÿ, ๐ฟ๐‘‘ = ๐ฟ๐‘ž

๐‘‘

๐‘‘๐‘ก๐œ”๐‘Ÿ =

1

๐ป ๐‘‡๐‘’ โˆ’ ๐‘ ๐‘”๐‘› ๐œ”๐‘Ÿ ๐ฝ0 โˆ’ ๐‘๐œ”๐‘Ÿ โˆ’ ๐‘‡๐‘™๐‘œ๐‘Ž๐‘‘

13

Required Parameters

Electrical Model

Mechanical Model

๐‘ฃ๐‘‘ = ๐‘…๐‘–๐‘‘ โˆ’ ๐ฟ๐‘ž๐‘๐œ”๐‘Ÿ ๐‘–๐‘ž + ๐ฟ๐‘‘

๐‘‘

๐‘‘๐‘ก๐‘–๐‘‘

๐‘ฃ๐‘ž = ๐‘…๐‘–๐‘ž + ๐‘๐œ”๐‘Ÿ ๐ฟ๐‘‘ ๐‘–๐‘‘ + ๐œ† + ๐ฟ๐‘ž

๐‘‘

๐‘‘๐‘ก๐‘–๐‘ž

๐œ”๐‘’ = ๐‘๐œ”๐‘Ÿ

๐‘‡๐‘’ = 1.5๐‘ ๐œ†๐‘–๐‘ž + ๐ฟ๐‘‘ โˆ’ ๐ฟ๐‘ž ๐‘–๐‘‘ ๐‘–๐‘ž

๐‘‡๐‘’ = ๐พ๐‘ก๐‘–๐‘ž ๐‘Ž๐‘ ๐‘ ๐‘ข๐‘š๐‘’๐‘  ๐‘Ÿ๐‘œ๐‘ข๐‘›๐‘‘ ๐‘Ÿ๐‘œ๐‘ก๐‘œ๐‘Ÿ, ๐ฟ๐‘‘ = ๐ฟ๐‘ž

๐‘‘

๐‘‘๐‘ก๐œ”๐‘Ÿ =

1

๐ป ๐‘‡๐‘’ โˆ’ ๐‘ ๐‘”๐‘› ๐œ”๐‘Ÿ ๐ฝ0 โˆ’ ๐‘๐œ”๐‘Ÿ โˆ’ ๐‘‡๐‘™๐‘œ๐‘Ž๐‘‘

14

Mapping parameters to PMSM model

๐‘…

๐ฟ๐‘‘ , ๐ฟ๐‘ž

๐œ†

๐พ๐‘ก

๐ป

๐‘

๐‘

๐ฝ0

15

Tests to Characterize Motor and Load

Motor Tests Parameters Identified Identification method

Back EMF Test

Number of Pole Pairs (p)

Flux Linkage Constant (ฮป)

Torque Constant (Kt)

Calculation

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Curve fitting

Coast Down Test

Rotor Inertia (H) Curve fitting

DC Voltage Step Test Resistance (R)

Inductance (L)

Parameter estimation

Load Tests Parameters Identified Identification method

Bifilar Pendulum Test Disc inertia (Hd) Calculation

16

Tests to Characterize Motor and Load

Motor Tests Parameters Identified Identification method

Back EMF Test

Number of Pole Pairs (p)

Flux Linkage Constant (ฮป)

Torque Constant (Kt)

Calculation

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Curve fitting

Coast Down Test

Rotor Inertia (H) Curve fitting

DC Voltage Step

Test

Resistance (R)

Inductance (L)

Parameter estimation

Load Tests Parameters Identified Identification method

Bifilar Pendulum

Test

Disc inertia (Hd) Calculation

17

Tests to Characterize Motor and Load

Motor Tests Parameters Identified Identification method

Back EMF Test

Number of Pole Pairs (p)

Flux Linkage Constant (ฮป)

Torque Constant (Kt)

Calculation

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Curve fitting

Coast Down Test

Rotor Inertia (H) Curve fitting

DC Voltage Step Test Resistance (R)

Inductance (L)

Parameter estimation

Load Tests Parameters Identified Identification method

Bifilar Pendulum Test Disc inertia (Hd) Calculation

18

Coast Down Test

Coast down test used to identify:

Rotor inertia (H)

Test Extract

Parameters Verify

19

Identify Rotor Inertia (H)

๐‘‘๐œ”๐‘Ÿ

๐‘‘๐‘ก=

1

๐ป๐‘‡๐‘’๐‘š โˆ’ ๐‘๐œ”๐‘Ÿ โˆ’ ๐ฝ0 โˆ’ ๐‘‡๐‘™๐‘œ๐‘Ž๐‘‘

๐‘‡๐‘™๐‘œ๐‘Ž๐‘‘ = 0

๐œ”๐‘Ÿ = ๐œ”๐‘Ÿ0 + ๐ฝ0๐‘

๐‘’โˆ’๐‘๐ป๐‘ก โˆ’

๐ฝ0๐‘

NRMSD = Normalized Root Mean Square Deviation

Note: J0 and b are known from friction

test. Curve fit equation for ฯ‰r to find H.

Test Extract

Parameters Verify

20

Validate Coast Down Test

NRMSD = Normalized Root Mean Square Deviation

Test Extract

Parameters Verify

21

Tests to Characterize Motor and Load

Motor Tests Parameters Identified Identification method

Back EMF Test

Number of Pole Pairs (p)

Flux Linkage Constant (ฮป)

Torque Constant (Kt)

Calculation

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Curve fitting

Coast Down Test

Rotor Inertia (H) Curve fitting

DC Voltage Step

Test

Resistance (R)

Inductance (L)

Parameter estimation

Load Tests Parameters Identified Identification method

Bifilar Pendulum Test Disc inertia (Hd) Calculation

22

DC Voltage Step Test

Used to identify:

Phase resistance (R)

Phase inductance (L)

Test Extract

Parameters Verify

23

Identify Phase Resistance (R)

๐‘ฃ๐ผ๐‘› ๐‘ก = ๐‘…๐ฟ๐‘–๐‘š๐‘–๐‘ก๐‘– ๐‘ก + ๐‘… ๐‘– ๐‘ก + ๐ฟ ๐‘‘๐‘–

๐‘‘๐‘ก

๐‘ฃ๐ผ๐‘› ๐‘ก = ๐‘…๐‘‡๐‘– ๐‘ก + ๐ฟ ๐‘‘๐‘–

๐‘‘๐‘ก

๐‘– ๐‘ก = ๐‘‰๐ผ๐‘›

๐‘…๐‘‡ 1 โˆ’ ๐‘’

โˆ’๐‘…๐‘‡๐ฟ

๐‘ก

๐‘ค๐‘•๐‘’๐‘Ÿ๐‘’: ๐‘…๐‘‡ = ๐‘…๐ฟ๐‘–๐‘š๐‘–๐‘ก + ๐‘…

๐‘… = lim๐‘กโ†’โˆž

๐‘ฃ๐ผ๐‘› ๐‘ก

๐‘– ๐‘ก

๐‘… = ๐‘…

2

๐ฟ = ๐ฟ

2

Test Extract

Parameters Verify

24

Identify Inductance (L) using

Parameter Estimation

Test Extract

Parameters Verify

25

Validate DC Voltage Step Test

NRMSD = Normalized Root Mean Square Deviation

Test Extract

Parameters Verify

26

Tests to Characterize Motor and Load

Motor Tests Parameters Identified Identification method

Back EMF Test

Number of Pole Pairs (p)

Flux Linkage Constant (ฮป)

Torque Constant (Kt)

Calculation

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Curve fitting

Coast Down Test

Rotor Inertia (H) Curve fitting

DC Voltage Step Test Resistance (R)

Inductance (L)

Parameter estimation

Load Tests Parameters Identified Identification method

Bifilar Pendulum

Test

Disc inertia (Hd) Calculation

27

Bifilar Pendulum Test

Bifilar pendulum test used to

identify:

Disc inertia (Hd)

Test Extract

Parameters Verify

28

Identify Disc Inertia (Hd)

๐ป๐‘‘ = ๐‘š๐‘‘๐‘” ๐‘‡2๐‘2

4๐œ‹2๐ฟ

๐‘ค๐‘•๐‘’๐‘Ÿ๐‘’: ๐‘š๐‘‘ = ๐‘š๐‘Ž๐‘ ๐‘  ๐‘œ๐‘“ ๐‘‘๐‘–๐‘ ๐‘ ๐‘” = ๐‘Ž๐‘๐‘๐‘’๐‘™๐‘’๐‘Ÿ๐‘Ž๐‘ก๐‘–๐‘œ๐‘› ๐‘œ๐‘“ ๐‘”๐‘Ÿ๐‘Ž๐‘ฃ๐‘–๐‘ก๐‘ฆ ๐‘‡ = ๐‘๐‘’๐‘Ÿ๐‘–๐‘œ๐‘‘ ๐‘œ๐‘“ ๐‘‘๐‘–๐‘ ๐‘ ๐‘Ÿ๐‘œ๐‘ก๐‘Ž๐‘ก๐‘–๐‘œ๐‘›

Measurements:

L = 2.356 (m)

b = 0.0565 (m)

md = 0.0425 (kg)

T = 2.21 (sec)

Test results

Hd = 6.993e-5 (kg-m2)

Test Extract

Parameters Verify

30

Validate Bifilar Pendulum Test

Simulation result

T = 2.21 (sec)

Parameters:

L = 2.356 (m)

b = 0.0565 (m)

md = 0.0425 (kg)

Hd = 6.993e-5 (kg-m2)

Test result

T = 2.21 (sec)

Test Extract

Parameters Verify

31

Key Point

Create accurate plant models by executing tests,

identify parameter values and verifying against real-

world data

Test Identify

Parameters Verify

32

Putting the pieces together

33

Control Design

34

Compare Closed Loop Simulation with

Hardware

35

Where can I find more information?

Explore a demo on generating C code from a controller and verifying its compiled behavior and execution time

>> docsearch "Field-Oriented Control of Permanent Magnet

Synchronous Machine"

http://mathworks.com/products/demos/shipping/rtw/rtwdemo_pmsmfoc_script.html

Watch a recorded webinar: โ€œEmbedded Code Generation for AC Motorsโ€ http://www.mathworks.com/company/events/webinars/wbnr61549.html

Watch 2012 MathWorks Automotive Conference recording of: โ€œParameterizing and Verifying a Permanent Magnet Synchronous Motor Modelโ€ http://www.mathworks.com/company/events/conferences/automotive-conference-michigan/2012/proceedings/registration.html?video=3

Enroll in SAE Course: โ€œModel Based Design: Delivering Quality Electronic Products Fasterโ€ http://www.sae.org/pdevent/C0806

36

Questions

37

End

38

Backup Slides

41

Tests to Characterize Motor and Load

Motor Tests Parameters Identified

Back EMF Test

Number of Poles (P)

Flux Linkage Constant (ฮ›๐‘๐‘š)

Torque Constant (Kt)

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Coast Down Test

Rotor Inertia (H)

DC Voltage Step Test Resistance (R)

Inductance (L)

Load Tests Parameters Identified

Bifilar Pendulum Test Disc inertia (Hd)

42

Tests to Characterize Motor and Load

Motor Tests Parameters Identified

Back EMF Test

Number of Poles (P)

Flux Linkage Constant (ฮ›๐‘๐‘š)

Torque Constant (Kt)

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Coast Down Test

Rotor Inertia (H)

DC Voltage Step Test Resistance (R)

Inductance (L)

Load Tests Parameters Identified

Bifilar Pendulum Test Disc inertia (Hd)

43

Tests to Characterize Motor and Load

Motor Tests Parameters Identified

Back EMF Test

Number of Poles (P)

Flux Linkage Constant (ฮ›๐‘๐‘š)

Torque Constant (Kt)

Friction Test

Viscous Damping Coefficient (b)

Coulomb Friction (J0)

Coast Down Test

Rotor Inertia (H)

DC Voltage Step Test Resistance (R)

Inductance (L)

Load Tests Parameters Identified

Bifilar Pendulum Test Disc inertia (Hd)