Abstract

To solve the problems of dynamic model parameter perturbation and external disturbances during the operation of the ball screw meta-action unit, an adaptive sliding mode control method based on disturbance compensation and inertia identification is proposed in this paper. First, a model of the ball screw meta-action unit is established and the dynamic equation is derived. Taking into account the uncertainty of the dynamic parameters, a least squares method with a forgetting factor is introduced to identify the moment of inertia in real time, and the identification results are utilized to adaptively adjust the sliding mode control law. Second, a nonlinear disturbance observer is designed to effectively observe the load disturbance, and the observed value is substituted into the sliding mode control as feedforward compensation to improve the anti-interference ability of the controller. Committed to the chattering of traditional sliding mode control, an improved adaptive exponential sliding mode reaching law is exploited to construct a novel sliding mode controller, thereby suppressing the slid mode chattering more thoroughly. Finally, the superiority of the proposed method is verified by MATLAB/Simulink simulation and compared with the other two control methods; the control method proposed in this paper can effectively improve the tracking performance of the system and has good robustness.

1. Introduction

Ball screw meta-action unit has been widely used in computer numerical control (CNC) machine tool, industrial robots, and other fields with the advantages of high precision, high efficiency, and high rigidity [13], and in particular, the transmission system of CNC machine tool with ball screw meta-action unit as the main driving unit is developing in the direction of high speed and high precision [4]. At the same time, with the development of the times, the accuracy of system control requirements is getting higher and higher. However, under actual operating conditions, due to the nonlinear characteristics of the system, the performance level of the ball screw meta-action unit control system is easily affected by parameter changes and external disturbances, and the traditional control algorithm has been difficult to achieve higher performance positioning and speed regulation [57].

To reduce the error generated in the feed movement and improve the reliability, various classic control methods have been used, e.g., gain scheduling (GS) control [8], adaptive control [9], active disturbance rejection control (ADRC) [10], and intelligence techniques, e.g., neural network control [11], H∞ control [12], and sliding mode control (SMC) [13]. Interestingly, SMC has the advantages of fast response to the system, less affected by internal and external interference and good robustness, which is widely used in the control system of mechanical units, but SMC often has chattering problem in practical applications [1416]. Aiming at the problem of nonlinear speed regulation of permanent magnet synchronous motor control system, Wang et al. [17] designed an SMC method based on the new sliding mode reaching law to suppress chattering and improve the speed of reaching the sliding mode surface. Lu et al. [18] proposed a sinusoidal saturation function with variable boundary layer to suppress the chattering problem in the switching function. Huang et al. [19] proposed an adaptive SMC method based on the fuzzy exponential approach law to eliminate the unknown interference in the system and weaken the chattering of the system, but the setting of fuzzy rules requires a lot of experimental experience and is difficult to establish. In [20], an SMC method based on adaptive arrival law is proposed, the system state variables are combined with improved hyperbolic tangent function, to eliminate system chattering. However, when the perturbation of the system is large, the state variables of the system cannot guarantee a certain steady-state accuracy, and it is necessary to increase the gain of the switching function to reduce the impact of excessive disturbance on the steady-state accuracy of the system, but aggravate the chattering of the system, which limits the actual application of SMC. Therefore, how to improve the anti-interference ability of the system and the approach speed of the sliding mode surface as much as possible on the basis of weakening the chattering is a hot spot in current research.

In recent years, a series of advances have also been made in the study of using the idea of feed-forward compensation to solve system perturbations [2123]. In [22], a new SMC method based on disturbance observer is proposed, the unknown disturbance is estimated by disturbance observer, and the nonlinear sliding mode surface is constructed from the estimated output value, which improves the robustness of the control system. Li proposed a composite control method based on extended state observer (ESO) and SMC and designed a third-order linear ESO to estimate the uncertain perturbation of the system, but in the design process of ESO, many parameters need to be selected, parameter setting is complicated, and the accuracy of interference estimation is limited [24]. Nonlinear disturbance observers (NDOs) have the advantages of a simple algorithm and easy engineering implementation and are widely used in disturbance compensation [25, 26]. Ding et al. [27] proposed an NDO-based terminal sliding mode control strategy, which used the observer to estimate the uncertainty perturbation in the system, thereby reducing the influence of perturbation on speed tracking. Nguyen et al. [28] designed a nonlinear perturbation observer that can self-adjust the gain of the observer and made effective estimates of the unmodeled parameters of the system and external perturbations, but the observed values fluctuated greatly. In the abovementioned methods, the motor parameters of the system are designed as observers with fixed values by default, and the real-time changes of the parameters are not considered. In [29], an identification method combined a Luenberger observer and the variable forgetting factor recursive least squares (FFRLS) method is proposed, but the results of parameter identification are not used in the design of the controller.

In summary, to improve the high-precision control of the ball screw meta-action unit control system, considering that the control system is susceptible to internal parameter changes and external interference, an adaptive SMC method based on disturbance compensation and inertia identification is proposed. First, this paper designs an adaptive sliding mode reaching law based on system state variables and tracking error and its reaching law gain term will change with the change of system state variables, which can not only self-adjust the approach speed but also reduce the sliding mode chattering. Second, the NDO is designed to estimate the external disturbance and parameter uncertainty in real time, and the observed value is introduced into the design of the controller as compensation, and considering the real-time change of the motor moment of inertia, the moment of inertia is identified by FFRLS method, so as to improve the estimation accuracy of the observer and the anti-interference performance of the controller.

2. Building of Ball Screw Meta-Action Unit Model

2.1. Physical Model of Ball Screw Meta-Action Unit

To fully reflect the characteristics of “motion” and motion-related characteristics of the system in the drive system of CNC machine tool, this paper uses meta-motion theory to build the frame of CNC machine tool feed system, chooses the most common ball screw meta-action unit system as the research object, and studies the control performance of ball screw meta-action unit from the angle of force and torque transmission. As shown in Figure 1, the entire consisting of all components (inputs, execution piece, middleware, supports, and fasteners) according to the assembly relationship is called the meta-action unit [30].

The meta-action unit of the ball screw is composed of an input part (motor), a middle part (coupling and ball screw), a fastener (left bearing and right bearing and nut), an output part (worktable), and a support part (guide rail and base), as shown in Figure 2.

The motion form of the action unit platform of the ball screw is mainly through the rolling body circulating back and forth between the lead screw raceway and the nut raceway to carry out the spiral motion, thus realizing the transformation of the rotary motion of the lead screw into the linear motion of the nut, the nut drives the worktable to realize the linear feed movement and, finally, realizes the feed movement of the actuator through the transmission of force or torque.

2.2. Dynamic Modeling of Ball Screw Meta-Action Unit

The transmission parts of the ball screw meta-action unit are not ideal rigid body, and the input and the actuator are often connected by elastic elements or flexible parts, so in this paper, the transmission ball screw is regarded as a flexible body because the transmission itself has a small moment of inertia, can be ignored, with transmission stiffness and damping coefficient to describe, after simplification, the entire drive system of the ball screw meta-action unit which can be regarded as a motor-load composed of the dual-mass system model, as shown in Figure 3. According to the model of the system, the dynamic equation is [31]where is the control torque of the servo motor, is the motor moment of inertia, is the motor damping coefficient, is the damping constants of the load, is the transmission torque of the propeller shaft, is the load torque, is the equivalent moment of inertia of the load, is the equivalent stiffness of the flexible element, is the damping coefficient of the flexible element, and and are the equivalent output angles of the motor shaft and the table.

To make the ball screw meta-action unit have good tracking accuracy and improve the tracking performance of the system, it is necessary to design the control strategy according to the established dynamic model. The control goal of this paper is to design an adaptive sliding mode controller to ensure that the system position output can quickly and stably track the desired trajectory.

3. Sliding Mode Control Design Based on Nonlinear Disturbance Observer

3.1. Design of Control Laws

SMC is essentially a nonlinear control, that is, the control structure changes with time [32] because SMC is not sensitive to parameter disturbance and is often used for the control of nonlinear systems, so this paper adopts the SMC strategy to achieve system tracking control.

According to equation (1), defining , we can obtain the equation of motion of the state of the ball screw meta-action unit:where is the control input of the system, expressed as electromagnetic torque in the physical sense, and is the output variable of the system.

We also define the sliding mode function aswhere ( is the reference signal) is the tracking error, , and satisfies the Hurwitz polynomial condition.

Finding the first derivative of s and combining equation (2) yieldswhere .

For SMC, to improve the convergence speed of the system and weaken the chattering, the exponential reaching law is selected:where , where and are positively correlated with the sliding mode approach velocity and the sliding mode chattering, respectively. Generally speaking, in the process of selecting SMC parameters, the value should be made as large as possible to speed up the reaching speed, and the value should be selected as small as possible to reduce sliding mode chattering.

In fact, the values of and are difficult to select or include in the uncertain parameter boundary, so in order to solve this problem, this paper adopts the improved adaptive exponential sliding mode approximation law, so that the systematic tracking error variable is associated with the sliding mode reaching law, so as to improve the adaptive ability of SMC, and the improved adaptive exponential sliding mode reaching law is as follows:where and is the tracking error.

From equation (7), when tends to , , and , at this time, the reaching law has a faster reaching speed and when tends to 0 and , the reaching law is close to the conventional exponential reaching law. The gain term of the reaching law can be dynamically adjusted with the changes of the sliding surface and system state. When the state error is large, the reaching speed is increased, and when the state error is small and close to the sliding mode surface, the chattering level of the system is reduced by reducing the approach speed.

Combining equations (3), (5), and (7) yields the following adaptive control law:

3.2. Design of Nonlinear Disturbance Observers

To improve the anti-interference ability and control accuracy of the system, NDO is used to estimate interference and compensate it into the control law as a feed-forward term to improve the robustness of SMC [33]. Here, we mainly consider the system load transmission torque as an external disturbance and then consider using an observer to estimate and compensate for this.

From equation (3), the equation of motion of the system can be expressed as

Then, the design observer iswhere is the observer gain and is the observed value of interference.

We define the observation error as

Since the frequency of change is low relative to the dynamic characteristics of the observer and the sampling frequency of the system, it can be assumed that . We derive equation (11) and substitute it into equation (10), and the dynamics of the observation error can be described in the following equation:

As can be seen from equation (12), when is positive, the observer gain can be designed so that the observation error converges exponentially to 0, the convergence speed is positively correlated with , and when is large, it will cause fluctuations in the system, and the convergence speed will slow down when is running at a low speed, so when the system is running at a low speed, a larger should be selected, and when the system is running at a high speed, a smaller should be selected to reduce the oscillation of the system.

However, due to the influence of noise signals during measurement, the acceleration signal is difficult to obtain, so the designed observer needs to be reconstructed to define an intermediate variable as

Let , the derivation of equation (13) and substitution into equation (10), be obtained

The NDO constructed by equations (13) and (14) is

If the perturbation observation is introduced into the designed SMC, the new control law is

To verify the stability of the designed controller, the Lyapunov function is selected as

The first derivative of equation (17) is obtained and brought into equations (7) and (12).

Substituting the control law (16) into equation (18), we can obtain the following equation:

According to equation (7), , and . It is proved by stability that when is positive, finally .

It can be seen that both the sliding surface and the observation error will converge in a limited time, that is, the designed system is progressively stable.

3.3. Identification of Rotational Inertia

In the design of the abovementioned controller, the rotational inertia is regarded as a fixed value, but because the ball screw meta-action unit is a complex system with time-varying characteristics, the moment of inertia will change with running time, seriously affecting the robustness of the controller, so this paper mainly uses the FFRLS method to identify the system uncertainty parameter and real-time feedback to the SMC law to improve the anti-interference ability of the system.

From equations (1)–(3), it can be deduced that the transfer function from the control input to the motor output variable is

In this paper, bilinear transformation is used to discretize the transfer function, and finally, a recursive expression based on least square form is established.

Here, , let be the sampling period, and we process equation (20) to obtain

In equation (21),

From equation (22), the recurrence formula is obtained:where and are the measured data of the input and output at time , respectively.

By performing a Z-inverse transformation of the discrete transfer function, the autoregressive moving average model in the time domain can be obtained as follows:

Equation (24) is the least square form of the discretized difference equation. Combining equations (23) and (24), it can be obtained that the parameter vector and the vector to be estimated are

As can be seen from equation (25), the parameter vector contains seven parameters that need to be fitted, and the relationship between them is as follows:

Combined with the discrete instantaneous sampling values of the input quantity and the output in the estimation vector , the input and output values are fitted to the form of (23) to find the parameter vector , and then the equivalent relationship between the parameters of equation (26) is used as the solution set, and finally, the fsolve toolbox of MATLAB can be used to find four unknowns with unique solutions . In order to realize the real-time update of , this paper only identifies the parameter of the motor moment of inertia .

Furthermore, FFRLS is used to identify the estimated parameters. The FFRLS formula is as follows:where expressed as an estimation vector of the identification parameter at -time, represents the observed value of the system output at the th moment, represents the actual output of the system, represents the observation matrix of the system at the th moment, represents the estimated gain matrix of the system, represents the error covariance matrix of the system, and is the forgetting factor.

At this point, the identified is updated to the SMC designed in this paper, and the new control law is

4. Simulation Results and Discussion

For the purpose of verifying the proposed algorithms, this section conducts simulation verification using MATLAB/Simulink. Table 1 shows the mechanical structure parameters of the ball screw meta-action unit.

4.1. Parameter Identification Simulation Analysis

The specific simulation parameters of the system are shown in Table 1. The sampling period is 0.0001 s, and the input signal uses white noise. With the increase of the data amount during the system operation, the value of and in equation (27) will decrease with the increase of the data, and the correction ability of the observed value output by the system will become smaller and smaller, leading to the phenomenon of “data saturation” of the system.

The least square method with forgetting factor avoids the rapid decline of adaptive gain and overcomes this phenomenon by introducing a forgetting factor in parameter identification. In the simulation, the forgetting factor is selected as 0.95, and the simulation time is selected as 1 s. The identification results are shown in Figure 4.

In Figure 4, the red dashed line represents the true value of the system parameters, and the blue solid line represents the estimated value obtained from identification. The results in the figure indicate that when the forgetting factor is selected as 0.95, the motor’s moment of inertia can converge to the true value at 0.063 seconds and is basically stable around .This indicates that the least squares method with forgetting factors can effectively identify the required parameters.

4.2. Simulation Analysis of Control Effect

In this section, the following three SMC methods will be selected to verify the effectiveness of the proposed adaptive SMC algorithm based on disturbance compensation and inertia recognition, and the simulation and comparison results are shown in Figures 58.(1)In the control method based on the traditional sliding mode reaching law (SMC), the reaching law is , where the controller parameters are set to (2)Parameters of traditional sliding mode controllers based on nonlinear disturbance observers (NDO + SMC) are (3)This paper designs the parameters required for an adaptive SMC algorithm based on disturbance compensation and inertia identification:

First, the estimation capability of NDO is verified by simulation, and its curve is shown in Figure 5, from which it can be seen that under the condition of for a given load torque, the observer can stably estimate the actual external disturbance, which effectively improves the anti-interference ability of the system.

Second, two different signals are set as reference instructions and the control strategy is simulated and verified.

The first case is that the simulation time is set to 3 s, and the results are shown in Figure 6. From Figure 6(a), it can be seen that the method proposed in this paper has good convergence speed and tracking performance. Figure 6(b) is a comparison diagram of the tracking error change rate of the three controllers, which shows that the method proposed in this paper has a faster error convergence rate than the other two controllers. When the system reaches a steady state, the steady-state error rate of the method proposed in this paper is small, and the other two methods have a large change rate. Figure 6(c) is a comparative diagram of the control input curve, from which it can be seen that the control method designed herein requires less control than the other two methods. Figure 6(d) is a sliding mode curve comparison chart of the three methods; compared with the other two methods, the control method in this paper can realize the adaptive ability of the sliding mode reaching law and adaptively adjust the switching gain, and at the same time, the disturbance observer compensates for the influence of partial disturbance on the system, thereby reducing the sliding mode chattering.

In the second case, to further verify the superior performance of the proposed algorithm and to consider the impact of system disturbances, the reference signal is set to , and the simulation time is also set to 3 s. When running for 2 s, we add controller interference , at which point the system can be represented as

The simulation signal results are shown in Figure 7. It can be seen from the figure that the control method in this paper still has a good tracking effect after suddenly adding a disturbance signal. Figure 7(b) is a comparison of the tracking error of the three controllers after a burst perturbation. It can be seen that the maximum error of the proposed method is smaller than the maximum error of the other two control methods, and the error under the proposed method can be restored to a stable state in a relatively short time. It can be seen that the method in this paper has better and superior performance. It can be seen in Figure 7(c) that the input signal of the control method proposed in this paper is relatively smooth and there is no high-frequency chattering phenomenon, which indicates that the designed method can effectively avoid the chattering problem of traditional SMC. Figure 7(d) shows the sliding mode curve comparison chart of different algorithms, and it can be further seen that the proposed method has a good effect on weakening chattering.

In addition, in the third case, the system response when the load inertia changes is studied. Given the required input instruction , starting load inertia ; when the system runs for 1 s, increased to ; the simulation comparison diagram is shown in Figure 8; from Figure 8(a), it can be seen that, in the case of sudden , the tracking error of the algorithm designed in this paper is still small compared to the other two control methods, effectively improving the tracking performance of the system; Figure 8(b) is the control input diagram of before and after the mutation; it can be seen that when is mutated in 1 s, the control algorithm required in this paper requires a smaller amount of control. The influence of chattering is reduced, indicating that the method designed in this paper can effectively cope with parameter change.

5. Conclusions

In this paper, an adaptive SMC method based on disturbance compensation and inertia identification is proposed, and an adaptive sliding mode approximation law based on system variables is designed, and the gain term of the reaching law is adjusted online through adaptive adjustment technology, which weakens the sliding mode chattering and improves the adaptive ability of reaching speed. To further improve the anti-interference ability and steady-state performance of the system, an NDO is designed to estimate the load disturbance of the system. Considering that the moment of inertia will change with time, FFRLS is used to identify the moment of inertia online, so that the moment of inertia is more flexible. Finally, the effectiveness of the proposed method is verified by simulation, and the control method can better improve the steady-state performance and the ability to suppress disturbances by comparing with other control methods.

Data Availability

The data used in this study are mathematical-based simulations and are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was funded by the National Natural Science Foundation of China, No. 51705417.