TWI667559B - Automatic surface error compensation method and computer program product therefor - Google Patents

Automatic surface error compensation method and computer program product therefor Download PDF

Info

Publication number
TWI667559B
TWI667559B TW107116200A TW107116200A TWI667559B TW I667559 B TWI667559 B TW I667559B TW 107116200 A TW107116200 A TW 107116200A TW 107116200 A TW107116200 A TW 107116200A TW I667559 B TWI667559 B TW I667559B
Authority
TW
Taiwan
Prior art keywords
ideal
point
workpiece
actual measurement
measurement point
Prior art date
Application number
TW107116200A
Other languages
Chinese (zh)
Other versions
TW201947334A (en
Inventor
李維楨
李育茲
韋經智
Original Assignee
國立臺灣科技大學
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 國立臺灣科技大學 filed Critical 國立臺灣科技大學
Priority to TW107116200A priority Critical patent/TWI667559B/en
Application granted granted Critical
Publication of TWI667559B publication Critical patent/TWI667559B/en
Publication of TW201947334A publication Critical patent/TW201947334A/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Numerical Control (AREA)

Abstract

一種自動化曲面誤差補償方法,適於根據加工程式控制 工具機對工件進行自動化加工,方法包括於一個理想曲面上建立多個假想平面,以取得多個曲線特徵。這些曲線特徵為每一個假想平面與該理想曲面相交的曲線的集合。依據曲線特徵執行佈點演算,以取得理想量測點的位置資訊。然後於工具機上直接對工件執行線上表面量測,以取得實際量測點的實際位置資訊。對實際量測點及對應於理想曲面的多個理想量測點執行誤差計算,以進行曲面擬合並產生精加工路徑。另提供一種具有至少一程式碼的電腦程式產品,當電子裝置載入並執行程式碼後,可完成上述方法。 An automatic surface error compensation method suitable for controlling according to a processing program The machine tool automates the machining of the workpiece by creating a plurality of imaginary planes on an ideal surface to obtain a plurality of curve features. These curve features are a collection of curves where each imaginary plane intersects the ideal surface. According to the curve feature, the layout calculation is performed to obtain the position information of the ideal measurement point. Then, the on-line surface measurement is directly performed on the workpiece on the machine tool to obtain the actual position information of the actual measurement point. Perform error calculations on actual measurement points and multiple ideal measurement points corresponding to the ideal surface to perform surface fitting and produce a finishing path. A computer program product having at least one code is provided, and the method can be completed when the electronic device loads and executes the code.

Description

自動化曲面誤差補償方法及其電腦程式產品 Automatic surface error compensation method and computer program product thereof

本發明是有關於一種誤差補償方法及其電腦程式產品,且特別是有關於一種自動化曲面誤差補償方法及適於執行此自動化曲面誤差補償方法的電腦程式產品。 The invention relates to an error compensation method and a computer program product thereof, and in particular to an automatic surface error compensation method and a computer program product suitable for performing the automatic surface error compensation method.

目前工業界在進行工件加工並經量測發現工件的尺寸有誤差時,一般是透過電腦數值控制(Computer Numerical Control;CNC)之控制器來對工件進行磨耗補償。也就是說,根據量測的結果,對工件逐步進行補償,通常需要執行二至三次的均勻補償才會獲得最佳值。此外,習知的CNC控制器補償方法僅限於簡單形體及簡易曲面的補償,無法對複雜的自由曲面(free-form surface)進行誤差補償。 At present, when the workpiece is processed by the industrial industry and the size of the workpiece is found to be in error, the workpiece is generally subjected to wear compensation by a computer numerical control (CNC) controller. That is to say, according to the measurement results, the workpiece is gradually compensated, and it is usually necessary to perform two to three uniform compensations to obtain the optimum value. In addition, the conventional CNC controller compensation method is limited to the compensation of simple shapes and simple surfaces, and cannot compensate for complex free-form surfaces.

另一種做法則是手動修改NC檔來調整加工路徑,或是使用外部程式例如電腦輔助測量規劃(Computer-Aided Inspection Planning;CAIP)軟體來執行佈點運算,以獲得更精確之加工尺寸。然而,手動修改NC檔耗時且難以完成。另外,使用外部程式時,由於工件的加工、量測和補償等步驟不是在同一系統上完成,因此,在與工業界軟體自動化結合上會造成許多不必要之麻煩,例如參數設定不同或座標系統轉換、定位誤差、軟體相容性等。 Another approach is to manually modify the NC file to adjust the machining path, or use an external program such as Computer-Aided Inspection. Planning; CAIP) software to perform the layout operation to obtain a more precise processing size. However, manually modifying the NC file is time consuming and difficult to complete. In addition, when using an external program, since the steps of machining, measuring, and compensating the workpiece are not performed on the same system, there are many unnecessary troubles in combination with industrial software automation, such as different parameter settings or coordinate systems. Conversion, positioning error, software compatibility, etc.

隨著曲面應用越來越廣泛,市場對連續曲面加工產品之需求日漸增加,對於工件尺寸精度的要求也隨之提升。另外,因應工業4.0的發展,自動化加工已是不可避免之趨勢。因此,如何能在同一系統上完成工件的加工、量測和補償等步驟,以簡化流程並提升工件尺寸精確度,成為本領域研究人員極欲解決的課題。 As surface applications become more widespread, the market's demand for continuous curved surface processing products is increasing, and the requirements for workpiece dimensional accuracy are also increasing. In addition, in response to the development of Industry 4.0, automated processing is an inevitable trend. Therefore, how to complete the steps of machining, measuring and compensating the workpiece on the same system to simplify the process and improve the dimensional accuracy of the workpiece has become a problem that researchers in this field are eager to solve.

本發明提供一種自動化曲面誤差補償方法以及一種電腦程式產品可完成此自動化曲面誤差補償方法,其可有效結合電腦輔助軟體開發自動化,並可提升加工工件的尺寸精確度。 The invention provides an automatic surface error compensation method and a computer program product, which can complete the automatic surface error compensation method, can effectively combine the computer-aided software development automation, and can improve the dimensional accuracy of the processed workpiece.

本發明的自動化曲面誤差補償方法適於根據加工程式控制工具機對工件進行自動化加工。自動化曲面誤差補償方法包括於理想曲面上建立多個假想平面,以取得多個曲線特徵,這些曲線特徵為每個假想平面與理想曲面相交的曲線的集合。依據曲線特徵執行佈點演算,以取得理想量測點的位置資訊。然後於工具機上直接對工件進行線上表面量測,以取得實際量測點的實際位置資訊。對實際量測點及理想曲面上之理想量測點執行誤差計算 並做鏡射補償,以進行曲面擬合並產生精加工路徑,其中執行誤差計算包括將所述實際量測點投影到所述理想曲面的法線方向上,再做鏡射補償以取得補償點。 The automated surface error compensation method of the present invention is suitable for automatically processing workpieces according to a machining program controlled machine tool. The automated surface error compensation method includes creating a plurality of imaginary planes on an ideal surface to obtain a plurality of curve features, the curve features being a set of curves where each imaginary plane intersects the ideal surface. According to the curve feature, the layout calculation is performed to obtain the position information of the ideal measurement point. Then, the workpiece is directly measured on the surface of the machine to obtain the actual position information of the actual measurement point. Perform error calculation on the actual measurement points and the ideal measurement points on the ideal surface And performing mirror compensation to perform surface fitting and generating a finishing path, wherein performing the error calculation comprises projecting the actual measuring point onto a normal direction of the ideal surface, and then performing mirror compensation to obtain a compensation point .

在本發明的一實施例中,上述執行誤差計算並做鏡射補償還包括根據理想量測點的法向量測取得實際量測點,將理論點與實際量測點相連以取得連線,並將理想量測點沿法線方向建立延伸線,求取連線與延伸線的夾角或理想量測點至實際量測點法線之最短距離,若夾角或最短距離不為0,表示實際量測點非法向量上之點,則將實際量測點投影到理想曲面上,由實際量測點的法線方向與理想曲面相交取得投影點,藉由法線方向進行鏡射補償以取得補償點。 In an embodiment of the invention, the performing the error calculation and performing the mirror compensation further comprises: obtaining the actual measurement point according to the normal vector measurement of the ideal measurement point, and connecting the theoretical point with the actual measurement point to obtain the connection. And the ideal measuring point is extended along the normal direction, and the angle between the connecting line and the extending line or the shortest distance from the ideal measuring point to the normal of the actual measuring point is obtained. If the angle or the shortest distance is not 0, it means actual. When measuring the point on the illegal vector, the actual measurement point is projected onto the ideal surface, and the normal direction of the actual measurement point intersects the ideal surface to obtain the projection point, and the mirror direction compensation is performed by the normal direction to obtain compensation. point.

在本發明的一實施例中,依據補償點進行曲面擬合,精加工路徑即為擬合的曲面。 In an embodiment of the invention, the surface fitting is performed according to the compensation point, and the finishing path is the fitted curved surface.

在本發明的一實施例中,執行佈點演算之後,對工件進行粗加工及中加工,並且於中加工之後,對工件執行線上表面量測。 In an embodiment of the invention, after performing the dot calculation, the workpiece is roughed and machined, and after the middle machining, the wire surface measurement is performed on the workpiece.

在本發明的一實施例中,執行線上表面量測之後,並匯入實際量測點位置於CAD模型上,進行誤差計算、鏡射補償及曲面擬合形成精加工路徑,自動化曲面誤差補償方法還包括在進行曲面擬合之後,將擬合的曲面取代理想曲面,以重新建模。 In an embodiment of the invention, after the on-line surface measurement is performed, the actual measurement point position is added to the CAD model, and the error calculation, the mirror compensation and the surface fitting are performed to form a finishing path, and the automatic surface error compensation method is performed. It also includes replacing the ideal surface with a fitted surface to remodel after the surface fit.

在本發明的一實施例中,執行重新建模之後,複製中加工的工法以維持相同加工條件並重新計算,以產生精加工路徑。 In an embodiment of the invention, after remodeling is performed, the processing in the copy is performed to maintain the same processing conditions and recalculated to produce a finishing path.

在本發明的一實施例中,依據曲線特徵執行佈點演算包括判斷曲線的曲率變化,以決定佈點密度。 In an embodiment of the invention, performing the dot calculus according to the curve feature includes determining a curvature change of the curve to determine the dot density.

在本發明的一實施例中,在執行佈點演算之後,加工程式依據所述佈點演算的結果產生量測路徑,以控制工具機對工件執行線上表面量測。 In an embodiment of the invention, after performing the layout calculation, the processing program generates a measurement path according to the result of the layout calculation to control the machine tool to perform on-line surface measurement on the workpiece.

在本發明的一實施例中,在工具機對工件執行線上表面量測之後,自動將量測報表從控制器端輸出至本機端,使加工程式自動讀取實際量測點的資訊,以進行誤差計算。 In an embodiment of the invention, after the machine tool performs on-line measurement on the workpiece, the measurement report is automatically output from the controller end to the local end, so that the processing program automatically reads the information of the actual measurement point, Perform error calculations.

本發明的電腦程式產品,具有至少一程式碼,當電子裝置載入並執行程式碼後,可完成上述自動化曲面誤差補償方法。 The computer program product of the present invention has at least one code, and the automatic surface error compensation method can be completed when the electronic device loads and executes the code.

基於上述,本發明的自動化曲面誤差補償方法可藉由單一電腦程式執行工件的加工、量測及補償等步驟,改善傳統技術中須倚靠不同軟體來執行上述步驟,而導致耗時在參數設定或座標轉換上產生定位誤差等問題。另外,藉由本發明的自動化曲面誤差補償方法能夠因應工業4.0的發展,有效地整合及管理系統。 Based on the above, the automatic surface error compensation method of the present invention can perform the steps of processing, measuring and compensating the workpiece by a single computer program, and the traditional technology must rely on different software to perform the above steps, thereby causing time-consuming parameter setting or coordinates. Problems such as positioning errors occur on the conversion. In addition, the automated surface error compensation method of the present invention can effectively integrate and manage the system in response to the development of Industry 4.0.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.

10‧‧‧工件 10‧‧‧Workpiece

10a‧‧‧理想曲面 10a‧‧‧Ideal surface

100、200、300‧‧‧方法 100, 200, 300‧‧‧ method

110、120、130、140、201~217、301~314‧‧‧步驟 110, 120, 130, 140, 201~217, 301~314‧‧‧ steps

400‧‧‧系統 400‧‧‧ system

402‧‧‧處理器 402‧‧‧Processor

403‧‧‧網路介面 403‧‧‧Internet interface

404‧‧‧儲存媒體 404‧‧‧Storage media

406、407‧‧‧程式碼 406, 407‧‧‧ code

408‧‧‧量測資訊 408‧‧‧Measurement information

A、B、C‧‧‧部分 Part A, B, C‧‧‧

CL‧‧‧連線 CL‧‧‧ connection

EL‧‧‧延伸線 EL‧‧‧ extension line

CP‧‧‧補償點 CP‧‧‧ Compensation point

HN‧‧‧理想測量點法向量 HN‧‧‧ ideal measuring point normal vector

HP‧‧‧理想量測點 HP‧‧‧ ideal measurement point

HP’‧‧‧投影點 HP’‧‧‧ projection point

HS‧‧‧理想曲面 HS‧‧‧ ideal surface

MN‧‧‧法線方向 MN‧‧‧ normal direction

MP‧‧‧實際量測點 MP‧‧‧ actual measurement point

MS‧‧‧加工後的工件表面 MS‧‧‧Processed workpiece surface

P‧‧‧假想平面 P‧‧‧imaginary plane

P0‧‧‧理想點 P 0 ‧‧‧ ideal point

SF‧‧‧曲線特徵 SF‧‧‧ curve features

圖1是依照本發明的一實施例的自動化曲面誤差補償方法的流程圖。 1 is a flow chart of an automated surface error compensation method in accordance with an embodiment of the present invention.

圖2是依照本發明的一實施例中在工件上建立的假想平面與曲線特徵的CAD模型示意圖。 2 is a schematic diagram of a CAD model of imaginary plane and curve features established on a workpiece in accordance with an embodiment of the present invention.

圖3是依照本發明的一實施例中在工件上理想量測點的佈點曲面CAD模型示意圖。 3 is a schematic diagram of a CAD model of a point surface curved surface ideally measured on a workpiece in accordance with an embodiment of the present invention.

圖4A是理想量測點與實際量測點法向概念的示意圖。 4A is a schematic diagram of the normal concept of an ideal measurement point and an actual measurement point.

圖4B是依照本發明的一實施例中理想量測點與實際量測點法向概念的示意圖。 4B is a schematic diagram of the normal concept of an ideal measurement point and an actual measurement point in accordance with an embodiment of the present invention.

圖5是依照本發明的另一實施例的自動化曲面誤差補償方法的流程圖。 5 is a flow chart of an automated surface error compensation method in accordance with another embodiment of the present invention.

圖6是依照本發明的另一實施例的自動化曲面誤差補償方法的流程圖。 6 is a flow chart of an automated surface error compensation method in accordance with another embodiment of the present invention.

圖7是依照本發明的一實施例的電腦程式產品的方塊圖。 7 is a block diagram of a computer program product in accordance with an embodiment of the present invention.

圖1是依照本發明的一實施例的自動化曲面誤差補償方法的流程圖,圖2是依照本發明的一實施例中在工件上建立的假想平面與曲線特徵的曲面CAD模型示意圖,圖3是依照本發明的一實施例中在工件上的理想量測點的佈點曲面CAD模型示意圖,圖4A是理想量測點與實際量測點法向概念的示意圖,圖4B是依照本發明的一實施例中理想量測點與實際量測點法向概念的示意圖。請參照圖1至圖4B,自動化曲面誤差補償方法100適於根據加工程式控制工具機(例如五軸加工機或其他適合的CNC工具機) 對工件10進行自動化量測及加工,加工方法可以包含工具機以及電連接所述工具機並用於控制所述工具機運作的電腦主機的加工系統執行。電腦主機還可儲存有關於此待加工的工件的位置資訊、加工工法、量測資訊等。自動化曲面誤差補償方法100至少包括步驟110至步驟140,這些步驟例如是以單一電腦程式實施,其實施態樣可以是內儲用於加工所述工件的電腦程式,且經由電腦主機執行該電腦程式之後,控制工具機來完成本發明實施例的功能,以下詳述自動化曲面誤差補償方法100的各個步驟。 1 is a flow chart of an automatic surface error compensation method according to an embodiment of the present invention, and FIG. 2 is a schematic diagram of a curved CAD model of an imaginary plane and a curved feature established on a workpiece according to an embodiment of the present invention, FIG. 3 is a schematic diagram of FIG. FIG. 4A is a schematic diagram of a normal point measurement point and a normal measurement point normal direction concept according to an embodiment of the present invention, and FIG. 4B is an implementation according to the present invention. FIG. A schematic diagram of the normal measurement point of an ideal measurement point and an actual measurement point in an example. Referring to FIG. 1 to FIG. 4B, the automatic curved surface error compensation method 100 is adapted to control a machine tool according to a machining program (for example, a five-axis machining machine or other suitable CNC machine tool). The workpiece 10 is automatically measured and processed, and the processing method may include a machine tool and a machining system that is electrically connected to the machine tool and used to control the operation of the machine tool. The host computer can also store position information, processing methods, measurement information, etc. about the workpiece to be processed. The automated surface error compensation method 100 includes at least steps 110 to 140. The steps are performed, for example, in a single computer program. The implementation may be a computer program for processing the workpiece, and executed by a computer host. Thereafter, the power tool is controlled to perform the functions of the embodiments of the present invention, and the various steps of the automated curved surface error compensation method 100 are detailed below.

在步驟110,於工件10的一個理想曲面10a上建立多個假想平面P,以取得多個曲線特徵SF,如圖2A所示。曲線特徵SF例如是這些假想平面P中的每一者與理想曲面10a相交的曲線的集合。在一些複雜工件的實施例中,理想曲面10a可以為複雜的自由曲面。舉例來說,理想曲面10a可以包含多個部分(如圖2所示的A、B、C)。部分A例如是二次曲線UV向變化恆定的自由曲面,部分B例如是由二次曲線(凹)與二次曲線(凸)掃成的自由曲面,部分C例如是由兩個二次曲線掃成,具有兩條導引曲線且UV向恆變的自由曲面。可以根據工具機對工件10進行切削的方向,來建立假想平面P以分割理想曲面10a。 At step 110, a plurality of imaginary planes P are created on an ideal curved surface 10a of the workpiece 10 to obtain a plurality of curved features SF, as shown in FIG. 2A. The curve feature SF is, for example, a set of curves in which each of these imaginary planes P intersects the ideal curved surface 10a. In some embodiments of complex workpieces, the ideal curved surface 10a can be a complex freeform surface. For example, the ideal curved surface 10a may include a plurality of portions (A, B, C as shown in FIG. 2). Part A is, for example, a free-form surface in which the UV curve of the quadratic curve changes constantly, and part B is, for example, a free-form surface swept by a quadratic curve (concave) and a quadratic curve (convex), and part C is, for example, scanned by two quadratic curves. A free-form surface with two guiding curves and a constant UV direction. The imaginary plane P can be established to divide the ideal curved surface 10a according to the direction in which the machine tool cuts the workpiece 10.

其次,在步驟120,依據曲線特徵SF執行佈點演算,以取得理想量測點的位置資訊。舉例來說,將假想平面P與理想曲面10a相交的曲線進行UV向(例如是與切削方向同向)的曲面佈點,這些曲面上佈點亦稱為曲線特徵SF。判別理想曲面10a的曲 線特徵SF的步驟包括將理想量測點進行曲線擬合並計算這些理想量測點與擬合曲線的切線斜率(或是曲線特徵SF的曲率)。當相鄰兩點之間的斜率變化過大或是斜率由正轉負時,則判定所述兩點之間的區塊為可能會造成加工不精確以及擬合效果不佳之主要區塊,並在這些主要區塊增加佈點數量。另一方面,在兩點之間的斜率變化微小或不變的區塊,其佈點可較鬆散,使量測時間不至於太冗長,藉此調整佈點數量。 Next, in step 120, the layout calculation is performed according to the curve feature SF to obtain the position information of the ideal measurement point. For example, a curve intersecting the imaginary plane P with the ideal curved surface 10a is subjected to a UV direction (for example, in the same direction as the cutting direction), and the points on these curved surfaces are also referred to as curve features SF. Discriminating the curvature of the ideal surface 10a The step of the line feature SF includes curve fitting the ideal measurement points and calculating the tangent slope of the ideal measurement points and the fitted curve (or the curvature of the curve feature SF). When the slope between two adjacent points changes too much or the slope changes from positive to negative, it is determined that the block between the two points is the main block that may cause inaccurate processing and poor fitting effect, and These major blocks increase the number of distribution points. On the other hand, in a block with a small or constant change in slope between two points, the distribution point can be loose, so that the measurement time is not too long, thereby adjusting the number of dots.

接著,在步驟130,在不卸除工件10的情況下,對工件10執行線上表面量測,以取得多個實際量測點的實際位置資訊,並將此實際量測點之位置資訊建立於CAD模型上,如圖3所示。由於不須拆卸工件10來執行量測,故可避免拆卸後再安裝工件10所產生的定位誤差問題。隨後,在步驟140,對實際量測點及對應於理想曲面的多個理想量測點執行誤差計算並做鏡射補償,以進行曲面擬合並產生精加工路徑,其中執行誤差計算並做鏡射補償可以包括將實際量測點投影到理想曲面的法線方向上,再做鏡射補償以取得補償點。依據這些補償點進行曲面擬合並產生精加工路徑。 Next, in step 130, the on-line surface measurement is performed on the workpiece 10 without removing the workpiece 10, so as to obtain actual position information of the plurality of actual measurement points, and the position information of the actual measurement point is established. The CAD model is shown in Figure 3. Since the measurement is performed without disassembling the workpiece 10, the problem of positioning error caused by mounting the workpiece 10 after disassembly can be avoided. Then, in step 140, error calculation is performed on the actual measurement points and the plurality of ideal measurement points corresponding to the ideal curved surface and mirror compensation is performed to perform surface fitting and generate a finishing path, wherein the error calculation is performed and mirrored The shot compensation can include projecting the actual measurement point onto the normal direction of the ideal surface, and then performing mirror compensation to obtain the compensation point. Surface fitting is performed based on these compensation points and a finishing path is generated.

一般而言,可以透過鏡射原理來計算精加工之刀具路徑點。鏡射原理通常是假設中加工後的曲面與理想中加工後曲面為近似同一平面,而量測方向會由法線方向逼近理想量測點位置,故一般是認定實際量測點與理想量測點為在同一法線上,實則不然。原因在於,量測時可能因為量測誤差、機台加工誤差及加工 後曲面的複雜度的影響,而導致擬合的曲面與理想曲面並非僅是單純偏移的關係,也就是,實際量測點並非是在理想量測點的法線方向上。具體來說,請參照圖4A,若加工後的工件表面MS為複雜的自由曲面,會造成在執行線上表面量測時,實際量測點MP並非為CAD模型理想曲面HS上的理想量測點HP的法線方向HN上與加工後的工件表面MS相交的補償點CP。 In general, the path of the finished tool path can be calculated by the principle of mirroring. The principle of mirroring is usually based on the assumption that the processed surface is approximately the same plane as the ideally machined surface, and the measurement direction will be closer to the ideal measurement point by the normal direction. Therefore, the actual measurement point and the ideal measurement are generally determined. The point is on the same normal line, but it is not. The reason is that measurement may be due to measurement error, machine processing error and processing. The complexity of the back surface affects the relationship between the fitted surface and the ideal surface, not just the simple offset, that is, the actual measurement point is not in the normal direction of the ideal measurement point. Specifically, referring to FIG. 4A, if the surface MS of the processed workpiece is a complex free-form surface, the actual measurement point MP is not an ideal measurement point on the ideal surface HS of the CAD model when performing on-line surface measurement. A compensation point CP at the normal direction HN of the HP that intersects the surface MS of the processed workpiece.

本發明提出的誤差計算方法是,將實際量測點投影到理想曲面的法線方向上,再進行鏡射補償以取得補償點。請參照圖4B的修正理想量測點與實際量測點連線為法向量之理想概念,先根據理想量測點法向量HN取得實際量測點MP,將此兩點(理論點P0與實際量測點MP)相連以取得兩點連線CL,並將理想量測點HP沿法線方向建立一延伸線EL,求取此兩線(連線CL與延伸線EL)之夾角亦或是理想量測點HP至實際量測點MP法線之最短距離,若不重合,則表示實際量測點MP非法向量HN上之點,故將實際量測點MP投影到CAD模型的理想曲面HS上,由實際量測點MP的法線方向MN與理想曲面HS相交取得投影點HP’,藉由法線方向MN進行鏡射補償取得確切補償點。藉此,對於複雜自由曲面的工件模型來說,由上述修正的鏡射補償方法所生成的精加工路徑可以減少量測造成的誤差,以提升工件尺寸的精準度。 The error calculation method proposed by the invention is that the actual measurement point is projected onto the normal direction of the ideal surface, and then the mirror compensation is performed to obtain the compensation point. Please refer to FIG. 4B for the ideal concept of the modified ideal measurement point and the actual measurement point as the normal vector. First, the actual measurement point MP is obtained according to the ideal measurement point normal vector HN, and the two points (theoretical point P 0 and The actual measurement point MP) is connected to obtain the two-point connection CL, and an ideal measurement point HP is established along the normal direction to form an extension line EL, and the angle between the two lines (the connection line CL and the extension line EL) is also obtained. It is the shortest distance from the ideal measurement point HP to the actual measurement point MP normal. If it does not coincide, it indicates the point on the actual measurement point MP illegal vector HN, so the actual measurement point MP is projected onto the ideal surface of the CAD model. On the HS, the normal direction MN of the actual measurement point MP intersects with the ideal curved surface HS to obtain the projection point HP', and the exact compensation point is obtained by mirror compensation by the normal direction MN. Therefore, for the workpiece model of the complex free-form surface, the finishing path generated by the above-mentioned modified mirror compensation method can reduce the error caused by the measurement, thereby improving the accuracy of the workpiece size.

上述步驟110至步驟140可由單一的加工程式中執行,藉此避免在傳統作法中,用不同的系統及程式分別執行對工件的 加工、量測和補償等步驟所造成參數設定轉換、定位誤差、軟體相容性等問題。此外,自動化曲面誤差補償方法100可對具有複雜自由曲面的工件進行加工,相較於傳統作法來說,更能提升尺寸的精準度。 The above steps 110 to 140 can be performed by a single processing program, thereby avoiding the separate execution of the workpiece by different systems and programs in the conventional method. Problems such as parameter setting conversion, positioning error, and software compatibility caused by processing, measurement, and compensation. In addition, the automated surface error compensation method 100 can process workpieces with complex free-form surfaces, which can improve the accuracy of the dimensions compared with the conventional method.

圖5是依照本發明的另一實施例的自動化曲面誤差補償方法的流程圖,承圖1的自動化曲面誤差補償方法概念流程圖,圖5的流程圖提供自動化曲面誤差補償方法更完整的技術架構。請參照圖5,自動化曲面誤差補償方法200至少包括步驟201至步驟217。 FIG. 5 is a flow chart of an automated surface error compensation method according to another embodiment of the present invention. FIG. 5 is a flow chart of the automatic curved surface error compensation method, and FIG. 5 is a flowchart showing a more complete technical framework of an automatic curved surface error compensation method. . Referring to FIG. 5, the automated surface error compensation method 200 includes at least steps 201 to 217.

在步驟201及步驟202,提供工件胚料至工具機,並利用加工程式自動生成粗、中加工工法。在步驟203,藉由加工程式自動針對自由曲面進行佈點演算。舉例來說,可以藉由圖1的實施例中,步驟110及步驟120所闡述的方法來進行佈點演算,根據切削方向建立假想平面來分割曲面,接著,將假想平面與曲面相交之曲線特徵進行假想佈點,並藉由判斷曲線的曲率變化,來決定佈點密度。在執行佈點演算之後,加工程式依據佈點演算的結果產生量測路徑,並透過量測後處理產生NC程式,直至此階段都可在同一軟體程式上完成。舉例來說,在步驟204,加工程式依據佈點演算的結果生成量測工法。隨後,在步驟205及步驟206中,加工程式控制工具機進行粗加工及中加工。在粗加工階段,可以使用刀徑較大的刀具來進行粗加工,以節省加工時間。在進行中加工階段及隨後的精加工階段時,必須使用相同的刀具。 In step 201 and step 202, the workpiece blank is supplied to the machine tool, and the rough and medium processing methods are automatically generated by the processing program. At step 203, the machining program automatically performs a spot calculation for the freeform surface. For example, the method described in step 110 and step 120 of FIG. 1 can be used to perform the layout calculation, the imaginary plane is established according to the cutting direction to divide the surface, and then the curve feature intersecting the imaginary plane and the curved surface is performed. Imagine the layout and determine the density of the dots by judging the curvature of the curve. After performing the layout calculation, the machining program generates a measurement path based on the result of the layout calculation, and generates an NC program through the post-measurement processing until the stage can be completed on the same software program. For example, in step 204, the machining program generates a measurement method based on the result of the layout calculation. Subsequently, in steps 205 and 206, the machining program controls the machine tool for roughing and machining. In the roughing stage, roughing can be performed using a tool with a larger tool diameter to save machining time. The same tool must be used during the in-process and subsequent finishing stages.

接著,例如在步驟207,在執行中加工之後,依據中加工的結果,加工程式控制工具機對經過中加工後的工件執行線上表面量測。在步驟208,輸出具有實際量測點位置資訊的報表至電腦主機的特定位址。在步驟209,使外掛程式自動讀取報表以將實際量測點數據匯入至CAD模型,藉此計算曲面加工後偏差值。舉例來說,在不卸除工件以避免重新定位誤差的情況下,可以藉由加工程式控制工具機對工件執行量測程式。在對工件執行線上量測完成之後,將自動儲存實際量測點位置資訊,再透過網路傳輸至本機端的特定位址,經由加工程式自動讀取實際量測點的位置資訊,並透過加工程式將實際量測點直接建立於CAD模型上。 Next, for example, in step 207, after the in-process machining, the machining program controls the machine tool to perform an in-line surface measurement on the workpiece that has been machined in accordance with the result of the machining. At step 208, the report with the actual measurement point location information is output to a specific address of the host computer. In step 209, the plugin automatically reads the report to import the actual measurement point data into the CAD model, thereby calculating the deviation value of the surface after machining. For example, the measurement program can be executed on the workpiece by the machining program control tool machine without removing the workpiece to avoid repositioning errors. After the online measurement of the workpiece is completed, the actual measurement point position information is automatically stored, and then transmitted to a specific address of the local end through the network, and the position information of the actual measurement point is automatically read through the processing program, and processed through the processing. The program builds the actual measurement points directly on the CAD model.

在工具機對工件執行線上表面量測之後,可以藉由加工程式進行誤差計算,例如在步驟210,進行實際量測點與理想量測點之法向誤差計算。於此階段可根據量測出來的點位置資訊來得知尺寸加工後的誤差(例如機台誤差、加工誤差等)。接著,在步驟211,藉由外掛程式進行鏡射補償。例如透過圖1的步驟140及圖4B的實施例中所闡述的修正鏡射補償方法來進行,於此便不再贅述。 After the machine tool performs on-line measurement on the workpiece, the error calculation can be performed by the machining program. For example, in step 210, the normal error calculation between the actual measurement point and the ideal measurement point is performed. At this stage, the error of the dimension processing (for example, machine error, machining error, etc.) can be known based on the measured position information of the point. Next, in step 211, mirror compensation is performed by the plugin. For example, the method of correcting the mirror compensation described in the step 140 of FIG. 1 and the embodiment of FIG. 4B is performed, and details are not described herein again.

接著,在步驟212,加工程式依據鏡射補償計算後產生的補償點進行曲面擬合。例如可以使用非均勻有理B樣條曲線(Non-Uniform Rational B-Splines;NURBS)演算法來做曲面擬合。在步驟213,在曲面擬合之後,加工程式將擬合的曲面取代CAD模型,以重新建模。於步驟214,在執行重新建模之後,複 製中加工的加工路徑並經過重新計算,以產生精加工工法。 Next, in step 212, the processing program performs surface fitting according to the compensation points generated after the mirror compensation calculation. For example, a non-uniform rational B-Splines (NURBS) algorithm can be used for surface fitting. At step 213, after the surface is fitted, the machining program replaces the CAD model with the fitted surface to remodel. At step 214, after performing the remodeling, The machining path of the machining process is recalculated to produce a finishing method.

一般來說,目前業界於此階段是採用其他程式(例如MATLAB)來做曲面擬合以產生一個新的擬合後模型,再將此模型匯入電腦輔助設計(Computer Aided Design;CAD)軟體或電腦輔助製造(Computer Aided Manufacturing;CAM)軟體上進行二次補償加工,導致費工耗時且使用不同的程式軟體對於作業及管理上皆會對使用者產生不便。本發明的實施例中,可以直接利用外掛程式而在CAD/CAM軟體上進行曲面擬合,並且在曲面擬合完成之後,可以直接將原有模型同步建模為補償曲面,以生成精加工工法。因此,可以在不更換刀具及不拆卸工件情況下,來進行精加工,而精加工的加工路徑即根據所擬合的補償曲面而定。也就是說,藉由本發明的自動化曲面誤差補償方法可以對既有軟體進行二次開發,以將工件的加工、量測和補償等步驟完全整合於單一軟體上來執行,藉此實現自動化生產的目的。 Generally speaking, at this stage, the industry uses other programs (such as MATLAB) to perform surface fitting to generate a new fitted model, and then import this model into Computer Aided Design (CAD) software or Computer Aided Manufacturing (CAM) software performs secondary compensation processing, resulting in labor-intensive and time-consuming use of different software programs, which can cause inconvenience to users in both operation and management. In the embodiment of the present invention, the surface fitting can be directly performed on the CAD/CAM software by using the plug-in program, and after the surface fitting is completed, the original model can be directly modeled as a compensation surface to generate a finishing method. . Therefore, it is possible to perform the finishing without changing the tool and without disassembling the workpiece, and the machining path of the finishing is determined according to the fitted compensation surface. That is to say, the automatic surface error compensation method of the present invention can perform secondary development on the existing software, and the steps of processing, measuring and compensating the workpiece are completely integrated on a single software body, thereby realizing the purpose of automatic production. .

在精加工完成之後,可以選擇性地對加工完成的成品進行三次元的量測,例如藉由三次元量測儀(Coordinate Measuring Machine;CMM)來進行量測,以判斷加工完成的成品是否在規格公差範圍內,如步驟216及步驟217。若判斷結果是落在規格公差內,則所述成品為合格的成品,反之,若判斷結果並未落在規格公差內,則所述成品為不良品。 After the finishing is completed, the finished product can be selectively measured by a three-dimensional measurement, for example, by a Coordinate Measuring Machine (CMM) to determine whether the finished product is in the finished product. Within the specification tolerances, as in steps 216 and 217. If the judgment result falls within the specification tolerance, the finished product is a qualified finished product, and if the judgment result does not fall within the specification tolerance, the finished product is a defective product.

圖6是依照本發明的另一實施例的自動化曲面誤差補償方法的流程圖。承圖1及圖5的流程圖,圖6的流程圖例如將本 發明的自動化曲面誤差補償方法應用於製造執行系統(Manufacturing Execution System;MES)上,藉此實現工業4.0的智慧製造需求。 6 is a flow chart of an automated surface error compensation method in accordance with another embodiment of the present invention. 1 and 5, the flowchart of FIG. 6 is for example The invention discloses an automated surface error compensation method applied to a Manufacturing Execution System (MES), thereby realizing the smart manufacturing requirements of Industry 4.0.

請參照圖6,應用於MES的自動化曲面誤差補償方法300可以包括步驟301至步驟314。具體來說,可以利用MES來執行任務,首先,在步驟301及步驟302,自動匯入CAD模型至CAD/CAM軟體中,並自動生成粗、中加工工法。其次,在步驟303及步驟304,可以藉由圖1中的步驟110及步驟120所述的方法,來自動判別曲線特徵,並藉由內部程式進行佈點演算,佈點演算的細節便不再贅述。接著,在進行佈點演算之後,在步驟305及步驟306,自動產生中加工後的量測工法,並自動將程式上傳。可以依據此量測工法進行實機量測。當粗、中加工完成後,機台可以自動換探針,以進行線上量測,如步驟307。 Referring to FIG. 6, the automated surface error compensation method 300 applied to the MES may include steps 301 to 314. Specifically, the MES can be used to perform the task. First, in steps 301 and 302, the CAD model is automatically imported into the CAD/CAM software, and the coarse and medium processing methods are automatically generated. Next, in steps 303 and 304, the curve features can be automatically determined by the methods described in steps 110 and 120 of FIG. 1, and the layout calculation is performed by an internal program, and the details of the layout calculation are not described again. Next, after performing the dot calculation, in steps 305 and 306, the measurement method in the middle processing is automatically generated, and the program is automatically uploaded. The actual measurement can be performed according to this measurement method. After the rough and medium processing is completed, the machine can automatically change the probe to perform on-line measurement, as in step 307.

隨後,在步驟308及步驟309,系統可以自動輸出量測報表,並自動讀取報表數據。例如可以透過RENISHAW公司的量測系統的副程式,將自動產生的量測報表儲存於控制器內,並將此報表自動輸出至軟體本機端,再透過加工程式來自動讀取對應的資料夾位置之報表數據。 Then, in steps 308 and 309, the system can automatically output the measurement report and automatically read the report data. For example, the auto-generated measurement report can be stored in the controller through the subroutine of RENISHAW's measurement system, and the report is automatically output to the software local end, and then the corresponding folder is automatically read through the processing program. Report data for the location.

接著,在步驟310,依據所讀取的報表數據,透過內部的加工程式將實際量測點位置資訊進行鏡射補償。在步驟311,依據鏡射補償所獲得的補償點進行曲面擬合。鏡射補償及曲面擬合的方法如同圖1實施例中的步驟140或是圖5的實施例中的步驟210 與步驟211,於此便不再贅述。隨後,在步驟312及步驟313,依據曲面擬合的結果,可自動重新建模,之後再自動複製中加工的工法並執行重新計算以獲得精加工的工法。例如藉由寫有同步建模方法的內部外掛程式,自動將擬合曲面取代原本的CAD模型,達到自動重新建模,並自動將中加工的工法重新計算,並且將餘料設定為零,形成精加工工法,其精加工路徑即為擬合之曲面。在步驟314,執行自動精加工補償,之後便完成任務。藉由本發明的方法可以於軟體端自動化,因此工件曲面誤差補償的整個過程都可以利用MES系統實現自動化的目的。 Next, in step 310, according to the read report data, the actual measurement point position information is mirror-compensated through an internal processing program. In step 311, the surface fitting is performed according to the compensation point obtained by the mirror compensation. The method of mirror compensation and surface fitting is the same as step 140 in the embodiment of FIG. 1 or step 210 in the embodiment of FIG. And step 211, which will not be repeated here. Then, in step 312 and step 313, according to the result of the surface fitting, the model can be automatically re-modeled, and then the processing method in the middle processing is automatically performed and the recalculation is performed to obtain the finishing method. For example, by using an internal plug-in program with a synchronous modeling method, the fitted surface automatically replaces the original CAD model, automatically re-modeling, and automatically recalculates the middle machining method, and sets the residual material to zero, forming The finishing method, the finishing path is the fitted surface. At step 314, automatic finishing compensation is performed and the task is completed. The method of the invention can be automated on the software end, so the entire process of workpiece surface error compensation can be automated by the MES system.

目前工業界還無法達成在CAD/CAM軟體自動化的整合,一般是透過手動方式建立模型與加工工法,且結合自動化控制器補償也僅能應用在二維補償上,難以對三維自由曲面自動化補償,必須透過使用各式軟體才能實現。然而,若執行CAD/CAM建模、量測佈點、曲面擬合等步驟都是使用不同的軟體來進行,在與工業界軟體自動化結合上會造成諸多問題,且在這些步驟中有任一個軟體無法與其他軟體結合時,則會導致自動化曲面誤差補償方法失效。本發明另提供一種電腦程式產品可解決上述問題。 At present, the industry can not achieve the integration of CAD/CAM software automation. Generally, the model and processing method are established by manual method, and the compensation of the automatic controller can only be applied to the two-dimensional compensation, and it is difficult to automatically compensate the three-dimensional free-form surface. It must be achieved through the use of various software. However, if the steps of performing CAD/CAM modeling, measuring layout, and surface fitting are all performed using different software, it will cause many problems in combination with industrial software automation, and any software in these steps. Failure to combine with other software can cause the automated surface error compensation method to fail. The invention further provides a computer program product which can solve the above problems.

圖7是依照本發明的一實施例的電腦程式產品的方塊圖。本發明的電腦程式產品具有至少一程式碼,當電子裝置載入並執行此程式碼之後,可執行上述的自動化曲面誤差補償方法。此程式碼可以是一外掛程式或其他適當的應用程式。例如利用Visual Studio C#搭配應用程式規劃介面(例如NXOpen API)來撰 寫程式碼,或者可以透過其他適合的程式規劃語言或其他軟體開發工具來實行,本發明並不以此為限。舉例來說,可以使用西門子的五軸加工機來對曲面模型進行加工,並利用西門子的NX CAD/CAM軟體配合Visual Studio C#,對NX CAD/CAM進行軟體二次開發,以執行例如圖1、圖5或是圖6的自動化曲面誤差補償方法。在其他實施例中,可以使用其他廠牌的加工機並應用適當的CAD/CAM軟體配合具有本發明的所述程式碼的電腦程式來執行自動化曲面誤差補償。 7 is a block diagram of a computer program product in accordance with an embodiment of the present invention. The computer program product of the present invention has at least one code, and after the electronic device loads and executes the code, the above automatic surface error compensation method can be performed. This code can be a plugin or other suitable application. For example, using Visual Studio C# with an application planning interface (such as the NXOpen API) The code may be written or may be implemented by other suitable programming language or other software development tools, and the invention is not limited thereto. For example, a five-axis machine from Siemens can be used to machine the surface model, and Siemens NX CAD/CAM software is used with Visual Studio C# to perform software secondary development on NX CAD/CAM to perform, for example, Figure 1. Figure 5 or Figure 6 is an automated surface error compensation method. In other embodiments, automated surface error compensation may be performed using other branded processing machines and applying appropriate CAD/CAM software in conjunction with a computer program having the described code of the present invention.

具體來說,請參照圖7,電子系統400可以是通用計算裝置(general purpose computing device),其可包括處理器402以及儲存媒體404。舉例來說,處理器402可以是硬體處理器,例如中央處理器(central processing unit;CPU)、特殊應用積體電路(application specific integrated circuit;ASIC)或是其他適合的處理單元。處理器402可藉由匯流排來電性耦接至儲存媒體404或其他例如輸入/輸出(I/O)介面(如鍵盤、滑鼠或觸控螢幕等)或網路介面403等。網路介面403可以連接至網路,使得處理器402與儲存媒體404可經由網路連接至外部元件,以使系統400可與其他系統的網路溝通。儲存媒體404可以是電腦可讀取儲存媒體,例如隨機存取記憶體(random access memory;RAM)、硬碟、光碟或其他適合的儲存媒體。儲存媒體404可用來被編碼(儲存)電腦程式碼406、407。也就是說,程式碼是可執行的一組或多組機器指令,因此在圖7中,程式碼407以虛線表示。此指令例如 為軟體、應用程式、外掛程式或其他,且此指令可使用任何適合的程式規劃語言、應用程式規劃介面(API)或其他軟體開發工具來實行。舉例來說,程式碼406、407可藉由處理器402來執行上述的操作,或使處理器402產生外部機台可讀取的指令,以執行上述的方法中的操作。圖1、圖5或圖6的方法可以由單一系統400中的處理器402來執行。程式碼406、407訊號的輸入及輸出皆由單一處理器402來處理,也就是,藉由配置處理器402來執行編碼於儲存媒體404中的程式碼406、407,以使系統400可用來執行本發明自動化曲面誤差補償方法的上述操作,而不須另外呼叫其他程式碼來執行上述的方法中的操作,因此可以在單一程式運作下完成上述的方法中的步驟。系統400還可以接收及/或傳送量測資訊408,例如將量測的點位資訊傳輸至處理器402,也可以將量測資訊408儲存於儲存媒體404中,並利用所述程式碼來讀取量測資訊408。藉由本發明的電腦程式產品,當電子裝置載入並執行程式碼後,可在單一程式(如NX CAD/CAM)上完成例如自動佈點而後量測、進行鏡射補償及曲面擬合,接著,進行CAD模型自動重新建模而形成補償加工路徑等步驟,而不需透過使用各式軟體來分別執行這些建模、量測佈點、曲面擬合等步驟,藉此有效達成軟體端的自動化目標。 Specifically, referring to FIG. 7 , the electronic system 400 can be a general purpose computing device, which can include a processor 402 and a storage medium 404 . For example, processor 402 can be a hardware processor, such as a central processing unit (CPU), an application specific integrated circuit (ASIC), or other suitable processing unit. The processor 402 can be coupled to the storage medium 404 or other input/output (I/O) interfaces (such as a keyboard, mouse or touch screen, etc.) or the network interface 403 by means of a bus. The network interface 403 can be connected to the network such that the processor 402 and the storage medium 404 can be connected to external components via a network to enable the system 400 to communicate with the networks of other systems. The storage medium 404 can be a computer readable storage medium such as a random access memory (RAM), a hard disk, a compact disc, or other suitable storage medium. Storage medium 404 can be used to encode (store) computer code 406, 407. That is, the code is one or more sets of machine instructions that are executable, so in Figure 7, the code 407 is indicated by a dashed line. This instruction is for example Software, applications, plugins, or other, and this directive can be implemented using any suitable programming language, application programming interface (API), or other software development tools. For example, the code 406, 407 can perform the operations described above by the processor 402, or cause the processor 402 to generate an external machine readable command to perform the operations in the methods described above. The method of FIG. 1, FIG. 5 or FIG. 6 may be performed by processor 402 in a single system 400. The input and output of the code 406, 407 signals are processed by a single processor 402, that is, by configuring the processor 402 to execute the code 406, 407 encoded in the storage medium 404 to enable the system 400 to execute The above operation of the automatic curved surface error compensation method of the present invention does not require additional calling of other code to perform the operations in the above method, so that the steps in the above method can be completed in a single program operation. The system 400 can also receive and/or transmit the measurement information 408, for example, transmit the measured point information to the processor 402, or store the measurement information 408 in the storage medium 404 and use the code to read Take measurement information 408. With the computer program product of the present invention, after the electronic device loads and executes the code, for example, automatic placement and subsequent measurement, mirror compensation and surface fitting can be performed on a single program (such as NX CAD/CAM), and then, The CAD model is automatically re-modeled to form a compensation processing path, etc., without using various software to perform these modeling, measuring layout, surface fitting and other steps, thereby effectively achieving the automation end of the software end.

綜上所述,本發明的自動化曲面誤差補償方法可藉由單一系統執行工件的加工,並根據加工結果進行量測及修正誤差做補償等步驟,不僅能夠提升工件尺寸的準確度,還改善了傳統技 術中須倚靠不同軟體來執行上述步驟,而導致耗時在參數設定或座標轉換上產生定位誤差等問題,進而有效達成軟體端的自動化目標。再者,本發明提出修正理想量測點與實際量測點連線為法向量之理想概念,藉由先將實際量測點投影到理想曲面的法線方向上,再做鏡射補償所取得的補償點較一般的鏡射原理更適於應用在複雜的自由曲面上。另外,藉由本發明的自動化曲面誤差補償方法能夠因應工業4.0的發展,有效地整合及管理系統。 In summary, the automatic curved surface error compensation method of the present invention can perform the processing of the workpiece by a single system, and performs the steps of measuring and correcting the error according to the processing result, thereby not only improving the accuracy of the workpiece size, but also improving the accuracy. Traditional technique During the operation, it is necessary to rely on different software to perform the above steps, which leads to problems such as time-consuming positioning errors in parameter setting or coordinate conversion, and thus effectively achieve the automation goal of the software end. Furthermore, the present invention proposes an ideal concept of correcting the connection between the ideal measurement point and the actual measurement point as a normal vector, by first projecting the actual measurement point onto the normal direction of the ideal surface, and then obtaining the mirror compensation. The compensation point is more suitable for complex free-form surfaces than the general mirror principle. In addition, the automated surface error compensation method of the present invention can effectively integrate and manage the system in response to the development of Industry 4.0.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

Claims (10)

一種自動化曲面誤差補償方法,適於根據加工程式控制工具機對工件進行自動化加工,所述方法包括:於理想曲面上建立多個假想平面,以取得多個曲線特徵,其中所述理想曲面為自由曲面,所述曲線特徵為所述假想平面中的每一者與所述理想曲面相交的曲線的集合;依據所述曲線特徵執行佈點演算,以取得理想量測點的位置資訊;對所述工件執行線上表面量測,以取得多個實際量測點的實際位置資訊;以及對所述實際量測點及對應於所述理想曲面的多個所述理想量測點執行誤差計算並做鏡射補償,以進行曲面擬合並產生精加工路徑,其中執行所述誤差計算並做鏡射補償包括將所述實際量測點投影到所述理想曲面的法線方向上,再做所述鏡射補償以取得補償點。 An automatic surface error compensation method, which is suitable for automatically processing a workpiece according to a machining program control tool machine, the method comprising: establishing a plurality of imaginary planes on an ideal surface to obtain a plurality of curve features, wherein the ideal surface is free a curved surface, wherein the curved feature is a set of curves intersecting each of the imaginary planes with the ideal curved surface; performing a point calculus according to the curved feature to obtain position information of an ideal measuring point; Performing an on-line surface measurement to obtain actual position information of a plurality of actual measurement points; and performing error calculation and mirroring on the actual measurement points and the plurality of the ideal measurement points corresponding to the ideal curved surface Compensating for surface fitting and generating a finishing path, wherein performing the error calculation and performing mirror compensation comprises projecting the actual measurement point onto a normal direction of the ideal surface, and then performing the mirroring Compensation to obtain a compensation point. 如申請專利範圍第1項所述的自動化曲面誤差補償方法,其中執行所述誤差計算並做鏡射補償還包括:根據所述理想量測點的法向量測取得所述實際量測點,將理論點與所述實際量測點相連以取得連線,並將所述理想量測點沿法線方向建立延伸線,求取所述連線與所述延伸線的夾角或所述理想量測點至所述實際量測點法線之最短距離,若所述夾角或所述最短距離不為0,表示所述實際量測點非所述法向量上之點,則 將所述實際量測點投影到所述理想曲面上,由所述實際量測點的法線方向與所述理想曲面相交取得投影點,藉由所述實際量測點的所述法線方向進行鏡射補償以取得所述補償點。 The automatic surface error compensation method of claim 1, wherein performing the error calculation and performing mirror compensation further comprises: obtaining the actual measurement point according to a normal vector measurement of the ideal measurement point, Connecting a theoretical point to the actual measurement point to obtain a connection, and establishing an extension line along the normal direction of the ideal measurement point, and determining an angle between the connection line and the extension line or the ideal amount Measuring the shortest distance from the point to the normal of the actual measurement point. If the angle or the shortest distance is not 0, indicating that the actual measurement point is not the point on the normal vector, then Projecting the actual measurement point onto the ideal curved surface, and intersecting the ideal surface by the normal direction of the actual measurement point to obtain a projection point, wherein the normal direction of the actual measurement point is Mirror compensation is performed to obtain the compensation point. 如申請專利範圍第1項所述的自動化曲面誤差補償方法,其中依據所述補償點進行所述曲面擬合,所述精加工路徑為所述擬合的曲面。 The automatic surface error compensation method according to claim 1, wherein the surface fitting is performed according to the compensation point, and the finishing path is the fitted curved surface. 如申請專利範圍第1項所述的自動化曲面誤差補償方法,其中在執行所述佈點演算之後,對所述工件執行粗加工及中加工,在執行所述中加工之後,對所述工件執行所述線上表面量測。 The automatic curved surface error compensation method according to claim 1, wherein after performing the layout calculation, performing roughing and medium machining on the workpiece, and executing the middle machining, executing the workpiece The on-line surface measurement. 如申請專利範圍第4項所述的自動化曲面誤差補償方法,其中在執行所述線上表面量測之後,產生所述工件的模型,所述方法還包括:在進行所述曲面擬合之後,將所述擬合的曲面取代所述理想曲面,以重新建模。 The automated surface error compensation method of claim 4, wherein after performing the on-line surface measurement, generating a model of the workpiece, the method further comprising: after performing the surface fitting, The fitted surface replaces the ideal surface for remodeling. 如申請專利範圍第5項所述的自動化曲面誤差補償方法,其中在執行所述重新建模之後,複製所述中加工的加工路徑並重新計算,以產生所述精加工路徑。 The automated surface error compensation method of claim 5, wherein after performing the remodeling, copying the machining path of the middle machining and recalculating to generate the finishing path. 如申請專利範圍第1項所述的自動化曲面誤差補償方法,其中依據所述曲線特徵執行所述佈點演算包括:判斷所述曲線的曲率變化,以決定佈點密度。 The automated surface error compensation method of claim 1, wherein performing the layout calculation according to the curve feature comprises: determining a curvature change of the curve to determine a distribution density. 如申請專利範圍第1項所述的自動化曲面誤差補償方法,其中在執行所述佈點演算之後,所述加工程式依據所述佈點演算的結果產生量測路徑,以控制所述工具機對所述工件執行所述線上表面量測。 The automatic surface error compensation method of claim 1, wherein after performing the layout calculation, the processing program generates a measurement path according to the result of the layout calculation to control the machine tool pair The workpiece performs the on-line surface measurement. 如申請專利範圍第1項所述的自動化曲面誤差補償方法,其中在所述工具機對所述工件執行所述線上表面量測之後,所述加工程式自動讀取所述實際量測點的所述位置資訊,以進行所述誤差計算。 The automatic curved surface error compensation method according to claim 1, wherein the processing program automatically reads the actual measurement point after the machine tool performs the online surface measurement on the workpiece. The position information is described to perform the error calculation. 一種電腦程式產品,具有至少一程式碼,當電子裝置載入並執行所述程式碼後,可完成申請專利範圍第1項所述之自動化曲面誤差補償方法。 A computer program product having at least one code, and when the electronic device loads and executes the code, the automatic surface error compensation method described in claim 1 can be completed.
TW107116200A 2018-05-11 2018-05-11 Automatic surface error compensation method and computer program product therefor TWI667559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107116200A TWI667559B (en) 2018-05-11 2018-05-11 Automatic surface error compensation method and computer program product therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107116200A TWI667559B (en) 2018-05-11 2018-05-11 Automatic surface error compensation method and computer program product therefor

Publications (2)

Publication Number Publication Date
TWI667559B true TWI667559B (en) 2019-08-01
TW201947334A TW201947334A (en) 2019-12-16

Family

ID=68316404

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107116200A TWI667559B (en) 2018-05-11 2018-05-11 Automatic surface error compensation method and computer program product therefor

Country Status (1)

Country Link
TW (1) TWI667559B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI720640B (en) * 2019-10-04 2021-03-01 國立臺灣科技大學 A method and a device for displaying origin of workpiece coordinate system and tool path on a workpiece by augmented reality

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200602919A (en) * 2004-02-27 2006-01-16 Thk Co Ltd Method for designing industrial goods by using Clothoid curve, industrial good desingde by this method, a numerical control method using clothoid curve, a numerical control machine using clothoid curve, and a recording medium
US20070085850A1 (en) * 2005-03-23 2007-04-19 Hurco Companies, Inc. Method of curvature controlled data smoothing
TW201425881A (en) * 2012-12-24 2014-07-01 Ind Tech Res Inst Method for detecting tilt angle of object surface, method for compensating thereof and system therefore
CN106239368A (en) * 2016-07-28 2016-12-21 上海交通大学 A kind of complex contour curve Grinding Error in situ detection apparatus and method
CN106853598A (en) * 2015-12-08 2017-06-16 华南理工大学 A kind of cylinder emery wheel curve surface grinding method of virtual ball knife radius
CN107918357A (en) * 2017-12-21 2018-04-17 科德数控股份有限公司 A kind of numerical control machining center Spindle thermal error dynamic compensation method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200602919A (en) * 2004-02-27 2006-01-16 Thk Co Ltd Method for designing industrial goods by using Clothoid curve, industrial good desingde by this method, a numerical control method using clothoid curve, a numerical control machine using clothoid curve, and a recording medium
US20070085850A1 (en) * 2005-03-23 2007-04-19 Hurco Companies, Inc. Method of curvature controlled data smoothing
TW201425881A (en) * 2012-12-24 2014-07-01 Ind Tech Res Inst Method for detecting tilt angle of object surface, method for compensating thereof and system therefore
CN106853598A (en) * 2015-12-08 2017-06-16 华南理工大学 A kind of cylinder emery wheel curve surface grinding method of virtual ball knife radius
CN106239368A (en) * 2016-07-28 2016-12-21 上海交通大学 A kind of complex contour curve Grinding Error in situ detection apparatus and method
CN107918357A (en) * 2017-12-21 2018-04-17 科德数控股份有限公司 A kind of numerical control machining center Spindle thermal error dynamic compensation method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI720640B (en) * 2019-10-04 2021-03-01 國立臺灣科技大學 A method and a device for displaying origin of workpiece coordinate system and tool path on a workpiece by augmented reality

Also Published As

Publication number Publication date
TW201947334A (en) 2019-12-16

Similar Documents

Publication Publication Date Title
Chiou Accurate tool position for five-axis ruled surface machining by swept envelope approach
TWI469849B (en) Manufacturing method for cnc machine tools
Werner Method for enhanced accuracy in machining curvilinear profiles on wire-cut electrical discharge machines
US20100023157A1 (en) Methods and systems for fabricating a component
Huang et al. Tool orientation optimization for reduction of vibration and deformation in ball-end milling of thin-walled impeller blades
JP4233147B2 (en) How to determine an applicable feed rate for a machine tool
Hou et al. Geometric modelling of thin-walled blade based on compensation method of machining error and design intent
JP2000112511A (en) Nc processing method for component during process
JP2014097543A (en) Interface system for machine tool
US20200150616A1 (en) Method of manufacture using autonomous adaptive machining
Young et al. An integrated machining approach for a centrifugal impeller
TWI667559B (en) Automatic surface error compensation method and computer program product therefor
CN106054814A (en) Image grayscale-based computer aided machining method
Zhao et al. Measured data-driven shape-adaptive machining via spatial deformation of tool cutter positions
CN114115112B (en) Numerical control machining method and device
US20170343982A1 (en) Method for machining a workpiece by means of a chip-removing tool on a numerically-controlled machine tool
Chu et al. Spline-constrained tool-path planning in five-axis flank machining of ruled surfaces
WO2021221916A1 (en) Morphic manufacturing
RU2607867C2 (en) Adaptive treatment of cast blades
Sulitka et al. Integrated force interaction simulation model for milling strategy optimization of thin-walled blisk blade machining
Prabha et al. Machining of steam turbine blade on 5-axis CNC machine
WO2012108093A1 (en) Machining path creation method and machining method
JP2007168424A (en) Mold correction system, method, and program
TW201913251A (en) Work piece processing method and processing system thereof
JP2007058748A (en) Interpolation path generation method in nc processing of curved surface