You are on page 1of 7

DIRECT TORQUE CONTROL OF PMSM USING FUZZY LOGIC WITH PWM

G. Noriega (1), J. Restrepo (2), V. Guzmán (2), M. Giménez (2) and J. Aller (2)
(1) UNEXPO, Venezuela (2) Universidad Simón Bolivar, Venezuela

ABSTRACT

Since its development, Permanent Magnet Synchronous Machines (PMSM) has been used in a number of specific
applications. However, in recent years PMSMs have become more attractive due to developments in new materials for
permanent magnets and in semiconductor technology for converter design. Recent investigations have proposed some
implementations applying the Direct Torque Control (DTC) technique to PMSM motor drives, offering a fast and
accurate control. This paper presents a modified DTC scheme, using fuzzy logic with Pulse Wide Modulation (PWM)
to improve stator flux and the electric torque by significantly reducing their ripple. The proposed method effectiveness
has been verified by computer simulations and experimental tests on a laboratory prototype. These results are compared
with the ones obtained with a modified DTC using a PI controlled PWM with current limit.

Keywords: PMSM, DTC, PWM, fuzzy logic.

1 INTRODUCTION

During the last decade, the use of PMSMs has been 1 DIRECT TORQUE CONTROL
steadily growing in industrial applications, replacing
DC and induction machines. The principal advantages The classical DTC scheme is shown in figure 1. The
of these machines are their low inertia and high torque and flux estimator uses the DC converter’s
efficiency, power density and reliability. Additionally, voltage and currents, measured directly on the machine
PMSMs are ideal for applications where fast and terminals.
-
accurate torque control is required. +

The use of space vectors and field oriented Sa


transformations has been thoroughly developed for tref
te
Commutation Sb PWM
applications requiring fast dynamical response [1]. The Table
Sc
inverter

main limitations of these techniques are due to the lref


flux angle
transformation dependence upon machine model ls Vdc

parameters and the need for a rotor position sensor, flux and torque Ib
estimator
increasing the system cost. The use of DTC in PMSMs Ia

was proposed in the late nineties [3], [4]; since then M


there have not been major contributions for improving
this control technique. DTC [2] improves the machine Figure 1 Classical DTC scheme
controller performance and reduces the influence of
parameter variation during its operation, and uses an The flux space vector can be adjusted with the proper
inverter bridge switching table that sets the converter selection of one of the seven stator voltage vectors
output depending on the flux/torque errors and flux produced by the inverter bridge. The stator flux can be
angle. The bang-bang behaviour produced by the adjusted by increasing or decreasing its magnitude, and
limited number of states available in the inverter bridge rotated clockwise or anticlockwise to obtain the
(only seven different states) produces a prominent required torque. The seven different voltage space
electrical ripple torque. To solve this problem, in this vectors are function of the bridge connectivity, as
paper a space vector PWM-DTC with fuzzy control is described in figure 2. Stator flux is obtained integrating
proposed to produce an effect equivalent to the the electromotive force in the stator windings using the
inclusion of additional states in the inverter bridge. This following relation,
is achieved by altering the resulting amplitude of the
G G
λs = ∫ es dt = ∫ (vs − Rs is )dt
stator voltage. The results of the proposed fuzzy-DTC t G t G
method are compared with the ones obtained using a 0 0 (1)
standard DTC with on-off current limitation, and with a
modified DTC using a PI controlled PWM with current In general, using a conservative transformation for the
limit. active power, space vectors are defined as:
G 2⎡
2π 4π
⎤ J: moment of inertia,
⎥ ⋅ [xas (t ) xbs (t ) xcs (t )] (2)
j j t
xs = ⎢1 e
3
e 3
ρ: viscous friction coefficient,
3⎣ ⎦ ωm : mechanical speed,
The electric torque is calculated using the estimated flux Ke: back EMF constant.
G G
space vector λ and the stator current space vector i ,
⎡ sin(θ ) ⎤
obtained from measurements:
G G
Te = λs × is [v(t )] = [R ] ⋅ [i(t )] + [L] d [i(t )] − φ IP N e ⎢⎢sin(θ − 2π 3 )⎥⎥ω m (t )
(3) dt
⎢⎣sin(θ − 4π 3 )⎥⎦
(4)
The voltage and current vectors are represented by:
V3 (010) V2 (110)
⎡v A (t )⎤ ⎡i A (t )⎤
r2
Secto

[v(t )]=⎢vB (t )⎥ [i(t )]=⎢⎢iB (t )⎥⎥


⎢ ⎥
Secto

(5)
2
r3
Se

⎢⎣vC (t )⎥⎦ ⎢⎣iC (t )⎥⎦


or
ct

ct
or

Se
3

Secto r1
r4 Secto
V4 (011) The resistance and inductance matrix are:
r4 Secto V1 (100)
Secto r1
⎡R A
0 0 ⎤ ⎡R 0 0⎤

[R]= ⎢ 0 0 ⎥ = ⎢0 0⎥
5

Se

RB R (6)
or

ct

⎢ ⎥ ⎢ ⎥
Secto
r5
ct

or
Se

⎣⎢ 0 ⎥ ⎣⎢0 ⎥
6

R ⎦ R⎦
Secto

0 C
0
r6

V5(001) V6 (101) ⎡

LE + LE′ cos(2θ ) 1
2
(L +L′ cos2(θ + ))
E E
π
6
1
2
(L +L′ cos2(θ − ))⎤⎥
E E
π
6

Figure 2 Voltage space vectors as function of the [L]= ⎢ 12



( )
LE + LE′ cos2(θ + π )
6
LE + LE′ cos2(θ − 2π )
3
1
2
(L +L′ cos2(θ − ))⎥⎥
E E
π
2
inverter connectivity
⎢1
⎣2 (L +L′ cos2(θ − ))
E E
π
6
− 1
2
( LE + LE′ cos2(θ − ) π
2
) LE + LE′ cos2(θ − 4π )
3


The classic DTC technique [2] selects as the new (7)
voltage vector the one that maximizes the flux and The presence of trigonometric terms in these equations
torque error correction, and minimizes the number of is due to the use of two different coordinate systems,
commutations required to change from the old to the one for the stator and another for the rotor. The angle θ
new inverter output. Each vector will produce a is the relative position between these reference frames.
different change depending on the angular region where By transforming (4) to the stationary reference frame, a
stator flux is located. Table 1 shows the DTC switch simpler relation can be obtained:
selection algorithm.
⎡vα ⎤ ⎧⎪⎡R 0 ⎤ d ⎛ ⎡L0 0⎤ ⎡cos(2θ ) sin(2θ ) ⎤ ⎞⎫⎪⎡iα ⎤ ⎡−sin(2θ )⎤
Table 1: DTC commutation table ⎢v ⎥ =⎨⎢ + ⎜⎢ +L ⎢ ⎥ ⎟⎬⎢ ⎥ + K ⎢ ⎥ω (t )
⎣ β ⎦ ⎩⎪⎣0 R⎥⎦ dt ⎝⎜ ⎣ 0 L0 ⎥⎦ 1 ⎢⎣sin(2θ ) −cos(2θ )⎥⎦ ⎠⎟⎪⎣iβ ⎦ e ⎢⎣ cos(2θ ) ⎥⎦ m

e Te e λe Sector
(8)
1 2 3 4 5 6
ve =vα + jvβ
>0 >0 V2 V3 V4 V5 V6 V1
⎧ d d ⎫
>0 <0 V3 V4 V5 V6 V1 V2 ve =⎨Riα + iα (L0 + L1 cos(2θ ))+ iβ L1sin(2θ )− K sin(2θ )ωm (t )⎬
<0 >0 V6 V1 V2 V3 V4 V5 ⎩ dt dt ⎭
<0 <0 V5 V6 V1 V2 V3 V4 ⎧ d d ⎫
+ j⎨Riβ + iβ (L0 − L1 cos(2θ ))+ iα L1sin(2θ )+ K e cos(2θ )ωm (t )⎬
⎩ dt dt ⎭
3 PERMANENT MAGNET SYNCHRONOUS
MACHINE MODEL (9)
With
A mathematical model of the PMSM on the primitive Ld + Lq
frame is written in (4), where the symbols used in the L0 =
2
model are: (10)
Ld − Lq
vA, vB, vC : stator voltages, L1 =
iA, iB, iC : stator currents, 2
ωe : stator frequency,
RA, RB, RC : stator resistance, Where Lq and Ld are the stator inductances measured in
LA, LB, LC : stator winding inductance the direct and quadrature directions. For non-salient
θ: angle between stator and rotor, rotor Ld is equal to Lq because the magnetic path does
ФIP : rotor permanent magnet flux, not change with the angular position. For salient rotor
Te : electric torque, machines Ld is not equal to Lq, and the magnetic path
Tm : load torque,
for the flux depends on the rotor’s relative position,
hence: The fuzzy inference rules are presented in Table 2. In
this table Z stands for Zero, S for Small, M for Medium
and B for Big. The rules were heuristically obtained,
Ld = LE + LE′ cos(2 ⋅ 0 D ) = LE + LE′ (11) and had been tested and corrected in simulations.
Lq = LE + LE′ cos( 2 ⋅ 90 ) = LE − LE′
D
(12) S M B
1

Using (3), the electric torque equation is obtained as: 0.9

0.8

Te = λed ieq − λeq ied (13) 0.7

Membership Degree
0.6
Dynamic equation (14) completes the space vector 0.5
model of the PMSM:
0.4

d 0.3

Te = J ωm (t ) + ρωm (t ) + Tm (14) 0.2


dt
0.1

3 FUZZY INFERENCE SYSTEM 0


0 10 20 30 40 50 60 70 80 90 100

Fuzzy logic has been applied to the standard DTC Figure 3 Fuzzy Inference System’s discourse
algorithm to improve the drive performance, reduce universe, torque and torque error
S B
ripple in the electromagnetic torque and in the stator 1
currents. The voltage vector to be used is selected from 0.9
the switching Table 1, and its magnitude is determined 0.8
with a three dimensional fuzzy inference system, using
0.7
torque, torque error and stator current magnitude as
Membership Degree

input variables. Figures 3 and 4 show the membership 0.6

function for each variable. 0.5

0.4

The inference systems used with the electric torque and 0.3
the torque error have a uniform distribution that gives a 0.2
variable value. The membership function for the fuzzy
0.1
region labelled “small” (S) is an L shaped membership
function, for the fuzzy region labelled “medium” is a 0
0 10 20 30 40 50 60 70 80 90 100

triangular membership function, and for the fuzzy


region labelled “big” (B) is a gamma shaped Figure 4 Fuzzy Inference System’s discourse
membership function. For the current inference system universe, stator current magnitude
used to limit the stator current there are only two fuzzy
regions labelled “small” and “big”, and using an L
shaped and gamma shaped membership functions 3 SIMULATIONS
respectively.
Figure 5 shows the simulation scheme used in this work.
Table 2: Fuzzy inference system rules The simulations were performed on a digital signal
processor ADSP-21061 programmed in C language,
eT \ T S M B using equations (9), (13) and (14). Depending on the
magnitude of the torque and flux errors for each stator
S S M M flux zone, the commutation table selects the next bridge
M M M B state, and calculates the input voltage applied to the
B M B B machine model. Torque and flux are obtained directly
Small Current ( S) from the machine model and compared with their
corresponding references using two hysteresis
comparators. During machine start-up, stator current is
eT \ T S M B limited until the flux gets near its reference value.
S Z S S
A PMSM with the following characteristics was used in
M S S M
the simulations:
B S S M Rated power: 5 HP
Big Current (B)
Rated speed: 1750 RPM
Rated current: 8.4 Amps RMS 1
Rated Ke: 0,169 V/RPM
A nominal 640 V DC-link was assumed in the 0.8

simulations.

Flux (Wb)
0.6

tref lref 0.4


Z
te - + 0.2

PMSM + Switching 0
model ls - table 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (s)

S1 S2 S3 (a)
va 10

vb Bridge
5

Stator Current (A)


vc inverter
Figure 5. Simulation Scheme 0

Three different control methods were simulated: -5

(a) Standard DTC with on-off current limit. -10


The simulation results obtained with this method are
shown in Figure 6. In this case errors in torque or flux -15
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
are corrected by applying the full amplitude of the
Time (s)
selected voltage vector, regardless of the actual error (b)
amplitude. This step change in the applied voltage 3
causes prominent torque and flux ripple, and these
oscillations are reflected on the stator currents. 2
Torque (N.m)

1
(b) Modified DTC with PI controlled PWM current
limit. 0

The simulation results obtained with this method are -1


shown in Figure 7. The amplitude of the selected
voltage vector is modulated by the PI controller as a -2

function of error amplitude, avoiding the big step -3


changes produced in the standard DTC scheme. Ripple 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (s)
in both torque and flux are greatly reduced when (c)
compared with the previous method.
Figure 6 Simulations results for the classical DTC
(c) Proposed Modified fuzzy DTC with inference based
current limit. The experimental tests were performed in conditions
The results obtained in this simulation are shown in equivalent to those considered in the simulations. The
Figure 8. The selected voltage vector has been experimental results are presented in figures 9 (standard
modulated by the fuzzy controller. As can be seen, the DTC with on-off current limit), 10 (modified DTC with
results here are very similar to the ones produced in case PI controlled PWM current limit) and 11 (modified
(b), but actual control implementation is much simpler. fuzzy DTC with inference based on current limit).
4 EXPERIMENTAL RESULTS As expected from theory and simulations, the Standard
DTC with on-off current limit scheme produces in
Once the proposed modified fuzzy DTC with inference practice a ripple torque equal to almost 50% of the
based current limit PMSM control scheme was steady-state value. Flux ripple is also present, the stator
validated by the simulation results, an experimental set- currents reach an initial peak value more than five times
up using PLATFORM III [6] and a PMSM motor with bigger than their steady-state values, and the steady
the same motor parameters used in the simulation was state current ripple is about 20% of the mean current
employed to test the three control schemes previously value.
considered in the computer simulations.
current limit scheme since all the ripple were
1 significantly lower in this case.
0.8
1
Flux (Wb)

0.6
0.8

Flux (Wb)
0.4
0.6

0.2
0.4

0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.2
Time (s)
(a) 0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
10 Time (s)
(a)
5
Stator Current (A)

10

0
5

Stator Current (A)


-5
0

-10
-5

-15
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 -10
Time (s)
(b) -15
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
3 Time (s)
(b)
2
3
Torque (N.m)

1
2
0
Torque (N.m)

1
-1
0
-2
-1
-3
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 -2
Time (s)
(c) -3
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Figure 7 Simulations results using a DTC-PI Time (s)
controller (c)
Figure 8 Simulations results with the fuzzy-DTC
controller
As expected, both the modified DTC using PI controlled
PWM with current limit and the modified fuzzy DTC
with inference based current limit schemes outperform The biggest reduction was observed in the ripple torque,
the standard DTC scheme in all accounts: peak initial almost halved in the new method.
current is controlled and the torque, flux and stator
currents ripples are reduced. The modified fuzzy DTC with inference based current
limit scheme improved performance, observed when the
Nevertheless, significant differences between the experimental results are analysed, is due to the
simulated and the experimental results can be observed simplifying assumptions in the machine model (constant
in the two modified schemes. In the simulations, the and precisely know parameter values, linearity,
modified DTC with PI controlled PWM current limit complete symmetry, etc.), hence the precise calculations
scheme produced results that were very similar to those performed in the PI controller produce precise results in
produced by the new modified fuzzy DTC with the simulation, where all simplifying hypothesis hold
inference based current limit scheme, hence no clear true, but are in practice are affected by errors that
advantages can be claimed by one over the other. But in degrade the actual system performance. As seen in these
the experimental results the new modified fuzzy DTC experimental tests, a proper selection of the fuzzy
with inference based current limit scheme clearly out- parameters can partially compensate for the unavoidable
performs the modified DTC with PI controlled PWM unknowns in any machine model.
4
1 3

Stator Current (A)


2
0.8
1
Flux (Wb)

0.6 0

-1
0.4
-2

0.2 -3

-4
0 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 Time (s)
Time (s) (b)
(a)
10 3

2
5
Stator Current (A)

Torque (N.m)
1
0
0
-5
-1

-10 -2

-15 -3
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (s) Time (s)
(b) (c)
3 Figure 10 Experimental results using a PI-DTC
controller
2
Torque (N.m)

0 1

-1
0.8
Flux (Wb)

-2
0.6
-3
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
0.4
Time (s)
(c)
Figure 9 Experimental results using a the classical 0.2

DTC
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (s)
1 (a)
4
0.8 3
Flux (Wb)

Stator Current (A)

2
0.6
1
0.4 0

-1
0.2
-2

0 -3
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (s) -4
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
(a) Time (s)
(b)
3 Overall it can be concluded that the new control
2
technique for PMSM presented in this paper, combining
fuzzy logic for PWM and a DTC scheme keeps the
Torque (N.m)

1
robustness, reliability and simplicity of DTC scheme
0 and significantly reduces the torque, flux and current
-1
ripples, with a high dynamic response and versatility.

-2
6 REFERENCES
-3
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Time (s) 1. F. Baschke, “The principle of field orientation as
(c)
applied to the new transvektor close-loop control
Figure 11 Experimental results using the proposed
system for rotating-field machines”, Siemens
fuzzy-DTC controller
Review, Vol. 34, pp. 217-220, 1972.
2. T. Naguchi and I. Takahashi. “A new quick-
response and high-efficiency control strategy of an
5 CONCLUSIONS
induction motor”. IEEE Trans. on Ind. Appl, IA-
22:820-827, September/October 1986.
The Standard DTC with on-off current limit scheme is a
3. C. French and P. Acarnley, “Direct torque control
fast and effective way to control electric torque and flux
of permanent magnet drives,” IEEE Trans. Ind.
in a PMSM machine. Nevertheless, if no modulation on
Applicat., vol. 32, no. 5, pp. 1080–1088, Sept./Oct.
the vectors selected by the commutation table is used,
1996.
its behaviour is rather bang-bang like, producing
4. L. Zhong, M. F. Rahman, W. Y. Hu, and K. W.
prominent ripple on the generated torque and stator
Lim, “Analysis of direct torque control in
currents, which can cause instability and increase the
permanent magnet synchronous motor drives,”
losses problem in the whole system.
IEEE Trans. Power Electron., vol. 12, no. 3, pp.
DTC performance can be considerably enhanced if the
528–536, May 1997.
amplitude of the voltage vector selected is modulated as
5. J. Nash. “Direct Torque Control, Induction Motor
a function of the error magnitudes. This modulation
Vector Control Without an Encoder”. IEEE Trans.
considerably reduces the ripple produced by DTC, and
in Ind. Appl., IA-33(2):333-341, March/April
does not cause big delays on the overall system
1997.
response but increases the inverter bridge frequency,
6. Restrepo, J. et al, “PLATFORM III: A new
reducing the efficiency.
version for the integrated test system for ac
Both methods, classical PI and fuzzy logic modulation,
machine drives performance analysis”,
show similar capabilities regarding initial peak stator
Proceedings of the IEEE-ICCDCS 2002.
current control, and both are able to reduce torque, flux
and stator current ripples.
In the simulations, the modified DTC with PI controlled
PWM current limit and the new modified fuzzy DTC
with inference based current limit schemes produced
almost identical results. Experimental tests showed that
the new modified fuzzy DTC with inference based
current limit scheme outperformed the modified DTC
with PI controlled PWM current limit scheme,
producing the best results with the biggest reduction in
torque, flux and stator current ripple.
The advantages of the new Modified fuzzy DTC with
inference based current limit scheme are due to the fact
that fuzzy techniques inherently include the effects of
irregularities or non-linearities of the system in their
inferences, making this approach more flexible and
easier to modify that those based on rigid deterministic
models, such as the modified DTC with PI controlled
PWM current limit scheme. The implementation of the
new Modified fuzzy DTC with inference based current
limit scheme is simple, and the increase in
computational time are significantly lower that those
required to implement the modified DTC with PI
controlled PWM current limit scheme.

You might also like