五軸工具機發展至今已有數十年的時間,其加工精度受到靜態誤差與動態誤差所影響。而誤差量測路徑根據ISO/CD 10791-6 草案之檢測規範,需搭配高階控制器指令刀具中心點控制(Tool Center Point Control,TCP)的功能,對三種五軸工具機不同構型K1、K2與K4等同動檢測,但因國外商用高階控制器是管制品且價格昂貴,目前並不普及,因此有使用上的限制。 本系統使用Borland C++ Builder 6.0 為視窗程式開發工具,使用OpenGL繪圖函式庫建立虛擬工具機,使用者可依據不同需求勾選五軸虛擬工具機構型,建構各軸相對運動所對應的樹狀圖並且可直接匯入STL,利於建構虛擬工具機更加迅速。本文所開發的工具機誤差量 測程式實現於實際機台與虛擬工具機,可模擬與驗證具有TCP功能路徑檢測、無TCP功能路徑檢測以及自由曲面加工之程式路徑。 關鍵詞:刀具中心點控制、五軸工具機、OpenGL
Abstract Although five-axis machine tools have been in the market for decades, their processing precision has been affected by static and dynamic errors. According to the test specification set by ISO/CD 10791-6 draft, measuring the route deviation should be coupled with the high-end functions of Tool Center Point Control (TCP) for the co-motion test of the three types of five-axis machine tools - K1, K2 and K4. However, the foreign commercial high-end controllers are controlled items and very expensive, thus they have not been widely used, leading to its limited usage. This study has developed a machine tool measuring program, which uses the homogeneous coordinate transformation matrix theory to obtain the five-axis machine tool's shaping function matrix and then goes through a inverse kinematics to deduce a mathematic model with parametric equations to control the motions of the machine tool's axes. This algorithm allows the controller without central cutting control point to execute co-motion test for the deviation data. The Borland C++ Builder 6.0 with the Windows interface is used as the development tools, and the OpenGL graphics library is used to build a virtual machine tool. And then, the tree structure design graph is directly imported to STL to expedite the building of the virtual machine tool. According to the three different configurations, the simulation includes the functional route test with TCP, functional route test without TCP, and the programmed route for the freeform processing. Keyword:Tool Center Point Control、OpenGL、 Five-axis machine tools