A DSP Based Servo System Using Permanent Magnet
Synchronous Motors PMSM
Longya Xu, Minghua Fu, and Li Zhen
The Ohio State University
Department of Electrical Engineering
2015 Neil Avenue
Columbus, OH 43210
Abstract- A digital servo system using a Digital Signal Pro cessor DSP is presented in this
pap er. A Permanent Magnet Synchronous Motor PMSM with rotor p osition enco der and
Hall sensor is used. The eld oriented vector control technique is employed to achieve robust
p erformance and fast torque resp onse. The system uses p osition and sp eed regulations as the
system outer lo op, and the current regulation with vector control as the inner lo op. A DSP system
using TI's TMS320C240 is develop ed, and the prop osed digital control strategy is implemented
in the DSP.
Key Words: Vector Control, Motion Control, Servo System, Digital Control, Permanent Mag-
net Synchronous Motor PMSM, Digital Signal Pro cessor DSP
I. Intro duction
Precise motion control plays an imp ortant role in various areas such as automation industry,
semiconductor industry, etc. Permanent magnet synchronous motors PMSM are ideal for
advanced motion control systems for their p otentials of high eciency, high torque to current
ratio, and low inertia. Advances in Digital Signal Pro cessors DSP have greatly enhanced the
p otential of PMSM in servo applications. Digital control can b e implemented in the DSP, which
makes it sup erior to analog based stepp er control, since the controller is much more compact,
reliable, and exible. High p erformance of PMSM can be obtained by means of eld oriented
vector control, which is only realizable in a digital based system.
In this pap er a DSP based servo system is presented. A digital servo controller using TI's
TMS320C240 is develop ed. Position and sp eed regulations are develop ed to ensure accurate
p osition control and fast tracking, and current regulation with eld oriented vector control is
implemented to secure fast dynamic resp onse. The system has b een proved to be robust and
e ective with very reasonable cost.
II. Analysis of PMSM Vector Control 1
The mo del of a PMSM is shown in Fig. 1. Di erent reference frames can be used to analyze
the motor, that is, 3-phase frame a-b-c, stationary frame x-y, or rotational frame d-q [1].
From the control p oint of view, the d-q reference frame is convenient and most widely used. Note
that the d-axis of the reference frame is lo cked to that of the p ermanent magnet.
y y
b q q
V
E I Liqq d λ d θ iq λ Lidd O a ,x m O θ a, x id
(b) (a)
c
Figure 1: aDi erent frames of the PMSM. bFlux, Current and Voltage Vectors
The voltage and ux equations for a PMSM in the rotational d-q reference frame can be
expressed as:
d
d
V = R i + ! 1
d s d q
dt
d
q
V = R i + + ! 2
q s q d
dt
= L i + 3
d d d m
= L i 4
q q q
where V ;V and i ;i are voltages and currents in the d-q axis, R is the stator winding resistance,
d q d q s
L ;L are inductances in d-q axis, ; are ux linkages in d-q axis, is the main ux linkage
d q d q m
of the p ermanent magnet, and ! is the angular frequency of the rotor. The transformation
between di erent reference frames can be achieved by[1]
3 2 2 3
i i
a d
7 6 6 7
i i
5 = T
5 4 4 5
b q
abc dq
i 0
c 2
3 2 3 2
i i
a x
7 6 7 6
6 i = T i
5 4 5 4
b abc xy y
i 0
c
" "
i i
x d
7 = T
xy dq
i i
y q
where
3 2
cos cos 2=3 cos +2=3
2
7 6
sin sin 2=3 sin +2=3
T =
5 4
abc dq
3
1=2 1=2 1=2
3 2
1 1=2 1=2
p p
2
7 6
T =
0 3=2 3=2
5 4
abc xy
3
1=2 1=2 1=2
"
cos sin
T =
xy dq