Abstract
This article deals with the self-sustained oscillation appearing in the sliding-mode system. The oscillation provides considerable robust performance and, meanwhile, leads to detrimental effects such as the reduced control precision, mechanical wear, and resonance. A graphical method is introduced to design the sliding-mode controller with proportional–derivative terms. The method indicates how to determine the proportional–derivative coefficients and the desired oscillation frequency and amplitude for the stability of systems. The analysis shows that the zero-order holder plays an important role in the robustness of systems which can be improved by shorter sampling periods. The influences of the hysteresis on the oscillations are also discussed, and a method of tuning the coefficients of proportional–derivative terms is used to compensate the hysteresis. The first simulation shows the design processes of the graphical method in a specific system, and the second simulation confirms the validity of the method of hysteresis compensation. The design process is also demonstrated via the experiment on an inverted pendulum.
Keywords
Introduction
Sliding-mode (SM) control is insensitive to disturbances and usually simple to implement. Especially, the oscillation with high frequency in SM control is able to provide sufficient gain and improves the performance of disturbance attenuation for a system.1,2 Hence, the robustness of an SM control system can be enhanced by increasing the oscillation frequency. However, the main drawback of an SM system is mainly related to the oscillation caused by the nonlinear element. 3 It may reduce the control precision, induce resonances, and exceed the maximum switching rate of the controller. Hence, how to design and adjust the oscillation parameters including amplitude An and frequency ωn remains an issues of great importance in SM system design. 4
The design of sliding surfaces is closely related to oscillation parameters. The ideal sliding surface is designed by all state variables which can be measured directly without noise.5,6 Therefore, the oscillation parameters of this SM system can be adjusted straightforwardly. However, in the practical implementation, the high-order state variables are usually unmeasurable or full of noise. In this case, the output feedback sliding surface is another feasible choice, which only needs the output of the plant.7,8 The complexity of the system can be accordingly reduced by less feedback information. However, it is challenging for the system to adjust the oscillations when the relative degree is ≥2. Consequently, the well-known second-order SM systems often employ this type of sliding surfaces.
However, the parasitic dynamics, such as the zero-order holder (ZOH) and hysteresis, are also crucial components to affect the practical implementation of SM systems. Because of the presence of parasitic dynamics, the SM systems cannot obtain the desired oscillations which provide the required control gain and disturbance attenuation. The influence of parasitic dynamics on the SM system has been thoroughly investigated, 9 and the model of fractal dynamics was proposed to analyze the oscillation and nonideal closed-loop performance in the time domain and frequency domain, respectively. The ZOH discretization in SM systems was regarded as an important effect on the periodic orbits. It is modeled as differential equations, and multiple types of periodic orbits have been analyzed. 10 The effects of the hysteresis on chattering in SM systems are dealt with in the frequency domain via the locus of a perturbed relay system method. The compensating filter is proposed to reject the nonideal effect in a closed-loop SM system. 11
The state–space technique is usually used to describe the process of oscillation. The results are distinct and accurate. 12 However, the mathematical derivations usually encounter transcendental equations especially for high-order system. The describing function (DF) method is a well-known frequency-domain method for nonlinear system. It approximates the nonlinear element as the function N(A) about the oscillation amplitude. 13 The method is effective when the linear plant W(s) has low-pass characteristics. The method has been widely used to estimate the oscillations for nonlinear controller. The stability, dynamic stiffness, and tracking performance of the active disturbance rejection controller were investigated by approximating the nonlinear piecewise function as the DF N(A). 14 The oscillations in SM system can be regarded as periodic signals. Hence, the DF method is an effective tool to describe the performance of SM system in the frequency domain. The method has been employed to adjust the oscillation parameters and system robustness by tuning the intersection angle of the Nyquist plot of W(s) and the plot of negative reciprocal function −1/N(A). 15 Currently, a variety of switching functions are analyzed to predict oscillation parameters guided by the DF method. 16 The oscillations of output feedback SM systems 17 and second-order SM systems 18 are also estimated by the DF method in the frequency domain. Using these frequency-domain models, the oscillation parameters can be tuned by the adjustment of coefficients in controller.
This article elaborates the design of oscillation parameters and its adjustment for the sampling output feedback SM controller with proportion–derivative (PD) terms. The main contribution of this work lies in the introduction of the graphical method for the desired oscillation design and the stability analysis in the presence of the ZOH and hysteresis. The method puts forward guidance on the range of coefficient values for the stable oscillation. The effect of the ZOH on the selection of desired oscillation frequency is also demonstrated. In total, three procedures are proposed to design PD coefficients for the predetermined oscillation. The method of hysteresis compensation is also presented for the robust performance by tuning the PD coefficients.
Design of control system
Without loss of generality, a linear plant is considered as follows
and the SM controller is given by
where e(t) = yr(t) − y(t) is the control error and yr(t) is the desired system output, M is a positive constant, k is the sampling counter, and Te is the sampling period. Figure 1 shows the closed-loop system according to equations (1) and (2).

Diagram of the sampling SM control system.
u 1(t) comes from the switching function M sign[e(t)], and u2(t) comes from the linear PD controller. And the SM controller only uses the output of the linear plant. This type of controller is often used in engineering. In general, the PD controller determines the stability of the control system. Besides, the switching function is able to improve the robustness of the system. Therefore, the performance of the system can be tuned by adjusting the coefficients M, Te, Kp, and Kd. However, there exists interaction between u1 and u2. Hence, it is noted that one could not improve performances by tuning any one of these coefficients.
Model of system in the frequency domain
This section illustrates the modeling process in the frequency domain. Suppose that Figure 1 can be divided into linear and nonlinear elements. The linear element is the composition of the linear plant W1(s) and the ZOH W2(s). Hence, this element can be represented as follows
The nonlinear element N contains the PD term and the switching function. The signals e(t) and u′(t) are the input and output of N, respectively. N can be approximated as a DF by the first harmonic of its output u′(t). First, assume that a periodic signal A sin(ωt) is applied to the input of N. After the corresponding operators, u1(t) = M sign[A sin(ωt)] and u2(t) = Kp A sin(ωt) +KdAω cos(ωt). Then, the nonlinear element N can be represented as equation (4) by the fundamental harmonic Fourier series
It is noted that the amplitude and frequency values jointly determine the coupled DF N(A, ω) mentioned above. Hence, the N(A, ω) is more complex compared with the uncoupled DF N(A) which only relates to the amplitude A. Consequently, this article suggests a graphical method to design coefficients M, Te, Kp, and Kd for the stability and the desired oscillation.
Coefficient design and stability analysis
Coefficient design
The closed-loop transfer function of Figure 1 is given by
Hence, the characteristic equation of Figure 1 can be rewritten as follows
where the negative reciprocal function −1/N(A, ω) is obtained by
When ω is set as the desired value ωn, the slope of −1/N(A, ωn) in the complex plane is not a fixed number with the increase in A. The intersection of −1/N(A, ωn) and the Nyquist plot W(jω) determines the solution of the oscillation parameters (An, ωn) as shown in Figure 2.

Example of the Nyquist plots of W(jω) and −1/N(A, ωn).
In the following, three steps of the graphical method can be used to design Kp, Kd, and M for the desired oscillation (An, ωn):
Step 1. Set ω and A as the desired frequency ωn and amplitude An, then it is possible to obtain the desired oscillation under the condition that equation (7) holds
Step 2. Suppose X = (4M/πAn) + Kp and Y = ωnKd, then one straightforward can obtain X and Y as follows
Hence, Kp and Kd can be set as
Step 3. The amplitude An is assumed as a positive real number. Hence, Kp should be set according to the following inequality constraint
Stability analysis
In this case, the setting ranges of Kp, Kd, and ωn need more discussion. The open-loop transfer function N(A, ω)W(jω) determines the stability of the system. Using the method called small perturbations of amplitudes, the stability can be judged by the geometrical relations between N(An + ΔA, ω)W(jω), N(An − ΔA, ω)W(jω) and the point (−1, j0).
When W1(s) is a minimum phase plant, the system must be unstable if N(An, ω)W(jω)|ω = 0 is a negative real number. Hence, for a stable system, Kp and M should satisfy the following inequality
By equations (10) and (11), Kp should be tuned in the range
The quadrant where the function −1/N(A, ωn) is located depends on the sign of the terms (4M/πA) + Kp and Kd as shown in Figure 3. When (4M/πAn) + Kp > 0 and Kd > 0, −1/N(A, ωn) is located in the second quadrant; when (4M/πAn) + Kp > 0 and Kd < 0, −1/N(A, ωn) is located in the third quadrant. Hence, the desired frequency ωn can be selected such that Re[W(jωn)] < 0. As shown in Figure 4, setting the desired frequency as ωn3 or ωn4 may cause the instability of the system, and the desired frequency ωn should be selected in the second and third quadrants. However, the selection of ωn2 is better than the section of ωn1, because the oscillation corresponding to ωn2 is faster, which provides better robustness and accuracy. 2

The curves of −1/N(A, ω) in the complex plane.

Example of the frequency selection area for the stable system.
It is worth noting that Kp and Kd can be designed as negatives according to the previous analysis, which is not allowed for the minimum phase plant in linear systems. However, the overall gain is 4M/πAn + Kp, and the stability of the SM system is determined by the small perturbations of amplitude method. Nonetheless, the method cannot distinguish the global stability and local stability. When the output y is far away from the desired oscillation due to the initial condition x0 or external disturbance, the switching function cannot provide sufficient gain. In other words, equation (11) may not hold before the system convergences to the oscillation (An, ωn). It means that there exists an attraction basin. If the system leaves the attraction basin, its stability does not hold. It is convenient for the control system to enlarge the size of the attraction basin or design the globally stable system by increasing the coefficient Kp.
The method to describe the attraction basin remains to be discussed. The attraction basin in a fuzzy system is illustrated in simulations in Aracil and Gordillo. 19 It is also estimated in an SM system with multiple limit cycles, 20 but the accuracy is very poor. In this article, the attraction basin is shown in section “Controller design and verification.”
The influence of ZOH
In engineering application, the ZOH is widely used in digital control system. Therefore, the influence of ZOH on the SM controller is discussed in this section. The ZOH leads to a significant change in the Nyquist plot W1(jω) in the high-frequency band as shown in Figure 5, where the transfer function of ZOH can be represented as W2(jω) = cos(ωTe) − j sin(ωTe). Under the effect of ZOH, the Nyquist plot of W1(jω)W2(jω) goes around the origin with the increase in ω. The frequency ωn_max (see Figure 5) is the threshold and ωn_max = π/(2Te). It is not recommended to set the desired frequency greater than ωn_max for the stability of systems. Hence, decreasing the sampling period Te could increase the maximum possible oscillation frequency, which is able to improve the robustness of the system.

The change in W1(jω) in high-frequency band caused by ZOH.
The influence of hysteresis
The nonlinearity hysteresis widely exists in engineering, such as the gear drive and electromagnetic relays. This section discusses the variation of SM oscillations when the ideal switching function is substituted by the rectangular hysteresis as shown in Figure 6. The DF of the SM controller and its negative reciprocal are given by the following form
where a is the gap width.

Nonlinearity of the rectangular hysteresis.
In order to find a more intuitive solution, the graphical depiction is used to analyze the influence of the gap width a on the function −1/N(A, ωn). −1/N(A, ωn) without hysteresis as shown in equation (6) is a circular arc with the center
a is a very small number (the gap width in hysteresis is usually very small in the electronic system and machinery); hence, we reasonably assume that 2M/πa > ωnKd and 2M/πa>>Kp. Therefore,

A cluster curves of −1/N(A, ω) with the variation of the parameter a.
The next topic is how to compensate the hysteresis by tuning Kp and Kd. Because of the insignificance of Kp in

Variation of the curve −1/N(A, ω) with Kd.
Similar to equations (8) and (9), we obtain the compensation coefficients
To compensate the hysteresis, Kdc and Kpc should be enlarged. However, too large Kd may yield negative effects such as the slow response speed.
Numerical simulations
Consider the linear plant given by the state–space model with the matrices
The sampling period Te is set as 10 ms. The model of the linear element (see Figure 1) gives the following transfer function
Controller design and verification
The objective of this section is to find the coefficients of the controller such that the oscillation of y satisfies the desired frequency and amplitude. Set the desired oscillation as ωn1 = 9 rad/s and An1 = 0.0075. According to the graphical method, the process of coefficient designing is as follows. First, calculating ωn_max by iterative computations, we obtain that ωn_max = 17.3 rad/s. Based on the analysis in section “The influence of ZOH,” the selection of the desired frequency (ωn1 = 9 rad/s) does not cause the instability. Next, by equations (7)–(9), we obtain Kd, Kp, and M as follows
Assuming M = 1, then Kp = 8.4. Finally, by equation (12), we find Kp = 8.4 is an appropriate coefficient. To compare the results of the design, we select a group of values as the desired oscillation parameters as shown in Table 1, and the design results of Kp and Kd are also tabulated in it.
The designed coefficients and the oscillation parameters in simulations.
In the following, the numerical simulation I is conducted to verify the accuracy of the graphical method. In the simulation, the sampling period Te is divided into 10 slot times for the higher precision of the derivative de(t)/dt = [e(k) − e(k − 1)]/(0.1 × Te). The state–space in equation (14) is discretized by G = I + A × Te/10 and H = B × Te/10. The controller updates its output u(t) once in every Te. The coefficients M, Te, Kp, and Kd in the program are assigned as the designed values in Table 1. The time series, phase portraits, and frequency spectrums of y are plotted in Figure 9(a)–(c), in which the oscillation amplitudes and frequencies can be measured directly. The desired and simulated oscillation parameters are compared in Table 1.

(a) Time series of designed oscillations, (b) the phase portraits of the three oscillations, (c) spectrum analysis of the steady state of the three oscillations, and (d) the attraction basin of oscillation 2.
The errors between the designed and simulated values may come from the nature of approximation in the frequency-domain method. The accuracy of oscillation parameters A and ω depends on the intensity of residual high-order harmonics which are generated by the switching signal u1(t) and are suppressed by the low-pass performance of W(s). The errors should be considered as uncertain factors in the design process.
The next issue is to discuss the local stability and attraction basin. Consider the influence of the two state variables x1 and x2 on the stability of the system when Kp = −30.8 and Kd = 100.5. Equally spaced initial points are selected in the region
Hysteresis compensation
This section presents the effect of hysteresis on the oscillation and the evaluation of compensation results. Consider a system with the linear plant given by equations (14) and (15) and the controller coefficients Kp = −6.3 and Kd = 41.4. The desired oscillation parameters are An1 = 1.1 × 10−2 and ωn1 = 6.5 rad/s. In order to agree with our intuition, the Nyquist plots of W(jω) and −1/N1(A, ωn1) are shown in Figure 10, and the intersection 1 denotes the desired oscillation (An1, ωn1).

The graphical illustration of hysteresis compensation.
When the gap width a is set as 3 × 10−3, its oscillation becomes (An2, ωn2) = (1.2 × 10−2, 6.15 rad/s). The curve of function −1/N2(A, ωn2) as shown in Figure 10 illustrates that the hysteresis yields a slower and larger oscillation. To compensate the hysteresis, we redesigned Kpc and Kdc according to equation (13c) and obtained Kpc = −1.9 and Kdc = 46.3.
Simulation II is carried out to evaluate the compensation performance. The results are listed in Table 2. We find the enlarged Kd could accelerate the oscillation frequency, and the oscillation amplitude can be adjusted by Kp, which complies with the analysis of section “The influence of hysteresis.”
The evaluation of performance of the hysteresis compensation.
Experimental studies
An inverted pendulum device, as shown in Figure 11(a), is employed to test the SM control algorithm and the graphical method. The experimental device contains an AC servo motor with its own speed-loop control. Using the belt transmission, the motor can drive the car on the straight line. The suspended pendulum installed at the car can rotate around the pivot point. The pendulum angle can be measured by the rotary encoder. The coordinate is described in Figure 11(b). The position of the car is denoted by x and the angle of the pendulum is denoted by θ. The device can be managed by Visual C++, including the angle data collection, motor control, and data storage. The algorithm and coefficients can be set by the C++ program. The force F comes from the acceleration of the AC motor which can be set by its speed-loop control. The sampling interval Te is set as 20 ms for this device.

(a) Experimental inverted pendulum system and (b) coordinate define.
The motion of the inverted pendulum is described as follows
where m = 0.03 kg is the mass of the pendulum, M = 0.7 kg is the mass of the car, l = 0.2 m is the length of the pendulum center from the pivot, g = 9.8 m/s2 is the acceleration of gravity, and τ (N) is the control force. Equation (16) can be rewritten as the state–space model as follows
where
The output y is defined as y = [1, 0, 0.1, 0]ξ; hence, the transfer function from u to y is written as
For convenience,

The graphical illustration of coefficient design for the inverted pendulum.
To eliminate the minus in equation (18), we have to adjust the coefficients as
Figure 13(a) displays the experimental oscillations of y in time series. Compared with oscillation 1, oscillation 2 is smaller and faster. It also shows that the disturbance attenuation of oscillation 2 is better because of the higher robustness which is the results of the increment coefficients Kp and Kd. Figure 13(b) shows the spectrum analysis of the periodic motions. Because of the measurement noise and unmodeled dynamics such as friction, the spectrum components of oscillations 1 and 2 distribute at a series of frequencies. However, the main components are located in the ranges of 18.96–21.66 and 23.96–29.46 rad/s, which are close to the designed frequencies as shown in Figure 12.

(a) The experimental results of the output y in time series and (b) spectrum analysis of the periodic motions of y.
The experiment shows the importance of the switching function and coefficients Kp and Kd when the feedback information is only x and θ. The switching function is used to guarantee the stability. Kd determines the radius and center of the trajectory −1/N(A, ω) which is closely related to the oscillation frequency. The oscillation amplitude can be flexibly adjusted by Kp.
Conclusion
This article has proposed a frequency-domain technique to analyze and design the characteristic of oscillations in the SM system affected by parasitic dynamics. It also introduces a new control design method in the traditional chattering suppression analysis. It has been shown that the coefficients Kp and Kd in the PD term have remarkable effect on the oscillation frequency and the switching function plays an important role in the stability of the system. The trajectories of −1/N(A, ω) have been accurately described as circular arcs, and the relations of the radius, center, and proportion–derivative coefficients are obtained. The principle of the hysteresis compensation has been demonstrated under the guidance of these relations. Such analysis will give designers insights into how to develop the robustness and stability in terms of various application requirements.
Future work will focus on the estimation of the attraction basin for the locally stable system. This estimation is difficult especially for the high-order system.
Footnotes
Appendix 1
Academic Editor: Francesco Massi
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was financially supported by Talent Introduction Project of Southwest University under grant no. SWU116001.
