CNC工具機之任務座標系最佳化解耦輪廓控制
Decoupled and Optimal Contouring Control based on Task Space Coordinate Frame for CNC Machines
摘要
隨著工業4.0時代的到來,自動化製造的需求不斷上升,使得電腦數值控制工具機(Computer Numerical Control, CNC)的重要性及精密度的要求也隨之提高,在多軸伺服控制中,各軸獨立控制雖然能使其追跡效果良好,但因為軸與軸之間動態不同,可能導致加工路徑變形,因此將各軸同時考慮,藉由降低輪廓誤差,使機器準確追蹤加工路徑的輪廓控制概念出現。
本研究將機台實際運行位置投影在理想軌跡,藉由投影點計算出時變座標轉換矩陣,並將機台從卡式座標系(Cartesian coordinate space)轉到任務座標系(Task Frame coordinate space),提出一套任務座標系最佳化解耦輪廓控制(Decoupled and Optimal Contouring Control-TCF, DOCC-TCF)。此控制器分為雙層迴路,內層為速度迴路,解耦速度迴路於切法線獨立控制,同時各別在切線與法線配置一組想要的極零點,在速度回授的部分,則設計一組FIR濾波器來抑制位置量化後差分得到速度所造成的高頻雜訊,外層位置迴路同樣也轉至切法線,並採用PID控制器,利用粒子群最佳化演算法自動調整PID參數,將位置迴路最佳化。
本研究提出之最佳化解耦輪廓控制器(Decoupled and Optimal Contouring Controller,
DOCC)實現於東台TC-2000 CNC車床之XZ平台,與比例-微分-前饋控制器(Proportional-Derivative-Feedforward Controller, PDFF)、多層迴路控制器(Multi-Loop Task Coordinate Frame Controller, MTCF)、解耦輪廓控制器(Task Frame Decoupled Contouring Controller, TF-DCC)等等控制器比較兩種速度包括慢速(feed rate 1256.6mm/min)與快速(feed rate 1885mm/min),與前期研究最佳結果TF-DCC(h)相比,循圓方均根輪廓誤差分別有13.3%、16.2%以上改善率,循圓最大輪廓誤差有36.2%、51.8%以上改善率,在橢圓方面,低曲率方均根輪廓誤差則有13.8%、23.7%以上改善率,低曲率最大輪廓誤差有57.0%、57.2%以上改善率,高曲率方均根輪廓誤差有74.0%、78.2%以上改善率,高曲率最大誤差則可以達到78.3%、78.2%以上改善率。
本研究將機台實際運行位置投影在理想軌跡,藉由投影點計算出時變座標轉換矩陣,並將機台從卡式座標系(Cartesian coordinate space)轉到任務座標系(Task Frame coordinate space),提出一套任務座標系最佳化解耦輪廓控制(Decoupled and Optimal Contouring Control-TCF, DOCC-TCF)。此控制器分為雙層迴路,內層為速度迴路,解耦速度迴路於切法線獨立控制,同時各別在切線與法線配置一組想要的極零點,在速度回授的部分,則設計一組FIR濾波器來抑制位置量化後差分得到速度所造成的高頻雜訊,外層位置迴路同樣也轉至切法線,並採用PID控制器,利用粒子群最佳化演算法自動調整PID參數,將位置迴路最佳化。
本研究提出之最佳化解耦輪廓控制器(Decoupled and Optimal Contouring Controller,
DOCC)實現於東台TC-2000 CNC車床之XZ平台,與比例-微分-前饋控制器(Proportional-Derivative-Feedforward Controller, PDFF)、多層迴路控制器(Multi-Loop Task Coordinate Frame Controller, MTCF)、解耦輪廓控制器(Task Frame Decoupled Contouring Controller, TF-DCC)等等控制器比較兩種速度包括慢速(feed rate 1256.6mm/min)與快速(feed rate 1885mm/min),與前期研究最佳結果TF-DCC(h)相比,循圓方均根輪廓誤差分別有13.3%、16.2%以上改善率,循圓最大輪廓誤差有36.2%、51.8%以上改善率,在橢圓方面,低曲率方均根輪廓誤差則有13.8%、23.7%以上改善率,低曲率最大輪廓誤差有57.0%、57.2%以上改善率,高曲率方均根輪廓誤差有74.0%、78.2%以上改善率,高曲率最大誤差則可以達到78.3%、78.2%以上改善率。
With the advent of the era of Industry 4.0, the demand for automated manufacturing continues to rise, which highlights the importance of precision motion control of Computer Numerical Control (CNC) machine tools. In multi-axis servo control, independent control of each axis results in good tracking performance, but the machining path may deform due to the dynamic differences among the axes. Therefore, considering all axes at the same time, the concept of contour control that enables the machine to accurately trace the machining path is proposed to reduce the contour errors.
In this research, the real position of the machine is projected to the ideal trajectory. Then the time-varying coordinate transformation matrix is calculated based on the projected point, and the machine’s position and velocity are transformed from the Cartesian coordinate space to the Task Frame coordinate space. The dual-loop Decoupled and Optimal Contouring Control (DOCC) method is proposed in this thesis, where the tangent and normal velocities are decoupled in the inner velocity loop with its poles and zeros are placed to the desired locations. In addition, an FIR filter is incorporated in the velocity loop to reduce the high-frequency noise caused by velocity estimation from quantized position measurements. On the other hand, the tangent and normal positions are independently controlled in the outer position loop by PID controllers whose coefficients are automatically optimized using the particle swarm optimization algorithm.
The proposed DOCC method is implemented on the XZ platform of Dongtai TC-2000 CNC lathe, and its performance is compared with that of Proportional-Derivative-Feedforward Controller (PDFF), Multi-Loop Task Coordinate Frame Controller (MTCF), and Task Frame Decoupled Contouring Controller (TF-DCC). The reference trajectories include both slow feed rate of 1256.6mm/min and high feed rate of 1885mm/min. Compared with the best results of the previous research TF-DCC(h) in terms of the root mean square and maximum contouring errors, the improvement under the low (high) feed rate is at least 13.3% (16.2%) and 36.2% (51.8%), respectively for circular trajectories. For low curvature elliptical trajectories, the improvement is at least 13.8% (23.7%) and 57.0% (57.2%), respectively. As for high curvature elliptical trajectories, the improvement is at least 74.0% (78.2%) and 78.3% (78.2%), respectively.
In this research, the real position of the machine is projected to the ideal trajectory. Then the time-varying coordinate transformation matrix is calculated based on the projected point, and the machine’s position and velocity are transformed from the Cartesian coordinate space to the Task Frame coordinate space. The dual-loop Decoupled and Optimal Contouring Control (DOCC) method is proposed in this thesis, where the tangent and normal velocities are decoupled in the inner velocity loop with its poles and zeros are placed to the desired locations. In addition, an FIR filter is incorporated in the velocity loop to reduce the high-frequency noise caused by velocity estimation from quantized position measurements. On the other hand, the tangent and normal positions are independently controlled in the outer position loop by PID controllers whose coefficients are automatically optimized using the particle swarm optimization algorithm.
The proposed DOCC method is implemented on the XZ platform of Dongtai TC-2000 CNC lathe, and its performance is compared with that of Proportional-Derivative-Feedforward Controller (PDFF), Multi-Loop Task Coordinate Frame Controller (MTCF), and Task Frame Decoupled Contouring Controller (TF-DCC). The reference trajectories include both slow feed rate of 1256.6mm/min and high feed rate of 1885mm/min. Compared with the best results of the previous research TF-DCC(h) in terms of the root mean square and maximum contouring errors, the improvement under the low (high) feed rate is at least 13.3% (16.2%) and 36.2% (51.8%), respectively for circular trajectories. For low curvature elliptical trajectories, the improvement is at least 13.8% (23.7%) and 57.0% (57.2%), respectively. As for high curvature elliptical trajectories, the improvement is at least 74.0% (78.2%) and 78.3% (78.2%), respectively.