Sliding mode control with an adaptive switching power reaching law

This paper proposes a adaptive reaching law-based sliding mode control (SMC) method for maintaining favorable velocity control performance of permanent magnet synchronous motors (PMSMs) under internal and external perturbations. An adaptive switching power reaching law (ASPRL) is designed, which contains adaptive terms and state variables of the sliding mode surface function. This augmented reaching law decreases the chatter of the control system and increases the rate at which the state variables of the system reach the sliding mode surface. Additionally, a Luenberger observer load torque (LOLT) is designed to observe the external load and provide feedback to the velocity controller, reducing the impact of load disturbances and improving the jamming performance of the controller. Simulation experiments confirm that ASPRL reduces buffeting, decreases overshoot, and shortens response time, demonstrating its advantages in PMSM control.

mode fractional integral surface, and adaptive fuzzy control is designed to suppress chatter.In Zhang et al., the traditional power-law reaching law is improved by introducing the exponential term and the state variable of the system, which effectively solves the traditional power-law slow convergence rate problem.
Based on the previous research, this paper aims to improve the dynamic performance of PMSM rate control by proposing an adaptive switching power reaching law (ASPRL) based on the traditional exponential reaching law (TERL).The ASPRL introduces the power term of the system state variable based on adaptation, which improves the system's ability to withstand parameter changes and external interferences, and ensures smooth reaching of the switching surface.Additionally, a Luenberger observer load torque (LOLT) is designed to observe the load and add it to the ASPRL controller as a feedforward compensation, as external load is not measurable.The proposed method is expected to reduce overshoot, chatter, and response time in PMSM control.
The rest of the paper is organized as follows: Section "Adaptive switching power reaching law design" presents the ASPRL and its performance analysis.Section "Design of PMSM sliding mode controller based on ASPRL" discusses the design of the motor control system using the improved reaching law and provides stability proof.Section "Experimental verification" evaluates the ASPRL on the PMSM velocity governing system and compares it with traditional PI control and TERL to verify its performance.Finally, Section "Conclusion" provides a summary of the article.

Adaptive switching power reaching law design Traditional reaching law
SMC is an advanced control mode, which can force the system to move in a low amplitude and high frequency fashion in accordance with the specified trajectory.Because of its small parameter variation and little influence by load disturbance, it is widely used in various complex systems.However, the discontinuous switching nature of SMC will cause system chattering, so the reaching law is often introduced to weaken chattering generated by sliding mode control.
Gao and Hung 15 first proposed and designed the exponential reaching law, which can be expressed as: where sgn(s) is symbolic function, s is sliding surface function, k and ε are symbolic function, ks is exponential approach term, εsgn(s) is constant rate reaching term.In (7), when s > 0 , can get the following formula: And arrival time can be computed by integrating (7) from time 0 to time t where s(t) = 0: Since the pure exponential reaching law cannot guarantee that the moving point can reach the sliding surface in a bounded amount of time, the constant velocity approach term is added, so that when s is close to 0, the arrival speed ε is rather than 0.Even though the arrival problem is solved by adding the constant-velocity reaching term, where k determines the exponential law of attaining velocity at the sliding surface, which makes it a contradiction to improve arrival speed and reduce chattering.It can be seen from ( 9) that to increase the value of arrival speed, the value of k should be increased first.However, too high k value will produce a large velocity to reach the sliding surface, which will cause chattering.It is thus important to balance the arrival rate and suppress chatter, which also provides design ideas for the following reaching law.

The proposed ASPRL
Based on the above analysis, an adaptive switching power reaching law is proposed: where û is the nominal reaching law, which can be determined by setting the derivative of the sliding surface equal to 0. The latter is the switching term, where x is the state variable of the system, and α is the adaptive switch- ing power term, can be expressed by the integration of the absolute values of the sliding surface and the sliding surface.Where 1 and 2 are positive numbers, and 1 > 2 , so α is also positive.In particular, the proposed adaptive sliding mode control law can prevent the integral system from becoming infinite, which is rather different from the conventional sliding mode control law.The sliding mode controller designed in (4) predicts that the sliding mode control law causes the sliding mode surface s = 0 to converge in finite time, and the tracking error will asymptotically converge to zero.
The following systems are selected to perform a performance comparison between TERL and ASPRL: In (11), f (θ, t) = 25 θ is the actual speed command signal function, θ(t) is the actual angle command signal, and b = 133 , u(t) are output control signals.
The e(t) is tracking error, and e(t) the and ė(t) are defined as: (1) where θ d (t) is the ideal angle signal.
The design sliding mode function is: where c is sliding surface coefficient, and c > 0.
Combining the above equation, we can get: It can be seen from Eqs. ( 10) and ( 14) that sliding mode control based on the adaptive switching power reaching law can be achieved in the following way: The simulation parameters of TERL and ASPRL are set as follows using the S-function of MATLAB:c = 20 , ε = 5 , k = 5 , 1 = 10 , 2 = 5 .The initial state of the controlled object x(0) is [x 1 , x 2 ] = [−0.15,−0.15] , And the ideal position signal of the system is θ d = sin(t).
The performance comparison between TERL and ASPRL is illustrated in Fig. 1.As seen from Fig. 1a and  b, ASPRL outperforms TERL in terms of tracking the reference signal and reducing position error.Moreover, Fig. 1c evidently demonstrate that ASPRL exhibits faster state variable convergence and smoother steady-state process in comparison to TERL.Thus, the proposed ASPRL in this paper is shown to accelerate the approaching velocity and suppress the system chatter, thereby offering significant advantages.

Discrete forms of ASPRL
In theory, SMC is intended for continuous systems.However, in actual industrial control processes, computer real-time control is used, which transforms the controlled object into a discrete system.In discrete systems, SMC exhibits different stability and characteristics compared to continuous systems.This section compares the performance of ASPRL and TERL in discrete form when the sliding surface is close to 0.
The discrete sliding surface for a given discrete system is designed as follows: where , and c m = 0.
As sliding mode control cannot generate an ideal sliding mode under discrete form, it can only generate quasi-sliding mode dynamics.Quasi-sliding mode dynamics are defined as follows: where 2 represents the bandwidth of the switching band, as shown in the Fig. 2: If the sliding surface s approaches zero, the ASPRL proposed in (4) can be simplified as ṡ ≈ −ε|x| α sgn(s) .The discrete form can be expressed as: where T is the sampling time.
Assuming the system reaches the slip surface in finite time, that is, the system will reach the slip surface in two trajectories: s 1 (0) = 0 + and s 1 (0) = 0 − , when s 1 (0) = 0 + , the next periodic equation is: Similarly, when s 1 (0) = 0 − , the next periodic equation is:NSM According to (13) and ( 14), the width ξ 1 of ASPRL discrete sliding mode belt is: Similarly, the discrete form of TERL is as follows: The width ξ 2 of the discrete sliding mode belt is: From the analysis shown in Fig. 3, it can be observed that the improved reaching law incorporates the power term of the system's state variable.This modification results in a faster convergence rate and stable convergence (6)  www.nature.com/scientificreports/Based on the above assumptions, the mathematical model for a three-phase PMSM under the d-q coordinate system has been developed 21 .
Its voltage equation is: Flux linkage equation is: For surface PMSM L d = L q = L , so the torque equation is: Mechanical equation of motion: According to the above equation, the state space equation is obtained as:  www.nature.com/scientificreports/For the purposes of this paper's PMSM vector control scheme, it is assumed i d = 0 that the state space Eq. ( 22) can be rewritten as: where u d , u q is the voltage of the d-q axis; i d , i q is the current of the d-q axis; L d , L q is the inductance of the d-q axis; R s is the phase resistance; P n is the number of motor pole pairs; ϕ f It is a permanent magnet synchronous motor permanent magnet flux, ϕ d , ϕ q is the component of the permanent magnet flux linkage of the PMSM on the d-q axis; ω e is the electrical angular velocity; T e is the electromagnetic torque; ω m is the mechanical angular velocity; T L is the load torque;J is the moment of inertia.

Design of PMSM speed controller based on ASPRL
Under the condition of i d = 0 , take the system state variable as Xu 22 :   where ω * m is the given speed and ω m is the actual speed.Substitute (23) into (24) to get the expression: If D = 3pψ f /2J , u = i q , then the state space expression: Define sliding surface functions s: where c is the undetermined coefficient.
Then the derivative of the s is: Let ṡ = 0 to find: Substituting Eq. ( 29) into (4), we can get: where α is the adaptive switching power term.The parameter selection is: Substituting ASPRL (4) into (30) gives: To sum up, the output signal i q of the speed loop controller can be obtained: Differentiate it and substitute it into the reaching law to get: where when the parameter selection meets 1 > 2 > 0 , then α > 0 , s • sgn(s) > 0 , and V ≤ 0 , From Lyapunov stability theory, it can be seen that the designed sliding mode controller is stable, which guarantees that the mobile points of the system reach the sliding mode surface within a finite amount of time.

Design of Luenberger observer load torque
In the design of a real motor controller, load perturbation must be taken into consideration.Since velocity can be measured, but load torque cannot, a load torque observer needs to be designed to provide feedback on the observed value of the load torque to the motor controller.This is done in order to minimize the impact of external loads on the motor system.
Torque T e as system input, and ω m as system output, speed ω m and external load T L are selected as state vari- ables.The state space expression is: The LTLO equation can be described as: where L is the coefficient matrix, and Therefore, Eq. (37) can be described as: Substituting Eq. ( 38) into it, we can get: Equation ( 40) is further simplified as: To make the observed value approach the true value, the eigenvalue of matrix A − LC must be less than 0. To find the eigenvalues of the matrix A − LC: Modify Eq. (42) to the following form: Define the characteristic value is a 1 , a 2 , and get: where (a 1 < 0, a 2 < 0) , by comparing (43) and (44), we can get: www.nature.com/scientificreports/By changing the value of a 1 , a 2 , adjusted the speed of the charging observer as it approaches the true value.The observed load torque TL is the feedback to the velocity controller, and the expression for the controller is:

Experimental verification
To confirm the validity of the proposed approach, this paper utilized the control scheme displayed in Fig. 4 for a simulation and analysis through a Matlab/Simulink model.Moreover, the physical system was constructed on TI company's TMS320F28035 development kit as the control chip, and was compared to PI control and exponential approach law sliding mode control for experimental validation.The motor parameters are presented in Table 1.
The motor parameters used in the experiment are shown in Table 1.
The PMSM controller platform is illustrated in Fig. 5.The control program is written and burned into the control unit from a PC.Based on the program, the control unit generates the SVPWM control signal and sends it to the power module for driving the PMSM.In addition, the control unit may receive feedback signals and send them back to the computer.The power module produces a three-phase SVPWM wave based on the received SVPWM control signal.An oscilloscope is used to assist in inspection.
The PMSM testing and control platform is shown in Fig. 6.The system can operate according to the PMSM control platform described earlier.The system comprises 4 PMSMs as sensing engines, while the other 4 PMSMs are used to output the specified constant torque as the torque due to loading.Other sensors in the system include a torque sensor, an ammeter, a voltmeter, among others.In this experiment, PMSM1 is controlled by a PI controller, PMSM2 is controlled by TERL, and PMSM3 is controlled by the ASPRL controller.
To validate the dynamic performance of the controller, the first experiment extensively compared the startup process of the PMSM under different control schemes when the given reference speed was set to 800r/min and the initial load torque was 0 Nm. Figure 7 illustrates the speed response during the startup process based on the PI, TERL, and ASPRL controllers.
From the graph, it can be concluded that both the TERL and ASPRL control methods exhibit rapid motor response, reaching steady-state in 0.13 s and 0.12 s, respectively, and maintaining stability thereafter.The motor response under the PI control method is relatively slow, requiring a steady-state time of 0.18 s after experiencing oscillations.
In order to compare the effect of control performance more clearly and intuitively, integral absolute error (IAE) is used to calculate the speed response during startup,The IAE can be expressed as: where ω m is instantaneous response speed; ω a is reference speed.
As shown in Table 2, compare the dynamic stability performance of the control algorithm.
To verify the controller's control performance under speed step changes, the speed variations of the PMSM under the PI, TERL, and ASPRL controllers were compared.The speed variations were from 600 to 800 r/min and from 800 to 600 r/min, as shown in Fig. 8a and b.From the results, it can be concluded that during the speed  variation process, the PI controller had overshoots of 6% and 9.8% respectively, the TERL controller had overshoots of 5% and 9% respectively, while the ASPRL controller had almost no overshoot.Therefore, the ASPRL controller has a smaller steady-state error range and lower speed fluctuations.
During the sudden change of speed, the IAE indexes of PI, terl and asprl are shown in Table 3 respectively.
To evaluate the controller's ability to resist load disturbances when the PMSM is in operation, a reference speed of 800 r/min was given.At 0.2 s into the PMSM operation, a load torque of 10 Nm was applied, and the speed and torque variations of the PMSM were compared under different control schemes.As shown in Fig. 9, when the external load is 10 Nm, the speed reaches steady-state in 0.262 s for the PI controller, 0.234 s for TERL, and 0.216 s for ASPRL.Furthermore, the speed drops by 98 rpm, 33 rpm, and 8 rpm, respectively, for the different control schemes.Figures 10 and 11 illustrate the torque and current variations under the external load conditions.It can be concluded that the ASPRL controller reaches the stable state fastest when subjected to a load, and it exhibits excellent disturbance rejection capabilities.

Conclusion
This paper introduces a control approach called the adaptive switching power reaching law (ASPRL), which is designed to address the limitations of the traditional sliding mode control law (TERL), such as slow convergence and excessive chattering.ASPRL is shown to improve the arrival rate of the PMSM during startup and load transients, as well as effectively suppress chattering.Additionally, to address the issue of unmeasurable external loads, a Luenberger observer load torque (LOLT) is proposed.The combination of ASPRL and LOLT further enhances anti-jamming capability and eliminates chattering.The stability of the closed loop control system is confirmed using Lyapunov functions.The paper provides a detailed comparison of the anti load perturbation

Figure 7 .
Figure 7.The speed response under three control methods with no load.

Figure 9 .
Figure 9.The speed response under three control methods with the load of 10 Nm.

Figure 10 .
Figure 10.The torque response under three control methods with the load of 10 Nm.

Table 2 .
Startup performance comparison.The IAE indexes of PI, terl and asprl are shown in Table4respectively.

Table 3 .
Performance comparison during speed change.

Table 4 .
Performance comparison during speed change.
IAE Index Speed drop (rpm)