Study on acc/dec Algorithm Based on Piece-Wise Polynomial in CNC

In order to improve the stability of feed movement in high speed CNC system, the feedrate planning algorithm based on piece-wise polynomial function was proposed. The flexible transition of feedrate was realized through maintaining linear continuous jerk. The principle of the proposed algorithm was introduced and the method to generate smooth motion profile based on the proposed algorithm was presented. The proposed algorithm is simple and it can be applied in acceleration/deceleration before interpolation in high speed feed movement to improve the stability of it. The proposed algorithm was applied in multi-contour high speed processing and the result indicated that it could improve the stability of large-scale parts motion.


Introduction
In the CNC processing, the feedrate of the controlled device can not be adjusted abruptly because of the mechanical and electrical inertia from the CNC system, driving system and controlled device. In order to avoid shock, losing step, over travel, vibration of the controlled device, the feedrate of it should be modified smoothly according to acceleration and deceleration (acc/dec) mode. The conventional CNC has the linear and exponential acc/dec function only, which result in abrupt acceleration change during the CNC operation and cause excessive vibration in the processing. The advanced CNC has the S curve acc/dec ability [1][2][3] currently resulting the continuous acceleration but discontinuous jerk change during CNC processing [4]. The jerk change of the CNC system reflects the change of its kinetic energy with processing time [5,6]. In CNC processing especially high speed machining, in order to reduce the moving parts' especially the large-scale moving parts' shock and impact, the kinetic energy of the whole CNC system should be continuous change with time. When the feedrate of moving parts is high, its jerk besides its acceleration should be continuous change with processing time [7][8][9]. Intense vibration can be found during the large-scale parts moving in S curve acc/dec mode. The acc/dec algorithm based on the trigonometric series was proposed by Guo et al. to realize the continuous change of jerk during CNC processing, but the complicated calculation of it can not meet the real time requirement of servo control. So the acc/dec process should be pre-treated, and it is realized with look-up table and interpolation calculation in operation, moreover, the Guo's algorithm has large truncation error, and it will effect the smoothness of acc/dec process. A novel acc/dec algorithm based on piece-polynominal was proposed in this paper to realize the continuous change of jerk during CNC operation, and the detail of it was given.

Acc/dec Algorithm Based on Piece-polynominal
Smooth feedrate change, continuous acceleration, the start and end feedrate equalling to the desired value, the start acceleration equalling to zero should be meet on constructing acc/dec algorithm [10].The whole acc/dec course includes acceleration, constant feedrate and deceleration phase. As indicated in figure 1, the proposed acc/dec algorithm include 15 phases, of which from 1st to 7th phases are acceleration, from 9th to 15th phases are deceleration and the left one is constant feedrate phase.
For brevity, all the variables in the proposed algorithm were explained here.①j,a,v,s indicates jerk, acceleration, feedrate and displacement respectively; ②t 1 …t 15 represents the absolute time of the end of each acc/dec phase respectively; ③T 1 …T 15 indicates the run time of each acc/dec phase respectively;④j 1 …j 15 were the jerk of each end of acc/dec step respectively; ⑤a 1 …a 15 were the acceleration of each end of acc/dec step respectively; ⑥v 1 …v 15 were the feedrate of each end of acc/dec step respectively; ⑦s 1 …s 15 were the displacement of each end of acc/dec step respectively; ⑧l 1 …l 15 were displacement of each acc/dec phase respectively; ⑨t,τwere absolute time variable and relative time variable; ⑩v s ,v e were the start and end feedrate of the whole acc/dec course, R, J, A, v fmax indicates change rate of jerk, acceleration limit of machine tool, the acceleration maximum and maximal feedrate respectively. As shown in figure 1, the jerk, acceleration, feedrate and displacement of each acc/dec phase can be written as the expression (1) to (4) respectively.     3  1  2  2  1  1 2  2  2  2  3  2  1 3  2 3  3  3   3  4  3  4  5  5  2  2  5  6  5 6  6  2  2  6  7  5 7  6 7  7  3  7   max  3  8  9  2  9 9 10 10 6 2 2 2 2 6

Realization of the Proposed Algorithm
The J, A value were determined according to the dynamical performance of CNC machine tool. The feedrate v fmax was selected based on dynamical performance of CNC machine tool, geometrical property of pathway to be traveled and requirements for processing accuracy, then t v =v fmax /A and t a =A/J were calculated. When t v >t a , select the change rate of jerk R, and t j =J/Rwas calculated to enable t a >t j ; When t v ≤t a , select the change rate of jerk R , and t j =J/Rwas calculated to enable t a <t j , the smooth feedrate profile can be generated under two kinds of case mentioned above.
For simplifying discussion, the start and end feedrate of the CNC operation were set to zero, in this case, the acc/dec curve exhibits symmetry.   T v ≤t a <t j Case. The CNC operation can reach attainable maximal acceleration without constant jerk and reach attainable maximal feedrate without constant acceleration in the case. Further more, it can be divided into the case with and without phase 8th according to the length of travel of CNC operation great than or less than the critical value s cr4 . The critical value s cr4 corresponds to the CNC acc/dec process without constant feedrate just right, and can be calculated combining with formula (1) to (4). For instance, in the CNC operation, the feedrate v fmax =100mm/s, acceleration A=4000mm/s 2 , jerk J=60000mm/s 3 , change rate of jerk R=600000mm/s 4 , the critical value s cr4 =17.47mm was solved with these conditions. The smooth moving profile for l=20mm, 14mm were given in figure 6 to 7.

Summary
The continuous evolution of jerk can be realized with the proposed acc/dec algorithm based on piece-wise polynomial. The proposed algorithm needs simple calculation and can realize the flexible evolution of feedrate during the acc/dec operation. So the proposed one can be applied in the acc/dec procedure before interpolation in high speed machining, and the vibration or shock resulting from high speed cutting can be reduced greatly. The proposed algorithm has been applied in acc/dec before interpolation in one kind of the home-made large-scale multi-contour cutting machine tool, the corresponding feedrate stationarity was improved significantly.