Nonsingular Terminal Sliding Mode Control of PMSM Based on Improved Exponential Reaching Law

: When a permanent magnet synchronous motor runs at low speed, the inverter will output discontinuous current and generate torque ripple; when the motor is runs at high speed, a large amount of stator harmonic current generates, which affects its speed following ability and torque stability. To ensure the fast and smooth switching of a permanent magnet synchronous motor in the full speed domain, this paper proposes the nonsingular terminal sliding mode control of PMSM speed control based on the improved exponential reaching law. Firstly, the improved exponential reaching law is composed of the state variables and power terms of the sliding mode surface functions. The reaching law function is designed in sections to balance the fast dynamic response of the system and chattering control. Secondly, an improved exponential reaching law based on the sliding mode control strategy of the PMSM speed loop is proposed. By designing the initial value of the integral term in the nonsingular terminal sliding mode surface function, the initial state of the system is located on the sliding mode surface. The integral sliding mode surface is used to reduce the system steady-state error, while the proposed sliding mode reaching law is used to increase the arrival speed and suppress system chattering, ultimately affecting modeling error problems, complex working conditions, and uncertainty factors. This paper proposes a sliding mode observer based on an improved exponential reaching law to compensate for the disturbances. Lyapunov stability theory can prove that this system can make the speed tracking error converge to zero in ﬁnite time. Hardware-in-the-loop experiments were used to validate the effectiveness of the proposed method. a SMO was designed using an improved exponential reaching law. The hardwire-in-loop experiment veriﬁes that, compared with other methods, the SMO can realize no overshoot start, small torque pulsation at low speed, improved dynamic response when the speed changed, small load speed drop when the motor operated, and small torque pulsation when the torque changed. Therefore, this control strategy helps to improve the speed control quality and suppress torque pulsation.


Introduction
The traditional motor drive mode is that of a motor plus a reducer. The existence of the reducer not only increases the overall energy consumption of the transmission system, but also reduces the stability and reliability of the transmission system. PMSMs have the advantages of small torque ripple, high efficiency, simple structure, small size, etc., so they are widely used in direct drive systems [1][2][3][4]. A direct drive system can reduce the intermediate links of the transmission system (such as reducers, coupling, etc.), and "near zero transmission" can be achieved. However, because a direct drive system does not have a transmission mechanism, disturbance on the load side will affect the stability of the PMSM speed control system. In addition, because the PMSM is a complex system of nonlinear, strong coupling, and multivariable systems, it also has problems such as modeling errors, complex operating conditions, and uncertain factors. The control performance and reliability of the PMSM will directly affect the stable operation of the entire system. Therefore, a PMSM need a robust control strategy to improve the anti-disturbance ability of the motor.
biles. The power reaching law uses the property of exponential functions to accelerate the speed of the approach in different stages. In addition, there are other methods to suppress system chattering, such as the neural networks were used for the online approximation of interference to reduce the gain of switching items [30], multi-objective optimization of sliding modes [31], etc.
Aiming at PMSM starting speed overshoot, sudden speed changes are caused by the slow dynamic response and other problems. In this paper, an improved exponential reaching law was proposed based on [27], which is used to improve the transient response time and anti-disturbance performance of a PMSM speed regulation system. A speed controller was designed using an improved exponential reaching law. When the uncertainties in the system could not be measured, a sliding mode observer was proposed to achieve the estimation of disturbances. The other parts of this paper are organized as follows: in Section 2, an improved exponential reaching law is designed. Section 3 presents the mathematical model of the PMSM with uncertainty disturbance and designs the speed controller using an improved exponential reaching law. In Section 4, the SMO is designed using the improved exponential reaching law. Section 5 compares the proposed method with simulations. Section 6 concludes with a summary.

Commonly Used Sliding Mode Reaching Law
The sliding mode structure means that the system is forced to follow a certain trajectory of modal motion by purposeful and constant changes according to the current state of the system. The advantages of sliding mode control include insignificant parameter changes, external disturbance changes, fast response of the system, and simple implementation. However, the disadvantage is that the state variable cannot always move along the prescribed track. The chattering phenomenon is caused by repeated traversal on the sliding mode surface. Therefore, the reaching law method is proposed to suppress chattering, and the exponential reaching law is as follow [26]: . s = −ks − εsgn(s), ε > 0, k > 0 (1) where s is the sliding mode surface, sgn() is the signum function, and ε, k, m are the system parameters.
In (1), when s > 0, it can be obtained that ds dt = −ks − ε (2) and the reaching time can be calculated by integrating (1) from 0 to t, with s(t) = 0 The exponential approach rate method is widely used. However, although the accessibility problem can be solved by adding the constant velocity term εsgn(s), the exponential arrival law of the velocity to the sliding mode surface is determined by the value of the design parameter k. Therefore, it is important to balance arrival speed and suppress chattering. The chattering phenomenon and slow reaching speed in the traditional sliding mode approach law are discussed. At present, in [32], the researchers combined the exponential reaching law and single power reaching law to propose a fast power reaching law which shortens the approach time and makes the approaching process smoother, but the chattering phenomenon still exists. In [33], the researchers proposed the double-power combination function reaching law, which improved the convergence speed in the interval and avoided chattering. The reaching law of [33] is as follows: Although the f al function has a piecewise characteristic, the reaching law of the double-power combination function is faster than the traditional law of reaching, but the second term of the function term has a slower convergence rate than the first term. The convergence of the two terms of the function differs greatly, and the law of reaching cannot have the ability to adapt.

Proposed Improved Exponential Reaching Law
Based on the above analysis, this paper proposes a segmented rate adjustment sliding mode reaching law, which performs segmented rate adjustment to increase the rate of the system.
In this paper, a segmented rate adjustment sliding mode reaching law is designed as: where x is the state variable of the system. When s < (|s| Among them, −ε|x| a sgn(s) is the variable speed reaching law, and k|s| b s is the variable index reaching law. This means that when the system approaches the sliding mode surface, the reaching law rate increases and the chattering is suppressed. When −(|s| Moreover, k|s| −b s > k|s| b s, which increases the arrival speed. It realizes the function of adaptive adjustment according to different stages in the process of system approach, greatly improves the reaching speed of the system, and has the characteristics of global finite time convergence. Theorem 1. For the sliding mode reaching law (5), the system state s converges to the equilibrium zero under its action.
Proof. According to Equation (5), we can get: According to the existence and reachability conditions of the continuous system sliding mode, if s . s ≤ 0 is satisfied, the reaching law exists, and the equilibrium point s = 0, . s = 0 can be reached. (5), suppose the initial state of s is s(0) , then the state s converges to 0 within the finite time t , and the upper limit of t is [t 1 + t 2 ].

of 18
When s(t 1 ) = 0, it can be seen that the system will reach the sliding mode surface in finite time by integrating Equation (7) from t = 0 to t = t 1 : (8), it can be rewritten as: When −(|s| + 1) −1 < s < (|s| + 1) −1 , Equation (5) can be expressed as: When s(t 2 ) = 0, it can be seen that the system will reach the sliding mode surface in finite time by integrating (10) from t = 0 to t = t 2 : Because 1 > b > 0 in Equation (11), it can be rewritten as: Therefore, when the initial state is not in the sliding mode surface, i.e., s(0) = 0, the time taken for the initial state to reach the sliding mode surface is: In summary, the convergence time of the reaching law (5) is less than [t 1 + t 2 ].

Discrete Form of NSMRL
In engineering applications, real-time computer control is a discrete control system. From the perspective of discrete analysis, when s is close to 0, the discrete form of NSMRL is given, and the performance of the exponential reaching law in the discrete state is compared. In a discrete system, the sliding mode surface function is designed as follows: where C = [c 1 . . . c n ], c n = 1. Next, the switching band surrounding the switching surface is represented as follows: If s is close to 0, the improved exponential reaching law proposed by Equation (5) can be simplified to . s ≈ −ε|x| a sgn(s), and the discrete expression is as follows: where T represents the sampling period. Assuming that the system gradually reaches the sliding surface in a finite time, this indicates that the system will reach the sliding surface in two situations s(n) = 0 + or s(n) = 0 − , then the equation of the next period can be obtained with s(n) = 0 + s(n + 1) = −εT|x| α (17) Similarly, when s(n) = 0 − , Equation (16) can be expressed as: Through Equations (17) and (18), the thickness ξ of the discrete improved exponential reaching law for (16) is: Then, the switch thickness ξ 1 of the traditional sliding mode reaching law is expressed as: Combining Figure 1, it can be seen that the improved exponential sliding mode reaching law, due to the introduction of the power of the state variable, enables the system to stably reach the origin and cause smaller chattering.
Assuming that the system gradually reaches the sliding surface in a finite time, this indicates that the system will reach the sliding surface in two situations ( ) 0 s n + = or ( ) 0 s n − = , then the equation of the next period can be obtained with ( ) 0 s n Similarly, when ( ) 0 s n − = , Equation (16) can be expressed as: Through Equations (17) and (18), the thickness ξ of the discrete improved exponential reaching law for (16) is: Then, the switch thickness 1 ξ of the traditional sliding mode reaching law is expressed as: Combining Figure 1, it can be seen that the improved exponential sliding mode reaching law, due to the introduction of the power of the state variable, enables the system to stably reach the origin and cause smaller chattering.  On the other hand, for the PMSM speed regulation system, the speed of the motor follows its ideal value rapidly and stably, which is an important performance index of the control system. In this paper, the speed error x is directly used in the design of the reaching speed of the sliding mode, and it can accelerate the rate of the system state variable reaching the sliding mode surface and reduce chattering.

Simulation Analysis
To verify the dynamic properties of the proposed sliding mode reaching law (5), the second-order nonlinear system is established as follows: The sliding mode surface function s is described as follows: where c > 0 satisfies system stability. The derivative of the sliding mode surface is obtained as follows: Electronics 2021, 10, 1776 7 of 18 Using the reaching law in (5) and substituting it into (23), the control input of (21) can be obtained as follows: To verify the dynamic performance of the NSMRL, the ESMRL and the reaching law in [27] were selected for comparison experiments, where k > 0, δ > 0 and 1 > ε > 0, and the controller parameters were a = 0.3, b = 0.4, c = 15, ε = 10, and k = 20, δ = 10. The initial state of the system [x 10 , x 20 ] = [2,2]. Figure 2a-c shows the performance comparison among NSMRL, ESMRL, and [27]. We can conclude that NSMRL has the advantages of fast arrival speed and smooth controller output.
The sliding mode surface function s is described as follows: 1 2 s cx x = + (22) where 0 c > satisfies system stability.
The derivative of the sliding mode surface is obtained as follows: Using the reaching law in (5) and substituting it into (23), the control input of (21) can be obtained as follows: To verify the dynamic performance of the NSMRL, the ESMRL and the reaching law in [27] were = . The initial state of the system 10 20 [ , ] [2,2] x x = . Figure 2a-c shows the performance comparison among NSMRL, ESMRL, and [27]. We can conclude that NSMRL has the advantages of fast arrival speed and smooth controller output.

PMSM Mathematical Model
In a rotor synchronous coordinate system, time-varying parameters such as voltage and permanent magnet chain are transformed into nontime-varying parameters, and the following equations can be established according to the basic characteristics of the motor [34]:

PMSM Mathematical Model
In a rotor synchronous coordinate system, time-varying parameters such as voltage and permanent magnet chain are transformed into nontime-varying parameters, and the following equations can be established according to the basic characteristics of the motor [34]: where u d , u q are the voltages of the dq-axes, i d , i q are the stator current, L d , L q are the inductance of the stator, p is the number of poles pairs, and ψ f the flux linkage.
The torque equation of PMSM is: The motion equation of PMSM is: where T e is the torque, T L is the load torque of the motor, J is the moment of inertia, and B is the viscous damping coefficient. And (25) can be rewritten as: Combining (25) and (26) can be written as: For surface-mounted motors L d = L q , and considering parameters and external disturbances, (29) can be rewritten as: where ∆a, ∆b, ∆c, ∆d are external disturbances. Selecting the parameter g(t), the expression is as follows: Because the motor variables are bounded, the total system disturbance g(t) satisfies the following equation: where l r is the limit value of the total system disturbance. Therefore, (30) can be rewritten as: Taking the system state variable: where w * is the reference speed, and w is the actual speed. Substituting (33) into (34), the expression of the equation of the PMSM is obtained when the effect of parameter uncertainty is considered:

NSMRL for PMSM Speed Controller
To avoid the singularity problems of TSM, a nonsingular integral type terminal sliding mode surface was selected in this paper [35]: Then, the derivative of (36) is: Substituting the NSMRL (5) into (37), we obtain Obtain the control amount i q : Because of the unmeasurable speed and disturbances, (38) can be rewritten as:

Design of the SMO
Because of the uncertainty of parameters, external disturbances, and other factors, the SMO is designed. In the PMSM vector control, the load torque variation can be regarded as constant during the control cycle because the control cycle is short, and the load disturbance changes slowly compared with the current and speed, i.e., . T L = 0. Choosing the speed w and the system disturbance g(t) as the state variables, torque T e as the system input, and w as the system output, the SMO equations can be described as: The speed and system disturbances are the observation objects, so (40) can be written as: whereŵ andĝ(t) are estimated values, z 1 and z 2 are the observer gain, and η ew η eg T are the sliding mode rate of the SMO. Define the observation error of the observer: The integral sliding mode surface is selected for the SMO: The sliding mode rate of the SMO is designed:

Stability Analysis
To verify that the sliding mode observer (41) and sliding mode control strategy (5) can effectively estimate the system error and achieve fast tracking of the ideal speed, the Lyapunov stability function can be described as: where V 1 = 1 2 s 2 , V 2 = 1 2 s 1 2 . Then, the derivative of V 1 is: Substituting (39) into (46): Then, the derivative of V 2 is: Assuming that g is a slow-varying signal ( . g = 0), (41) can be rewritten as: Substituting (49) into (48): Substituting (33) and (26) into (49): Combining (44), (46), and (50), we can obtain that V ≤ 0 ensures the stability of the designed SMO in terms of tracking error and achieves reaching in finite time to achieve the ideal speed.

Experimental Validation
To verify the effectiveness of the method proposed in this paper, an xPC-Target-based hardware-in-the-loop testbed was built as shown in Figure 3. The testbed includes two industrial control machines, motors, and controllers. One of the IPCs was used as the host PC and equipped with the PMSM control algorithm. The Simulink model was compiled into real-time operational C code and downloaded to the target PC. Another IPC was used as the xPC target PC, running DOS-dependent xPC real-time cores to execute RTWcompiled real-time C code. The two PCs connected and communicated through TCP/IP, and the developer downloaded the Simulink model to the target PC through the host PC. The two PCs could monitor/debug the operation of the target P in real time. The important parameters of the PMSM are given in Table 1, and the controller section parameter selection was β 1 = β 2 = 20, α = 15, ε = 10, k = 20, a = 0.3, b = 0.4, z 1 = z 2 = 2.3, and p = 5, q = 3.   The block diagram of the PMSM speed regulation system is shown in Figure 4a. The working principle of block diagram Figure 4a is as follows: Firstly, through Clarke and Park transformation of the PMSM stator, the three-phase AC ia, ib, ic, the id excitation current and the iq torque current were obtained.
Secondly, the double closed-loop system structure was used to control the speed of PMSM. The inner loop is a current loop, and PI control can eliminate the current error of the d-q axis and improve current tracking performance. By adjusting the PI controller parameters, the motor can meet the demand of rapid current response under different working conditions. The outer loop is a speed loop, and it is easily affected by load and parameter perturbation in the actual operation of the motor. Therefore, this paper proposes an improved exponential reaching law based on the sliding mode control strategy of the PMSM speed loop to achieve speed following at startup, given speed, and load changes.
Finally, after the current loop was adjusted, the voltage command in the d-q axis was obtained. The SVPWM space voltage vector synthesis method was used to control the motor.
The block diagram of the speed control structure is shown in Figure 4b. The state variable of the speed control system is the speed error, i.e., * 1 x w w = − . The first half is the calculation of the sliding mode surface function s, and the second half is the improved exponential reaching law. This part constitutes the speed control.  The block diagram of the PMSM speed regulation system is shown in Figure 4a. The working principle of block diagram Figure 4a is as follows: Firstly, through Clarke and Park transformation of the PMSM stator, the three-phase AC ia, ib, ic, the id excitation current and the iq torque current were obtained.
Secondly, the double closed-loop system structure was used to control the speed of PMSM. The inner loop is a current loop, and PI control can eliminate the current error of the d-q axis and improve current tracking performance. By adjusting the PI controller parameters, the motor can meet the demand of rapid current response under different working conditions. The outer loop is a speed loop, and it is easily affected by load and parameter perturbation in the actual operation of the motor. Therefore, this paper proposes an improved exponential reaching law based on the sliding mode control strategy of the PMSM speed loop to achieve speed following at start-up, given speed, and load changes.
Finally, after the current loop was adjusted, the voltage command in the d-q axis was obtained. The SVPWM space voltage vector synthesis method was used to control the motor.
The block diagram of the speed control structure is shown in Figure 4b. The state variable of the speed control system is the speed error, i.e., x 1 = w * − w. The first half is the calculation of the sliding mode surface function s, and the second half is the improved exponential reaching law. This part constitutes the speed control.

Start Process
The start speed performance of the PMSM under different reaching laws was co pared in detail. The reference speed was 2500 r/min, and the torque responses under NSMRL, ESMRL, and [27] during the start transient process are shown in Figure 4a,b.
It can be concluded from Figure 5a,b that the start-up transient process NSMRL, [2 and PI had 0.2%, 0.4%, and 2% overshoot, respectively. Moreover, the settling process the speed response under NSMRL, ESMRL, PI, and [27] was 0.025 s, 0.06 s, 0.15 s, a 0.055 s, respectively. The speed response under Method 1 was 58.3%, 83.3%, and 54. faster than those of the ESMRL, PI, and [27]. Figure 4b shows that the torque chatter phenomenon under NSMRL was smaller than those of ESMRL, PI, and [27].

Start Process
The start speed performance of the PMSM under different reaching laws was compared in detail. The reference speed was 2500 r/min, and the torque responses under PI, NSMRL, ESMRL, and [27] during the start transient process are shown in Figure 4a,b.
It can be concluded from Figure 5a,b that the start-up transient process NSMRL [27], and PI had 0.2%, 0.4%, and 2% overshoot, respectively. Moreover, the settling process of the speed response under NSMRL, ESMRL, PI, and [27] was 0.025 s, 0.06 s, 0.15 s, and 0.055 s, respectively. The speed response under Method 1 was 58.3%, 83.3%, and 54.5% faster than those of the ESMRL, PI, and [27]. Figure 4b shows that the torque chattering phenomenon under NSMRL was smaller than those of ESMRL, PI, and [27]. Furthermore, Figure 6a Furthermore, Figure 6a,b show the reference speed of 1500 r/min and torque responses, respectively.  Furthermore, Figure 6a,b show the reference speed of 1500 r/min and torque responses, respectively.  It can be concluded from Figure 6a,b that the start-up transient process of PI, NSMRL, ESMRL, and [27] had 17.3%, 0.16%, 14.7%, and 2.4% overshoot, respectively. NSMRL had a small fluctuation but still reached the reference speed without overshoot. The speed chattering phenomenon under NSMRL+SMO was smaller than that of ESMRL, PI, or [27]. Furthermore, Figure 6b shows that the torque chattering phenomenon under NSMRL was smaller than that of ESMRL, PI, and [27]. The comparison data are listed in Table 2.

Loading Process
The speed performance of the PMSM under PI, NSMRL, ESMRL, and [27] were compared under loading conditions. The speed and torque responses were taken with a load of 20 Nm at a reference speed of 2500 r/min, as shown in Figure 7a,b. It can be concluded from Figure 6a,b that the start-up transient process of PI, NSMRL, ESMRL, and [27] had 17.3%, 0.16%, 14.7%, and 2.4% overshoot, respectively. NSMRL had a small fluctuation but still reached the reference speed without overshoot. The speed chattering phenomenon under NSMRL+SMO was smaller than that of ESMRL, PI, or [27]. Furthermore, Figure 6b shows that the torque chattering phenomenon under NSMRL was smaller than that of ESMRL, PI, and [27]. The comparison data are listed in Table 2.

Loading Process
The speed performance of the PMSM under PI, NSMRL, ESMRL, and [27] were compared under loading conditions. The speed and torque responses were taken with a load of 20 Nm at a reference speed of 2500 r/min, as shown in Figure 7a It can be concluded from Figure 7a that because of the selection of the high speed of 2500 r/min and the large load of 20 Nm, both PI and ESMRL were unable to recover the reference speed after loading. In addition, as seen in Figure 7a, the speed dropped under NSMRL and [27] to 90 r/min and 240 r/min, respectively. Furthermore, the settling transient process of the speed responses at the loading point under NSMRL and [27] were 0.13 s and 0.37 s, respectively. Moreover, Figure 8a,b show the load of 10 Nm at the speed of 1500 r/min responses. It can be concluded from Figure 7a that because of the selection of the high speed of 2500 r/min and the large load of 20 Nm, both PI and ESMRL were unable to recover the reference speed after loading. In addition, as seen in Figure 7a, the speed dropped under NSMRL and [27] to 90 r/min and 240 r/min, respectively. Furthermore, the settling transient process of the speed responses at the loading point under NSMRL and [27] were 0.13 s and 0.37 s, respectively. Moreover, Figure 8a,b show the load of 10 Nm at the speed of 1500 r/min responses. It can be concluded from Figure 8a that the speed fluctuation range under PI, NSMRL, ESMRL, and [27] was ±0.1 r/min, ±1 r/min, ±1.5 r/min, and ±0.3 r/min, respectively. Figure 8b shows that the speed drops under NSMRL, EMERL, PI, and [27] were 33 r/min, 190 r/min, 95 r/min, and 75 r/min, respectively. Therefore, the NSMRL had a small steadystate error range and low torque chattering. For more visual analysis, the comparison data are listed in Table 3. It can be concluded from Figure 8a that the speed fluctuation range under PI, NSMRL, ESMRL, and [27] was ±0.1 r/min, ±1 r/min, ±1.5 r/min, and ±0.3 r/min, respectively. Figure 8b shows that the speed drops under NSMRL, EMERL, PI, and [27] were 33 r/min, 190 r/min, 95 r/min, and 75 r/min, respectively. Therefore, the NSMRL had a small steady-state error range and low torque chattering. For more visual analysis, the comparison data are listed in Table 3.

Variable Acceleration or Loading Process
The speed performances of the PMSM under PI, NSMRL, ESMRL, and [27] were compared under variable acceleration and loading responses. The speed was from 2000 r/min to 2500 r/min, and the torque was from 15 Nm to 20 Nm, as shown in Figure 9a,b. It can be concluded from Figure 9a that the start-up transient process of NSMRL and [27] had 0.1% and 1.3% overshoot, respectively. In addition, when accelerating from 0.4 s to 2500 r/min, although there was a slight fluctuation in the speed of the NSMRL, the system could ensure that the motor reached the reference speed quickly, while the ESMRL and [27] could not reach the reference speed.

Variable Acceleration or Loading Process
The speed performances of the PMSM under PI, NSMRL, ESMRL, and [27] were compared under variable acceleration and loading responses. The speed was from 2000 r/min to 2500 r/min, and the torque was from 15 Nm to 20 Nm, as shown in Figure 9a  It can be concluded from Figure 8a that the speed fluctuation range under PI, NSMRL, ESMRL, and [27] was ±0.1 r/min, ±1 r/min, ±1.5 r/min, and ±0.3 r/min, respectively. Figure 8b shows that the speed drops under NSMRL, EMERL, PI, and [27] were 33 r/min, 190 r/min, 95 r/min, and 75 r/min, respectively. Therefore, the NSMRL had a small steady-state error range and low torque chattering. For more visual analysis, the comparison data are listed in Table 3.

Variable Acceleration or Loading Process
The speed performances of the PMSM under PI, NSMRL, ESMRL, and [27] were compared under variable acceleration and loading responses. The speed was from 2000 r/min to 2500 r/min, and the torque was from 15 Nm to 20 Nm, as shown in Figure 9a It can be concluded from Figure 9a that the start-up transient process of NSMRL and [27] had 0.1% and 1.3% overshoot, respectively. In addition, when accelerating from 0.4 s to 2500 r/min, although there was a slight fluctuation in the speed of the NSMRL, the system could ensure that the motor reached the reference speed quickly, while the ESMRL and [27] could not reach the reference speed. It can be concluded from Figure 9a that the start-up transient process of NSMRL and [27] had 0.1% and 1.3% overshoot, respectively. In addition, when accelerating from 0.4 s to 2500 r/min, although there was a slight fluctuation in the speed of the NSMRL, the system could ensure that the motor reached the reference speed quickly, while the ESMRL and [27] could not reach the reference speed.
Furthermore, Figure 9b shows that the torque chattering phenomenon under NSMRL was smaller than that of ESMRL, and [27].

Speed Process under Parameter Change
The speed performance of the PMSM under four control methods with 0.5 J and 2 J parameter changes under a load of 10 Nm are shown in Figure 10a

Conclusions
In this paper, nonsingular terminal sliding mode control of a PMSM based on an improved exponential reaching law was proposed to solve the problems of large overshooting speed, large torque pulsation at low speed, and slow dynamic response caused by sudden change of speed and load. Firstly, the improved exponential reaching law was It can be concluded from Figure 10a that the speed drop under NSMRL, EMERL, PI, and [27] was 41 r/min, 206 r/min, 130 r/min, and 100 r/min, respectively. Although the speed fluctuation based on NSMRL was not the smallest at a steady-state, this method has a small speed drop and rapid recovery at a 0.5 J inertia mismatch. Furthermore, Figure 10b show that the speed drop under NSMRL, EMERL, PI, and [27] was 20 r/min, 133 r/min, 82 r/min, and 110 r/min, respectively. The comparison data are listed in Table 4.

Conclusions
In this paper, nonsingular terminal sliding mode control of a PMSM based on an improved exponential reaching law was proposed to solve the problems of large overshooting speed, large torque pulsation at low speed, and slow dynamic response caused by sudden change of speed and load. Firstly, the improved exponential reaching law was applied to a nonlinear system, and the validity of the reaching law was verified by quantitative analysis from three aspects, trajectory motion of the sliding mode phase, the convergence process of the state variables, and the output curve. Secondly, an improved exponential reaching law-based PMSM speed loop sliding mode control strategy was proposed to realize speed following when upstart and speed load changed. Finally, considering the effects of uncertainty factors such as speed and disturbances under different working conditions, a SMO was designed using an improved exponential reaching law. The hardwire-in-loop experiment verifies that, compared with other methods, the SMO can realize no overshoot start, small torque pulsation at low speed, improved dynamic response when the speed changed, small load speed drop when the motor operated, and small torque pulsation when the torque changed. Therefore, this control strategy helps to improve the speed control quality and suppress torque pulsation.  Informed Consent Statement: Informed consent was obtained from all subjects involved in the study. Written informed consent has been obtained from the patient(s) to publish this paper.

Conflicts of Interest:
The authors declare no conflict of interest.