You are on page 1of 4

Simulation of Sliding Mode Control for PMSM on

Account of Variable Exponential Approach Law


1st Qun Wang 2nd Jing Chen 3rd Zheng Zhou
School of Automation, Wuhan School of Automation, Wuhan School of Automation
University of Technology University of Technology Wuhan university of technology
Wuhan University of Technology Wuhan University of Technology Wuhan, China
Wuhan 430070, China Wuhan 430070, China Email: zzheng0516@whut.edu.cn
qunwang@whut.edu.cn jingchen680@163.com

Abstract—Aiming at such control requirements of the servo system. The rest part of the paper as follows. Section II
permanent magnet synchronous motor (PMSM) as smooth introduces the variable exponential reaching law and details
accurate speed regulation and anti-interference in integrated the design of SMC. Section III details and analyses the SMC
injection molding machine, a SMC method on account of implementation of PMSM servo system. Section IV
variable exponential approach law is put forward in this paper. establishes the simulation model as well as analyses the results.
It is applied to the speed loop of the PMSM servo system. Firstly, Section V concludes the paper and points out the important
the sliding mode speed controller on account of variable future work.
exponential approach law is design. Then, the sliding mode
speed controller of PMSM servo system is implemented. Finally, II. DESIGN OF SLIDING MODE SPEED CONTROLLER
the simulation is performed by MATLAB. The simulation
results prove that the method is more effective and suppresses A. Variable exponential reaching law
the chattering of sliding mode control, improving the dynamic Generally, the motion system of SMC includes two parts.
quality and robustness of the PMSM servo system. One part is the normal motion which is at the outside sliding
surface. It is the step from approaching the sliding surface to
Keywords—Variable exponential reaching law, PMSM,
reaching the sliding surface. Another part is the motion near
Sliding mode control, MATLAB/Simulink simulation
the sliding surface and along the sliding surface s(x,t)=0. It is
I. INTRODUCTION the stage of moving along the switching surface towards the
equilibrium point. Various approaching law functions is able
The injection molding process is a complex and repetitive to be used to make sure the quality of these two stages.
process. It mainly consists of pre-molding, mold clamping,
injecting, pressure holding, cooling, mold opening, ejecting. The variable exponential reaching law function is adopted
Mold clamping process is one of the main process, which is in this paper, as shown in Formula (1).
the key to ensure the quality of products[1].
<
In the mold clamping process, the motor drives the  s H e sgn(s)  qs  
quantitative pump to make hydro-cylinder move. Generally,
there are three steps of fast mold clamping, high-pressure
mold locking and low-pressure mold locking. During different Where, q > H >0, lim e 0 .
t of
stages of the mold clamping process, injection molding
machine’s controller will send out various control data signals. The state variables move towards the sliding surface at two
The servo driver chooses the pressure or flow control mode rates of variable speed and exponent at the beginning of the
according to the signals[2]. To control the hydraulic system’s motion. When the motion approaches the sliding surface, the
pressure and flow requires only precise control of the torque exponential term tends to zero, and then the variable speed
and speed of the motor. In this process, the driver will also
term H e s plays a key role. When tending to zero infinitely
collect feedback signals of pressure and flow through the
sensor. Then, it constantly adjust the torque and speed of the in the stability process of SMC, the status variable e enters
motor to achieve accurate control of the mold clamping the sliding surface ,as well as moves toward the origin through
process. The PMSM is used in this process[3]. the variable exponential reaching law. During this process, the
The servo system of PMSM possesses the features of non- control term H e s continuously decreases and finally
linearity and strong coupling. It is easily affected by internal stabilizes near the origin. It makes the coefficient of the
parameters or external disturbances changes of the motor[4]. chattering control term sgn(s) become zero, thus eliminating
Therefore, the robust control method of PMSM has become the chattering.
one of the focuses of motor research in recent years[5]. Sliding
mode control is inactive to disturbances and parameters, and B. Sliding mode speed controller designs on account of
possesses more fast response speed. It plays a vital function in different exponential approach law
the robust control of the PMSM. The choices of reaching law To facilitate the design of sliding mode speed controller,
and gain directly influences robustness and chattering of SMC. take a surface-mounted PMSM (Ld=Lq=Ls) as an example.
At present, the research on PMSM mainly focuses on the The math model in d-q rotating coordinate is setted up, as
design of reaching law and weakening of the chattering of shown in Formula (2). The torque equation is shown in
SMC[6]. Formula (3) and the motion equation is shown in Formula (4).
In this paper, a SMC method on account of variable
exponential approach law is proposed. The design of sliding
mode speed controller is applied to the speed loop of PMSM

978-1-7281-4094-0/19/$31.00 ©2019 IEEE 3518


Authorized licensed use limited to: Walchand College of Eng. Downloaded on January 09,2023 at 12:14:07 UTC from IEEE Xplore. Restrictions apply.
­ d 1 t <
D ³0
Rid  Ld i d  p n Z m Lq i q  iq* >c e  H e sgn( s )  qs@ dW     
°° u d dt
 ®  
°u d
Riq  Lq iq  p n Z m Ld id  p n Z m M f Therefore, the structure block diagram of SMC based on
°̄ q dt
variable exponential reaching law can be obtained, as shown
in Fig. 1.
3
 Te pnM f iq  
2
Variable
+
Discretized + exponential + Discretization Limited
dZ differential Reaching law + Integral output
 Te TL  FZm J m   function
dt

Where ud is d -axis voltage and u q is q -axis voltage, Fig. 1 Basic structure block diagram of SMC
id is d -axis current and iq is q -axis current, Ld is d -axis
To further reduce the chattering of the moving trajectory
inductance and Lq is q -axis inductance, R is stator of the state variable before reaching the origin. The sign
resistance, pn and Zm are polar logarithm and mechanical function in the buffeting control term is smoothly processed,
as shown in Formula (11). Where V is a very small normal
angular speed respectively, M f is the permanent magnet flux,
number.
Te is the electromagnetic torque, TL is the load torque, J is
the moment of inertia, F is the damping coefficient. s
 sgn(s)   
State variable of the PMSM system is defined, as shown s V
in Formula (5). Formula (6) can be obtained from above
formulas. The sliding surface function is defined, as shown in
Formula (7). In addition, while the chattering is greatly weakened by
the variable exponential reaching law, the system still has
stronger robustness. The sliding mode gain is designed to
­°e Zm  Zm show a non-linear relationship with the speed error signal, as
 ®< <   shown in Formula (12).
°¯e Zm
­100  e t 1
­< 1 3  H = °®100 e  e  1 
<
Z m = ˄ 7L  p nM f iq˅  
°° e J 2
 ® <<   °
<< 3 p nM f < ¯ 0.5  e d 0.01
°e  Zm  iq
°̄ 2J
It is able to see that from Formula (10) the SMC contains
< integral terms. Firstly, it can reduce the phenomenon of
 s cs  s     chattering. Secondly, it is able to remove the system’s steady-
state error and improve the system’s control performance. It is
able to see that from Formula (12) the designed sliding mode
Where, c >0, Z m is the motor’s setting speed parameters ,
gain further fits the actual control process of the system.
Zm is the motor’s actual speed parameters.
<
Formula (8) can be obtained after taking the derivative of In addition, through calculation can obtain s s  0 .
s and substituting it into above formulas. According to Lyapunov stability criterion, the sliding mode
speed controller on account of different exponential approach
< < << <
law is stable.
 s ce e =ce Du     III. SMC IMPLEMENTATION OF PMSM SERVO SYSTEM
< Vector control methods mainly includes id=0 control,
Where, u i q ; D 3 pnM f / 2 J . maximum torque-current ratio control and weak magnetic
control. With regard to surface-mounted PMSM, the rotor
To make sure the good dynamic quality of PMSM servo field oriented vector control method with id=0 is adopted to
system, the variable exponential approach law method is earn better control performance. As shown in Formula (3),
adopted here. According formula (1) and formula (8), the electromagnetic torque Te can be accurately controlled of by
expression of the controller can be obtained through
simplification, as shown in formula (9). So, the reference controlling iq .
current of the q-axis can be obtained as shown in formula (10).
The PMSM of clamping system is used as the research
object. The sliding mode speed controller on account of
1 <
 u > c e  H e sgn( s )  qs@     variable exponential reaching law is used to the speed loop of
D PMSM vector system. The schematic diagram of vector
control is shown in Fig. 2. The PMSM vector system on

3519
Authorized licensed use limited to: Walchand College of Eng. Downloaded on January 09,2023 at 12:14:07 UTC from IEEE Xplore. Restrictions apply.
account of sliding mode speed controller consists of d axis Motor TYB325 Rated power
5
Rated phase
220
current loop, q axis current loop and speed loop. Variable Model -42-80 /KW voltage /V
Rated
exponential approach law is applied to the speed loop and PI speed 3000
Rated torque
20
Moment of
0.003
controller is used in the current loop. /N*m inertia /kg/m2
N/r/min
Torque Stator
d-axis stator
+ coefficient 0.008e-4 5.85 inductance 12.25
current loop resistance /Ω
- /N*m/A /mH
PI controller

Speed q-axis
+ + SVPWM
loop current loop
- -
SMC PI controller
PWM signal

Three-phase
Inverter

Rotor
Detection PMSM
Device

Fig. 2 Principle block diagram of PMSM vector control


based on SMC
Fig. 3 PMSM vector simulation model based on SMC
The specific implementation process is as follows.
Firstly, the current mechanical angular speed T m is
detected of the motor detection device. The motor speed Ze
and electric angle Te are obtained by calculation. The three-
phase stator currents ia , ib and ic of A, B and C are sampled
by current sensors. And the current components id and iq in
the two-phase rotating coordinate system are obtained by
coordinate transformation.
Then, the difference between the given electric angular Fig. 4 SMC simulation model
speed Zm and the actual electric angular speed Zm is taken
Three cases of abrupt change of given speed, abrupt
as the input of the speed loop. The output value iq is taken as
change of load torque and mismatch of internal parameters are
the cross-axis current’s given value. The difference between simulated in this paper. The time of simulation is set as 0.3s ,
the given value id and iq of straight-axis and cross-axis the speed is changed abruptly from 1000r/min to 3000r/min.
The load torque of 1.2N.m is added at 0.15s and the stator
current and actual values id and iq of the straight-axis and resistance is set to twice the rated value. The simulation
cross-axis current is taken as the input of the corresponding waveform of abrupt change of given speed is shown in Fig. 5.
current loop. The abrupt change of load torque’s simulation waveform is
shown in Fig. 6. And the simulation waveform of internal
Finally, the output values ud and uq are given voltage’s parameter mismatch is shown in Fig. 7.
values. ud as well as uq are obtained by coordinate
transformation in the stationary coordinate system and are
used as input signals of the SVPWM module. The output
signals of the SVPWM module as driving signal of three-
phase inverter.
IV. SIMULATION MODELING AND RESULT ANALYSIS
The PMSM’s parameters are shown in Table 1 .The
simulation model of Surface-mounted PMSM vector control
system on account of Matlab/Simulink is established, as
shown in Fig. 3. The simulation model of sliding mode speed
controller is on account of variable exponential approach law
is shown in Fig. 4. Fig. 5 Simulated waveform of sudden change speed at given speed

TABLE I. PARAMETER TABLE OF PMSM

3520
Authorized licensed use limited to: Walchand College of Eng. Downloaded on January 09,2023 at 12:14:07 UTC from IEEE Xplore. Restrictions apply.
injection molding machine. The SMC is designed and used to
the speed loop of the PMSM servo system. According to the
non-linear relationship between the motor speed error signal
and the sliding mode gain, the sliding mode gain is designed
and the sign function is smoothly processed. The results of
simulation demonstrate that the sliding mode control method
has better dynamic quality ,as well as anti-disturbance ability,
meeting the requirements of PMSM speed and torque in
different stages of the mold clamping process. However, it is
difficult to implement the variable exponential reaching law
Fig. 6 simulation waveform of load torque mutation in the DSP system. Then, the authors will study more to solve
electromagnetic torque
this problem.
REFERENCES
[1] Zhong Hanru, Liang Weimin, and Zhongshu, “Research on automatic
control theory of all-electric injection molding machine,” Guangzhou
Chemical Industry, vol. 40, pp. 152-153, August 2012.
[2] Chen Chong, Zhong Yinghuan, Zhang Wei, and Xia Hong, “Modeling
and Simulation of electro-hydraulic servo system for injection molding
machine closing based on AMESim and Simulink,” Guangzhou
Chemical Industry, vol. 42, pp. 12-14, October 2015.
[3] Ning Jianrong, Zhu Chengshi, and Yan Liqun, “Design of control
system for all-electric injection molding machine based on permanent
magnet synchronous motor,” Engineering plastics applications, vol. 36,
pp. 65-68, May 2008.
[4] Hu Zhanmin, and Yuan Dengke. “Research on Sensorless Control of
permanent magnet synchronous motor based on MRAS,”
Mechatronics, vol. 20, pp. 20-24, October 2011.
[5] Bi Kun, and Shao Min, “Sliding mode variable structure control of
permanent magnet synchronous motor based on new reaching law,”
Small & Special Electrical Machines, vol. 43, pp. 62-65, May 2015.
Fig. 7 simulation waveform of internal parameter mismatch speed [6] Ouyang Xu wen, and Yin Hua jie, “Research on sliding mode control
and electromagnetic torque of permanent magnet synchronous motor based on variable exponential
reaching law,” Micromotors, vol. 44, pp. 31-34, December 2011.
From Fig. 5 to Fig. 7, it is able to see that the sliding mode [7] Foo G, and Rahman M F. “Direct torque control of an IPM-
synchronous motor drive at very low speed using a sliding-mode stator
speed controller on account of variable exponential approach flux observer,” Transactions on Power Electronics, vol.25, pp. 933-942,
law has smaller overshoot, faster stability speed and better February 2010.
anti-interference ability. Faced with abrupt change of given [8] Ouyang fan and Chen Lin. “new approach law sliding mode variable
speed, abrupt change of load torque and mismatch of internal structure control of permanent magnet synchronous motor,”
parameters, it can achieve rapid response, rapid recovery and Automation and instrumentation, vol. 33, pp. 21-25, September 2011.
has stronger robustness.
V. CONCLUSION
Aiming at such control requirements of PMSM as smooth
accurate speed regulation and anti-interference in integrated

3521
Authorized licensed use limited to: Walchand College of Eng. Downloaded on January 09,2023 at 12:14:07 UTC from IEEE Xplore. Restrictions apply.

You might also like