Sie sind auf Seite 1von 6

Compact Realisation of PWM-VSl Current Controller for PMSM Drive

Application using low cost standard microcontroller

Lars Norum, Wala'emar Sulkowski, h s Arne Aga

Department of Electrical Engineering and Computer Science


The Norwegian Institute of Technology, N-7034 Trondheim. Norway
Phone: + 47 7 594241 Tekfax: 4 7 7 59 42 79

Abs;ract:
This paper presents a completely digital realisation of PWM-
VSI current controller for PUSU drive application. l%c
current controll algorithm, including &coupling and
compensationfor mrrschinc parameters variation, is presented.
Thc controller is implemented in a single-board control
computer which is based on a new 16 bit microcontroller.
Experimental results are included

Introduction
The high efficiency, combined with compact design,
make permanent magnet excited AC motors auractive in high
performance electric drives. In tool machine servo and mobile
applications, the torque requirement is usually high for low
speeds, but allowing for decreased toque at higher speeds, i.e. Gw&&mmh
requirements which typically are met by field weakening in 'Ihe d-q transformed PMSM model in per unit values
traditional motor drives. As explained in [1,2,9], the salient with basic assumption that reference frame d-axe is fmed with
pole permanent magnet synchronous motor (PMSM) is an rotor permanent magnet flux Ymcan be described as a set of
alternative for drives where toque characteristic with flux
weakening isqmted. nonlinear differential equations with current and temperahue
dependent parameters [6.7].
Digital current controller and voltage modulation can
only give high bandwith cutrent control when the execution
time is short.In neported digital current controllers, either fast
signal processors with additional hardware devices or ASKS
[8] have been used to obtain satisfactory calculation speed.
These solutions give additional complexity in controller
hardware and quite a bit of software challenges. However, the
perfomance of sin& chip microcontrollersimproves rapidly.
'Ihispaper p-ts a PMSM drive with a fully digital regulator (3)
implemented in a microcontroller with on-chip peripherals
without additional processing circuits. (4)
To use the onchip embedded microcontroller peripherals
to realize the PWM output it was necessary to use a simple
and' fast modulation algorithm, suitable for digital
implementation. For accurate dynamic current control the
coomller structure should take into account existing PMSM
nonlinear properties i.e. currant dependent reactances.
The piesented control algorithm have been tested on an
experimental 2.8 kW PMSM drive. The applied control strategy where: ud. uq, b.iq. Yd, Yq are the complex space-vector
is presented, but the paper mostly focuses on the realization of d-q components for voltage.cum?nt and flux
the digital controller and the performance obtained. The drive respectively; q and % are d-q axis synchronous
is schematically drawn in figure 1. reactances.

0-7803-0695-3192$3.00 '1992 IEEE

Authorized licensed use limited to: UNIVERSITY TENAGA NASIONAL. Downloaded on January 11, 2010 at 13:34 from IEEE Xplore. Restrictions apply.
+ e
r5IUf
\\
tII
Fig.2. The structure of PMSM mathematical model.

The Emf of rotation in electrical part and torque equation Fig 3. The algorithmfor current controllerfor salient-pole PMSM

-
in mechanical part are sources of nonlinearity. The core
nonlinear property (saturation) affects in form of Xd and x4
changing with stator current. Assuming that current control
COMPACT REALISATION
strategy keeps id current component on zero level the
influence of the xd parameter variations can be neglected. The
dynamic changes of IYmI affects as disturbance on id as Emf
of transformationrepresented as dLy, derivative block. An experimental PMSM drive with a commercial 2.8kW
salient pole motor and fully digital current controller has been
Due to requirement for good dynamic and static built. The motor data listed in the appendix is given by the
performance in different operation regimes (as acceleration, manufacturer [18]. The motor is supplied from a three phase
breaking, field weakening) the current controller needs to inverter with IGBTswitches.
guarantee d-q stator current components decoupled control. The current controller algorithm is implemented in a
This implies controller structure inherently based on Siemens SAB80C166 [20] microcontroller. The
machines mathematical model shown in fig.2. To keep stator microcontroller is sited to a evaluation board from ertec Gmbh
current components separated the nonlinear regulators with [21] supporting RAM, ROM, addressing logic and clocking
decoupling compensation terms were applied. crystal. It is a high performance single-chip microcontroller
with ten 10 bit A/D converter channels, sixteen capture and
As a result of controller fixed constant reactances compare channels based on two 16-bit time bases. The
values Xbef and Xqref, the cross disturbances and steady state capturdcompare units have a resolution of 400ns. There is a
errors occurs. Figure 8a shows family of the +
current god priority scheme for the interrupt system, with 40Ons
responces to the +ref step changes. interrupt response. Interrupts for data transfer can be serviced
by cycle stealing direct memory access by the pheriperal event
The current regulators amplification factor Kq controller (PEC). The 32kB RAM and 32kB ROM give suffi-
calculated for the constant reactances values[6,7] is inadequate cient space for the programs, look-up tables and also for
for the whole used currents range. The proposed decoupling logging of control variables and measurements. User
is based on knowlege of & stator current dependent machine communication and presentation of monitored data is
parameters. To make fast responce and avoid overshooting the performed on a PC connected through the RS232 port. Figure
amplification of current regulator Kq , reactances Xdref and 4 gives an overview of the measurement and calculation hard-
xqRf were stored as $ stator current dependent nonlinear ware. For simplicity, only functions which are necessary for
functions values in look-up tables. this drive are shown.
Calculated stator voltage vector d-q components Vdref and A resolver on the shaft provides rotor position. Resolver
to digital (WD)conversion is performed by an AD2S80KD
Vqref and rotor position 8 were used as a input values for [22]. The maximum speed limits the resolution of position to
PWM voltage vector averaging method algorithm [ 16,171. 12 bit.

68 1

Authorized licensed use limited to: UNIVERSITY TENAGA NASIONAL. Downloaded on January 11, 2010 at 13:34 from IEEE Xplore. Restrictions apply.
Fig .4 . Logic bloc diagram. overall drive system

Additional sample and hold ( S / H ) circuits ensured The functions in the microcontroller block in fig.4 are
simultaneous sampling of the measured currents. The currents implemented as two tasks in the sofhvare. One containing the
were measured with LEM transfoshunts in two phases only, current controller, logging of measured values and generation
since no zero sequence currents are present. The switching of current references. The other task takes care of
ripple in the currents made it necessary to filter the communication with the PC.
measurements to avoid aliasing. Time delays in the current The current loop routine is driven by a software interrupt
control loop may cause error in torque control at higher
starting every 1OOp. In this interrupt AID conversions of the
speeds, thus the phase shift caused by the filter should be mini-
mized. A low pass filter with lkHz bandwith reduced the two current measurements are initiated, speed is calculated
switching ripple to less than 1% of the rated current, which and filtered from measured position values.
was considered as acceptable.
When the A/D conversions are finished an interrupt
For practical reasons, the a l l drive control circuits have service rutines containing the main code for the current loop
been located on three standard Europe cards. However, the starts. The cuttent measurement are first transformed to dq-
necessary circuits cover an area smaller then size of a double frame. Nonlinear values for decoupling and controller
Europe card. parameters are looked up according to the state of the
refemce currents. Then the algorithms for the axis current
controllers are executed. Calculations of decoupling terms and
Emf compensation for the controller outputs gives the dq-
frame voltages to be applied to the motor. The dq-frame
voltages are transformed to 3 phase voltage values that are
used to calculate switching time points for the voltage PWM
modulator.

Figure 5: Block diagram of the controller hardware.

A high performance high bandwith current controller for


this drive requires a sampling rate of about 5-2OkHz. With the
Siemens SPB8OC166 microcontroller a sampling rate of
lokHz was accomplishedBven if the SAB8Oc166 is a fast
device efficient programs had to be made to accomplish this
sampling thquency. The code for the current control loop, and
for communication with terminal PC is written in the ASM166
assembler language. Fig.6. Timing relations in the current loop.

682

Authorized licensed use limited to: UNIVERSITY TENAGA NASIONAL. Downloaded on January 11, 2010 at 13:34 from IEEE Xplore. Restrictions apply.
41.4 b)

12-
1.I
1
12 ~ -I ~ -
1-

4% i i i i io
N
i2 i4 i6 ia A
Fig.7. Responses in q-axis current to diflerent changes in q-axis current reference iqreffor a) constant
controller parameters b) iq dependent controller parameters

At the end of the current loop routine the time instant for
the next software interrupt is loaded. Logging of measured and
calculated values can also be performed. Finaly currents
references are generated.
The method for currents reference generation can be
chosen from terminal PC. The references can be read from a
tables or calculated by the speed controller. The speed
controller reference is generated in about the same fashion as
the current conmller references.

EXPERIMENTAL RESULTS

The speed and current controller implemented in by the


Simens microcontroller SAB8OC166 was tested on 2.8kW
PMSM drive (see motor data [18]) with IGBT voltage source
inverter. The sampling time for speed and current control was
loop.
The performance of the current controller can be
described in classical way by the response to a reference step
change. The rise time and the overshoot of the current
response are trade offs when tuning the drive parameters.
Fig.7b. shows the iq stator current response family to reference
step change for proposed iq dependent nonlinear parameter
tuned current controller. This allows for no overshoot
operation and c m n t rising time less then lms. Stator currents
were measured by LEM elements transformed and stored at
microcontroller memory by part of control algorithm. Logged
data was analysed and presented by using Matlab routines in
host PC.The more detailed test is shown in figure 8. where the
current controller response for one per unit step change is
shown. The proper &coupling and Emf compensation is
proved by the no transients behaviour in d-axis and zero steady
state exror in both d and q axis current regulators outputs. Fig.8. The current controller responsefor iqrefone per unit step change
The current loop dynamic performance, to sinusoidal a) iq current resppnse b) idcurrent response c) output of id current
+
perturbations of c m n t reference, is shown in figure 9 as a regulator d) output of iq current regulator.
amplitude and phase diagram.

683

Authorized licensed use limited to: UNIVERSITY TENAGA NASIONAL. Downloaded on January 11, 2010 at 13:34 from IEEE Xplore. Restrictions apply.
loo c [l]
REFERENCES
Jahns, T.M.,Wan, G.B., Neumann, T.W.,"Interior
permanent-magnet synchronous motors for adjustable-

iiw
Speed drives" IEEE T-IA, V O IA-22,
~ pp.738-47,1986.
121 Bose, B.K., "A high performance inverter-fed drive
system of an interior permanent magnet sylrchronous
10 3 motor" GM.hoc. IEEE IAS annual meeting, pp.269-
76, 1987.
131 Pfdf, G.,Weschta, A., Wick, A., "Design and experi-
mental d t a of a brushless ec servo-drive" GM.rec.
IEEE U S d m&lg, pp.692-97,1982.
-120
-100
[4] Xu, L., Xu, X.. Lipo, T.A., Novotay, D.W., "Vector
control of a synchronous reluctance motor including
-140 saturation and Iron loss", IEEE, pp359-64,1990
102 10 8
[51 Matsui,N.,Ohashi, H., "DSP-based adaptive control of a
brushless motor".IEEE, pp375-80,1988
Fig.9.. Thc dynamicallyperjorm~ccof the iq cyrrQIl controller 161 Balda, J.C., Pillay, P:; "Speed controlled design for a
vectorcontrolled permanent magnet synchronous motor
The dynamically performance of the whole drive with drive with parameter variations". IEEE, pp163-68,1990
speed and current control at no load condition is shown on fig [71 Pillay, P.. Krishnan, R., "Application characteristics of
10. By applying a constant reference signal with a small permanent magnet synchronous and brushless dc motors
sinusoidal component added, the mechanical speed bandwith for servo drives", IEEE.pp 380-90,1987
was measad. The mult shows god performance up to [81 Nielsen. P.E., Thomsen, E.C.. Nielsen, M.T., "Digital
lOOHz with the filter in speed measucement limiting the voltage vector control with adaptive parameter tuning"
bandwith. G M P~oc.EPE, pp.313-318,1989
191 Adnanes, AK., "High efficiency, high performance
permanent magnet synchronous motor drives"
.thesis,The University of Trondheim, The Norwegian
Institute of Technology, Department of electrical Power
Engineering, Division of Electrical Power Engineering,
1991
[lo] N M ~ D.,, Reuss, H.C., "Synchronous servodrive: A
very compact solution of control problems by means of a
single-chipmicrocomputer",IEEE, pp266-7 1,1988
U11 Naunin. D., Hetzel, D., Reuss, H.C., Sechehann. C.,
"Completely digital position feedback control for
synchronous servodrives"JEEE, pp452-59.1989
1121 Krishnan, R., Bharadwaj. A.S., "Single chip
microcontroller implementation of an incontrolled
induction motor drive system",IEEE, pp 265-71.1989
[131 Holtz, J.. Lammert, Pbtzkat, W., "High-speed Drive
System with Ultrasonic MOSFET PWM Inverter and
: $Fig.10. The dyMmic.CdlypCrfonC oflhe whole drive with speed and
lb Single-Chip Microprocessor Control", IEEE Trans.Ind.
Appl., ~ ~ 1 0 1 1 - 11987
5,
current control at no load conditwn 1141 Rowan, T.M.. Kerkman. R.J.. "A new Synchronous
Current Regulator and Analysis of Current-Regulated
CONCLUSION PWM Inverters" IEEE Trans. Ind, Appl., vol. -22. no. 4,
The realisation of a high performance fully digital JulyIAug. 1986.
PMSM drive requks a current controller with &coupling and (151 Lessmeier, R.. Schumacher, W., Lehonard, W.,
compensations for nonlinearities. By using a low cost "MicroprocessorControlled AC-Servo Drives with
microcontroller this can be realized in a compact form. Fast Synchronous Induction Motors: Which is Wferable?",
execution time, and though high speed and current bandwith. JEEE Trans.Ind. Appl., vol IA-22. pp812-819.1986
can be achived by effecient programing. With this solution, [16] Pollmann, A.J. "Software Pulsewidth modulation for c(P
10- m,.mg frequency for the current control loop was Control of AC Drives" IEEE Trans.Ind. Appl., vol. -22,
obtained. The current rise time to nominal value, without no. 4, 1986.
overshoot in the quadrature axis, and speed bandwith up to
lOOHz was obtained.

684

Authorized licensed use limited to: UNIVERSITY TENAGA NASIONAL. Downloaded on January 11, 2010 at 13:34 from IEEE Xplore. Restrictions apply.
[17] Norum, L.. Adnanes. A.K.. Sulkowski, W., Aga, L.A.,
"The Realization of a Permanent Magnet Synchrounous
Motor Drive with Digital Voltage Vector Selection
Current Controller". IECON91, Kobe, Japan, Oct 1991,
proceedings pp 182-187
[18] Industrial Drives, "B-206 Technical Data Publication"
Industrial Drives, 201 Rock Road, Radford Virginia
24141, Phone +1703 639-2495 Fax +1703 731-0847.
[19] Norum, L., "Microprocessor applications in power
electronics" dissertation, The Norwegian Institute of
Technology, 1985
[20] SIEMENS "Microcomputer Components SAB80C166
16-bit CMOS Single-Chip Microcontrollers for
Embedded Control ApplicationsUser's Manual 6.90"
[21] Evaluation board EVA166 Manual, ertec GmbH,
January 1991
[221 Analog Devices, "Analog-digital conversion handbook"
Prentice Hall, ISBN 0-13-032848-0. 1986.

Motor data

M.nuf.cturer Model
Industrial Drlves [*+I B-206.c
Ratedcumnt (m) Irated 10 A
Rated voltage (rms, 1-1) hl?d 250 v
Ratedmue TPIICA 6.83Nm
Wspced %ted 4900rpm
D m t axis inductance 4 5.33 mH
Quadratlirepxlripdll- Lq 13.W
Back cqf(rms 1-1) KE 31.1Vkrpm
Moment of inertia I 2.512 .IO4 knm2

685

Authorized licensed use limited to: UNIVERSITY TENAGA NASIONAL. Downloaded on January 11, 2010 at 13:34 from IEEE Xplore. Restrictions apply.

Das könnte Ihnen auch gefallen