High Performance Position Control of Permanent Magnet Synchronous Drives
High Performance Position Control of Permanent Magnet Synchronous Drives
Abstract— In the design and test of electric drive control maintenance, etc., make the PMSM an interesting choice in
systems, computer simulations provide a useful way to verify applications such as industrial robots, CNC milling machines,
the correctness and efficiency of various schemes and control electric vehicles, wind turbines, etc. [1] [2] [3].
algorithms before the final system is actually constructed, A widely used control method in high-performance AC
therefore, reducing development time and associated costs. drives is field oriented control, also known as vector control.
Nevertheless, the transition from the simulation stage to the This approach allows to regulate the three-phase AC machine
actual implementation has to be as straightforward as possible. currents by controlling the current space vector in the rotating
This paper presents the design and implementation of a position reference frame, making the control similar to that of the
control system for permanent magnet synchronous drives using separately exited DC machine, but maintaining all the benefits
the dsPIC33FJ32MC204 microcontroller as the target processor of AC machines [4].
to implement the control algorithms. The overall system is
The overall performance of an electric drive will depend not
simulated and tested in Proteus VSM software which is able to
only on the accuracy and speed of the control, but also on the
simulate the interaction between the firmware running on the robustness of the controller to operate correctly even if there are
microcontroller and the analogue circuits connected to it. The significant external disturbances, uncertainties in motor
electric drive model is developed using elements present in the parameters, and lack of precise mathematical models.
Proteus VSM library. As in any high-performance AC electric
drive system, field oriented control is applied. The complete This paper deals with the design and implementation of a
control system is distributed in three control loops, namely PMSM drive control system, considering two types of
torque, speed and position. A standard PID control system, and controllers namely: a PID-based controller and a hybrid
a hybrid control system based on fuzzy logic, are implemented controller based on fuzzy logic. The PMSM drive is simulated
and tested. The natural variation of motor parameters, such as and tested through the software Proteus VSM, using the
dsPIC33FJ32MC204 as the target processor. Simulation models
winding resistance and magnetic flux, are also simulated.
for stator resistance and permanent magnet flux variations are
Comparisons between the two control schemes are carried out also presented.
for speed and position control using different error
measurements, such as, integral square error, integral absolute II. LITERATURE REVIEW
error and root mean squared error. Comparison results show a Machine parameters change dynamically with temperature
superior performance of the fuzzy-logic-based controller when variations, magnetic saturations, skin effect, etc. These changes
coping with parameter variations, and by reducing torque may affect the performance of an electric drive. To deal with
ripple, but the results are reversed when periodical torque these drawbacks, various nonlinear control techniques such as
disturbances are present. sliding mode controllers, fuzzy-logic controllers, adaptive
Keywords—electric drives prototyping; permanent magnet controllers, and hybrid controllers have been developed in recent
machines; position control; Proteus VSM, dsPIC30F/33F, fuzzy years. Some of these non-linear control techniques, applied to
controllers. control PMSM drives, are reviewed in this section.
_____________________________________
978-1-5386-1069-5/17/$31.00 ©2017 IEEE
A model reference adaptive controller applied to control need of having a prior knowledge of the constrain conditions of
position on a PMSM have been proposed by Liu Mingji et al. the system, thus, increasing the portability of the controller to
[5]. The experimental results show a satisfactory performance other nonlinear dynamic systems. The adaptive hybrid controller
of the electric drive despite uncertainties and parameter was applied to the position loop, skipping the velocity loop and
variations. thus, giving the torque reference directly to the current/torque
controller. The experimental results successfully confirmed that
B. Fuzzy Logic Model Reference Adaptive Control the proposed adaptive hybrid control system grants robust
Basically, Fuzzy Logic is a multilevel logic which allows to performance and precise dynamic response to the reference
define intermediate values when evaluating a statement. It is an model regardless of the PMSM parameter variations and load
attempt to catch and represent the human knowledge. In fuzzy disturbances.
logic, an affirmation can be truth for many degrees of truth, The above referenced works present various non-linear
from completely true to completely false [6]. control methods which can be applied to cope with uncertainties
Nowadays, fuzzy logic is widely applied in control systems. and parameter variations in PMSM electric drive systems.
A fuzzy logic controller will use fuzzy membership functions Nevertheless, the controller’s complexity, the required
and inference mechanisms to determine the appropriate control processing power to implement the control algorithms, and the
signal. Fuzzy-logic-based controllers are usually applied associated costs have to be taken into account when
together with other types of controllers/systems to achieve implementing electric drive control systems.
better performances [7].
Ying-Shieh Kung and Pin-Ging Huang [8], have presented III. ELECTRIC DRIVE MODEL
a high-performance position controller for PMSM using a
A. PMSM Model
fuzzy-logic controller in the position control loop with and
adaptation mechanism based on the gradient method. The The dynamic behavior of the PMSM, in the d-q reference
overall system, including the adaptive controller and the frame, is governed by the following equations [12]
SVPWM scheme were implemented in a TMS320F2812 DSP 1
= − + (1)
chip taking advantage of it power processing and peripheral
availability, and experimental results demonstrated that in step 1
command response and frequency command response, the rotor = − − − (2)
position can fast track the prescribed dynamic response, thus,
obtaining a high-performance position controller for PMSM. 3
= − − (3)
2
C. Sliding Mode Control
Sliding mode control is a nonlinear control method whose Where
purpose is to alter the dynamic of a nonlinear system applying a is the electrical angular frequency
discontinuous control signal that force the system to “slide” , are the d-axis and q-axis currents respectively
along a defined state-space trajectory. The intrinsic
discontinuous characteristic of the sliding mode allows a simple , are the d-axis and q-axis voltages respectively
control that can be designed to switch between only two states , are the d-axis and q-axis inductances respectively
(on/off) without a precise definition, therefore, adding is the stator resistance
robustness against parameter variations [9]. is the permanent magnet flux linkage
Fadil Hicham et al. [10], present a velocity control of PMSM is the number of pole pairs
based on the sliding-mode and a fuzzy-logic system for is the total inertia
chattering minimization. The proposed system was tested by is the viscous friction
means of computer simulations using the software tool PLECS is the load torque
integrated with MATLAB/Simulink. The controller was The electrical speed is related with the mechanical speed by
implemented in a eZdspF28335 board using
MATLAB/Simulink rapid prototyping to control an 80W =
PMSM. Results confirmed the effectiveness of the fuzzy-logic The machine model in the d-q reference frame is
sliding mode controller to reduce the chattering effect and to implemented in Proteus using controlled voltage/current
cope with uncertainties. sources, and discrete elements (resistors, inductors, capacitors).
D. Hybrid Non-Linear Control Figure 1 shows this implementation.
Various control techniques can be applied together in order The three-phase model of the PMSM is obtained applying
to obtain an enhanced control performance. A hybrid position reference frame transformation circuits. The three-phase input
controller for PMSM conformed by three main controllers voltage is converted to a bi-phase voltage source in the fixed α-
namely, an adaptive fuzzy-logic-neural-network controller, a β reference frame (Clarke’s transformation). Since the machine
robust controller and an auxiliary controller based on the sliding model is developed in the rotating reference frame, the α-β to
mode had been proposed by Fayez F.M. El-Sousy [11]. This d-q transformation (Park’s transformation) must be applied.
complex controller is designed in order to guarantee stability and
high-performance operation of the PMSM, and to eliminate the
Dynamic estator q-axis equivalent circuit B. Inverter Model
IQ
1.0*I(A,B)
ID*W
The inverter is simulated considering the following
IQ equations
Vqr
RS LQ
V_Q
2.98 7mH
P/2*LD*ID*W = (2 − − )
2.0*0.007*V(A,B) 3
W
VA*VB
P/2*PHI_MG*W
2*V(A)*V(B) = (2 − − )
PHI_MG
3
= (2 − − )
Dynamic estator d-axis equivalent circuit 3
ID
1.0*I(A,B)
This simplified representation of a three-phase inverter is
used in order to reduce computational load and required
ID
P/2*LQ*IQ*W
The signal conditioning circuits are not directly
IQ*W
2.0*0.007*V(A,B)
TLOAD
1.0*V(A,B)
= + ( ) +
= + ( ) +
Where
= ∗−
= ∗−
=−
= +
Figure 2. Current control of PMSM
B. PI Speed Controller
The Laplace transfer functions of the above equations are Rewriting the speed differential equation (3) as
1 3
( ) =− + −
= 2
( ) + and applying the Laplace transformation to get the relationship
1 between the angular velocity and the q-axis current
( ) 3
= + Ω ( )= ( )
( ) + 2
3 2 − +
Ω ( ) 2
∗ =
( ) + +2 +
where
∗
∗
= Figure 4. Input membership functions for the fuzzy-tuned PI speed
controller
D. Fuzzy Tuned PI Speed Controller The names for the output membership functions are defined
The use of a fuzzy inference system can be adopted to as follows
determine the values of the PI speed controller parameters VS = Very Small
during the transient response in order to decrease the rise time S = Small
and reduce the overshoot [13]. M = Medium
A schematic diagram of the proposed fuzzy-tuned PI speed L = Large
controller is presented in figure 3 VL = Very Large
The output values will be the proportional and integral
parameters of the PI speed controller, designated as and Δ
respectively. Figure 5 shows the output membership functions NB N Z P PB
→S →S → VS → VL → VL
NB
→M →M → VL → VS → VS
→S → VS →M →L → VL
N
→M →S →M →S → VS
→L →M → VS →M →L
Z
→S →M → VS →M →S
→ VL →L →M → VS →S
P
→ VS →S →M →S →M
→ VL → VL → VS →S →S
PB
→ VS → VS → VL →M →M
Figure 5. Output membership functions for the fuzzy-tuned PI Table 1. Rule-base for the fuzzy-tuned PI speed controller
speed controller
∆ ID*W
IQ
NB NM NS Z PS PM PB
Vqr
RQ_STEP RS LQ
NB NB NB NB NB NM NS Z V_Q
6 2.98
7mH
Zp*Ld*V(A,B)
NM NB NB NB NM NS Z PS
NS NB NB NM NS Z PS PM W
VA*VB Zp*V(A)*V(B)
R_STEP PHI_MG
VSWITCH
Z NB NM NS Z PS PM PB
PS NM NS Z PS PM PB PB
1.0*I(A,B)
PM NS Z PS PM PB PB PB ID
PB Z PS PM PB PB PB PB RD_STEP R6 LD
V_D
7mH
Table 2. Rule-base for the fuzzy-logic position controller Vdr
6 2.98
Zp*Lq*V(A,B)
IQ*W
In order to improve the position controller response at
steady-state, an error proportional factor is applied to the output R_STEP
+0.125V
Phi_mg nominal
PHI_MG Figure 12. PI current controller test
PHI_MG
OFF
VA*VB V(A)*V(B)
+1V