Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ABSTRACT i
LIST OF FIGURES AND TABLES ii
NOMENCLATURE iv
1.INTRODUCTION
1.1 Introduction 1
1.2 Motivation 1
1.3 Previous Work 2
1.4 Outline of the Present Work 4
1.5 Conclusion 4
2. DESCRIPTION OF DRIVE SYSTEM
2.1 Introduction 5
2.2 Motor selection procedure 5
2.3 Permanent Magnet Synchronous Motor Drive System 6
2.3.1 Operation 7
2.4 Permanent Magnet Synchronous Motor 7
2.4.1 Permanent Magnet Materials 8
2.4.2 Classification of Permanent Magnet Motors 8
2.4.2.1 Direction of field flux 8
2.4.2.2 Flux density distribution 8
2.4.2.3 Permanent magnet radial field motors 9
2.4.3 Advantages of PMSM 10
2.4.4 Applications of PMSM 11
2.5 Position Sensor 11
2.5.1 Position Revolver 11
1
2.6 Current Controlled Inverter 12
2.6.1 Hysteresis current controller 13
2.6.2 PWM Current Controller 15
2.7 Conclusion 16
2
5.3 Simulink Simulation of PMSM Drive 37
5.4 Speed Control of PM Motor 40
5.4.1 Implementation of the Speed Control Loop 41
5.5 Conclusion 43
6. SIMULATION RESULTS
6.1 Introduction 44
6.2 Simulation Results 44
6.3 Simulation for Operation at 200 rad/second 45
6.3.1Hysteresis Current Control 45
6.3.2PWM Current Control 47
6.4 Simulation for Operation at Higher Speed of 700 rad/sec 48
6.4.1Hysteresis Current Control 48
6.4.2PWM Current Control 49
6.5 Conclusion 52
CONCLUSION 53
FUTURE WORK 54
REFERENCES 55
APPENDIX 56
3
ABSTRACT
There are a variety of ac servo drives on the market competing with both the dc brush
machine and others ac servo drives. Two types of permanent-magnet ac motor drives are
available in the drives industry. These are the permanent-magnet synchronous-motor (PMSM)
drive with a sinusoidal flux distribution, and the brushless dc motor (BDCM) drive with a
trapezoidal flux distribution.
The application of vector control to the PMSM and complete modeling, simulation, and
analysis of the drive system are given. Performance differences due to the use of pulse width-
modulation (PWM) and hysteresis current controllers are also examined. Particular attention is
paid to the motor torque pulsations and speed response. Some experimental verification of the
drive performance is also given.
4
LIST OF FIGURES AND TABLES
Figure2.6 Resolver 12
5
Figure5.1 conversion of 3-phase variables into 2-phase variables 38
6
NOMENCLATURE
PM Permanent magnet
PI Proportional integral
IM Indution Motor
B damping constant
J moment of Inertia
Te electric torque
Tl load torque
θr rotor angle
ωr rotor speed
P number of poles
R stator resistance
7
8
1.INTRODUCTION
1.1 INTRODUCTION:
This chapter discusses briefly about the motivation of work, previous work carried
out by different authors on modeling and simulation of PMSM drive and organization of thesis.
Permanent magnet (PM) synchronous motors are widely used in low and mid power
applications such as computer peripheral equipments, robotics, adjustable speed drives and
electric vehicles. The growth in the market of PM motor drives has demanded the need of
simulation tools capable of handling motor drive simulations.
Simulations have helped the process of developing new systems including motor
drives, by reducing cost and time. Simulation tools have the capabilities of performing dynamic
simulations of motor drives in a visual environment so as to facilitate the development of new
systems. In this work, the simulation of a field oriented controlled PM motor drive system is
developed using Simulink. The simulation circuit will include all realistic components of the
drive system.
A closed loop control system with a PI controller in the speed loop has been designed to
operate in constant torque and flux weakening regions. Implementation has been done in
Simulink. A comparative study of hysteresis and PWM control schemes associated with current
controllers has been made.
1.2 Motivation
Modeling and simulation is usually used in designing PM drives compared to building
system prototypes because of the cost. Having selected all components, the simulation process
can start to calculate steady state and dynamic performance and losses that would have been
obtained if the drive were actually constructed. This practice reduces time, cost of building
prototypes and ensures that requirements are achieved.
A comparative study associated with hysteresis and PWM control techniques in current
controllers has been made. A speed controller has also been designed for closed loop operation
of the drive. Design method for the PI controller is also given.
9
1.3 Previous Work:
PM motor drives have been a topic of interest for the last twenty years. Different authors
have carried out modeling and simulation of such drives.
In 1986 Sebastian, T., Slemon, G. R. and Rahman, M. A. reviewed permanent magnet
synchronous motor advancements and presented equivalent electric circuit models for such
motors and compared computed parameters with measured parameters. Experimental results on
laboratory motors were also given.
In 1986 Jahns, T.M., Kliman, G.B. and Neumann, T.W. discussed that interior permanent
magnet (IPM) synchronous motors possessed special features for adjustable speed operation
which distinguished them from other classes of ac machines. They were robust high power
density machines capable of operating at high motor and inverter efficiencies over wide speed
ranges, including considerable range of constant power operation.
The magnet cost was minimized by the low magnet weight requirements of the IPM
design. The impact of the buried magnet configuration on the motor’s electromagnetic
characteristics was discussed. The rotor magnetic saliency preferentially increased the
quadrature-axis inductance and introduced a reluctance torque term into the IPM motor’s torque
equation. The electrical excitation requirements for the IPM synchronous motor were also
discussed. The control of the sinusoidal phase currents in magnitude and phase angle with
respect to the rotor orientation provided a means for achieving smooth responsive torque control.
A basic feed forward algorithm for executing this type of current vector torque control was
discussed, including the implications of current regulator saturation at high speeds. The key
results were illustrated using a combination of simulation and prototype IPM drive
measurements.
In 1988 Pillay and Krishnan, R. presented PM motor drives and classified them
into two types such as permanent magnet synchronous motor drives (PMSM) and brushless
dc motor (BDCM) drives. The PMSM has a sinusoidal back emf and requires sinusoidal stator
currents to produce constant torque while the BDCM has a trapezoidal back emf and requires
rectangular stator currents to produce constant torque.
The PMSM is very similar to the wound rotor synchronous machine except that the
PMSM that is used for servo applications tends not to have any damper windings and excitation
is provided by a permanent magnet instead of a field winding. Hence the d, q model of the
10
PMSM can be derived from the well known model of the synchronous machine with the
equations of the damper windings and field current dynamics removed. Equations of the PMSM
are derived in rotor reference frame and the equivalent circuit is presented without dampers. The
damper windings are not considered because the motor is designed to operate in a drive system
with field-oriented control. Because of the non sinusoidal variation of the mutual inductances
between the stator and rotor in the BDCM, it is also shown in this paper that no particular
advantage exists in transforming the abc equations of the BCDM to the d-q frame.
As an extension of his previous work, Pillay, P. and Krishnan, R. in 1989 presented the
permanent magnet synchronous motor (PMSM) which was one of several types
of permanent magnet ac motor drives available in the drives industry. The motor had a sinusoidal
flux distribution. The application of vector control as well as complete modeling, simulation, and
analysis of the drive system were given. State space models of the motor and speed controller
and real time models of the inverter switches and vector controller were included. The machine
model was derived for the PMSM from the wound rotor synchronous motor. All the equations
were derived in rotor reference frame and the equivalent circuit was presented without dampers.
The damper windings were not considered because the motor was designed to operate in a drive
system with field-oriented control.
Performance differences due to the use of pulse width modulation (PWM) and hysteresis
current controllers were examined. Particular attention was paid to the motor torque pulsations
and speed response and experimental verification of the drive performance were given.
Bose, B. K., in 2001 presented different types of synchronous motors and compared them
to induction motors. The modeling of PM motor was derived from the model of salient pole
synchronous motor. All the equations were derived in synchronously rotating reference frame
and was presented in the matrix form.
The equivalent circuit was presented with damper windings and the permanent magnet
was represented as a constant current source. Some discussions on vector control using voltage
fed inverter were given.
11
1.4 Organization of thesis:
The thesis consists of 6 chapters.
Chapter 1 presents a theoretical review about motivation of PMSM and the previous
work carried out by different authors for modeling and simulation of PMSM drive.
Chapter 2 presents a theoretical review of permanent magnet motors drives which
includes permanent magnet materials, classification of the permanent magnet motors, position
sensors, inverters and current controllers.
Chapter 3 deals with the detailed modeling of PMSM, closed loop control techniques
used for PM motor drives, field oriented control of the motor in constant torque and flux-
weakening regions, and the design of speed control for PM motor.
Chapter 4 This chapter gives main idea about introduction to matlab,simulink,creating a
simple model and adding blocks to window.
Chapter 5 is dedicated to the simulation. It deals with the selection of the simulation tool
for dynamic simulation of motor drives. The real drive system is simulated using Simulink with
block by block explanation.
Chapter 6 deals with the simulation results .A comparative study of PMW and
Hysteresis current controllers used with this drive system has been made in terms of total
harmonic distortion.
1.5 Conclusion:
This chapter discussed about PMSM, previous works carried out by different
authors on modeling and simulation of PMSM drive and organization of thesis.
12
13
2. DESCRIPTION OF DRIVE SYSTEM
2.1 Introduction:
This chapter gives main idea about the operation of PMSM drive, classification of PM
motors, advantages and applications of PM motor, operation of position sensor and operation of
two control techniques namely hysteresis and PWM current controllers.
There are a variety of ac servo drives on the market competing with both the dc brush
machine and others ac servo drives. The selection process of a servo drive for a particular
application in the fractional to 30-hp range can be represented by the figure-2.1.
From the figure.2.1 it is clear that the first decision to be made is whether to use a dc
brush or a brushless servo. The reasons for choosing brushless servo motor drives over the brush
type dc motor drives are well known and include robustness, higher torque, speed bandwidths
and lower maintenance. The mechanical commutator and brushes of the dc motor also enforces
severe limitations on its maximum speed and over current capabilities.
Assuming that it has been decided to use a brushless servo motor drive, the next decision
to make is whether to use an ac or a switched reluctance motor. The switched reluctance motor is
inherently a pulsating torque machine, although some work has been done in an attempt to
reduce the torque ripple. Hence if a reasonable smooth output torque is required, an induction or
permanent magnet machine is to be preferred over the switched reluctance motor.
14
APPLICATIONS
PMSM BDCM
15
2.3.1 Operation:
The operation of PMSM drive system is as follows. By using the inverter DC voltage is
converted into AC voltage of variable frequency and magnitude. The motor is fed from a voltage
source inverter with current control. The control is performed by regulating the flow of current
through the stator of motor. For the proper operation of PMSM we need position sensor in the
rotor shaft which measures the position of rotor. The rotor position feedback is necessary to
generate the reference currents. Now the controller compares reference currents with actual
currents which produces an error. This error is given to the gate signals of inverter due to which
input voltage is controlled. So by controlling the input voltage output can be controlled.
Descriptions of the different components used in drive system are as follows:
16
2.4.1 Permanent Magnet Materials:
The properties of the permanent magnet material will affect directly the performance of
the motor and proper knowledge is required for the selection of the materials and for
understanding PM motors. The earliest manufactured magnet materials were hardened steel.
Magnets made from steel were easily magnetized. However, they could hold very low energy
and it was easy to demagnetize.
In recent years other magnet materials such as Aluminum Nickel and Cobalt alloys
(ALNICO), Strontium Ferrite or Barium Ferrite (Ferrite), Samarium Cobalt (First generation
rare earth magnet) (SmCo) and Neodymium Iron-Boron (Second generation rare earth magnet)
(NdFeB) have been developed and used for making permanent magnets .The rare earth magnets
are categorized into two classes: Samarium Cobalt (SmCo)magnets and Neodymium Iron Boride
(NdFeB) magnets. SmCo magnets have higher flux density levels but they are very expensive.
NdFeB magnets are the most common rare earth magnets used in motors these days.
17
BLDC has a trapezoidal-shaped back EMF and is designed to develop trapezoidal back
EMF waveforms. They have the following:
1. Rectangular distribution of magnet flux in the air gap
2. Rectangular current waveform
3. Concentrated stator windings.
18
Figure 2.4 Surface Permanent Magnet Motor
Interior PM motors have interior mounted permanent magnet rotor as shown in figure 2.5. Each
permanent magnet is mounted inside the rotor. It is not as common as the surface mounted type
but it is a good candidate for high-speed operation. There is inductance variation for this type of
rotor because the permanent magnet part is equivalent to air in the magnetic circuit calculation.
These motors are considered to have saliency with q axis inductance greater than the d axis
inductance ( Lq > Ld ).
19
4. The need for magnetizing current and the fact that the IM has a lower efficiency
necessitates a larger rated rectifier and inverter for the IM than for a PM machine of the
same output capacity.
5. The PM machine is smaller in size than an induction motor of the same capacity. Hence,
it is advantageous to use PM machines, especially where space is a serious limitation.
6. In addition, the permanent magnet machine weight less. In other words, the power
density of permanent magnet machines is higher.
7. The rotor losses in a PM machine are negligible compared with those in the induction
motor. A problem that has been encountered in the machine tools industry is the
transferal of these rotor losses in the form of heat to the machine tools and work pieces
thus affecting the machining operation. This problem is avoided in permanent magnet
machines.
20
2.5.1 Position Revolver:
Position revolver as shown in figure 2.6 also called rotary transformers, works on the
transformer principle. The primary winding is placed on the rotor and depending upon the
rotor shaft angle the induced voltage at the two secondary windings of the transformer shifted by
90° would be different. The position can be calculated using the two voltages. The resolver is
basically a rotary transformer with one rotating reference winding (Vref) and two stator windings.
The reference winding is fixed on the rotor, and therefore, it rotates jointly with the shaft passing
the output windings, as is depicted in figure 2.6. Two stator windings are placed in quadrature
(shifted by 90°) with one another and generate the sine and
cosine voltages (Vsin , Vcos) respectively. Both windings
will be further referred to as output windings.
In consequence of the excitement applied on the reference
winding Vref and along with the angular movement of the
motor shaft θ, the respective voltages are generated by
resolver output windings Vsin , Vcos.
21
The power converter in a high-performance motor drive used in motion control
essentially functions as a power amplifier, reproducing the low power level control signals
generated in the field orientation controller at power levels appropriate for the driven machine.
High-performance drives utilize control strategies which develop command signals for the AC
machine currents. The basic reason for the selection of current as the controlled variable is the
same as for the DC machine; the stator dynamics (effects of stator resistance, stator inductance,
and induced EMF) are eliminated. Thus, to the extent that the current regulator functions as an
ideal current supply, the order of the system under control is reduced and the complexity of the
controller can be significantly simplified.
Current regulators for AC drives are complex because an AC current regulator must
control both the amplitude and phase of the stator current.
The AC drive current regulator forms the inner loop of the overall motion controller. As
such, it must have the widest bandwidth in the system and must, by necessity, have zero or
nearly zero steady-state error.
Both current source inverters (CSI) and voltage source inverters (VSI) can be operated in
controlled current modes. The current source inverter is a "natural" current supply and can
readily be adapted to controlled current operation. The voltage source inverter requires more
complexity in the current regulator but offers much higher bandwidth and elimination of current
harmonics as compared to the CSI and is almost exclusively used for motion control
applications. Current controllers can be classified into two groups, hysteresis and PWM current
controllers. Both types are discussed below.
22
Figure.2.7 Inverter circuit of PMSM.
Whenever TI is “on,” i increases positively using either the B or C phases as a return path. As
soon as T1 switches from an “on” to an “off” position, and since the current through the machine
winding cannot go to zero instantaneously, the freewheeling diode across its complementary
transistor, in this case T4, begins to conduct the phase A current. When this occurs, the voltage of
phase A switches from + vdc/2 to - vdc/2, where the midpoint of the dc supply v d c is taken as
the reference. The opposite occurs when T4switches from “on” to “off.” A similar procedure
exists in the other phases. It is assumed that a reasonably well-filtered dc supply is available.The
six switches Tl-T6 are used to control the three stator phase currents. The control strategy is as
follows. The actual values of ia, and ib that are flowing into the motor are measured. From this ic
can be constructed; this removes the need for an additional current sensor. The actual and
reference values are compared and error signals generated. In making the comparison between
the actual currents and the reference values, the scheme in Figure. 2.8 is used.
23
Fig. 2.8 shows the reference value ia*. In addition, two other curves consisting of ia* + ∆i and ia*
- ∆i are shown. ∆i defines the hysteresis bands. The hysteresis property allows the actual value of
ia, to exceed or be less than the reference value by ∆i. Note that complementary switching of the
power devices is considered undesirable and, therefore, is not used.
When the error crosses the lower limit of the hysteresis band, the upper switch of the
inverter leg is turned on. But when the current attempts to become less than the upper reference
band, the bottom switch is turned on. This controller does not have a specific switching
frequency and changes continuously but it is related with the band width.
The reason that this is called a hysteresis controller is that the phase voltage switches to
keep the phase currents within the hysteresis bands. The phase currents are, therefore,
approximately sinusoidal: the smaller the hysteresis bands, the more closely do the phase
currents represent sine waves. Small hysteresis bands, however, imply a high switching
frequency, which is a practical limitation on the power device switching capability. Increased
switching also implies increased inverter losses.
24
Figure 2.9 PWM current controller
Note that it is un necessary to use complementary switching to achieve this voltage
profile. For example, if T1 is conducting, Van is equal to + V dc2 , where Vdc is the dc supply
voltage and the reference is taken as the midpoint of the supply. By switching T1 off, the
freewheeling diode across T4 immediately starts conducting to maintain the current flow through
the motor inductance. This automatically forces van to equal to - Vdc,/2 even though T4 is
not yet conducting. This is called a PWM current controller because of the pulse width
modulation of the voltage.
The advantage of the PWM current controller over hysteresis that the switching
frequency is preset, and it is, therefore, easy to ensure that the inverter switching capability
is not exceeded.
In the hysteresis controller the switching frequency depends on the value of the hysteresis
window, and the actual switching frequency demanded from the inverter is unknown. A trial-
and-error procedure must be adopted to ensure that the inverter switching frequency is not
exceeded. The advantage of the hysteresis over the PWM controller is that, from a control point
of view, there is no transportation delay or system lag. In the PWM controller this does exist
with the average lag being equal to half the period of the PWM However, if this lag is less than
about one-tenth the stator time constant of the machine, it has a negligible effect on the drive
performance.
2.7 Conclusion:
This chapter discussed about the operation of PMSM drive, classification of PM motors,
advantages and applications of PM motor, operation of position sensor and operation of two
control techniques namely hysteresis and PWM current controllers.
25
26
27
3. MODELLING OF PM DRIVE SYSTEM
3.1 Introduction:
This chapter gives main idea about the modelling of PMSM by which d-q
variables are obtained from abc variables through park transform and abc variables are obtained
from d-q variables through the inverse of park transform and also about the field oriented control
i.e. vector control of PMSM due to which SM can be controlled like a separately exicted DC
motor.
Basically, it can be looked on as a transformer with a moving secondary, where the cou-
pling coefficients between the stator and rotor phases change continuously with the change of
rotor position θr The machine model can be described by differential equations with time-vary-
ing mutual inductances, but such a model tends to be very complex. Note that a three-phase
machine can be represented by an equivalent two-phase machine as shown in Figure 3.2 where
ds - qs correspond to stator direct and quadrature axes, and dr – qr correspond to rotor direct and
quadrature axes. Although it is somewhat simple, the problem of time-varying parameters still
remains.
28
R. H. Park, in the 1920s, proposed a new theory of electric machine analysis to solve this
problem. He formulated a change of variables which, in effect, replaced the variables (voltages,
currents, and flux linkages) associated with the stator windings of a synchronous machine with
variables associated with fictitious windings rotating with the rotor at synchronous speed.
Essentially, he transformed, or referred, the stator variables to a synchronously rotating reference
frame fixed in the rotor. With such a transformation (called Park's transformation), he showed
that all the time-varying inductances that occur due to an electric circuit in relative motion and
electric circuits with varying magnetic reluctances can be eliminated.
Later, in the 1930s, H. C. Stanley showed that time-varying inductances in the voltage
equations of an induction machine due to electric circuits in relative motion can be eliminated by
transforming the rotor variables to variables associated with fictitious stationary windings. In this
case, the rotor variables are transformed to a stationary reference frame fixed on the stator. Later,
G. Kron proposed a transformation of both stator and rotor variables to a synchronously rotating
reference frame that moves with the rotating magnetic field. This model is extremely important,
and will be discussed later in detail.
29
Figure 3.2 Equivalent two-phase machine
Without going deep into the rigor of machine analysis, we will try to develop a dynamic
machine model in synchronously rotating and stationary reference frames.
30
31
Assume that the ds-qs axes are oriented at θ angle, as shown in Figure 3.3 The voltages vdss and
vqss can be resolved into as-bs-cs components and can be represented in the matrix form as
va v
][ ]
cos θ sin θ 1
[ ][
s
s qs
v bs = cos (θ−1200 ) sin (θ−1200 ) 1 v s
ds
v cs cos (θ +1200 ) sin (θ +1200 ) 1 v s
os
( 3.1)
[ ]
cos θ v as
[ ][ ]
s
qs
2
v s
= sin θ sin ( θ−120 0 ) sin ( θ +120 0 ) v bs
ds 3
v 0.5 0 .5 0 .5 v cs
s
os
(3.2)
where voss is added as the zero sequence component, which may or may not be present. We have
considered voltage as the variable. The current and flux linkages can be transformed by similar
equations.
It is convenient to set θ = 0, so that the qs axis is aligned with the as-axis. Ignoring the zero sequence
component, the transformation relations can be simplified as
Vas=Vqss (3.3)
and inversely
32
Vdss = -1/√ 3 Vbs+1/√ 3 Vcs (3.7)
Figure 3.4 shows the synchronously rotating d -q axes, which rotate at synchronous speed
ωe with respect to the ds - qs axes and the angle θe = ωet. The two-phase ds - qs windings are
transformed into the hypothetical windings mounted on the de - qe axes. The voltages on
the ds - qs axes can be converted (or resolved) into the de - qe frame as follows:
33
Figure 3.4. Stationary frame ds -qs to synchronously rotating frame de- qe transformation
For convenience, the superscript e has been dropped from now on from the synchronously
rotating frame parameters. Again, resolving the rotating frame parameters into a stationary
frame, the relations are
As an example, assume that the three-phase stator voltages are sinusoidal and
balanced, and are given by
34
Equations (3.15)_(3.16) show that Vqss and Vdss are balanced, two-phase voltages of
equal peak values and the latter is at Π/2 angle phase lead with respect to the other component.
Equation (3.17)_(3.18) verify that sinusoidal variables in a stationary frame appear as dc
quantities in a synchronously rotating reference frame. This is an important derivation. Note that
the stator variables are not necessarily balanced sinusoidal waves. In fact, they can be any arbitrary
time functions.
where ψqss and ψdss are g-axis and d-axis stator flux linkages, respectively. When these
equations are converted to de-qe frame, the following equations can be written
where all the variables are in rotating form. The last term in Equations (3.21)and (3.22) can be
defined as speed emf due to rotation of the axes, that is, when ωe = 0, the equations revert to sta-
tionary form. Note that the flux linkage in the de and qe axes induce emf in the qe and de axes,
respectively, with π/2 lead angle.
35
If the rotor is not moving, that is, ωr = 0, the rotor equations for a doubly-fed wound-rotor
machine will be similar to Equations (3.21)_(3.22)
Vqr = Rr iqr+
d ¿ dt (ψqr) +
we ψdr
(3.23)
where all the variables and parameters are referred to the stator. Since the rotor actually moves at
speed ωr the d-q axes fixed on the rotor move at a speed ωe - ωr relative to the synchronously
rotating frame. Therefore, in de - qe frame, the rotor equations should be modified as
36
Figure 3.6 de axis circuit
Figure 3.5 and 3.6 shows the de - qe dynamic model equivalent circuits that satisfy
Equations (3.21)_(3.22)and (3.25)_(3.26). A special advantage of the de - qe dynamic model of
the machine is that all the sinusoidal variables in stationary frame appear as dc quantities in syn-
chronous frame, as discussed before.
The flux
linkage
expressions in terms
of the currents
can be written
from Figure 3.5 and
3.6 as follows:
Ψqs=
Llsiqs +Lm(iqs+
iqr) (3.27)
Ψds=Llsids+Lm(ids+idr) (3.30)
Ψdr=Llridr+Lm(ids+idr) (3.31)
Combining the above expressions with Equations (3.21),(3.22),(3.25) and (3.26) the electrical
transient model in terms of voltages and currents can be given in matrix form as
37
v qs R S + SLS ωe L S SLm ω e Lm i qs
[ ][
v ds
v qr
v dr
=
−ω e L S
SLm
−( ω e−ωr ) Lm
R S + SLS
( ω e−ω r ) L m
SLm
−ω e Lm
R r + SLr
−( ω e−ω r ) Lr
SLm
( ωe −ωr ) Lr
R r + SLr
][ ]
i ds
i qr
i dr
(3.33)
The speed ωr in Equation (3.33) cannot normally be treated as a constant. It can be related
to the torques as
Solving for the rotor mechanical speed form the above equation
And
Wm=wr(2/p) (3.37)
In the above equations ωr is the rotor electrical speed where as ωm is the rotor mechanical speed.
38
Field oriented control was invented in the beginning of 1970s and it demonstrates that an
induction motor or synchronous motor could be controlled like a separately excited dc motor by
the orientation of the stator mmf or current vector in relation to the rotor flux to achieve a desired
objective. In order for the motor to behave like DC motor, the control needs knowledge of the
position of the instantaneous rotor flux or rotor position of permanent magnet motor. This needs
a resolver or an absolute optical encoder. Knowing the position, the three phase currents can be
calculated. Its calculation using the current matrix depends on the control desired. Some control
options are constant torque and flux weakening. These options are based in the physical
limitation of the motor and the inverter. The limit is established by the rated speed of the motor,
at which speed the constant torque operation finishes and the flux weakening starts as shown in
figure3.5
39
3.6 Field Oriented Control of PM Motors:
The PMSM control is equivalent to that of the dc motor by a decoupling control known as field
oriented control or vector control. The vector control separates the torque component of current
and flux channels in the motor through its stator excitation. The vector control of the PM
synchronous motor is derived from its dynamic model. Considering the currents as inputs, the
three currents are:
Ia=imsin(ωrt+α) (3.38)
Ib=imsin(ωrt+α-2π/3) (3.39)
Ic=imsin(ωrt+α+2π/3) (3.40)
cos(ω r t+ α )
[][ ]
ia 2π
cos(ω r t+ α− ) i
ib = 3 ( m)
ic 2π
cos(ω r t+ α+ )
3
( 3.41)
Where α is the angle between the rotor field and stator current phasor,ωr is the electrical
rotor speed. The previous currents obtained are the stator currents that must be transformed to the
rotor reference frame with the rotor speed ωr , using Park’s transformation. The q and d axis
currents are constants in the rotor reference frames since α is a constant for a given load torque.
As these constants, they are similar to the armature and field currents in the separately excited dc
machine. The q axis current is distinctly equivalent to the armature current of the dc machine; the
d axis current is field current, but not in its entirety. It is only a partial field current; the other part
is contributed by the equivalent current source representing the permanent magnet field. For this
reason the q axis current is called the torque producing component of the stator current and the d
axis current is called the flux producing component of the stator current.
40
Substituting equation 3.41 and 3.2 is obtain id and iq in terms of Im as follows
iq sin α
[] [ ]
id
=i m
cos α
( 3.42)
Assuming that:
Kt=(3/2)(p/2)λf (3.44)
Te=kt.iq (3.45)
3.6.2 Flux-weakening:
Flux weakening is the process of reducing the flux in the d axis direction of the motor
which results in an increased speed range. The motor drive is operated with rated flux linkages
up to a speed where the ratio between the induced emf and stator frequency (V/f) is maintained
constant. After the base frequency, the V/f ratio is reduced due to the limit of the inverter dc
voltage source which is fixed. The weakening of the field flux is required for operation above the
base frequencyThis reduces the V/f ratio. This operation results in a reduction of the torque
proportional to a change in the frequency and the motor operates in the constant power region.
The rotor flux of PMSM is generated by permanent magnet which can not be directly
reduced as induction motor. The principle of flux-weakening control of PMSM is to increase
41
negative direct axis current and use armature reaction to reduce air gap flux, which equivalently
reduces flux and achieves the purpose of flux-weakening control This method changes torque by
altering the angle between the stator MMF and the rotor d axis. In the flux weakening region
where ωr > ωrated angle α is controlled by proper control of id and iq for the same value of stator
current. Since iq is reduced the output torque is also reduced. The angle α can be obtained as:
α= tan-1(iq/id) (3.46 )
the current im is related to id and iq by
im=(iq2+id2)1/2 (3.47 )
3.7Conclusion:
This chapter discussed about the modelling of PMSM by which d-q variables are
obtained from abc variables through park transform and abc variables are obtained from d-q
variables through the inverse of park transform and also about the field oriented control i.e.
vector control of PMSM due to which SM can be controlled like a separately exicted DC motor.
42
43
4. INTRODUCTION TO MATLAB/ SIMLINK
4.1 Introduction:
The most important feature of MATLAB is its programming capability, which is very
easy to learn and use, and which allows user developed functions it also allows access to
FORTRAN algorithms and C codes by means of external interfaces. There are several option
toolboxes written for special applications such as signal processing, control system design,
system identification, statistics, neural net works, fuzzy logic, symbolic computations.
1. Ease of use
2. Platform independence
44
3. Predefined functions
Simulink enables you to pose a question about a system, model it, and see what happens.
With Simulink, you can easily build models from scratch, or take an existing model and add to it.
Thousands of engineers around the world use Simulink to model and solve real problems in a
variety of industries. The following topics highlight key aspects of Simulink:
With Simulink, you can move beyond idealized linear models to explore more realistic
nonlinear models, factoring in friction, air resistance, gears lippsage, hard stops, and the other
things that describe real-world phenomena. Simulink turns your computer into a lab for modeling
and analyzing systems that simply wouldn't be possible or practical otherwise, whether the
behavior of an automotive clutch system, the flutter of an airplane wing, the dynamics of a
predator-prey model, or the effect of the monetary supply on the economy. Simulink provides
numerous demos that model a wide variety of such real-world phenomena.
For modeling, Simulink provides a graphical user interface (GUI) for building models
as block diagrams, using click-and-drag mouse operations. with this interface, you can draw the
models just as you would with pencil and paper (or as most textbooks depict them). This
45
interactive graphical environment is a far cry from simulation packages that require you to
formulate differential equations and difference equations in a language or program. Simulink
includes a comprehensive block library of sinks, sources, linear and nonlinear components, and
connectors. You can also customize and create your own blocks.
Models are hierarchical, so you can build models using both top-down and bottom-up
approaches. You can view the system at a high level, then double-click blocks to go down
through the levels to see increasing levels of model detail. This approach provides insight into
how a model is organized and how its parts interact.
After you define a model, you can simulate it, using a choice of mathematical integration
methods, either from the Simulink menus or by entering commands in the MATLAB®
Command Window. The menus are convenient for interactive work, while the command line is
useful for running a batch of simulations (for example, if you are doing Monte Carlo simulations
or want to sweep a parameter across a range of values). Using scopes and other display blocks,
you can see the simulation results while the simulation runs. In addition, you can change many
parameters and see what happens for "what if" exploration. The simulation results can be put in
the MATLAB workspace for post processing and visualization.
Model analysis tools include linearization and trimming tools, which can be accessed from the
MATLAB command line, plus the many tools in MATLAB and its application toolboxes.
Because MATLAB and Simulink are integrated, you can simulate, analyze, and revise your
models in either environment at any point.
This chapter shows you how to create a simple model using many of the model construction
techniques that you will use to create your own models. Afterward, the chapter instructs you to
simulate the model that you construct. The instructions for constructing and simulating the
example model are brief.
46
In the sections that follow, you will construct a simple model that integrates a sine wave and
displays the result along with the sine wave. When completed, the block diagram that constitutes
your example model should appear similar to this.
The following sections show you how to model a simple dynamic system using Simulink:
2. Adding Blocks
47
On Microsoft Windows, the Simulink Library Browser appears.
On UNIX, from the Simulink library window's File menu, select New> Model.
on the Simulink Library Browser's toolbar. Simulink displays an empty model window.
48
4.7 Adding Blocks
To construct the example model that this chapter describes, you need to copy blocks into
the model window that the previous section instructed you to create (see Creating an Empty
Model).You can copy blocks from either the Library Browser (Windows only) or a library
window (UNIX and Windows). The following steps describe how to add blocks to your example
model using each of these methods:
On UNIX, in the Simulink library window, double-click the Sources library. Simulink
displays the Sources library window.
49
On Windows, in the left side of the Simulink Library Browser under the Simulink node, select
the Sources library. The right pane of the Simulink Library Browser displays the contents of the
Sources library.
4.8 Conclusion:
This chapter discussed about introduction to matlab,simulink, advantages of matlab, tool
for model based design,tool for simulation,tool for analysis,creating a simple model and adding
blocks to window.
50
51
5. SIMULATION OF PMSM DRIVE
5.1 Introduction:
This chapter gives main idea about the blocks converting the 3-phase variables into 2-
phase variables and 2-phase variables into 3-phase variables, implementing of torque block and
the speed block, and speed control of PM motor.
52
dqo variables is built using Parks transformation and for the dqo to abc the reverse
transformation is used. For simulation purpose the voltages are the inputs and the current are
output.
Parks transformation used for converting the 3-phase variables into 2-phase variables is shown in
figure 5.1 and the reverse transformation for converting the 2-phase variables into 3-phase
variables is shown in figure 5.2
53
Where the functions are as follows
fcn=u(1)*cos(u(4)) + u(2)*sin(u(4)) + u(3)
fcn1=u(1)*cos(u(4)-2*pi/3) + u(2)*sin(u(4)-2*pi/3) + u(3)
fcn2=u(1)*cos(u(4)+2*pi/3) + u(2)*sin(u(4)+2*pi/3) + u(3)
Figure 5.3shows the implementation of torque block in Simulink. This block is developed
using equation 3.35
The speed of the motor is obtain using figure 5.3 and equation 3.36 The developed
speed block is shown in figure 5.4
54
Where the functions are
Fcn3= (u(1)*u(2)/(2*u(3))
Fcn4= (u(1)*u(2)/2*u(3))*(2/u(2))
For proper control of the inverter using the reference currents, current controllers are
implemented to generate the gate pulses for the IGBT’s. Current controllers used are shown
in figure 5.5 and 5.6.
Many applications, such as robotics and factory automation, require precise control of speed and
position. Speed Control Systems allow one to easily set and adjust the speed of a motor. The
55
control system consists of a speed feedback system, a motor, an inverter, a controller and a speed
setting device. A properly designed feedback controller makes the system insensible to
disturbance and changes of the parameters. The purpose of a motor speed controller is to take a
signal representing the demanded speed, and to drive a motor at that speed. Closed Loop speed
control systems have fast response, but become expensive due to the need of feedback
components such as speed sensors.
Speed control of motors mainly consist of two loops the inner loop for current and the
outer loop for speed. The order of the loops is due to their response, how fast they can be
changed. This requires a current loop at least 10 times faster than the speed loop. Since the
PMSM is operated using field oriented control, it can be modeled like a dc motor.
The design begins with the innermost current loop by drawing the block diagram. But in
PMSM drive system the motor has current controllers which make the current loop. The current
control is performed by the comparison of the reference currents with the actual motor currents.
57
Using all the drive system blocks the complete system block has been developed as
shown in figure 5.9.
5.5 Conclusion:
This chapter discussed about the blocks converting the 3-phase variables into 2-phase
variables and 2-phase variables into 3-phase variables, implementing of torque block and the
speed block, and speed control of PM motor.
58
59
6. SIMULATION RESULTS
6.1 Introduction:
This chapter deals with the simulation results of PMSM drive system. The parameters of
the motor are given. Simulation results for the two techniques hysteresis current control and
PWM current control are compared.
The simulation was carried out using two current control techniques to study the
performance of the motor drive. The techniques are Hysteresis current control and PWM current
control. The plots of current, torque and speed are given for both cases.
60
The simulation was carried out using two current control techniques to study the
performance of the motor drive. The techniques are Hysteresis current control and PWM current
control. The plots of current, torque and speed are given for both cases.
Figure 6.1 shows the three phase currents drawn by the motor as a result of the
hysteresis current control. The currents are obtained using Park's reverse transformation. It is
clear that the current is non sinusoidal at the starting and becomes sinusoidal when the motor
reaches the controller command speed at steady state. So by using this control the oscillations die
out at 0.019sec and reaches the steady state after 0.019sec.
61
Figure 6.2 Developed Torque with Hysteresis Control at 200 rad/s
Figure 6.2 shows the developed torque of the motor. The starting torque is twice the
steady state value. The steady torque is 2.5 Nm.
Figure 6.3 Motor Electrical Speed with Hysteresis Control at 200 rad/s
Figure 6.3 shows a variation of the speed with time. The steady state speed is the same as
that of the commanded reference speed.
The above plots have been repeated with PWM control for comparing hysteresis control
with PWM control.
Figure 6.4shows the three phase currents as a result of the PWM current control obtained
from Park's reverse transformation. It is clear that the current is non sinusoidal at the starting and
becomes sinusoidal when the motor reaches the controller command speed at steady state. so by
using this control the steady state occurs after 0.016sec.
63
Figure 6.6 Motor Electrical Speed with PWM Controller at 200 rad/sec
Figure 6.6 shows a variation of the speed with time. The steady state speed is the same as
that of the commanded reference speed.
Figure 6.7 shows the three phase currents as a result of the hysteresis current control
obtained from Park's reverse transformation. It is clear that the current is non sinusoidal at the
starting and becomes sinusoidal when the motor reaches the controller command speed of
700 rad/sec at steady state. so by using this control the steady state occurs after 0.022sec.
64
Figure 6.8 Developed Torque with Hysteresis Control at 700 rad/sec
Figure 6.8 shows the developed torque of the motor. The starting torque is quiet high and
the steady state value of torque is reduced to 1.5 Nm at this speed. At this speed the motor is
operating in the constant power region.
Figure 6.9 Motor Electrical Speed with Hysteresis Control at 700 rad/sec
Figure 6.9 shows a variation of the speed with time. The steady state speed is the same as
that of the commanded reference speed of 700 rad/sec.
65
Figure 6.10 Iabc Current with PWM Control at 700 rad/sec
Figure 6.10 shows the three phase currents as a result of the PWM current control
obtained from Park's reverse transformation. It is clear that the current is non sinusoidal at the
starting and becomes sinusoidal when the motor reaches the controller command speed at steady
state. so by using this control the steady state occurs after 0.019sec.
Figure 6.11 shows the developed torque of the motor. When the speed of the motor is less
than the rated speed, the torque is more and gets reduced at speeds greater than the rated speed.
66
Figure 6.12 Motor Electrical Speed with PWM Control at 700 rad/s
Figure 6.12 shows a variation of the speed with time. The steady state speed is the same
as that of the commanded reference speed.
From the figure 6.13 it is also clear that the inverter switching frequency increases as the
hysteresis window size decreases. This relationship is shown in Figure 6.13. As the hysteresis
window size decreases, the required inverter switching frequency increases in a nonlinear
manner.
INVERTER SWITCHING FREQUENCY VS WINDOW SIZE
8
7
inverter swithing frequency(khz)
0
0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
hysteresis window size(pu)
67
From the results it is seen that PWM current control technique is superior to hysteresis
controller. Hysteresis control incurs higher switching frequencies with the possibility of
exceeding device ratings. PWM has constant switching frequency.
6.5 Conclusion:
This chapter discussed the simulation results of PMSM drive system. The parameters of
the motor are given. And also it is seen that PWM current control technique is superior to
hysteresis controller. Hysteresis control incurs higher switching frequencies with the possibility
of exceeding device ratings. PWM has constant switching frequency. PWM outperforms in terms
of switching frequency and torque pulsations.
68
CONCLUSION
A detailed Simulink model for a PMSM drive system with field oriented control has
being developed and operation below and above rated speed has been studied using two current
control schemes. Simulink has been chosen from several simulation tools because its flexibility
in working with analog and digital devices. Mathematical models can be easily incorporated in
the simulation and the presence of numerous tool boxes and support guides simplifies the
simulation of large system compared to Spice. Simulink is capable of showing real time results
with reduced simulation time and debugging.
Usually in such a drive system the inverter is driven either by hysteresis or by PWM
current controllers. A comparative study has been made of the two current control schemes in
terms of switching frequency.
This study proves that PWM current controllers are better than hysteresis current
controllers because of having constant switching frequency Hysteresis current controllers have a
variable switching frequency that depends of the hysteresis band and if the bandwidth is very
small it may affect the device switching capability. However, the simulation with hysteresis
current controller allows faster simulations with reduced time and computational resources.
69
FUTURE WORK
The implementation of additional control techniques like unity power factor control,
constant mutual air gap flux linkages control, optimum torque per ampere control and sensor less
control can be taken up for detail simulation and performance calculation of PMSM
drive systems. Detailed modeling and simulation of other types of synchronous motor drives
can also be taken up for transient and steady state analysis.
70
REFERENCES:
1.R. Krishnan and A. J. Beutler, “Performance and design of an axialfield permanent
magnet synchronous motor servo drive,” in Proc. IEEE Ind. Appl. Soc. Annu. Meeting, 1985, pp.
634-640.
2.E. Richter, T. J. E. Miller, T. W. Neumann, and T. L. Hudson, “Theferrite PM ac
motor-A technical and economic assessment, ” IEEETrans. Ind. Appl., vol. IA-21, no. 4, pp. 644-
650, May/June 1985.[4]
3.V. B. Honsinger, “Permanent magnet machines: Asynchronousoperation,” IEEE Trans.
PowerApp. Sysr., vol. PAS-99, no. 4, pp.[5]
4.T. J. E. Miller, “Transient performance of permanent magnetmachines,” in Proc. Ind.
Appl. Soc. Annu. Meeting, 1981, pp. 500-502.[6]
5.W. Leonard, Control of Electrical Drives. New York: Springer-Verlag, 1984.[7]
6. G. Pfaff, A. Weschta, and A. Wick, “Design and experimental resultsof a brushless ac
servo drive,” in Proc. IEEE Ind. Appl. Soc. Annu.Meeting, 1982, pp. 692-697.
7.R. Krishnan, “Analysis of electronically controlled motor drives,”class notes, Virginia
Polytechnic Inst. and State Univ., Blacksburg,1986.
8.M. Lajoie-Mazenc, C. Villanueva, and J. Hector, “Study andimplementation of
hysteresis controlled inverter on a permanent magnetsynchronous machine,” IEEE Trans. Ind.
Appl., vol. IA-21, no. 2,pp. 408-413, Mar./Apr. 1985.
9.P. Enjeti, J. F. Lindsay, and M. H. Rashid, “Stability and dynamicperformance of
variable speed permanent magnet synchronous motors,”in Proc. IECON, 1985, pp. 749-754.
10.-, “Parameter estimation and dynamic performance of permanentmagnet synchronous
motors,” in Proc. IEEE Ind. Appl. SOCA. nnu.Meeting, 1985, pp. 627-633.
11.P. Pillay and R. Krishnan, “Control characteristics and speedcontroller design for a
high-performance permanent magnet synchronousmotor drive,” in Proc. IEEE 1987 Power
Electronics Specialists’Cony., 1987, pp. 598-606.
12., “Application characteristics of permanent magnet synchronousand brushless dc
motors for servo drives,” in Proc. Ind. Appl. Soc.Annu. Meeting, 1987, pp. 380-390.
71
APPENDIX
PARAMETERS VALUES
Resistance (R) 1.4Ω
d-axis inductance (Ld) 6.6mH
q-axis inductance(Lq) 5.8mH
Moment of inertia (J) 0.00176kgm2
Damping constant(B) 0.00038818Nm/rad/sec
72