CNC工具機之任務座標系解耦輪廓控制
Task Frame Decoupled Contouring Control for CNC Machines
摘要
工業自動化的年代,電腦數值控制工具機(Computer Numerical Control ,CNC)是不可或缺的,透過良好的追跡控制來降低加工誤差,雖然各軸獨立控制可以有好的追跡效果,卻可能導致加工路徑變形,故輪廓控制理念萌生,以降低輪廓誤差來減少變形之現象。
本研究以實際位置計算旋轉矩陣,透過旋轉矩陣將原卡式坐標系轉到任務座標系,提出一套解耦輪廓控制器(TF-DCC),解耦於任務座標系。內層速度迴路解耦成切線法線方向獨立控制,並藉由濾波器最佳化設計來抑制速度回授之量化雜訊,外層位置迴路設計補償器來抵銷非線性項作用,使系統也解耦於切線法線上,簡化系統複雜度,利於設計位置迴路控制器。
本研究提出之解耦控制器實現於東台TC-2000 CNC車床,實驗採用圓軌跡與橢圓軌跡,與比例-微分-前饋補償控制器(PDFF)和多層迴路控制器(MTCF)比較。在循圓方面,相對於PDFF與MTCF,TF-DCC輪廓誤差皆有60%以上改善率,在橢圓方面,TF-DCC在低曲率輪廓誤差也皆有60%以上改善率,高曲率部分藉由提高位置迴路控制器的積分增益,改良原TF-DCC在高曲率路徑下的不足,相較於MTCF,輪廓誤差也有49%改善率。
本研究以實際位置計算旋轉矩陣,透過旋轉矩陣將原卡式坐標系轉到任務座標系,提出一套解耦輪廓控制器(TF-DCC),解耦於任務座標系。內層速度迴路解耦成切線法線方向獨立控制,並藉由濾波器最佳化設計來抑制速度回授之量化雜訊,外層位置迴路設計補償器來抵銷非線性項作用,使系統也解耦於切線法線上,簡化系統複雜度,利於設計位置迴路控制器。
本研究提出之解耦控制器實現於東台TC-2000 CNC車床,實驗採用圓軌跡與橢圓軌跡,與比例-微分-前饋補償控制器(PDFF)和多層迴路控制器(MTCF)比較。在循圓方面,相對於PDFF與MTCF,TF-DCC輪廓誤差皆有60%以上改善率,在橢圓方面,TF-DCC在低曲率輪廓誤差也皆有60%以上改善率,高曲率部分藉由提高位置迴路控制器的積分增益,改良原TF-DCC在高曲率路徑下的不足,相較於MTCF,輪廓誤差也有49%改善率。
In the age of the industrial automation, computer numerical control (CNC) machine tools play important roles. Although good tracking control can reduce processing error, it may cause distortion of contours due to mismatches among different moving axes. In order to overcome this problem, we need to design contouring controllers.
In this research, the real position is used to replace the desired position for calculating the rotation matrix, which transforms the position and velocity from the Cartesian coordinate frame to the task coordinate frame. A task frame decoupled contouring control (TF-DCC) is proposed that can decouple the plant in the task coordinate frame for both the velocity loop and the position loop. A filter is incorporated in the velocity loop to alleviate the effects of quantization and the velocity estimation error. Compensation for the nonlinear terms in the position loop results in a decoupled and simplified system and facilitates the controller design.
The TF-DCC method is realized on the XZ-table of a Tongtai CNC lathe TC-2000, and both circular and elliptical trajectories are tested. The experimental results are compared with those of the proportional-derivative-feedforward (PDFF) controller and the multi-loop contouring controller (MTCF). In the circular trajectory experiment, the contouring error of TF-DCC is enhanced by 60% with respect to both PDFF and MTCF. In the experiment of the elliptical trajectory with a low curvature, the contouring error of TF-DCC is enhanced by 60% with respect to both PDFF and MTCF. For the elliptical trajectory with a large curvature, the TF-DCC controller with a higher integral gain is proposed to improve the contouring control. The contouring control performance is enhanced by 49% compared with MTCF.
In this research, the real position is used to replace the desired position for calculating the rotation matrix, which transforms the position and velocity from the Cartesian coordinate frame to the task coordinate frame. A task frame decoupled contouring control (TF-DCC) is proposed that can decouple the plant in the task coordinate frame for both the velocity loop and the position loop. A filter is incorporated in the velocity loop to alleviate the effects of quantization and the velocity estimation error. Compensation for the nonlinear terms in the position loop results in a decoupled and simplified system and facilitates the controller design.
The TF-DCC method is realized on the XZ-table of a Tongtai CNC lathe TC-2000, and both circular and elliptical trajectories are tested. The experimental results are compared with those of the proportional-derivative-feedforward (PDFF) controller and the multi-loop contouring controller (MTCF). In the circular trajectory experiment, the contouring error of TF-DCC is enhanced by 60% with respect to both PDFF and MTCF. In the experiment of the elliptical trajectory with a low curvature, the contouring error of TF-DCC is enhanced by 60% with respect to both PDFF and MTCF. For the elliptical trajectory with a large curvature, the TF-DCC controller with a higher integral gain is proposed to improve the contouring control. The contouring control performance is enhanced by 49% compared with MTCF.