Keywords

1 Introduction

1.1 A Subsection Sample

Grinding is a finishing process. It is widely used in high-precision design, such as fan blades [1], aerospace, automobiles [2], medical supplies [3], gear wheel [4], bone-cutting operation [5,6,7] and other high-tech and sophisticated fields [8]. Robot grinding is mainly used for workpiece surface grinding, sharp corners deburring, weld grinding, holes of internal cavity deburring and other scenarios [9]. So, if the robot’s cutting force is not properly controlled in the grinding process, it may cause irreversible damage to the grinding object. And it will give rise to unimaginable terrible consequences when a large error robot grinding is used in the high precision requirements fields. In recent years, with the increasing demand for efficient and economical flexible precision machining equipment, it is urgent to realize robot high-precision grinding. So, the research of high-precision robot grinding technology is of great value to achieve technological breakthroughs in industrial automation and even other fields [10].

Automated grinding requires not only precise position control, but also flexible force mixing control [11]. At present, the research on the flexible control of robot grinding mainly focuses on the following two aspects. One is the active compliance, achieved by force/position hybrid control and impedance control of the robot control algorithm [12]. The other is the passive compliance whose buffering is realized by using compliance mechanisms such as abrasive bands and so on [13]. It is noteworthy that, although good robustness is eventually obtained, the active compliance control of the mechanical arm generally has problems such as complex control algorithms and complicated realizing processes [14]. The passive compliance avoids the rigid contact between the grinding device and the grinding object. It is natural obedience. Not only due to low accuracy requirements of the robot, but also the force control and position control are decentralized, passive compliance has a wider application prospect in the industrial field. However, passive compliance control method has low accuracy and long response time for the output force, so it is not suitable for high precision grinding [15].

Therefore, focusing on the basic problems of passive compliance robot high-precision grinding control, we carried out research on improving the control accuracy of grinding device output force. In this paper, based on the model of an actual cylinder driven grinding device, a new controller with nonlinear differential gain is designed. Parameters optimization is made by introducing The Particle Swarm Optimization Algorithm (PSO) to obtain a more accurate output force of the grinding device. The new controller is expected to significantly improve the grinding accuracy and effectively reduces the probability of damage to the grinding objects.

The other components of this paper are as follows. Section 2 describes the mechanism model of the cylinder driven grinding device through the grinding tool dynamic model and the cylinder model respectively. Section 3 discusses the establishment of a nonlinear PID controller for the force output of the cylinder driven grinding device, and how to obtain the optimal PID controller parameters by introducing the Particle Swarm Optimization Algorithm. Section 4 simulates and verifies the control effect, and compares it with the original controller. And Sect. 5 summarizes the work and prospects finally (Table 1).

Table 1. Variables used in this paper and their meanings

2 Mechanism Model of the Grinding Device

2.1 Grinding Tool Dynamics Model

The research object is a two-part grinding device, one is a cylinder and the other is a grinding tool. The device is equipped with force sensor and inclination sensor. Force sensor is used to obtain the force on the tool. Inclination sensor measures angle between gravity and the direction perpendicular to the contact surface in real time. A pressure regulating valve is selected as the pressure difference regulating actuator of the system.

When the force or inclination changes, the pressure regulating valve will change its output voltage. Then, the air pressure on both sides of the cylinder piston will be adjusted, and the pressure difference will make the piston displaced. Since the expand and contract of the tool relates to the piston displacement, the air pressure difference can indirectly control the output force of the device. The appropriate output force control can maintain the grinding force constantly. The force analysis of the grinding tool during operation is shown in Fig. 1.

According to Newton’s Second Law, we can obtain the kinetic equation of the grinding device as follows:

$$ M_{0} \ddot{x} + M_{0} g\cos \alpha = F_{\text{d}} + F_{\text{n}} + f $$
(1)

where M0 can be obtained by weighing, f can be obtained by identifying friction forces at different speeds, and Fd is calculated as follows:

$$ P_{\text{d}} A_{\text{d}} - f = F_{\text{d}} $$
(2)
Fig. 1.
figure 1

Force analysis of the grinding device

2.2 Cylinder Model

The research object is a two-part grinding device, one is a cylinder and the other is a grinding tool. The device is equipped with force sensor and inclination sensor. Force sensor is used to obtain the force on the tool. Inclination sensor measures angle between gravity and the direction perpendicular to the contact surface in real time. A pressure regulating valve is selected as the pressure difference regulating actuator of the system.

Cylinders have obvious nonlinear properties, and it is difficult to model a nonlinear system directly. Therefore, by taking the pressure regulating valve and the cylinder as a whole, the model form U to Pd is established. This model greatly reduces the difficulty and error of modeling.

By comparing the fitting results of different order transfer equations, the second-order model of the optimal fitting system is finally obtained as follows:

$$ G\left( s \right) = \frac{a}{{s^{2} + bs + c}} $$
(3)

where the parameters are as follows: a = 0.008, b = 0.048, c = 1.601 [15].

In summary, the grinding device system model used in this paper is as follows:

$$ \left\{ {\begin{array}{*{20}l} {G\left( s \right) = \frac{a}{{s^{2} + bs + c}}} \hfill \\ {M_{0} \ddot{x} + M_{0} g\cos \alpha = F_{{\text{d}}} + F_{{\text{n}}} + f} \hfill \\ \end{array} } \right. $$
(4)

3 Control of the Output Force of the Grinding Device

3.1 Control Framework Based on a Nonlinear Differential Gain PID Controllers

The input Fn0 is set value of constant grinding force on the grinding object in the actual operation process. Fd0(s) is calculated by the model shown in Sect. 2. Pd(s) is measured value of the air pressure. We want to get a grinding device that can realize the function of constant force grinding. This means that the device can restore the expected value Fn0 in a short time after the force on the grinding object fluctuates. In order to meet this condition, we must ensure that Fd(s) follows Fd0(s) efficiently in the simulation experiment.

The PID controller is used and it ensures that the actual value of the output force follows the ideal value quickly and stably. At the same time, PID controller can reduce the possibility of overshoot damage to the grinded object. When the controller receives the ideal value and actual values of the output force, it will use the error between the two to calculate a correction value. The correction value can make the actual value gradually approach the ideal value and eliminate the error in a short period of time.

In order to adjust the output force of the grinding tool, the controller is designed as a nonlinear differential gain PID controller and is optimized by PSO. It can increase the damping ratio and improve the dynamic response efficiency of the output force under the condition of ensuring that the natural frequency is unchanged. According to the principle of PID control system, an equation can be construct as follows:

$$ u(t) = k_{{\text{p}}} e(t) + k_{{\text{i}}} \int_{0}^{t} {e(t)\text{d}t} + k_{{\text{d}}} K(e(t))\frac{{\text{d}e(t)}}{{\text{d}t}} $$
(5)

where e(t) is calculated as follows:

$$ e(t) = F_{{{\text{d0}}}} - F_{{\text{d}}} $$
(6)

The nonlinear part K is a function of e(t), so Eq. (5) can be seen as adding a nonlinear sector to the general PID. The structural diagram of the nonlinear differential gain PID control system is shown in Fig. 3.

Since the response of the grinding device is basically without overshoot, it is only necessary to slowly increase the parameters of the differential sector to suppress overshoot. Therefore, the differential gain equation is constructed as follows:

$$ K(e(t)) = a_{{\text{d}}} + \frac{{b_{{\text{d}}} }}{{1 + c_{{\text{d}}} \exp ( - d_{{\text{d}}} e(t))}} $$
(7)

where the parameters ad, bd, cd, dd are all positive real numbers. The adjustment error e(t) is positively correlated with the differential gain and the output control amount. So, it can effectively make the system quickly tend to the target value (Fig. 2).

Fig. 2.
figure 2

Schematic diagram of the control framework

Fig. 3.
figure 3

Nonlinear differential gain PID control system structure diagram

3.2 Controller Parameter Selection Based on the Particle Swarm Optimization Algorithm

The parameters of the differential gain are expected to adjust to an optimal state, in which the controller will have the best output force following effect. There are seven parameters in the designed nonlinear differential gain PID controller altogether. What’s more, the interaction between each parameter is completely complex. The results obtained by using the general optimization algorithm are instable. Therefore, we choose to use the Particle Swarm Optimization Algorithm. The PSO has high stability, and can accurately identify the optimal regions that can meet the needs of the particle swarm in complex particle interactions. Moreover, the PSO is efficient and has relatively simple implementation.

Therefore, the whole controller is used as the optimized object in this paper. Thus, the optimal parameter can be founded through continuous evolutionary iteration of the algorithm.

4 Simulation Experiments

4.1 Simulation Configuration and Methods

In this paper, Simulink is used for simulation experiments. Generally grinding work is usually slow and smooth and the acceleration of the grinding tool is small. So, the effect of acceleration on the calculation of the ideal output force is ignored in the simulation experiment.

In the simulation experiment, the parameters of the system are configured as follows:

  • Assignment

    Before starting the experiment, some parameters in the whole device were given specific values (Table 2):

    Table 2. The parameters of the device
  • Classification

    In this paper, three grinding scenarios are set up as follows:

    1. a)

      Scenario 1: Grinding objects from plane to slope: α only mutations and no continuous changes.

    2. b)

      Scenario 2: Grinding objects from plane to arc: α both mutations and monotonous continuous changes.

    3. c)

      Scenario 3: Grinding objects have only an arc surface: α no mutations and only nonmonotonic continuous changes.

  • Particle Swarm Optimization Algorithm:

    The parameters of the controller before optimization [15] are shown as follows (Table 3):

    Table 3. The parameters of the original controller

The relevant parameter settings for using the Particle Swarm Optimization Algorithm are showed as follows (Table 4):

Table 4. The parameter setting of PSO

To prevent overshoots from appearing, we set a penalty for overshooting that is greater than a penalty for not overshooting. After the program runs, the changes of objective function are shown in Fig. 4(a).

After optimizing the parameters of the controller using the Particle Swarm Optimization Algorithm, we get the results as follows (Table 5):

Table 5. The parameters of the new controller

As the iteration increases, the variation curves of each parameter are shown in the Fig. 4 and Fig. 5.

Fig. 4.
figure 4

The change of the parameter: (a) changes in the objective function of the PSO; (b) variation curve of parameter kp; (c) variation curve of parameter ki; (d) variation curve of parameter kd.

Fig. 5.
figure 5

The change of the parameter: (a) variation curve of parameter ad; (b) variation curve of parameter bd; (c) variation curve of parameter cd; (d) variation curve of parameter dd.

To test its control performance in different grinding states, we conduct a virtual simulation experiment on the model according to the three scenarios proposed in the previous section. We use scenario 1 to compare the effect before the controller parameter optimization and the effect after.

  1. a)

    Scenario 1: Fig. 6(a) is the following result of Fn before parameter optimization, and Fig. 6(b) is the following result of Fn after parameter optimization.

    From the comparison of Fig. 6(a) and Fig. 6(b), it can be seen that after optimizing the parameters, the performance of PID controller has been proved. When the α suddenly changes, not only the response time becomes faster, but also the accuracy of following the set point becomes higher. The control effect of the constant force is significantly higher than that of the PID controller Using the original parameters. Therefore, the optimization, Using the PSO, can indeed significantly improve the following effect of the actual output force of the grinding device on the ideal output force.

  2. b)

    Scenario 2: In Scenario 2, the effect of the actual value following the ideal value is shown in Fig. 6(c).

  3. c)

    Scenario 3: In Scenario 3, the effect of the actual value following the ideal value is shown in Fig. 6(d).

From the following results of the above three scenarios, when the α is unchanged or continuously changed, the control method designed in this paper can accurately control the force received by the grinding object around the set constant force. When the angle α mutation occurs, there will be a small mutation in the force of the grinding object. The size of the mutation is positively correlated with the size of the α mutation. But the nonlinear differential gain PID controller adjusts it to the size of the set value in less than a second. In actual industrial production, the angle mutation is unusual, so the presence of the mutation has less impact on the accuracy of the grinding process.

Fig. 6.
figure 6

Control result of actual force on the grinding object: (a) The original parameter Fn following result in scenario 1; (b) The optimized parameter Fn following result in scenario 1; (c) The optimized parameter Fn following result in scenario 2; (d) The optimized parameter Fn following result in scenario 3.

5 Conclusion

This paper studies how to more effectively realize the constant force grinding based on cylinder control. Firstly, the entire system’s two parts, the grinding tool and the cylinder, are respectively modeled. Then a framework based on the nonlinear differential gain PID controller is build. The parameters are optimized using the Particle Swarm Optimization Algorithm. Finally, the optimized controller’s advantage, can get a more accurate control and faster response to the constant force following effect, is verified through simulation experiments. However, there is shortcoming in this paper. The operating environment of the simulation experiment is very ideal. In actual operation process, there will be other uncontrollable factors that affect the system. Therefore, the following effect of the controller in real work needs to be verified by further practical experiments.