#### Abstract

In order to handle heavy chattering and negative robustness caused by time-varying system parameters and external load disturbance of the speed control system, thereby having high-precision control over surface permanent magnetic synchronous machine (PMSM), this paper combines the advantages of sliding mode variable structure control (SMVSC) and fuzzy control. Firstly, a fuzzy sliding mode variable structure control (FUZZY-SMVSC) method is proposed, based on the vector control foundation framework of surface PMSM (SPMSM). It effectively reduces chattering while keeping sliding mode, according to the fuzzy rules formulated based on fuzzy control principle. Secondly, integral sliding mode surface is used and integration element is introduced into fuzzy control input, thereby reducing the static error of the conventional fuzzy control. Simulation and experimental results show that the proposed fuzzy sliding mode variable structure control reduces chattering by fuzzy reasoning and softening. Also, it still can maintain the strong robustness of sliding mode variable structure and ensures the fine dynamics of the system, against time-varying system parameters and external load disturbance.

#### 1. Introduction

Surface PMSM (SPMSM) can be regarded as a special case of salient-pole PMSM. The torque of such PMSM is only linear with the q-axis current, but not with d-axis current. The control model is simple and widely applied to sectors like robotics, aerospace, precision numerically-controlled machine tools, and servo systems.

SPMSM is complex for its multiple inputs, strong coupling, nonlinearity, and variable parameters. The conventional control is easily affected by external interference and internal parameter changes, with poor robustness. Therefore, the conventional control fails to meet the requirements of high performance. In recent years, modern control theories like robust control, adaptive control, intelligent control, and sliding mode variable structure control have been applied to the design of SPMSM [1–4]. In particular, sliding mode variable structure control does not require high-precision mathematical model of the system and is not significantly subject to system parameter perturbation and external disturbance, with simple controller design. Therefore, it has been widely used in SPMSM speed control [5–9].

Chattering is the main factor that limits the application of sliding mode variable structure control [10–12]. In literature [10], chattering is reduced with the regularization of the boundary layer. In literature [11], chattering is reduced with observer adjustment (chattering is monitored with state observer to have dynamic adjustment of sliding mode variable structure control). These two methods are not the traditional variable structure control, with no more fine robustness of the variable structure control system, which causes system steady state error. In literature [12], chattering is reduced with high-order sliding mode variable structure control algorithm, but high-order sliding mode variable structure control algorithm is complex. In control laws for low-order (first- or second-order) systems, there is coupling of controller output signal and its derivative, which hinders the design of sliding mode variable structure control law. In literature [13–15], sliding mode variable structure control and fuzzy control are integrated to be applied to PMSM control. Sliding mode surface and control functions serve as fuzzy input and output variables in designing an adaptive sliding mode variable structure controller. Fuzzy rules are established to ensure the sliding mode conditions for the system, and sliding mode variable structure control output is softened, which effectively eliminates chattering. In literature [16], tracking error and control functions serve as fuzzy variables and fuzzy logic is used to estimate the upper and lower bounds of the model uncertainty, which effectively reduces chattering. In literature [17], other methods for reducing chattering with fuzzy control are elaborated on. In literature [18, 19], control laws are relatively simple, with linear sliding surface or error signal serving as the input of the fuzzy controller. The speed of the sliding surface is also uniform. When the system moves away from the switching surface, the speed is slow, causing the system dynamic response to take long time. When approaching the switching surface, the speed remains unchanged, but serious chattering is caused. Therefore, the static error of the fuzzy control is not solved. Although fuzzy control is not subject to the system model and can make full use of expert information, there are large static errors of fuzzy control. In this case, how to reduce the static error of fuzzy control deserves our attention [20]. In literature [21], fuzzy rules are streamlined to reduce the static error, but it will cause the number of rules to skyrocket, without significantly positive performance. In literature [22], different resolutions of fuzzy sets for different error levels are used to reduce the static error. However, when the deviation and deviation range vary greatly, the calculation and memory consumption will increase exponentially. In literature [23], PID fuzzy controller is used to reduce the static error, but it will reduce the dynamic performance of the system. At present, most scholars who study fuzzy sliding mode variable structure control focus on how to eliminate chattering, failing to pay attention to system response speed optimization and fuzzy control static error reduction that can further improve the system's comprehensive performance. Also, few researchers apply the above methods for reducing fuzzy control static error to SPMSM fuzzy control. Compared with the previous researches, this paper proposes a new fuzzy sliding mode variable structure control strategy to adjust system speed according to the distance from the sliding surface, thereby improving the response speed of the system and reducing chattering. Moreover, integration element is introduced into fuzzy control to reduce the static error of the fuzzy control and enhance the control of the system.

First of all, the proposed fuzzy sliding mode variable structure control strategy is based on vector control foundation framework. In this paper, sliding mode variable structure control strategy is applied to the speed control system, thereby improving the robustness and control accuracy of the system and coping with time-varying system parameters, external load disturbance, poor robustness, and low control precision of surface PMSM speed control system. Secondly, in order to handle sliding mode variable structure control chattering, fuzzy control is introduced into the design of the controller, and the sliding mode surface is used as the input of the fuzzy control. Fuzzy rules are formulated based on fuzzy control principle to ensure sliding mode conditions. Also, it is aimed at accelerating the dynamic response of the system when moving away from the switching surface and making the speed closer to zero when approaching the switching surface, thereby increasing system response speed and reducing chattering. Finally, integration element is introduced into fuzzy control to reduce the static error of the fuzzy control and reduce the steady-state error of the entire control system, thereby enhancing system control. Simulation and experimental results found that the proposed fuzzy sliding mode variable structure control strategy is better than conventional sliding mode variable structure control methods in terms of high comprehensive control.

The remainder of this article is organized as follows. Section 2 describes the development of an SPMSM model. Section 3 presents the design of an SMVSC system for SPMSM based on a fuzzy sliding mode variable structure control. Section 4 presents the system simulation and experimental analysis, and Section 5 provides the conclusions.

#### 2. Mathematical SPMSM Model

To simplify the analysis, the following assumptions are made to develop a mathematical SPMSM model: the saturation effect of the stator core is not taken into consideration; the air-gap field follows a sinusoidal distribution; eddy and magnetic hysteresis losses are not considered; there is no damping winding on the rotor; and the permanent magnet has no damping action. Based on these assumptions, a mathematical SPMSM model is established [4].

##### 2.1. Basic Equations for SPMSMs

A mathematical SPMSM model can be treated as a special case of salient-pole synchronous motors. Hereby, a mathematical salient-pole PMSM model is first introduced.

*(**1) Voltage Equation*. Under the assumptions presented above, the voltage equation for a salient-pole PMSM in the three-phase static coordinate system is

where , , and represent the phase voltages of the three-phase winding (V); , , and denote the currents of the three-phase winding (A); refers to the resistance of each phase of the winding (); , , and indicate the flux linkages of the three-phase winding (V·s).

*(**2) Flux Linkage Equation*. The flux linkage of each phase of the winding of a salient-pole PMSM is related not only to the three-phase winding current but also to the excitation field of the permanent magnet of the rotor and the position of the rotor. Thus, the flux linkage equation can be expressed as follows:

where , , and denote the self-inductances of the three phases of the winding, respectively (H); , , , , , and are the mutual inductances between any two phases of the winding (H). The self-inductance and mutual inductance satisfy the following respective relationships:

where indicates the leakage inductance of the stator winding (H); represents the average main inductance (H); refers to the second harmonic amplitude of the main inductance (H); is the electrical angle between the axis of the phase of the winding and the axis of the fundamental wave magnetic field of the permanent magnet (rad).

The parameters , , and indicate the flux linkages of the permanent magnet interlinked with the three-phase winding (V·s) and satisfy the following:

where is defined as the amplitude of the flux linkage of the permanent magnet (V·s).

*(**3) Torque Equation*. Based on the principle of linear magnetic circuits, the stored energy and co-energy of a magnetic field are

Thus, the electromagnetic torque equation is as follows:

*(**4) Kinematic Equation*. The kinematic equation of a motor drive system is as follows:

where represents the load torque (N·m); defined as the moment of inertia of the system (Kg·m2); denotes the number of pole pairs; is the friction coefficient, which is positively correlated with the rotational speed (N·m·s); and refers to the elastic twisting torque coefficient (N·m/rad).

##### 2.2. d-q-Axis Mathematical Salient-Pole PMSM Model

To establish a* d*-*q*-axis mathematical salient-pole PMSM model, the axis of the fundamental wave magnetic field of the permanent magnet of the rotor is set as the* d*-axis, and the* q*-axis is located at an electrical angle of 90° with the counter-clockwise advance axis. A* d*-*q* two-phase rotating coordinate system is thus established. In addition, by allowing the -axis to coincide with the* a*-axis, the -*β* two-phase static coordinate system is established. Figure 1 presents the established coordinate system. In addition, it shows the electrical angular rotational speed of the motor rotor (i.e., the derivative of the electrical angle of the motor).

*(**1) Voltage Equation*. In the* d*-*q* coordinate system, the voltage equation for a salient-pole PMSM is as follows:

where and represent the components of the voltage of the stator in the* d*- and* q*-axes, respectively (V); and indicate the components of the current of the stator in the* d* and* q*-axes, respectively (A); and are the components of the flux linkage in the* d*- and* q*-axes, respectively (V·s); refers to the electrical angular speed (rad/s).

*(**2) Flux Linkage Equation*. In the* d*-*q* coordinate system, the flux linkage equation for a salient-pole PMSM is as follows:

where ; and represent the equivalent inductances of the stator winding in the* d*- and* q*-axes, respectively (H), which satisfy the following:

*(**3) Torque Equation*. In the* d*-*q* coordinate system, the torque equation for a salient-pole PMSM is as follows:

where stands for the number of pole pairs.

*(**4) Kinematic Equation*. The mechanical kinematic equation for a salient-pole PMSM drive system is as follows:

where denotes the load torque (N·m); refers to the friction coefficient (N·m·s); indicates the mechanical angular speed of the motor rotor (); represents the moment of inertia of the system (assuming that there is an ideal rigid shaft connection between the motor and the load and that the moments of inertia of the motor and the load are and , respectively; ).

SPMSMs are a special case of salient-pole PMSMs. The inductance of an SPMSM satisfies the following condition: . Based on (13), the torque of an SPMSM is only related to the* q*-axis current and is unrelated to the* d*-axis current. The equation for the torque of an SPMSM is as follows:

The state equation for an SPMSM is as follows:

where is the mechanical angular position of the motor rotor (). In this article, each algorithm for PMSMs is designed based on SPMSMs.

##### 2.3. Principle of the Vector Control of SPMSMs

The basic principle of the vector control is as follows. Based on the magnetic field equivalence principle, a three-phase AC motor is equivalent to a direct current (DC) motor. In a magnetic field-oriented coordinate system, the current vector of the stator is decomposed into two quadrature components, namely, an exciting current that generates a magnetic flux and a torque current that generates a torque, which are then controlled separately to regulate the torque of the three-phase AC motor. Considering that the flux linkage of the rotor of an SPMSM is a constant, rotor flux-oriented control is often employed to control SPMSMs. In this study, the current vector control method is used to linearize the electromagnetic torque and the armature current, thereby achieving decoupled SPMSM control. This method is the most simple and effective control method.

A vector control system for an SPMSM often consists of three control loops, namely, an inside current loop (ACR), a middle speed loop (ASR), and an outermost position loop. Vector control systems for SPMSMs can be tailored based on the actual application. This study is focused on a speed control system. As a result, the system is designed without position loop but with a current loop and a speed loop. The current loop is controlled by a proportional-integral controller, and the speed loop is controlled by an SMVSC system. Figure 2 shows the structural diagram of the speed vector control system for an SPMSM.

As the current vector control method is used, the state equation for an SPMSM is rewritten as

#### 3. Design of a Fuzzy Sliding Mode Variable Structure Speed Controller

##### 3.1. Basic Problems of Sliding Mode Variable Structure Speed Controller

For the controlled system,

Determine a switching function vector: .

Find the switching control function:

Hereby, the variable structure control is represented by , so that the following design objectives can be met: a sliding mode exists for the controlled system (existence problem); all of the state points outside the switching surface will reach it within a finite amount of time (reachability problem); and sliding mode motion is asymptotically stable and exhibits excellent dynamic qualities. Control that satisfies these three conditions is referred to as SMVSC. The control system is called sliding mode variable structure control system, and the strategies, algorithms, and controllers to realize this control are collectively called sliding mode variable structure controllers.

When the system satisfies the generalized sliding mode condition , the existence and accessibility conditions of the sliding mode of the system must be satisfied at the same time; that is, the system must reach the switching surface in a finite amount of time from any point in the state space, and there is no regulation on how to move.

##### 3.2. Selection of a Sliding Mode Surface for the Fuzzy SMVSC Investigated in This Study

The system state variable is defined as the speed error:

where is the reference rotational speed and is the actual rotational speed.

The differential of the speed error is introduced into the sliding surface selected by Liu et al. [24] and Zhang et al. [25]; therefore, high-frequency noise is easy to be introduced. To eliminate steady-state system errors, based on the conventional linear sliding mode surface, the integral of the speed error is introduced to construct an integral sliding mode surface:

The following initial value of the integral is selected:

where is defined as the initial state of ; denotes the initial value of the integral; indicates a constant coefficient ( can be set to a positive constant that allows the system to start moving on the sliding mode surface at and , so the system will be globally robust). Integration can also eliminate steady-state system errors.

By letting and calculating the derivative of the sliding mode surface with respect to time, we have

This equation shows demonstrates that the speed error exponentially approaches zero at a rate of a time constant 1/. Therefore, the dynamic characteristics of the sliding mode motion can be determined in advance by selecting the coefficient .

##### 3.3. Determination of a Control Law for the Fuzzy SMVSC Investigated in This Study

By differentiating the sliding mode surface, we have

By letting , an equivalent control is obtained:

where .

When a system satisfies the generalized sliding mode condition of , it will satisfy the existence and reachability conditions for the sliding mode; i.e., the system will definitely arrive at the switching surface from any point in the state space within a finite amount of time. There are no requirements for how the system moves. Various reaching laws can be designed to improve the quality during the arrival period.

In the exponential reaching law (ERL) proposed by Gao [8], the parameter design is adjusted to allow the speed of a moving point towards the switching surface to increase when it is distant from the switching surface, thereby accelerating the dynamic response of the system, and to allow the speed of a moving point to asymptotically approach zero when it is nearing the switching surface, thereby reducing chattering.

The conventional ERL proposed by Gao is described as follows:

The parameters and of this ERL each have a fixed value, and its switching function is a sign function. With this ERL, significant chattering will occur when the system is passing through the sliding mode surface. A fuzzy exponential reaching law (FERL) is proposed by improving Gao's ERL as follows. Based on fuzzy rules as well as the system load disturbance and the deviation of the system parameters, the parameters and of the conventional ERL are altered. In addition, the sign function is removed, and the switching function is defined and softened based on a fuzzy rule base for the system. With the FERL, the original advantages of SMVSC are preserved, and system chattering is also effectively suppressed.

The new ERL based on fuzzy control (i.e., FERL) is

where the values of and are determined based on the fuzzy control method; and are the gains of the fuzzy controller, the values of which selected depending on the actual situation to ensure that the input and output of the fuzzy controller are within their ranges of values.

The obtained control law for the new ERL is as follows:

Stability analysis:

A Lyapunov function is established:

Then, according to Lyapunov stability theory, the system stability condition is

Substituting the output of the new ERL into

thus, when and , and 0.The system is asymptoticcally stable, and a sliding mode of the system exists and is reachable. Next, the conditions presented above are realized based on a fuzzy control rule base.

Firstly, a positive constant is selected, and the switching function and are normalized. It is assumed that is the input of the fuzzy controller and that and are the outputs of the fuzzy controller.

Hereby, positive big (PB), positive medium (PM), positive small (PS), zero (Z0), negative small (NS), negative medium (NM), and negative big (NB) are defined as linguistic values for and , and PB, PM, and PS are defined as linguistic values for .

Figures 3–5 exhibit the membership functions of , and , respectively.

Based on the characteristics exhibited by the ERL, when the system state is relatively distant from the siding mode surface, decreasing and increasing can accelerate the reaching process. When the system state is relatively close to the sliding mode surface, increasing and decreasing can reduce chattering.

A fuzzy control rule base is defined, as shown in Table 1.

There are a total of seven rules, which are described in detail as follows: Rule 1: If , then , and . Rule 2: If , then , and . Rule 3: If , then , and . Rule 4: If , then , and . Rule 5: If , then , and . Rule 6: If , then , and . Rule 7: If , then , and .

Clearly, these fuzzy control rules ensure that the conditions that and are met. According to the sstability analysis in Section 3.3, the system is stable, and a sliding mode of the system exists and is reachable.

Based on the FERL,

When ,

When ,

The arrival time of the system is

Thus, when the system state is distant from the sliding mode surface, a high value is selected for , which will accelerate the process where the system reaches the sliding mode surface; when the system state is getting near the sliding mode surface, a relatively low value is selected for to reduce chattering, and the reaching time of the system is determined mainly by . In this way, the performance of the system is optimized.

Defuzzification of the fuzzy outputs and is performed using the centroid method:where and are the central values of the domain of discourse.

#### 4. Simulation and Experimental Study

##### 4.1. Simulation Result Analysis

In order to validate the effectiveness of the proposed method, the SMVSC controller based on linear sliding mode surface (LSMVSC) and the FUZZY-SMVSC controller are employed in the speed loop in simulations and experiments. The LSMVSC controller adopts linear sliding mode surface and Gao's exponential reaching law , and the control law is . A vector control system simulation platform was developed in MATLAB/Simulink. The motor parameter settings applied to the simulation are as follows: number of pole pairs (): 4; inductance of the stator (): 8.5 mH; resistance of the stator (): 2.875 Ω; flux linkage (): 0.175 Wb; moment of inertia (): 0.003 kg·m^{2}; and damping coefficient : 0.008 N·m·s. The system simulation conditions are as follows: DC busbar voltage (): 311 V; switching frequency (): 10 kHz; reference rotational speed (): 1000 r/min; initial torque () 0 N·m; and a load torque of 10 N·m is added at T=0.2s when testing the system performance under a disturbance. The moment of inertia (*J*) is halved or doubled when testing the system performance under the changes of parameter.

*(**1) Simulation Settings*. The PI simulation parameters of both current loops are the same: proportional gain and integral gain . The parameters of the LSMVSC speed loop are as follows: ; ; and . The parameters of the FUZZY-SMVSC speed loop are as follows:; ; ; and .

*(**2) Simulation Results*. Figures 6–11 present the simulation results.

**(a)**

**(b)**

**(c)**

**(a)**

**(b)**

**(c)**

**(a)**

**(b)**

**(c)**

**(a)**

**(b)**

**(c)**

**(a)**

**(b)**

**(c)**

**(a)**

**(b)**

**(c)**

Figures 6-7 present the simulation curves of the speed response and q-axis current response under a speed command of 1000 r/min. The simulation results indicate clearly that compared with the speed response of the LSMVSC method (30% overshoot and 0.11 s adjustment time), the speed response under the FUZZY-SMVSC method has a significantly smaller overshoot (20%) and a shorter adjustment time (0.08 s). Meanwhile, the* q*-axis current responds quicker and has smaller overshoot compared with that of the LSMVSC method. As compared to the LSMVSC method, the chattering is suppressed better than the FUZZY-SMVSC method.

Figures 8-9 present the simulation curves of the speed response and q-axis current response when a sudden load is added. The load disturbance N·m is added abruptly after a time duration of t = 0.2 s. The results show that the FUZZY-SMVSC method has the less speed fluctuations and* q*-axis current fluctuations. Besides, the settling time required for the speed and* q* -axis current to return to the original value is the smaller. This demonstrates that the FUZZY-SMVSC method can deliver better system dynamic performance and robustness to disturbances than the LSMVSC methods.

Figures 10-11 indicate the simulation curves of the speed response and q-axis current response when the moment of inertia (*J*) is halved or doubled. The results show that the FUZZY-SMVSC method has less speed fluctuations and* q*-axis current fluctuations. Besides, the settling time required for the speed and* q* -axis current to return to the original value is smaller. This demonstrates that the FUZZY-SMVSC method can deliver better system dynamic performance and robustness than the LSMVSC method when a parameter perturbation is injected.

Figures 6–11 show that the control input of the FUZZY-SMVSC method is less than that of the LSMVSC method in all cases. The FUZZY-SMVSC method is superior to the LSMVSC control method in response speed and control accuracy.

##### 4.2. Experimental Result Analysis

Step response and load disturbance experiments are conducted for the proposed method to validate the reduction in chattering and robustness to disturbance of the speed controller. The hardware configuration of the PMSM drive and control system is shown in Figure 12. The experimental platform were developed using a TI DSP28335 data processor. In addition, the relevant experimental validation was performed based on this system. The parameters of the SPMSM are as follows: number of pole pairs (): 4; inductance of the stator (): 1.31 mH; resistance of the stator (): 2.26 Ω; moment of inertia (): 0.9×10^{−4} kg·m2; and damping coefficient (): 0.0057 N·m·s. The preset rotational speed () and initial torque () of the system are 990 r/min and 0 N·m, respectively. A load torque of 0.1 N·m is added at T=2s when testing the system with a load disturbance. The PI Experimental parameters of both current loops are the same: proportional gain and integral gain . The parameters of the LSMVSC speed loop are as follows: ; ; and . The parameters of the FUZZY-SMVSC speed loop are as follows:; ; ; and . Figures 13-14 show the experimental results.

The responses of the LSMVSC and FUZZY-SMVSC methods under a speed command of 1000 r/min are shown in Figures 13-14. The experimental results clearly show that the FUZZY-SMVSC method achieves a more satisfactory dynamic response than the LSMVSC method. Moreover, loading experiments were carried out to verify the disturbance robustness of the LSMVSC and FUZZY-SMVSC methods under a speed command of 1000 r/min. In these tests, the load torque N·m was added abruptly and removed after a time duration of t = 2s. The load disturbance was realized by a magnetic power brake. From the experimental curves, it is evident that the proposed method has a more satisfactory robustness to disturbances and exhibits less chattering than those of the LSMVSC method. The speed current of the FUZZY-SMVSC method responds more quickly and have a smaller overshoot than the FUZZY-SMVSC method. This demonstrates that the FUZZY-SMVSC method can deliver better system dynamic performance and robustness to disturbances than the LSMVSC methods.

In summary, from these simulation and experiment results, the FUZZY-SMVSC method not only effectively addressed the chattering problem but also ensured excellent dynamic system qualities and relatively good system robustness.

#### 5. Conclusions

In this study, based on the effects of temporal variations in the parameters of a SPMSM speed control system and an external load disturbance on system performance, SMVSC and fuzzy control algorithms are applied to the system to improve its performance. The main contents and contributions of this study are summarized as follows. An SMVSC system design scheme is developed, in which an integral sliding mode surface and the ERL are used. The ERL is improved by introducing fuzzy control and establishing a fuzzy rule base. The fuzzy control and sliding mode variable structure algorithms are combined to improve the system’s robustness and reduce chattering. The simulation and experimental results show that compared to the conventional LSMVSC method based on a linear sliding surface, the FUZZY-SMVSC method effectively reduced chattering, reduced static error of fuzzy control improved the dynamic and steady-state performance of the system, and allowed the system to rapidly respond and return to the preset value after a load disturbance or when parameter perturbation is injected, thereby ensuring high system robustness and excellent dynamic system qualities.

#### Data Availability

The data used to support the findings of this study are included within the article.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.

#### Acknowledgments

This work was supported by the Key Projects of Social Science Planning in Foshan in 2018 under Grant No. 2018-ZDB05 and Youth Innovative Talents Project of Guangdong Provincial Education Department (HUMANITIES AND SOCIAL SCIENCES) under Grant No. 2017WQNCX055.