Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  ·...

66
ISRN UTH-INGUTB-EX-E-2012/05-SE Examensarbete 15 hp Maj 2012 Design and Simulation of Field Oriented Control and Direct Torque Control for a Permanent Magnet Synchronous Motor with Positive Saliency Anders Kronberg

Transcript of Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  ·...

Page 1: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

ISRN UTH-INGUTB-EX-E-2012/05-SE

Examensarbete 15 hpMaj 2012

Design and Simulation of Field Oriented

Control and Direct Torque Control for a

Permanent Magnet Synchronous Motor with

Positive Saliency

Anders Kronberg

Page 2: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a
Page 3: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Teknisk- naturvetenskaplig fakultet UTH-enheten Besöksadress: Ångströmlaboratoriet Lägerhyddsvägen 1 Hus 4, Plan 0 Postadress: Box 536 751 21 Uppsala Telefon: 018 – 471 30 03 Telefax: 018 – 471 30 00 Hemsida: http://www.teknat.uu.se/student

Abstract

Design and Simulation of Field Oriented Control andDirect Torque Control for a Permanent MagnetSynchronous Motor with Positive Saliency Anders Kronberg

The researchers at the Department of Electricity at Uppsala University has recentlyentered the field of electric motor design, however no real knowledge of motorcontrol of salient pole permanent magnet motors exists in the department. This thesiswill present a general description of the control method of motors that exist today,this has been done by reviewing existing literature. The literature review has shownthat there are at least three control methods with a significant different in theircontrol approach, Scalar-, Field Oriented- and Direct Torque- Control. The two lastmethods were chosen by the author as the most useful and was implemented andsimulated together with the newly developed motor in MATLAB Simulink to evaluatetheir performance. The simulation results show that there is no difference inperformance of the two methods, but they show a difference in efficiency.

The results show that it's worth to develop both methods further, mainly forreducing the torque and current ripple. This result was not expected according toliterature, which suggests that the Field Oriented Control has a lower torque ripple.This could be caused by the choice of hysteresis control for inverter switching,instead of more sophisticated methods with a proportional integral derivativecontroller (PID) together with Sinusoidal Pulse Width Modulation (SPWM) or SpaceVector Modulation (SVM).

ISRN UTH-INGUTB-EX-E-2012/05-SEExaminator: Nora MassziÄmnesgranskare: Janaína GonçalvesHandledare: Boel Ekergård

Page 4: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a
Page 5: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Motorstyrning av elmotorer med utpraglade poler

En jamforande studie och simulering av tva olika metoder for styrningav elektriska motorer visar att prestanda skillnaden mellan dem ar liten,men att de skiljer sig i stromforbrukning och darmed effektivitet. Badametoderna har visat sig ha ett hogt pulserande vridmoment, vilket kange samre hallfasthet pa den mekaniska sidan. Slutsatsen ar att det medmer utveckling gar att minska det pulserande vridmomentet och oka effek-tiviteten for motorstyrningen.

Med stigande oljepriser och en okad miljomedvetenhet, kommer elektriskafordon att utgora en allt storre del av marknaden for persontransport, syftetmed studien har varit att undersoka vilka kontrollmetoder for elektriska mo-torer som kan vara lampliga for framdrivning av elfordon.

En av elbilens nackdelar ar dess rackvidd, for att kunna konkurrera meddagens bilar ar det ar darfor viktigt att optimera verkningsgraden i de olikadelsystemen mellan laddkontakt och hjul.

Studien har gjorts genom att undersoka de olika kontrollmetoder som finnsbeskrivna i existerande litteratur och tva av dem valdes ut for en mer nog-grann genomgang. De tva valdes p.g.a. den stora skillnaden i kontrollmetod,den ena anvander sig av en matematisk modell och positionsmatning av mo-torn for att generera styrsignaler, den andra av en uppskattning av motornposition fran dess elektriska parametrar.

De tva metoderna har sedan simulerats i Simulink for att kunna uppskattaderas skillnader och likheter i beteende och prestanda. Simulink ar ett tillaggtill Matlab vilket mojliggor att snabbt och enkelt kunna simulera bl.a. elek-triska system genom att grafiskt koppla samman olika komponentblock tillett storre system.

iii

Page 6: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a
Page 7: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Contents

1 Introduction 11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.3 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.4 Thesis Outline . . . . . . . . . . . . . . . . . . . . . . . . . . 2

2 Permanent Magnet Synchronous Motors 32.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.2 Rotor designs . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.3 Definition of saliency . . . . . . . . . . . . . . . . . . . . . . . 52.4 The Boel Motor . . . . . . . . . . . . . . . . . . . . . . . . . . 5

3 Theory 73.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2 Transformations . . . . . . . . . . . . . . . . . . . . . . . . . 7

3.2.1 Clarke’s Transformation . . . . . . . . . . . . . . . . . 73.2.2 Park’s Transformation . . . . . . . . . . . . . . . . . . 8

3.3 Motor Equations in the Rotor Reference Frame . . . . . . . . 93.3.1 The Permanent Magnet Synchronous Machine Equiv-

alent Circuits and Mechanical Motor Model . . . . . . 11

4 Control methods 124.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124.2 Scalar Control . . . . . . . . . . . . . . . . . . . . . . . . . . 124.3 Vector Control . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.3.1 Field Oriented Control (FOC) . . . . . . . . . . . . . 134.3.2 Direct Torque Control (DTC) . . . . . . . . . . . . . . 164.3.3 Voltage Source Inverter . . . . . . . . . . . . . . . . . 20

5 Field oriented control of different rotor geometries 225.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225.2 Non Salient Pole Machines (SPMSM) . . . . . . . . . . . . . 225.3 Negative Salient Pole Machines (NSPMSM) . . . . . . . . . . 235.4 Positive Salient Pole Machines (PSPMSM) . . . . . . . . . . 25

v

Page 8: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

6 Simulink models 276.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276.2 Existing Simulink Control . . . . . . . . . . . . . . . . . . . . 276.3 Field Oriented Control . . . . . . . . . . . . . . . . . . . . . . 296.4 Direct Torque Control . . . . . . . . . . . . . . . . . . . . . . 29

7 Simulation and results 317.1 Field Oriented Control . . . . . . . . . . . . . . . . . . . . . . 317.2 Direct Torque Control . . . . . . . . . . . . . . . . . . . . . . 337.3 Comparison of FOC and DTC . . . . . . . . . . . . . . . . . 35

8 Conclusion 388.1 Future work . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

A Derivations 40A.1 Normalization of negative saliency motor . . . . . . . . . . . 40A.2 Normalization of positive saliency motor . . . . . . . . . . . . 42A.3 Polar coordinates . . . . . . . . . . . . . . . . . . . . . . . . . 43

B Simulink model 45B.1 Field Oriented Control Schematics . . . . . . . . . . . . . . . 45B.2 Direct Torque Control Schematics . . . . . . . . . . . . . . . 48

B.2.1 Matlab code for Sector calculation . . . . . . . . . . . 51B.2.2 Matlab code for Vector selection . . . . . . . . . . . . 51

vi

Page 9: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

List of Figures

2.1 Different types of rotor configuration [1] . . . . . . . . . . . . 42.2 Two pole permanent magnet rotor . . . . . . . . . . . . . . . 6

3.1 Clarke and Park transform . . . . . . . . . . . . . . . . . . . 83.2 Salient pole machine equivalent circuit . . . . . . . . . . . . . 11

4.1 Overview of available control strategies . . . . . . . . . . . . . 124.2 Rectangular and polar coordinates . . . . . . . . . . . . . . . 154.3 Basic DTC control layout . . . . . . . . . . . . . . . . . . . . 174.4 Hysteresis comparators . . . . . . . . . . . . . . . . . . . . . . 194.5 Sector division . . . . . . . . . . . . . . . . . . . . . . . . . . 194.6 Output stage of a two level three phase voltage source inverter

with an ideal three phase motor model connected . . . . . . . 21

5.1 Constant torque loci and current trajectory for MTPA . . . . 235.2 Direct- and quadrature-axis currents reference . . . . . . . . . 245.3 Constant torque loci and current trajectory for MTPA . . . . 255.4 Direct- and quadrature-axis currents reference . . . . . . . . . 26

6.1 Current calculation of the existing Simulink model . . . . . . 286.2 Difference between analytical and Simulink model direct- and

quadrature-axis currents . . . . . . . . . . . . . . . . . . . . . 29

7.1 Simulation of FOC with a 15Nm load . . . . . . . . . . . . . 327.2 Measured and Reference currents . . . . . . . . . . . . . . . . 337.3 Hysteresis control with sample time of 20µs . . . . . . . . . . 347.4 Hysteresis control with sample time of 2µs . . . . . . . . . . . 347.5 Comparison between measured and estimated sector . . . . . 357.6 Comparison between speed response for FOC and DTC . . . 357.7 Comparison between torque response for FOC and DTC . . . 367.8 FOC phase currents . . . . . . . . . . . . . . . . . . . . . . . 367.9 DTC phase currents . . . . . . . . . . . . . . . . . . . . . . . 367.10 FOC dq currents . . . . . . . . . . . . . . . . . . . . . . . . . 377.11 DTC dq currents . . . . . . . . . . . . . . . . . . . . . . . . . 37

vii

Page 10: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

B.1 Main controller . . . . . . . . . . . . . . . . . . . . . . . . . . 45B.2 Current controller / VECT controller . . . . . . . . . . . . . . 46B.3 Torque to currents . . . . . . . . . . . . . . . . . . . . . . . . 46B.4 Torque to quadrature axis current . . . . . . . . . . . . . . . 46B.5 Torque to direct axis current . . . . . . . . . . . . . . . . . . 46B.6 Direct- and Quadrature-axis currents to ABC currents . . . . 47B.7 Current regulator . . . . . . . . . . . . . . . . . . . . . . . . . 47B.8 Pulse generator . . . . . . . . . . . . . . . . . . . . . . . . . . 47B.9 Main controller . . . . . . . . . . . . . . . . . . . . . . . . . . 48B.10 Clarke current transformation . . . . . . . . . . . . . . . . . . 48B.11 Flux estimator . . . . . . . . . . . . . . . . . . . . . . . . . . 48B.12 Two level inverter . . . . . . . . . . . . . . . . . . . . . . . . 49B.13 Pulse generator . . . . . . . . . . . . . . . . . . . . . . . . . . 49B.14 Torque calculator . . . . . . . . . . . . . . . . . . . . . . . . . 49B.15 Torque hysteresis comparator . . . . . . . . . . . . . . . . . . 50B.16 Voltage estimator, without loses in inverter switches . . . . . 50

viii

Page 11: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 1

Introduction

1.1 Introduction

Permanent Magnet Synchronous Motors (PMSM) have long been used inservo motor drives and has lately become more popular in lager motorsfor industrial applications. Another target application for PMSM is elec-tric vehicles, were its small size and robustness is a big advantage com-pared to Induction or DC motors. This development of PMSM has beenmade possible according to the introduction of new magnetic materials likeNeodymium Iron Boron (Nd2Fe14B) and Samarium Cobalt (SmCo5). Thesetypes of magnets have a high energy density and high resistance for de-magnetization. Previously Ferrite or Aluminium Nickel Cobalt (AlNiCo)magnet had to be used, this made the motors bulky and they where suscep-tible to demagnetization if the control of the motor current was incorrect.The demagnetization problem was one of the reasons that the id = 0 controlstrategy was adopted [2], this works well for round rotors but for a salientrotor a couple of their advantages are lost. It limits the motors speed rangeand the maximum efficiency cannot be reached. To take advantage of theproperties of modern magnetic materials, a new approach to controlling themotors has got possible them has to be taken.

The preferred method for controlling a PMSM is vector control, it canbe divided into two main types, Field Oriented Control (FOC) and DirectTorque Control (DTC) and their different subcategories. The FOC aims tocontrol the current vector and DTC aims to control the torque producingflux vector.

1.2 Motivation

The researchers at the Department of Electricity at Uppsala University hasrecently entered the field of electric motor design, however no real knowledgeof motor control of salient pole motors exists in the department. Their high

1

Page 12: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

efficiency motor is designed for battery powered vehicle propulsion system,the efficiency is therefore very important parameter for achieving maximumrange. The motor has a few percent advantage compared to conventionalmulti pole vehicle propulsion motors used today, to utilize this as good aspossible the motor should be controlled in the most efficient way.

1.3 Purpose

The purpose of this thesis is to investigate the types of control that is suit-able for salient pole permanent magnet synchronous motors, this has beenaccomplished by doing a literature review over existing control strategiesand by implementing some of them in the simulation tool Simulink.

An existing Simulink example model is also examined to find out whattype of control is used, to verify its behaviour and to see if it is possible touse it with another motor model with an inverted saliency.

1.4 Thesis Outline

Chapter 2 presents the general theory of Permanent Magnet SynchronousMotors, with focus on different rotor types and their properties, the chapteralso present the motor used in this project.

Chapter 3 presents the theory of the PMSM model, and transformationof its parameters into different reference frames.

Chapter 4 gives a presentation of different control methods that can beused for a PMSM.

Chapter 5 presents a more detailed investigation of the preferred controlmethod, Field Oriented Control. It will also present the difference in controlstrategies for different rotor types.

Chapter 6 presents the existing Field Oriented Control Simulink model,a modified version and a newly developed Direct Torque Control.

Chapter 7 presents the individual simulations and their results of themodels from chapter 6, a comparison of the two different types of controlare also presented.

Chapter 8 discusses the result of the work and give suggestions for im-provements and future work.

2

Page 13: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 2

Permanent MagnetSynchronous Motors

2.1 Introduction

The PMSM is a synchronous AC motor, normally with a three phase statorwinding similar to induction motors. The rotor however, is different. Per-manent magnets provides a constant flux to magnetize the motor. The lackof an electrical magnetization system gives the advantage of a more energyefficient motor.

Depending of the armature winding distribution the PMSM can be di-vided into two types, BrushLess DC (BLDC) or Permanent Magnet AC(PMAC) motors. The PMAC motor has armature winding that spans closeto 180 electrical degrees, which gives the motor a sinusoidal back emf. Thisis the motor type that this thesis will focus on. The BLDC has armaturewindings that spans over a smaller angle, which gives the motor a trapezoidalshaped back emf.

The PMSM is normally controlled with a frequency converter that sup-plies the motor with the correct frequency and voltage/current values.

2.2 Rotor designs

There are many possible design choices for the rotor, some of them canbe seen in figure 2.1. Magnets can be mounted on the surface, in thesurface and under the surface, all with different advantages/disadvantages.Surface mounted magnets will not withstand high rotational speed due tohigh centrifugal forces which crack or separates the magnets from the rotor.Subsurface- or buried- magnets need to be insulated from each other withslots or non magnetic material to avoid a magnetic short circuit, but themagnets are protected and held into place at high speeds. Figure 2.1a, 2.1b,2.1e, 2.1f & 2.1i show rotors with buried magnets.

3

Page 14: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Figure 2.1a and 2.1f show rotors with damper windings, the windingprovides a possibility for asynchronous starting and dampens oscillations.

Figure 2.1g and 2.1h show rotors with rounded magnets, which gives amore sinusoidal field distribution with less harmonics [3].

A rotor with surface magnets has a wide magnetic air gap, resulting in alow magnetizing inductance and difficulty to affect the machines electromag-netic properties by controlling the stator current. With buried magnets theair gap can be smaller and the magnetizing inductance higher, increasingthe controllability of the magnetic properties caused by the stator current.This gives the motor a possibility to extend its speed range by reducing theflux, so called flux weakening operation.

(a) Merrill’s rotor (b) Interior magnet rotor (c) Surface magnet rotor

(d) Inset magnet rotor (e) Symmetrical buriedwmagnet rotor

(f) Asymmetrical buriedmagnet rotor

(g) Bread loaf magnetwrotor

(h) Decentered magnetwrotor

(i) Interior double layermagnet rotor

Figure 2.1: Different types of rotor configuration [1]

4

Page 15: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

2.3 Definition of saliency

Saliency is a measure of the non-symmetry of the motors magnetic prop-erties. The non-symmetry occur by the difference in the reluctance pathbetween the rotor and stator. This difference comes from variations of therotors geometry or material, and a difference can be seen in the motors in-duction parameters Ld and Lq. Three different types of saliencies can exist,non-, positive- or negative-salient.

It doesn’t seem to be any consensus about naming different saliency rotortypes, does NS stands for Normal Saliency or Negative Saliency? And whatdoes Normal, Negative, Positive and Inverse means in terms of saliency?Some thinks Inverse Saliency is the opposite compared with a traditionalburied magnet rotor (Ld < Lq), while other think that Inverse Saliency isthe opposite of an electrically excited synchronous rotor (Ld > Lq).

To complicate things further a round rotor with magnets attached to thesurface will physically look as if it would be salient (see fig. 2.1c), but itdoesn’t have any saliency at all because the magnets permeability is almostthe same as air and will not affect the reluctance path.

Table 2.1: Different conventions of naming of salient machines

Ld > Lq Ld < LqBianchi[4] Normal Inverse

Mancado[5] Inverse Normal

Mancado[6] Negative Positive

Kronberg Positive Negative

The author’s definition of saliency is based on the traditional electri-cally excited synchronous machine and its magnetic properties, this will bereferred as Positive Saliency.

• SPMSM - Surface mounted Permanent Magnet Synchronous Motor.Rotor type without any saliency, equal reluctance along the rotor cir-cumference.

• NSPMSM - Negative Saliency Permanent Magnet Synchronous Motor.Rotor type with lower reluctance between the poles.

• PSPMSM - Positive Saliency Permanent Magnet Synchronous Motor.Rotor type with lower reluctance at the poles.

2.4 The Boel Motor

The control methods discussed in this thesis is intended for use with a highspeed, high efficiency motor developed at Uppsala University. The motor

5

Page 16: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

is designed for use with a 2:1 differential gear or direct drive with smallvehicular wheel in mind.

The development of electric propulsion systems by car manufacturers hasmostly been focused on four, six or eight pole motor with a poor efficiencybelow 95%. However, with the solution of Maxwell’s equations it is realizedthat for high speed drives, the smaller amount of poles the more compactand cost effective the motor will be. Simulations show an efficiency between95-98% through the operating range. [7]

The motor is said to be a downscaled version of a 1.6 GW nuclear turbogenerator with a permanent magnet rotor and cable windings. The rotor isof simple construction with a permanent magnet sandwiched between thetwo iron poles bolted together with the rotor end plates (figure 2.2).

Figure 2.2: Two pole permanent magnet rotor

Cable windings gives a uniform electrical field, which utilizes the insula-tion material as good as possible, compared to square windings which havehigher electrical stress in the corners. The use of cables gives the possibilityto use higher voltage and lower currents for the same power, thus reducingcopper losses in the windings.[8]

The motors most important parameters from a control perspective canbe seen in table 2.2.

Table 2.2: Motor parameters

Vrated,LL,rms 260V Rs 0.015Ω p 2φ 3 Ld 4mH rpm 0− 3000

Irated,rms 49A Lq 1mH Jest 0.003334kgm2

Imax 100A λpm,fullload 0.1960Wb Fest 0.00425NmsPrated 30kWPmax 60kW

6

Page 17: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 3

Theory

3.1 Introduction

A three phase PMSM is normally constructed with sinusoidally distributedphase windings, with a 120 phase shift between the three windings. In astator reference frame coordinate system the phase vectors A,B,C can beseen as they are fixed in angle, but with time varying amplitudes. This threevector representation makes calculation of machine parameters unnecessarilycomplex. By transforming the system into a two vector orthogonal system,the necessary calculations could be much simpler.

3.2 Transformations

A three phase machine can be described by a set of differential equationswith time dependent coefficients. By transforming the motor parameters,the complexity of machine calculations can be reduced. The most commonmethods to do this are the Clarke and Park transformations.

According to the definitions the transforms give a third component, 0or zero-sequence. But since a motor normally is a balanced load, the zero-sequence can be ignored.

The two transformations presented below are not the original Clarkeand Park, but in a slightly modified form to make them power invariant [9].By using these modifications it is possible to calculate the correct power/-torque values from the transformed motor parameters without the need totransform them back to three phase values.

3.2.1 Clarke’s Transformation

The Clarke transformation changes a three phase system into at two phasesystem with orthogonal axes in the same stationary reference frame. Thenew two phase variables are denoted α and β, the original and transformed

7

Page 18: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

system can be seen in figure 3.1a. The ABC parameters are transformedinto αβ0 parameters by equation (3.1), and in reverse by equation (3.2) [10].

fαβ0 = TfABC (3.1)

fABC = T−1fαβ0 (3.2)

Where f can be any one of the motors armature parameters, and the trans-formation matrix T is.

T =

√2

3

1 −12 −1

2

0√32 −

√32

1√2

1√2

1√2

(3.3)

A

B

C

α

β

ωm

(a) ABC to αβ

A

B

C

dq

ωm

θm

(b) ABC to dq

Figure 3.1: Clarke and Park transform

3.2.2 Park’s Transformation

The Park transformation changes a three phase system in one stationaryreference frame into a two phase system with orthogonal axes in a differentrotating reference frame. The two new phase variables are denoted d and q,and are referred to as the motors direct- and quadrature-axis. The originaland transformed system can be seen in figure 3.1b. The ABC parametersare transformed into dq0 parameters by equation (3.4), and in reverse byequation (3.5) [10].

fdq0 = T (θ)fABC (3.4)

fABC = T (θ)−1fdq0 (3.5)

8

Page 19: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Where f can be any one of the motors armature parameters, and the trans-formation matrix T is.

T =

√2

3

cos(θm) cos(θm − 2π3 ) cos(θm + 2π

3 )sin(θm) sin(θm − 2π

3 ) sin(θm + 2π3 )

1√2

1√2

1√2

(3.6)

By using the Park’s transform, the stator parameters such as voltages, cur-rents, and flux linkages, are associated with fictitious stator windings thatrotate with the rotor. The time varying parameters between stator and rotorare thus eliminated and all variables are expressed in the same orthogonalor mutually decoupled direct- and quadrature-axes.

3.3 Motor Equations in the Rotor Reference Frame

After the described transformation the different parameters in a synchronousmachine can be described by the following equations.[1].

vsd = Rsisd +dλsddt− ωeλsq (3.7)

vsq = Rsisq +dλsqdt

+ ωeλsd (3.8)

vD = RDiD +dλDdt

= 0 (3.9)

vQ = RQiQ +dλQdt

= 0 (3.10)

The flux linkages above are defined as:

λsd = (Lmd + Lsσ) + LmdiD + λpm = Lsdisd + LmdiD + λpm (3.11)

λsq = (Lmq + Lsσ) + LmqiQ = Lsqisq + LmqiQ (3.12)

λD = Lmdisd + LDiD + λpm (3.13)

λQ = Lmqisq + LQiQ (3.14)

By describing the Permanent Magnet as a current source, the flux linkageλpm can be seen as.

λpm = Lmdipm (3.15)

The subscripts d and q denotes if the component is along the direct- orquadrature-axes, and:vsd and vsq are the terminal voltage components.vD and vQ are the induced voltage in the damper windings and can beconsidered to be zero at steady state.isd and isq are the armature winding current components.

9

Page 20: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Lsd and Lsq are the armature self inductances components.Lsσ is the stator leakage inductance.Rs is the armature winding resistance.λpm is the flux linkage per phase generated from the excitation system.RD and RQ are the damper windings resistance.LD and LQ are the damper windings self inductance.

Instantaneous power in abc reference system is defined as.

Pin,abc = vaia + vbib + vcic (3.16)

Using the above transformation it is expressed in dq0 domain as.

Pin,dq =3

2vdid +

3

2vqiq + 3v0i0 (3.17)

Ignoring zero sequence and inserting (3.7) and (3.8) into the above.

Pin,dq = ωe3

2(λdisq−λqisd)+

3

2

(Rsi

2sd +

dλsddt

isd +Rsi2sq +

dλsqdt

isq

)(3.18)

Where the first term accounts for the electromagnetic power and ωe is theelectrical angular frequency. The mechanical angular frequency can be ex-pressed as: ωe = p

2ωm, where p is the number of poles. Assuming steadystate, the electromagnetic power Pe can be expressed as.

Pe = ωm3

2

p

2(λsdisq − λsqisd) (3.19)

Divide the power with rotational speed ωm to get the motors electrome-chanical torque Te and replace the flux linkages λsd and λsq with equations(3.11) and (3.12).

Te =3

2

p

2[(Ldisd + λpm)isq − Lsqisqisd] (3.20)

For a rotor with damper windings the torque equation is expressed as equa-tion 3.21, this thesis focuses on control of machines without damper windingsan in steady state, i.e. the terms for damper windings are here ignored.

Te =3

2

p

2[λpmisq + (Lmd − Lmq)isdisq + LmdiDisq + LmqiQisd] (3.21)

10

Page 21: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

3.3.1 The Permanent Magnet Synchronous Machine Equiv-alent Circuits and Mechanical Motor Model

To be able to simulate the electrical behaviour of the motor in any electricalcircuit analysis program the motors equivalent circuit (figure 3.2) is needed.By transforming the drive voltage into dq parameters and connecting it toits respective dq equivalent circuit, measurement of the models currents canbe done. From the current values the motors torque can be calculated and

isdRs

+−ωλq Lsσ

Lmd

isd + iD + ipm

LDσ

iD

RD

ipm

+

vsd

(a) Equivalent circuit for a salient machines direct axis

isqRs

+ −

ωλd Lsσ

Lmd

isq + iQ

LQσ

iQ

RQ

+

vsq

(b) Equivalent circuit for a salient machines quadrature axis

Figure 3.2: Salient pole machine equivalent circuit

the speed can be calculated from.

p

2(Te − TL) = J

dωrdt

(3.22)

Where TL is the load torque, ωr is the rotational speed and J is the motorand loads inertia.

With the above parameters it is possible to implement a model of aPMSM in a circuit simulation software. However, in this thesis the existingSimulink model has been used.

11

Page 22: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 4

Control methods

4.1 Introduction

Synchronous motors have to be driven by a Variable Frequency Drive (VFD)to be able to run at different speeds. Control methods for electric motorscan be divided into two main categories depending of what quantities theycontrol. The control algorithm Scalar Control controls only magnitudes,whereas the algorithms Vector Control controls both magnitude and angles.These two main methods can be further divided into a number of differentmethods depending of their functionality, an overview over different controlmethods can be seen in figure 4.1.

VFD

Scalar

V/f

Vector

FOC DTC

DSC SVM

Figure 4.1: Overview of available control strategies

4.2 Scalar Control

The simplest method to control a PMSM is scalar control, where the rela-tionship between voltage or current and frequency are kept constant throughthe motors speed range. The frequency is set according to the wanted syn-chronous speed and the magnitude of the voltage/current is adjusted to keep

12

Page 23: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

the ratio between then constant. No control over angles is utilized, hencethe name scalar control. The method uses an open-loop control approachwithout any feedback of motor parameters or its position. This makes themethod easy to implement and with low demands on computation powerof the control hardware, but its simplicity also comes with some disadvan-tages. One of them are instability of the drive system after exceeding acertain applied frequency, to overcome this the rotor has to be constructedwith damper windings to assure synchronization of the rotor to the electricalfrequency [11]. This will limit the number of design choices for the rotor,e.g. the magnets has to be located on the inside of the damper bars. MostPMSM are therefore constructed without damper windings, and they arenot suitable for traditional scalar control. Another drawback with the lackof feedback is the systems low dynamic performance, which limits the use ofthis control method to e.g. fan- and pump-drives [11]. For applications thatdemands high dynamic performance, vector control is recommended. Oneway to improve the performance without the use of position feedback is touse the variations in the inverters DC link voltage to determine the correctmodulation [12] [13].

4.3 Vector Control

With control of both magnitude and the angle of the flux it is possible toachieve higher dynamic performance of the drive system than scalar controlcan offer. Two different types of strategies exist for vector control, FieldOriented Control and Direct Torque Control.

4.3.1 Field Oriented Control (FOC)

In Field Oriented Control the goal is to control the direct- and quadrature-axis current id and iq to achieve the requested torque, equation (3.20) showsthe torque as a function of the current components. By controlling id andiq independently it’s possible to achieve a Maximum Torque Per Ampereratio (MPTA) to minimize the current needed for a specific torque, whichmaximizes the motors efficiency.

For a non-salient machine i.e. Ld = Lq, the control is easy to implement.From equation (3.20) it can be seen that a motor without saliency cannotproduce any reluctance torque. id has therefore no effect on torque produc-tion, and it needs to be zero at all times to reach MPTA. The torque curveswill be linear in the dq-plane and the MPTA trajectory will be along thequadrature-axis.

For a salient machine, i.e. Ld 6= Lq the control is a bit more difficult toimplement since the motor produces both electromechanical and reluctancetorque, see to equation (3.20). That’s why the torque as a function of current

13

Page 24: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

in the dq-plane is no longer linear. To reach MPTA, the minimum distancefrom the origin to the curve of requested torque has to be calculated.

A number of different methods for calculating the optimal currents arementioned in the literature, for example in [2], [14], and [15] further de-scribed below.

One of the critical parameters for FOC the need of correct informationof the motors position. The most common way to do this is Indirect FOC(IFO), where a mechanical sensor coupled to the motors shaft is used forpositioning. Another type is Direct FOC (DFO) where the position is esti-mated from the flux- or back EMF vector [15].

Other critical parameters are the varying values of inductances Ld andLq as they constantly changing during different operating conditions due tosaturation etc. The direct axis inductance is more affected, which gives themotor a higher saliency ratio.

Normalization of Variables

This method was introduced by Jahns et al.[14] in 1986 as a method forstator current vector control. The article describes how to normalize theparameters and express the torque equation in a p.u.-system, with the motorparameters eliminated from the equation. The normalized torque is thenexpressed as.

Ten = iqn(1− idn) (4.1)

The total current in can be expressed as the modulus of idn and iqn

in =√i2dn + i2qn = 1 (4.2)

By combine (4.1) and (4.2), differentiate the expression with respect to idnand iqn, setting the results to zero and solving the two expressions for Ten.The torque can then be expressed as a function of either idn or iqn.

T ∗en =

√i∗dn(i∗dn − 1

)3(4.3)

T ∗en =i∗qn2

(1 +

√1 + 4(i∗qn)2

)(4.4)

A derivation of the equation used in this method can be seen in appendixA.1.

Polar Coordinates

Another method for calculating the optimal current trajectory is to trans-form the torque equation in the dq reference frame into polar coordinates[2]. By substituting id and iq with its corresponding expressions in polar co-ordinates illustrated in figure 4.2 a new equation for the torque is obtained.

14

Page 25: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

d

q

id

iqis

α

Figure 4.2: Rectangular and polar coordinates

id = iscos(α) (4.5)

iq = issin(α) (4.6)

α = arctan

(iqid

)(4.7)

The torque equation can then be expressed as a function of the stator currentis and the current vector angle α.

Te =3

2

p

2

[λpmissin(α) + (Ld − Lq)i2s

1

2sin(2α)]

](4.8)

By differentiate equation (4.8) with respect to α, setting the result to zeroand reverse substitute the variables, following expression is given.

λpmid + (Ld − Lq)i2d − (Ld − Lq)i2q = 0 (4.9)

From equation (4.9) the direct-axis current can the be expressed as an func-tion of stator current magnitude |is|

i∗d =λm

4(Ld − Lq)−√

λ2m16(Ld − Lq)2

+|i∗s|2

2(4.10)

And the quadrature-axis current can be solved from the current modulusequation.

i∗q =√|i∗s|2 − i∗d2 (4.11)

Saliency Ratio

A third method for calculating the optimal current trajectory is presented inAdvanced Electrical Drives: Analysis, Modelling, Control [15]. By normalizethe variables, introducing the saliency ratio χ and short circuit ratio κ, thetorque equation can be expressed as.

Tne = insq

(1− 2χ

κisdn

)(4.12)

15

Page 26: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Where.

iscs =λpm√

L2sd + L2

sq

(4.13)

insd =isdimaxs

(4.14)

insq =isqimaxs

(4.15)

κ =iscsimaxs

(4.16)

χ =Lsq − Lsd

2Lsd(4.17)

The term imaxs represents the maximal stator current. The normalizeddirect- and quadrature currents are then expressed as.

insd =κ

8χ−√

(ins )2

2+

)2

(4.18)

insq =√

(ins )2 − (insd)2 (4.19)

4.3.2 Direct Torque Control (DTC)

Direct Torque Control was first introduced for induction motors (IM) byTakahashi and Noguchi [16] in 1984 and the Direct Self Control methodby Depenbrock [17] in 1985. The methods were characterized by their sim-plicity, good performance and robustness. Unlike the FOC method, DTCworked without any external measurement of the rotors mechanical posi-tion. However, to ensure correct rotational direction of a PMSM, the rotorposition shall be known at motor start up. The reason behind the simplicityis that DTC not require any current regulators, transformations to rotatingreference frame or PWM generators.

The disadvantages are, difficulty to control torque at low speed, highcurrent and torque ripple, variable switching frequency, high noise level atlow speed and lack of direct current control. It is also important to do acorrect estimation of the dc-link voltage and stator resistance to get stabilityof the drive system [18].

There are a number off different suggestions for improving the charac-teristics of DTC, such as.

• Improved switching tables and increasing the number of sectors [19][20].

• Using multilevel hysteresis comparators [20].

16

Page 27: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

• Fixed frequency switching with PWM or Space Vector Modulation(SVM) [20] [21]

The working principle for the basic DTC is to select a voltage vector basedon the error between requested and actual values of torque and flux linkage,it also uses a ruff position estimation that divides one electrical revolutioninto six sectors depending on the flux linkage angle. A basic scheme forDTC can be seen in figure 4.3, the different blocks are described below [22].

Voltage Transform

Sa

Sb

Sc

Vd

Vq

Voltage Souce Inverter

Sa

Sb

Sc

a

b

c

TorqueHysteresiscontroller

Sector Calculator1

Flux_alpha

Flux_betaTorque

Sector Calculator

Flux_beta

Flux_alphaSector

PM Motor

a

b

c

Ia

Ib

Ic

Look−up Table

Flux diff

Torque diff

Sector

Sa

Sb

Sc

Flux EstimatorVq

Vd

I_alpha

I_beta

Flux d

Flux q

FluxHysteresiscontroller

Current transform

Ib

Ia

I_alpha

I_beta

TorqueRef

Abs

|u|

FluxRef

Figure 4.3: Basic DTC control layout

Current Transform

The measured motor currents are calculated with the Clarke transform fromABC phase reference frame into the αβ reference frame, as described insection 3.2.1

Voltage Transform

The voltage uest is estimated from the inverters switching state and theDC-link voltage in the αβ reference frame by the voltage equation [18] [22].

uest(SABC) =

√2

3

Udc2

(SAe

j0 + SBej 2π

3 + SCej 4π

3

)−√

2

3

(uAe

j0 + uBej 2π

3 + uBej 4π

3

)(4.20)

Where uABC is the voltage loss in the power switches and SABC is the stateof the power switches, further described under Voltage Source Inverteron page 20.

17

Page 28: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Flux Estimator

From the transformed voltages and currents it’s possible to estimate thestator flux λαβ,est, see equation (4.21).

λαβ,est =

∫(vαβ −Rsiαβ)dt (4.21)

The magnitude of the estimated flux λαβ,est is calculated and compared withthe requested flux λ∗αβ.

Torque Calculation

By divide equation (3.19) with the motors mechanical rotational speed ωmand replace the variables with the transformed ones, an expression for a fluxand current depending torque is acquired.

Te,est =3

2

p

2(λsαisβ − λsβisα) (4.22)

The estimated torque Te,est is calculated and compared with the requestedtorque T ∗e .

Torque and Flux Hysteresis Comparator

To determine the correct control commands one flux and one torque hystere-sis comparators are used. The comparators evaluate the difference betweenrequested values and estimated values, and thereby determine if the flux andtorque vectors should be:

• Increased - Output is 1

• Decreased - Output is -1

• Constant - Output is 0

The torque comparator works with all three levels, whereas the flux com-parator only works with two levels, since the stator flux can’t be kept con-stant during operation of the permanent magnet motor.

Sector Calculation

To determine the motors operating sector, the flux vector angle θλs has tobe calculated from the estimated flux with equation (4.23).

tan−1(θλs) =λβλα

(4.23)

Depending on the angle of the flux vector, the correct sector S1−6 is chosen,see figure 4.5.

18

Page 29: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

error

state

1

−1

(a) Flux: two level

error

state

1

−1

(b) Torque: three level

Figure 4.4: Hysteresis comparators

α

β

~u1

~u2~u3

~u4

~u5 ~u6

S2S3

S4

S5 S6

S1

~λsθλs

Figure 4.5: Sector division

19

Page 30: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Look Up Table

The states from the hysteresis comparator (dλ, dT ) are read by the look-upblock together with the calculated sector number, and from table 4.1 thecorrect voltage vector is chosen. Table 4.2 show the corresponding switch

Table 4.1: Basic DTC switching table

Sector1 2 3 4 5 6

dλ = +1dT = +1 ~u2 ~u3 ~u4 ~u5 ~u6 ~u1dT = 0 ~u0 ~u7 ~u0 ~u7 ~u0 ~u7dT = −1 ~u6 ~u1 ~u2 ~u3 ~u4 ~u5

dλ = −1dT = +1 ~u3 ~u4 ~u5 ~u6 ~u1 ~u2dT = 0 ~u7 ~u0 ~u7 ~u0 ~u7 ~u0dT = −1 ~u5 ~u6 ~u1 ~u2 ~u3 ~u4

position for the inverter to achieve the selected voltage vector.

Table 4.2: Switch positions and their corresponding voltage vector

SA SB SC SA SB SC~u1 1 0 0 ~u4 0 1 1~u2 1 1 0 ~u5 0 0 1~u3 0 1 0 ~u6 1 0 1~u0 0 0 0 ~u7 1 1 1

4.3.3 Voltage Source Inverter

Both FOC and DTC strategies require an inverter to convert the low voltagecontrol signals to high voltage to drive the motor. The inverter is connectedto the motor terminals as seen in figure 4.6 and is controlled by three signalSA,B,C . Each signal controls both high h and low l side switches of thecorresponding phase. When signal SA is high, switch Ah is turned on whileswitch Al turned off. When signal SA is low, switch Ah is turned off whileswitch Al turned on. Same method is applied for the other two phases Band C.

20

Page 31: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Al

Ah

Bl

Bh

Cl

Ch

+

Udc

Ls

Ls

Ls

a

b

c

Figure 4.6: Output stage of a two level three phase voltage source inverterwith an ideal three phase motor model connected

In this thesis the FOC inverter is controlled by a hysteresis controller, butit could also be done by using for example SPWM or SVPWM modulation.The DTC controls the inverter from the look up block using table 4.1 and4.2.

21

Page 32: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 5

Field oriented control ofdifferent rotor geometries

5.1 Introduction

Depending of the different rotor geometries discussed in chapter 2, the cur-rent control strategies differs. The non salient type has a linear currenttrajectory, while the salient ones have a curved current trajectory. Themain difference between positive and negative saliency is that the directaxis current is mirrored over the quadrature axis because of the inversion ofLd and Lq.

5.2 Non Salient Pole Machines (SPMSM)

For a non-salient pole machine the direct- and quadrature-axes inductancesare equal, assuming steady state operation. The torque equation (3.20) canhence be simplified to (5.1).

Te =3

2

P

2[λpmIsq] (5.1)

From (5.1) it can be seen that the only torque producing current is along thequadrature-axis. To reach maximum efficiency of the machine, you wouldlike maximize the torque per ampere relationship (MPTA). This is easilyachieved by keeping the direct-axis current to zero at all times. The controlsystems reference currents i∗q and i∗d can easily be calculated from (5.2) and(5.3).

i∗q =T ∗e

32P2 λpm

(5.2)

i∗d = 0 (5.3)

22

Page 33: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

5.3 Negative Salient Pole Machines (NSPMSM)

For a salient pole machine the direct- and quadrature-axes inductances areunequal, the most common type is the NSPMSM where Ld < Lq. Assumingsteady state operation, the torque equation(3.21) simplifies to.

Te =3

2

P

2[λpmIsq − (Lq − Ld)IsdIsq] (5.4)

From (5.4) it can be seen that there are two terms affecting the torque pro-duction, the electromechanical torque 3

2P2 λpmIsq and the reluctance torque

32P2 (Ld − Lq)IsdIsq.

To visualize the current control strategy, the normalization method men-tioned in chapter 4.3.1 is used. Rearranging (4.1) to.

iqn =Ten

1− idn(5.5)

From equation (5.5) the constant torque loci can be plotted in the dq-plane.By setting (4.3) and (4.3) equal and solving it for direct axis current, anequation for the MPTA curve is obtained.

i∗dn =1

2

(1−

√1 + 4(i∗qn)2

)(5.6)

Figure 5.1 show the normalized torque loci, MPTA current trajectory andthe maximum current circle plotted on the dq plane. The maximum currentis,max is determined either by the inverters output transistors or the statorwindings, and in normalized terms the maximum current is always 1.

−2 −1.5 −1 −0.5 0 0.5 1 1.5 20

0.5

1

1.5

2

idn

i qn

Current trajectoryTorque loci

Figure 5.1: Constant torque loci and current trajectory for MTPA

Figure 5.2 shows the individual direct and quadrature axis currents.

23

Page 34: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

0 0.5 1 1.5 2 2.5 3−2

−1

0

1

2

Normalized torque

Norm

alized

current

IqId

Figure 5.2: Direct- and quadrature-axis currents reference

The maximum voltage Vs,max is limited by either the inverters dc-linkvoltage or the stator windings insulation, this voltage limit will determinethe motors base speed. By rearranging the voltage equation (5.7) to equation(5.8).

Vs = ωs

√λ2d + λ2q = ωs

√(λpm + Lsdisd)2 + (Lsqisq)2 (5.7)(

Vsωs

)2

=

(isd + λpmL

−1sq

)2L−2sd

+i2sq

L−2sq(5.8)

Which describes an ellipse with its centre in −λpmL−1sq and the axes.

a =Vsωs

Lsd

b =Vsωs

Lsq

The ellipse defines another current limit. The motors operating point has tobe inside both the current circle and the voltage ellipse. As the ellipse shrinkswhen the speed increases, the previously calculated current references arenot valid above base speed. The reason is the generated emf from the motor,as the speed increases the motors induced back emf increases as well. Whenthe back emf exceeds the inverters dc-voltage, it can no longer continuedelivering current along the requested trajectory. A different control methodhas to be implemented to be able to run the motor above base speed withoutat drastic drop in torque. The common way of doing this on traditionalsynchronous motors is to reduce the rotors field current, thus reducing theair gap flux. This method is called field weakening. But for a PMSMthe magnets can obviously not be controlled, so the air gap flux has to beweakened by other means. The method is called flux weakening and theweakened air gap flux is achieved by decreasing the direct axis current.

24

Page 35: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

5.4 Positive Salient Pole Machines (PSPMSM)

Another type of the salient pole machine is the PSPMSM where Ld > Lq,the difference in inductances makes the current reference calculated for theNSPMSM invalid. The torque equation (5.4) is the same, but for the samecurrent reference the motor produces a negative reluctance torque, counter-acting the electromagnetic torque. A solution for this is derived in appendixA.1 with a newly defined base current, the order of Lmd and Lmq is switchedto keep the base current positive.

ib =λpm

(Lsd − Lsq)(5.9)

This new base current gives after recalculation of the derivation in appendixA.1 a new equation for the electromechanical torque in p.u.

Ten = iqn(1 + idn) (5.10)

To visualize the torque loci.

iqn =Ten

1 + idn(5.11)

Figure 5.3 show the normalized torque loci, MPTA current trajectory, max-imum current circle and voltage ellipse plotted on the dq plane. Figure 5.4

−2 −1.5 −1 −0.5 0 0.5 1 1.5 20

0.5

1

1.5

2

idn

i qn

Current trajectoryTorque loci

Figure 5.3: Constant torque loci and current trajectory for MTPA

shows the individual direct and quadrature axis currents.

25

Page 36: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

0 0.5 1 1.5 2 2.5 3−2

−1

0

1

2

Normalized torque

Normalized

current

IqId

Figure 5.4: Direct- and quadrature-axis currents reference

26

Page 37: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 6

Simulink models

6.1 Introduction

All simulations have been implemented in Simulink, the software provides aninteractive graphical environment and a customizable set of block librariesthat let you design, simulate, implement and test a variety of time-varyingsystems. This makes it simpler to visualize and rapidly develop a controlsystem unlike traditional C or Matlab-code.

The scalar control was ruled out already in the literature study as auseful candidate for electric vehicles because of its poor performance. Thetwo control methods chosen for simulation are basic version of Field OrientedControl and Direct Torque Control, without any special solutions to getaround eventual problems in the methods. This is done mainly to investigatethe behaviour of the different methods.

6.2 Existing Simulink Control

One aim of this work was to investigate if the existing ”Simulink ac6 IPMSM”example could be used for verifying the behaviour of the motor, the con-troller consists of two major blocks for speed-/torque- and vector-control.Looking at the vector controller it can be seen that the first part (figure 6.1)outputs the direct- and quadrature-axis current references, the second partgenerates the pulses to the inverter with a hysteresis controller.

27

Page 38: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Ten iqn1/Teb

1 − u(2)/u(1)

Flux*

2

Torque*

1 Ten

idn

iqn

Optimal iqn

Flux weakening constant

Figure 6.1: Current calculation of the existing Simulink model

Since the controller calculates direct- and quadrature-axis currents ref-erences it can be classified as a Field Oriented Control. The equations thatgovern the behaviour are.

Ten =T ∗

Teb(6.1)

iqn =

√412Ten + 1− 1

212

(6.2)

idn = 1− Teniqn

(6.3)

Equation (6.1) and (6.3) are the same as the ones derived in appendix A.5,whereas equation (6.2) differs. Given the complexity of equation (A.17) itcan be safe to assume that the Simulink version is an approximated versionof the analytically solved one, the difference between them can be seen inthe simulation result in figure 6.2. The simulation shows that the differentequations gives approximately the same result for normal operation and inthe beginning of flux weakening region, far into flux weakening region thedifference between direct axis currents increases.

The model implements flux weakening by using a pre calculated values ina look up table, the value is between 1-0 and is used to reduce the quadratureaxis current by a certain percentage for the pre calculated operation point.

28

Page 39: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

0 0.5 1 1.5 2 2.5 30.2

0.4

0.6

0.8

Time [s]

Current[A

] AnalyticalSimulink

(a) Quadrature axis currents

0 0.5 1 1.5 2 2.5 3−0.8

−0.6

−0.4

−0.2

Time [s]

Current[A

] AnalyticalSimulink

(b) Direct axis current

Figure 6.2: Difference between analytical and Simulink model direct- andquadrature-axis currents

6.3 Field Oriented Control

The field oriented control model is based on the existing Simulink modeldiscussed in the previous section and modified with the changes of basecurrent and quadrature axis current calculation proposed in chapter 5.4. Theexisting speed/torque controller has also been replaced with a PI-regulatorwith a speed error signal as input and a torque request as output, and themotor parameter (table 2.2) has been changed to conform to the new motor.An overview of the controller and its most important blocks can be seen inappendix B.1

6.4 Direct Torque Control

The direct torque model has been developed to use the same speed controland motor parameters as the field oriented one, an overview of the controllerand its most important blocks can be seen in appendix B.2. The two blocksfor sector and vector calculation are not built using Simulinks ”symbolicprogramming”, but rather in conventional Matlab code. They consist of a

29

Page 40: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

number of switch statements that selects between a number of appropriateoutputs depending on the input state and can bee seen in appendix B.2.1and B.2.2

30

Page 41: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 7

Simulation and results

7.1 Field Oriented Control

All simulations were done with a DC link voltage of 325V dc an 20µs sampletime, the torque is also limited to max 30Nm. Figure 7.1 shows a simulationfrom stand still up to 300rad/s with a load of 15Nm. The simulation consistsof two phases, an accelerating part and a constant speed part. During theaccelerating part the motor delivers full torque until it reaches its referencespeed, the torque then drops to the same value as the load to keep the speedconstant.

The simulation also shows a high ripple in both torque and current.

31

Page 42: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

0 5 · 10−2 0.1 0.150

100

200

300

Time [s]

Speed[rad

/s]

(a) Speed

0 5 · 10−2 0.1 0.15

10

20

30

40

Time [s]

Torque[N

m]

(b) Torque

0 2 · 10−24 · 10−26 · 10−28 · 10−2 0.1 0.12 0.14 0.16 0.18

−50

0

50

Time [s]

Current[A

]

(c) Phase currents

Figure 7.1: Simulation of FOC with a 15Nm load

Figure 7.2 shows a comparison of the reference and measured currentduring a linear torque ramp from 0−20Nm at a constant speed of 200rad/s.The measured current is then normalized for comparison. It shows that theaverage value is approximately the same, but the current ripple for themeasured one is very high.

32

Page 43: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

0

0.5

1

Normalized torque

Norm

alized

current

IdIq

(a) Measured currents

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

0

0.5

1

Normalized torque

Normalized

current

IqId

(b) Reference currents

Figure 7.2: Measured and Reference currents

7.2 Direct Torque Control

The following results of the DTC are from a simulation where the motor isrunning at a fixed speed of 200rad/s with a 20Nm load.

Figure 7.3a show the hysteresis bands, torque and flux path for onerevolution of the motor, the sample time is 20µs. It can be seen that thecontrol keeps the flux within its 0.02Wb wide hysteresis band, the torquehowever shows a ripple of 5Nm which is larger than the 2Nm wide hysteresisband.

33

Page 44: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

−0.2 0 0.2

−0.2

0

0.2 FluxHysteresis band

(a) Flux path for one revolution of the whitesmotor

−20 0 20

−20

0

20 TorqueHysteresis band

(b) Torque path for one revolution of themotor

Figure 7.3: Hysteresis control with sample time of 20µs

Figure 7.4 show the hysteresis bands, torque and flux path for one revo-lution of the motor, but with a sample time of 2µs. It clearly seen that theboth torque and flux is inside their limits.

−0.2 0 0.2

−0.2

0

0.2 FluxHysteresis band

(a) Flux path for one revolution of the whitesmotor

−20 0 20

−20

0

20 TorqueHysteresis band

(b) Torque path for one revolution of themotor

Figure 7.4: Hysteresis control with sample time of 2µs

As seen in figure 7.5 the estimated sector is lagging the measured sector,at 200rad/s the period time is approximately 32ms and the time differenceis between 0.6− 0.8ms. This corresponds to a difference in angle of 7− 9.

34

Page 45: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

6 · 10−2 7 · 10−2 8 · 10−2 9 · 10−2 0.1 0.11 0.12 0.13

2

4

6

Time [s]

Sector

Real SectorEstimated Sector

Figure 7.5: Comparison between measured and estimated sector

7.3 Comparison of FOC and DTC

To compare the two control methods they were run side by side with thesame parameters, the following simulation was done with no load and withthree speed steps. Figure 7.6 shows the speed reference and speed responseof the motor. The two methods show no significant difference in behaviour.Figure 7.7 shows the torque produced during the run, the maximum torque

0 2 · 10−24 · 10−26 · 10−28 · 10−2 0.1 0.12 0.14 0.16 0.18 0.2

0

100

200

300

Time [s]

Speed[rad

/s] FOC

DTCReference

Figure 7.6: Comparison between speed response for FOC and DTC

is limited to 30Nm by the speed controller. The FOC has approximately60% higher torque ripple than DTC during high torque operation, DTCtorque ripple stays constant independent of the load situation. The torqueripple is between 15% − 30% in this case, high torque ripple is undesirablebecause of the strain it will put in the rest of the drive train. Figure 7.8and 7.9 shows the phase currents for FOC respective DTC, here a significantdifference between the methods can be seen. For the FOC the phase currentsgoes close to zero as the torque goes to zero, but for DTC the currents stayrelatively high. The reason for that behaviour can be seen in figure 7.10 and7.11

35

Page 46: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

0 2 · 10−24 · 10−26 · 10−28 · 10−2 0.1 0.12 0.14 0.16 0.18 0.2−40

−20

0

20

40

Time [s]

Torque[N

m] FOC

DTC

Figure 7.7: Comparison between torque response for FOC and DTC

0 2 · 10−24 · 10−26 · 10−28 · 10−2 0.1 0.12 0.14 0.16 0.18 0.2

−50

0

50

Time [s]

Current[A

]

Figure 7.8: FOC phase currents

0 2 · 10−24 · 10−26 · 10−28 · 10−2 0.1 0.12 0.14 0.16 0.18 0.2

−50

0

50

Time [s]

Current[A

]

Figure 7.9: DTC phase currents

36

Page 47: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Looking at the figures it can be seen that for the DTC there is no controlover the direct axis current like the FOC, and that there is a constant flowof current even as the load is zero. This is due to the constant flux referenceused, it is clearly seen that a function that calculates the optimum fluxdependent of the load situation has to be introduced in the model to makethe drive energy efficient.

0 2 · 10−24 · 10−26 · 10−28 · 10−2 0.1 0.12 0.14 0.16 0.18 0.2

−50

0

50

Time [s]

Current[A

] IqId

Figure 7.10: FOC dq currents

0 2 · 10−24 · 10−26 · 10−28 · 10−2 0.1 0.12 0.14 0.16 0.18 0.2

−50

0

50

Time [s]

Current[A

] IqId

Figure 7.11: DTC dq currents

37

Page 48: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Chapter 8

Conclusion

Current control of electric motor is important not only for torque control,but also for reaching maximum efficiency. The FOC and DTC methods havebeen simulated and compared to find their advantages and disadvantages.

The DTC is often referred in literature as simple, which might be true forthe math needed in the control systems calculations but during this projectit has been quite tricky to get it to work properly. It has shown a hightendency to be very unstable, especially when considering the choice of theresistance parameter in the motor model and flux estimator. The DTC isalso considered to have high torque and current ripple that can be somewhatreduced by decreasing the sample time, which has been proven to be correct.It would also be possible to reduce the ripple further by implementing someof the improvement of DTC suggested, such as Space Vector Modulation(SVM-DTC).

The FOC is normally considered to need more complex calculations torun, but with less torque and current ripple. The simulations have shownthat the FOC has higher torque ripple then the DTC, but this is due to thechoice to use hysteresis current control and not PI regulators. With the useof more precise current control and the use of SPWM or SVPWM it shouldbe possible to reduce the torque ripple.

8.1 Future work

The results have shown that there are room for improvements of the modelsused, some of them are.

• Reduction of torque ripple for FOC, PI current controller and SPWMor SVPWM inverter switching.

• Flux calculation for DTC, to reach MTPA the flux level has to matchthe motors operating point.

38

Page 49: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

• Reduction of torque ripple for DTC, for example implementation ofSVM-DTC.

• Flux weakening of PSPMSM, for some motors and applications itmight be needed to increase the motors speed range.

• New motor model and control system with a saturation model,

• Saturation, how much will the saturation affect the motor? Develop-ment of new motor model and control.

• Hardware construction of the inverter and testing/verifying the theory.

39

Page 50: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Appendix A

Derivations

A.1 Normalization of negative saliency motor

For a negative saliency pole machine the direct- and quadrature-axes induc-tances are unequal (Ld < Lq). Assuming steady state operation, the torqueequation(3.20) can then be simplified to (A.1).

Te =3

2

P

2[λpmIsq − (Lmq − Lmd)IsdIsq] (A.1)

To simplify calculations it can be preferred to do them with normalizedvariables, to achieve this we introduce normalized variables for torque Tenand the direct- and quadrature- current components.

Ten =TeTeb

(A.2)

iqn =isqib

(A.3)

idn =isdib

(A.4)

And defining base values for torque Teb and current ib.

ib =λpm

(Lsq − Lsd)(A.5)

Teb =3

2

P

2λpmib (A.6)

Equation (A.1) and (A.5) into (A.6) gives an expression for the normalizedtorque.

Ten =TeTeb

=32P2 [λpmIsq − (Lsq − Lsd)IsdIsq]

32P2 λpmib

=

40

Page 51: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

32P2 [λpmIsq − (Lsq − Lsd)IsdIsq]

32P2

λ2pm2

(Lsq−Lsd)

=Isqλpm

(Lsq−Lsd)− (Lsq − Lsd)IsdIsq

λ2pm(Lsq−Lsd)

Ten =Isqib

(1− Isd

ib

)(A.7)

Which gives normalized electromechanical torque.

Ten = iqn(1− idn) (A.8)

By rearranging (A.8) we can plot the constant torque loci, see Figure 5.1.

iqn =Ten

1− idn(A.9)

or

idn = 1− Teniqn

(A.10)

To reach maximum efficiency of the machine , you would like maximize thetorque per ampere relationship (MPTA). This is done by minimizing thedistance from origin to the torque locus of desired torque, which gives theminimum stator current for a specified reference torque.

i2n = i2dn + i2qn = i2dn +

(Ten

1− idn

)2

(A.11)

or

i2n = i2dn + i2qn =

(1−

(Teniqn

))2

+ i2qn (A.12)

By differentiating (A.11) with respect to idn and setting the result to zero,the relationship between torque- and direct-axis current-references can beobtained.

∂i2n∂idn

= 2Idn − 2T 2en

(idn − 1)3= 0⇒ (A.13)

T ∗en =

√i∗dn(i∗dn − 1

)3(A.14)

Or from (A.12) the relationship between torque- and quadrature-axis current-references can be obtained.

∂i2n∂iqn

= 2iqn −2Ten

(Teniqn− 1)

i2qn= 0⇒ (A.15)

T ∗en =i∗qn2

(1 +

√1 + 4(i∗qn)2

)(A.16)

41

Page 52: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

To be able to get the reference currents, equation (A.14) or (A.16) has tobe solved. The solution of (A.16) for iqn is.

iqn =1

2

√A+B − C − 1

2

√D (A.17)

Where:

A =4 3

√23T

2en

3

√9T 2

en +√

3√

256T 6en + 27T 4

en

B =2Ten√

3√

9T 2en+√3√

256T 6en+27T 4

en

3√23 23

− 4 3√

23T 2en

3√

9T 2en+√3√

256T 6en+27T 4

en

C =

3

√9T 2

en +√

3√

256T 6en + 27T 4

en

3√

2323

D =

3

√9T 2

en +√

3√

256T 6en + 27T 4

en

3√

2323

−4 3

√23T

2en

3

√9T 2

en +√

3√

256T 6en + 27T 4

en

The direct axis current reference can then be calculated with equation(A.10) from the reference torque and quadrature axis current.

A.2 Normalization of positive saliency motor

For a positive saliency pole machine the direct- and quadrature-axes induc-tances are unequal (Ld > Lq). The derivation follows the same steps as inappendix A.1, but with a different base current

ib =λpm

(Lsd − Lsq)(A.18)

Which gives the normalized torque.

Ten = iqn(1 + idn) (A.19)

By rearranging (A.19) we can plot the constant torque loci, see figure 5.3

iqn =Ten

1 + idn(A.20)

or

idn =Teniqn− 1 (A.21)

42

Page 53: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

And the torque as a function of direct- and quadrature-currents will be.

T ∗en =

√i∗dn(i∗dn + 1

)3(A.22)

T ∗en =i∗qn2

(1 +

√1 + 4(i∗qn)2

)(A.23)

Since equation (A.23) and (A.16) are the same, equation (A.17) is valid alsofor a positive saliency motor. But the direct axis current is not the sameand has to be calculated from equation (A.21).

A.3 Polar coordinates

The magnitude of the stator armature current Is can be expressed as func-tion of the direct and quadrature axis currents Id and Iq.

|Is| =√I2d + I2q ≤ Ism (A.24)

The direct and quadrature axis currents can be expressed as a function ofarmature current and its angle α.

Id = |Is|cos(α) (A.25)

Iq = |Is|sin(α) (A.26)

α = arctan

(IqId

)(A.27)

From (A.25) and (A.26) into the torque equation(3.20) we get.

Te =3

2

P

2

[λpm|Is|sin(α) + (Ld − Lq)|Is|2sin(α)cos(α)

]⇔

Te =3

2

P

2

[λpm|Is|sin(α) + (Ld − Lq)|Is|2

1

2sin(2α)]

](A.28)

By differentiating (A.28) with respect to α and setting the result to zero,we get an equation for the Maximum Torque Per Ampere trajectory.

∂Te∂α

=3

2

P

2

[λpm|Is|cos(α) + (Ld − Lq)|Is|2cos(2α)

]= 0 (A.29)

From (A.25) and (A.26) into (A.29) we get

3

2

P

2

[λpm|Is|cos(α) + (Ld − Lq)|Is|2(cos2(α)− sin2(α))

]= 0⇔

λpmId + (Ld − Lq)I2d − (Ld − Lq)I2q = 0 (A.30)

43

Page 54: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

From (A.30) we get

Id = − λm2(Ld − Lq)

+

√λ2m + 4I2qL

2d − 8IqLdLq + 4I2qL

2q

4(Ld − Lq)2⇔

Id = − λm2(Ld − Lq)

+

√λ2m

4(Ld − Lq)+ I2q (A.31)

To eliminate iq, equation (A.24) is used

Id = − λm2(Ld − Lq)

+

√λ2m

4(Ld − Lq)+ |Is|2 − I2d

Then solving for Id, we get Id as a function of |Is|

Id = − λm4(Ld − Lq)

+

√8|Is|2(Ld − Lq)2 + λ2m

16(Ld − Lq)2⇔

Id = − λm4(Ld − Lq)

+

√λ2m

16(Ld − Lq)2+|ism|2

2(A.32)

And Iq is obtained from equation (A.24)

Iq =√|is|2 − i2d (A.33)

44

Page 55: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Appendix B

Simulink model

B.1 Field Oriented Control Schematics

powergui

Discrete,Ts = 2e−005 s.

VECT controller

Torque*

teta

I_abc

gates

TorqueLoad

15

Three−phase Inverter

g

A

B

C

+

Three−PhaseV−I Measurement

Vabc

IabcA

B

C

a

b

c

SpeedStep Rate Transition

NoOp

PMSM

mA

B

C

Tm

PI

PI(z)

<Rotor angle thetam (rad)>

Torque*

<Rotor speed wm (rad/s)>

Figure B.1: Main controller

45

Page 56: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

gates

1

1/z

Te*_to_Idq*

Te*

Iq*

Id*

Switching control

Pulses RF Pulses

Gain1

nb_p

DQ−ABC

Iq*

Id*

Teta

Iabc*

Current Regulator

Iabc*

Iabc

Pulses

I_abc

3

teta

2

Torque*

1

Figure B.2: Current controller / VECT controller

Id*

2

Iq*

1

Ten*_to_Iqn*

Ten* iqn*

Ten*,Iqn*_to_Idn*

Ten*

Iqn*Idn*

Ten*

1/Teb

−ib

ib

Te*

1

Figure B.3: Torque to currents

iqn*

1

Ten*_to_Iqn

f(u)

Sign

Abs

|u|

Ten*

1

Figure B.4: Torque to quadrature axis current

Idn*

1(u(1)/(u(2))−1)

Iqn*

2

Ten*

1

Figure B.5: Torque to direct axis current

46

Page 57: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Iabc*

1

ic

ib

f(u)

ia

f(u)

MuxMux

1

1

1

cos(u)

sin(u)

Teta

3

Id*

2

Iq*

1

Figure B.6: Direct- and Quadrature-axis currents to ABC currents

Pulses

1

NOT

NOT

NOT

Demux

Demux

ConvertConvert

ConvertConvert

ConvertConvertIabc

2

Iabc*

1

Figure B.7: Current regulator

RF Pulses1Demux

Control 5−6

S

R

S_Limited

!S_Limited

Control 3−4

S

R

S_Limited

!S_Limited

Control 1−2

S

R

S_Limited

!S_Limited

Pulses1

Figure B.8: Pulse generator

47

Page 58: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

B.2 Direct Torque Control Schematics

powergui

Discrete,Ts = 2e−005 s.

Voltage estimator

Sa

Sb

Sc

Us a

Us B

Vector Selector

dY

dT

sector

Sa

Sb

Scfcn

TwoLevelHysteresis

Torque Calculator

Ya

YB

Ia

IB

T_est

Torque

15

ThreeLevelHysteresis

TorqueDiff dT

SpeedStep

Sector Calculator

Flux_Alpha

Flux_Betasector

fcn

Rs

0.25

Rate Transition

Puls generation

Sa

Sb

Sc

pulses

PMSM

mA

B

C

Tm

PI

PI(z)

Inverter

g

Vabc

Iabc

a

b

c

Flux*

0.2

Flux EstimatorUs alfa

Us beta

Is alfa

Is beta

Rs

Ya

YB

YsClarke_Iabc_to_IaB

abc

alfa

beta

Rotor Speed [rad/s]

Figure B.9: Main controller

beta2

alfa1

Fcn beta

sqrt(2/3)*(0*u(1) + (sqrt(3)/2)*u(2) − (sqrt(3)/2)*u(3))

Fcn alfa

sqrt(2/3)*(u(1)−0.5*u(2)−0.5*u(3))

abc

1

Figure B.10: Clarke current transformation

Ys3

YB2

Ya1

Subtract1

Subtract

Real−Imag toComplex

Re

Im

Product1

Product

Gain8

1

Gain1

1

Discrete−TimeIntegrator1

K Ts

z−1

Discrete−TimeIntegrator

K Ts

z−1

Abs

|u|

?

0.125

Rs

5

Is beta

4

Is alfa

3

Us beta

2

Us alfa

1

Figure B.11: Flux estimator

48

Page 59: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Iabc

2

Vabc

1

c

3

b

2

a

1

Universal Bridge

g

A

B

C

+

Three−PhaseV−I Measurement

Vabc

IabcA

B

C

a

b

c

g

1

Figure B.12: Two level inverter

pulses1

NOT

NOT

AND

AND

AND

NOT

Sc

3

Sb

2

Sa

1

Figure B.13: Pulse generator

T_est1

Subtract

Product1

Product

Gain

((3*2)/4)*1.33

IB

4

Ia

3

YB

2

Ya

1

Figure B.14: Torque calculator

49

Page 60: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

dT

1

dT−

dT+

NOR 0Convert

TorqueDiff

1

Figure B.15: Torque hysteresis comparator

Us B2

Us a1

Gain3

exp(j*0)

Gain2

(sqrt(2/3)*325/2)

Gain1

exp(j*(4/3)*pi)

Gain

exp(j*(2/3)*pi)

Complex toReal−Imag

Re

Im

Add

Sc

3

Sb

2

Sa

1

Figure B.16: Voltage estimator, without loses in inverter switches

50

Page 61: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

B.2.1 Matlab code for Sector calculation

1 function sector = fcn(Flux Alpha, Flux Beta)2 sector = 0;3 theta=(180/pi)*atan2(Flux Beta, Flux Alpha);4 if theta ≥ −30 && theta < 305 sector = 1;6 end7 if theta ≥ 30 && theta < 908 sector = 2;9 end

10 if theta ≥ 90 && theta < 15011 sector = 3;12 end13 if theta ≥ 150 | | theta < −15014 sector = 4;15 end16 if theta ≥ −150 && theta < −9017 sector = 5;18 end19 if theta ≥ −90 && theta < −3020 sector = 6;21 end

B.2.2 Matlab code for Vector selection

1 function [Sa,Sb,Sc] = fcn(dY, dT, sector)2 vector = 0;3 temp = [0 0 0];4 switch dY %−−−−−−−−−−−−−−−−−−−− dY = 15 case 16 switch dT7 case 18 switch sector % dY = 1, dT = 19 case 1

10 vector = 2;11 case 212 vector = 3;13 case 314 vector = 4;15 case 416 vector = 5;17 case 518 vector = 6;19 case 620 vector = 1;21 end22 case 023 switch sector % dY = 1, dT = 024 case 125 vector = 0;

51

Page 62: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

26 case 227 vector = 7;28 case 329 vector = 0;30 case 431 vector = 7;32 case 533 vector = 0;34 case 635 vector = 7;36 end37 case −138 switch sector % dY = 1, dT = −139 case 140 vector = 6;41 case 242 vector = 1;43 case 344 vector = 2;45 case 446 vector = 3;47 case 548 vector = 4;49 case 650 vector = 5;51 end52 end53 case −1 % −−−−−−−−−−−−−−−−−− dY = −154 switch dT55 case 156 switch sector % dY = −1, dT = 157 case 158 vector = 3;59 case 260 vector = 4;61 case 362 vector = 5;63 case 464 vector = 6;65 case 566 vector = 1;67 case 668 vector = 2;69 end70 case 071 switch sector % dY = −1, dT = 072 case 173 vector = 7;74 case 275 vector = 0;76 case 377 vector = 7;78 case 479 vector = 0;

52

Page 63: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

80 case 581 vector = 7;82 case 683 vector = 0;84 end85 case −186 switch sector % dY = −1, dT = −187 case 188 vector = 5;89 case 290 vector = 6;91 case 392 vector = 1;93 case 494 vector = 2;95 case 596 vector = 3;97 case 698 vector = 4;99 end

100 end101 end102

103 % Select switch positions104 switch vector105 case 0106 temp = [0 0 0];107 case 1108 temp = [1 0 0];109 case 2110 temp = [1 1 0];111 case 3112 temp = [0 1 0];113 case 4114 temp = [0 1 1];115 case 5116 temp = [0 0 1];117 case 6118 temp = [1 0 1];119 case 7120 temp = [1 1 1];121 end122 Sa = temp(1);123 Sb = temp(2);124 Sc = temp(3);

53

Page 64: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Bibliography

[1] J.F. Gieras. Permanent magnet motor technology: design and ap-plications. Electrical and Computer Engineering Series. CRC Press,2009. ISBN 9781420064407. URL http://books.google.se/books?

id=8b6yPQAACAAJ.

[2] Juha Pyrhonen. Electrical drives - lecture notes, 2011.

[3] Boel Ekergard. 2012.

[4] Nicola Bianchi, Silverio Bolognani, and Brian J. Chalmers. Salient-rotor pm synchronous motors for an extended flux-weakening operationrange. IEEE Transaction on industry applications, 36(4):1118–1125,2000.

[5] Roberto H. Moncada, Juan A. Tapia, and Thomas M. Jahns. Inverse-saliency pm motor performance under vector control operation. IEEEEnergy Conversion Congress and Exposition, pages 2368–2373, 2009.

[6] Roberto H. Moncada, Juan A. Tapia, and Thomas M. Jahns. Analysisof negative-saliency permanent-magnet machines. IEEE transactionson industrial electronics, 57(1):122–127, 2010.

[7] M. Leijon, B. Ekergard, S. Ferhatovic, J. de Santiago, H. Bernhoff,R. Waters, and S. Eriksson. On a two pole motor for electric propulsionsystem. 2012.

[8] B. Bolund, M. Leijon, and U. Lundin. Poynting theorem applied tocable wound generators. IEEE Transaction on Dielectrics and ElectricalInsulation, 15(2):600–605, 2008.

[9] J.J. Grainger and W.D. Stevenson. Power system analysis. McGraw-Hill series in electrical and computer engineering: Power and en-ergy. McGraw-Hill, 1994. ISBN 9780070612938. URL http://books.

google.se/books?id=NBIoAQAAMAAJ.

[10] H.A. Toliyat and S.G. Campbell. DSP-Based electromechanical mo-tion control. Power electronics and applications series. CRC Press,

54

Page 65: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

2004. ISBN 9780849319181. URL http://books.google.se/books?

id=3MgkRkPi3k4C.

[11] P.D. Chandana Perera, F. Blaabjerg, J.K. Pedersen, and P. Thogersen.A sensorless, stable v/f control method for permanent-magnet syn-chronous motor drives. IEEE Transaction on industry applications,39(3):83–89, 2003.

[12] R.S. Colby and D.W. Novotny. An efficiency-optimizing permanent-magnet synchronous motor drive. IEEE Transaction on industry appli-cations, 24(3):462–496, 1988.

[13] Y. Nakamura, T. Kudo, F. Ishibashi, and S. Hibino. High-efficiencydrive due to power factor control of a permanent magnet synchronousmotor. IEEE Transaction on power electronics, 10(2):247–253, 1995.

[14] Thomas M. Jahns, Gerald B. Kliman, and Thomas W. Neumann. Inte-rior permanent-magnet synchronous motors for adjustable-speed drives.IEEE Transaction on industry applications, IA-22(4):738–747, 1986.

[15] R.D. Doncker, D.W.J. Pulle, and A. Veltman. Advanced ElectricalDrives: Analysis, Modeling, Control. Power Systems. Springer, 2011.ISBN 9789400701793. URL http://books.google.se/books?id=\_

sEDx2lAKboC.

[16] Isao Takahashi and Toshihiko Noguchi. A new quick-response and high-efficiency control strategy of an induction motor. IEEE Transactionon industry applications, IA-22(5):820–827, 1986. Original article injapanese.

[17] M. Depenbrock. Direct self-control (dsc) of inverter-fed induction ma-chine. IEEE Transaction on power electronics, 3(4):420–429, 1988.Original article in german.

[18] Jukka Kaukonen. Salient Pole Synchronous Macine Modelling in aIndustrial Direct Torque Controlled Drive Application. PhD thesis,Lappeenranta University of Technology, 1999.

[19] Xing Shaobang, Luo Yinsheng, and Han Xiaoxin. Efficiency improve-ment on pmsm twelve sectors dtc system. Control and Decision Con-ference, pages 1208–1212, 2011.

[20] Yi Wang and Jianguo Zhu. Modelling and implementation of an im-proved dsvm scheme for pmsm dtc. International Conference on Elec-trical Machines and Systems, pages 1042–1046, 2008.

[21] H. Ziane, J.M. Retif, and T. Rekioua. Fixed-switching-frequency dtccontrol for pm synchronous machine with minimum torque ripples.

55

Page 66: Design and Simulation of Field Oriented Control and Direct …534947/FULLTEXT… ·  · 2012-06-18Design and Simulation of Field Oriented Control and Direct Torque Control for a

Canadian Journal of Electrical and Computer Engineering, 33(3):183–189, 2008.

[22] B. Bossoufi, M. Karim, A. Lagrioui, and S. Ionita. Performance analysisof direct torque control (dtc) for synchronous machine permanent mag-net (pmsm). 2010 IEEE 16th International Symposium for Design andTechnology in Electronic Packaging (SIITME), pages 237–242, 2010.

56