TWI912161B - Simulation method for multi-axis milling - Google Patents
Simulation method for multi-axis millingInfo
- Publication number
- TWI912161B TWI912161B TW114108907A TW114108907A TWI912161B TW I912161 B TWI912161 B TW I912161B TW 114108907 A TW114108907 A TW 114108907A TW 114108907 A TW114108907 A TW 114108907A TW I912161 B TWI912161 B TW I912161B
- Authority
- TW
- Taiwan
- Prior art keywords
- model
- tool
- workpiece
- simulation method
- contact area
- Prior art date
Links
Abstract
本發明有關一種多軸銑削加工之模擬方法,首先使用一三維射線模型建立一工件模型,藉由三維射線模型可以加快運算速度,接著使用一符號距離函數建立一刀具模型,藉由符號距離函數可以快速地模擬出工件模型的輪廓,最後使用一光跡步進演算法取得一刀具-工件接觸區域,並根據前述刀具-工件接觸區域計算刀具模型之一切削路徑是否會造成刀具模型與工件模型發生不當碰撞。藉此,本發明之模擬方法可以有效提升模擬效率,並能快速計算切削路徑和瞬時切削力,以優化實際加工過程的刀具路徑和進給速度。This invention relates to a simulation method for multi-axis milling. First, a workpiece model is established using a three-dimensional ray model, which accelerates calculations. Next, a tool model is established using a symbolic distance function, which quickly simulates the outline of the workpiece model. Finally, a path stepping algorithm is used to obtain a tool-workpiece contact area, and based on this contact area, it is calculated whether a cutting path of the tool model will cause improper collisions between the tool and workpiece models. Therefore, this simulation method effectively improves simulation efficiency and can quickly calculate the cutting path and instantaneous cutting force to optimize the tool path and feed rate in the actual machining process.
Description
本發明與多軸加工技術有關,特別是指一種多軸銑削加工之模擬方法。This invention relates to multi-axis machining technology, and in particular to a simulation method for multi-axis milling.
CNC銑削加工是目前業界中十分常見的產品製造方法,在進行實際加工之前,操作者大多會先使用模擬軟體(例如B-rep Model或Voxel Model)模擬加工模擬,以確保製作流程的正確性。以邊界表示法模型(Boundary-Representation Model,簡稱B-rep Model)來說,當要計算刀具模型和工件模型的接觸區域時,因為過於複雜的相交曲面而需要極大的運算效能,導致效率低落。至於體素模型(Voxel Model)是利用多個立方體塊組合成刀具模型和工件模型的輪廓,由於立方體塊的數量龐大,導致記憶體在運算過程中所需要的使用量也會相當多,這個問題也會造成運算效能低落。CNC milling is a very common product manufacturing method in the industry. Before actual machining, operators usually use simulation software (such as B-rep Model or Voxel Model) to simulate the machining process to ensure the accuracy of the manufacturing process. Taking the Boundary-Representation Model (B-rep Model) as an example, when calculating the contact area between the tool model and the workpiece model, the complex intersecting surfaces require extremely high computational power, leading to low efficiency. As for the Voxel Model, which uses multiple cubic blocks to assemble the outlines of the tool and workpiece models, the large number of cubic blocks results in a significant amount of memory usage during calculations, also causing low computational efficiency.
由上述可知,在模擬實際加工的過程中,由於需要不斷計算並更新工件模型的輪廓,若選擇前述任一模擬軟體,勢必會極大影響模擬結果與模擬效率。而且,若想要針對加工過程作進一步分析(例如計算瞬時切削力),通常也會面臨硬體設備計算能力不足的問題,除了改善硬體設備之外,如何找出更適合的工件模型及刀具模型並且搭配適合的演算法正是目前面臨的難題。As can be seen from the above, in the process of simulating actual machining, since the contour of the workpiece model needs to be continuously calculated and updated, choosing any of the aforementioned simulation software will inevitably have a significant impact on the simulation results and efficiency. Moreover, if further analysis of the machining process is desired (such as calculating instantaneous cutting forces), the problem of insufficient hardware computing power is usually encountered. In addition to improving the hardware, finding a more suitable workpiece model and tool model, along with a suitable algorithm, is currently a challenge.
本發明之主要目的在於提供一種多軸銑削加工之模擬方法,其能提升模擬效率,並能快速計算切削路徑和瞬時切削力,以優化實際加工過程的刀具路徑和進給速度。The main objective of this invention is to provide a simulation method for multi-axis milling, which can improve simulation efficiency and quickly calculate cutting path and instantaneous cutting force to optimize tool path and feed rate in actual machining process.
為了達成上述主要目的,本發明所提供的多軸銑削加工之模擬方法包含下列步驟:(a) 使用一三維射線模型建立一工件模型;(b) 使用一符號距離函數建立一刀具模型;以及(c) 使用一光跡步進演算法取得一刀具-工件接觸區域,並根據該刀具-工件接觸區域計算該刀具模型之一切削路徑是否會造成該刀具模型與該工件模型發生不當碰撞。To achieve the above-mentioned main objectives, the multi-axis milling simulation method provided by the present invention includes the following steps: (a) establishing a workpiece model using a three-dimensional ray model; (b) establishing a tool model using a symbolic distance function; and (c) obtaining a tool-workpiece contact area using a ray stepping algorithm, and calculating whether a cutting path of the tool model will cause improper collision between the tool model and the workpiece model based on the tool-workpiece contact area.
由上述可知,本發明之模擬方法使用該三維射線模型建立該工件模型,相較於傳統B-rep Model可以加快運算速度,另外相較於Voxel Model可以減少記憶體的使用量。其次,本發明之模擬方法使用該符號距離函數結合該光跡步進演算法可以用很快的速度尋找該刀具-工件接觸區域並更新該工件模型的輪廓,在更新該工件模型的輪廓的同時即能獲得該刀具-工件接觸區域的數據資料,前述數據資料即為用來計算該切削路徑的重要條件,若預估可能會發生不當碰撞,則需要調整該切削路徑,以確保雙方不會發生互相碰撞的問題,進而能夠達到優化實際加工過程的效果。As described above, the simulation method of this invention uses the three-dimensional ray model to establish the workpiece model, which can speed up the calculation compared to the traditional B-rep Model, and reduce the amount of memory used compared to the Voxel Model. Secondly, the simulation method of this invention uses the symbolic distance function combined with the light path stepping algorithm to quickly find the tool-workpiece contact area and update the contour of the workpiece model. While updating the contour of the workpiece model, the data of the tool-workpiece contact area can be obtained. The aforementioned data is an important condition for calculating the cutting path. If an improper collision is anticipated, the cutting path needs to be adjusted to ensure that the two sides do not collide with each other, thereby achieving the effect of optimizing the actual machining process.
較佳地,除了獲得該切削路徑以外,在步驟(c)中還可以根據該刀具-工件接觸區域計算一瞬時切削力,如此可以模擬該刀具模型在接近該瞬時切削力的臨界值的狀況下對該工件模型進行加工,以優化實際加工的進給效率。Preferably, in addition to obtaining the cutting path, in step (c), an instantaneous cutting force can also be calculated based on the tool-workpiece contact area. This allows the tool model to be machined on the workpiece model when it is close to the critical value of the instantaneous cutting force, thereby optimizing the feed efficiency of the actual machining.
較佳地,在步驟(c)中使用該光跡步進演算法配合一圖形處理器進行平行運算以取得該刀具-工件接觸區域的數據資料,如此可進一步提升運算效率。Preferably, in step (c), the light trail stepping algorithm is used in conjunction with a graphics processor to perform parallel calculations to obtain data on the tool-workpiece contact area, which can further improve the calculation efficiency.
有關本發明所提供對於多軸銑削加工之模擬方法的詳細構造、特點、組裝或使用方式,將於後續的實施方式詳細說明中予以描述。然而,在本發明領域中具有通常知識者應能瞭解,該等詳細說明以及實施本發明所列舉的特定實施例,僅係用於說明本發明,並非用以限制本發明之專利申請範圍。The detailed structure, features, assembly, or usage of the simulation method for multi-axis milling provided by this invention will be described in the subsequent detailed description of the embodiments. However, those skilled in the art should understand that such detailed descriptions and the specific embodiments listed in this invention are for illustrative purposes only and are not intended to limit the scope of the patent application of this invention.
申請人首先在此說明,於整篇說明書中,包括以下介紹的實施例以及申請專利範圍的請求項中,有關方向性的名詞皆以圖式中的方向為基準。其次,在以下將要介紹之實施例以及圖式中,相同之元件標號,代表相同或近似之元件或其結構特徵。The applicant hereby clarifies that throughout this specification, including the embodiments described below and the claims within the scope of this patent application, all directional terms are based on the directions shown in the drawings. Secondly, in the embodiments and drawings described below, identical component designations represent identical or similar components or their structural features.
本發明之模擬方法主要是在實際加工前模擬刀具對工件進行多軸銑銷加工的過程,以確保加工流程的精度及正確性,所謂多軸可以是雙軸、三軸、四軸或五軸,在此不加以限定。請參閱圖1,本發明之模擬方法包含下列步驟:The simulation method of this invention mainly simulates the process of multi-axis milling of a workpiece by a cutting tool before actual machining to ensure the accuracy and correctness of the machining process. The "multi-axis" can be dual-axis, three-axis, four-axis, or five-axis, and is not limited here. Referring to Figure 1, the simulation method of this invention includes the following steps:
(a) 如圖1所示之步驟S1,使用一三維射線模型(Tri-Dexel Model)建立一工件模型10。(a) As shown in Figure 1, step S1, a workpiece model 10 is created using a three-dimensional ray model (Tri-Dexel Model).
在此步驟中所使用的三維射線模型(Tri-Dexel Model)是利用三個不同方向的射線平面發出射線,藉此建立工件模型10的輪廓,在本實施例中,如圖2所示,工件模型10以牙齒模型為例,但不以其為限,在其他實施例中,亦可於不同產業類別如:製造業(航太、汽車、電子產品、能源設備、工具、模具或機床)、醫療產業(牙科、骨科、整形外科、醫療設備、手術規劃或導板)、學術界(機械工程、製造工程、工業設計、航太工程或材料工程)…等產業應用。三維射線模型(Tri-Dexel Model)的優點在於非常適用平行演算法,相較於B-rep Model可以大幅縮短加工模擬所需要的時間,而且,三維射線模型(Tri-Dexel Model)所消耗的記憶體相較於Voxel Model是非常小的,每一條射線的端點都能攜帶各個瞬間所產生的物理現象數值(例如切削區域),也因此擁有相當好的擴展性。The three-dimensional ray model used in this step emits rays from three ray planes in different directions to establish the outline of the workpiece model 10. In this embodiment, as shown in Figure 2, the workpiece model 10 is a tooth model, but it is not limited to this. In other embodiments, it can also be applied to different industry categories such as: manufacturing (aerospace, automotive, electronics, energy equipment, tools, molds or machine tools), medical industry (dental, orthopedics, plastic surgery, medical equipment, surgical planning or guides), academia (mechanical engineering, manufacturing engineering, industrial design, aerospace engineering or materials engineering)... etc. The advantages of the Tri-Dexel Model are that it is very suitable for parallel algorithms, which can significantly shorten the time required for machining simulation compared to the B-rep Model. Moreover, the Tri-Dexel Model consumes very little memory compared to the Voxel Model. Each ray's endpoint can carry the physical phenomenon values generated at each instant (such as the cutting area), thus possessing excellent scalability.
(b) 如圖1所示之步驟S2,使用一符號距離函數(Signed Distance Function,簡稱SDF)建立一刀具模型20。(b) As shown in step S2 of Figure 1, a tool model 20 is created using a Signed Distance Function (SDF).
在此步驟中所使用的符號距離(Signed Distance Function,簡稱SDF)是直接定義數學模型,以隱函數的形式計算給定座標點至目標物件的距離,以正負號分別表示位於物件的內、外部,藉此建立刀具模型20的輪廓並能快速了解與工件模型10之間的位置關係(如圖2所示)。The Signed Distance Function (SDF) used in this step is a directly defined mathematical model that calculates the distance from a given coordinate point to the target object in the form of an implicit function. Positive and negative signs indicate whether the point is inside or outside the object, thereby establishing the outline of the tool model 20 and quickly understanding its positional relationship with the workpiece model 10 (as shown in Figure 2).
(c) 如圖1所示之步驟S3,使用一光跡步進(Ray Marching)演算法取得一刀具-工件接觸區域30(Cutter-Workpiece Engagement,簡稱CWE),並根據刀具-工件接觸區域30計算一瞬時切削力(Instantaneous Cutting Force)及計算刀具模型20之一切削路徑是否會造成刀具模型20與工件模型10發生不當碰撞。(c) As shown in step S3 of Figure 1, a Cutter-Workpiece Engagement (CWE) region 30 is obtained using a Ray Marching algorithm, and an instantaneous cutting force is calculated based on the CWE region 30, and it is calculated whether the cutting path of the tool model 20 will cause improper collision between the tool model 20 and the workpiece model 10.
在此步驟中所使用的光跡步進(Ray Marching)演算法是在已知光線起點與方向後,便可以開始搜尋最接近物體的距離,接著從光線原點向光線方向移動此一距離,接著更新起點位置,然後不斷重複上述動作,直到接觸到物體或是確定光線發散。由於使用三維射線模型(Tri-Dexel Model)所建立的工件模型10是由多條線段構成,可以視為許許多多的光線。因此,光跡步進(Ray Marching)演算法以原本工件模型10的輪廓快速搜尋刀具模型20的邊界,藉以更新工件模型10的輪廓,在更新工件模型10的輪廓的同時即能獲得刀具-工件接觸區域30(Cutter-Workpiece Engagement,簡稱CWE)的數據資料(如圖2所示),前述數據資料即為用來計算切削路徑及瞬時切削力的重要條件。在此所謂的瞬時切削力是指刀具對工件進行加工時受到的瞬間阻力,若瞬時切削力過大,可能會造成刀具或/及工件的損壞,如此即可模擬刀具模型20在接近瞬時切削力的臨界值的狀況下對工件模型10進行加工,使實際加工的進給效率能極大化的提升。請參閱圖3,圖3顯示在加工模擬中,刀具模型20的移動距離和三軸切削力之間的曲線關係圖。然而實際上,也可以使用時間來取代移動距離,亦即顯示刀具模型20在加工一特定時間(例如10秒)的情況下所對應的三軸切削力大小。The ray Marching algorithm used in this step, after knowing the origin and direction of the light ray, can begin searching for the closest distance to the object. Then, it moves this distance from the origin of the light ray towards the direction of the light ray, updates the origin position, and repeats this process until the object is touched or the light ray is confirmed to be diverging. Since the workpiece model 10, built using the Tri-Dexel Model, is composed of multiple line segments, it can be considered as numerous light rays. Therefore, the Ray Marching algorithm quickly searches the boundary of the tool model 20 using the original outline of the workpiece model 10 to update the outline of the workpiece model 10. Simultaneously, it obtains data on the cutter-workpiece engagement (CWE) area 30 (as shown in Figure 2). This data is crucial for calculating the cutting path and instantaneous cutting force. The instantaneous cutting force refers to the instantaneous resistance experienced by the tool during machining of the workpiece. Excessive instantaneous cutting force can damage the tool and/or the workpiece. This allows the simulation of the tool model 20 machining the workpiece model 10 under conditions close to the critical value of the instantaneous cutting force, maximizing the feed efficiency of the actual machining process. Please refer to Figure 3, which shows the relationship between the travel distance of the tool model 20 and the three-axis cutting force in the machining simulation. However, in practice, time can also be used instead of travel distance, that is, to show the magnitude of the three-axis cutting force corresponding to the tool model 20 machining for a specific time (e.g., 10 seconds).
值得一提的是,光跡步進(Ray Marching)演算法還可以同時配合一圖形處理器(Graphics Processing Unit,簡稱GPU)進行平行運算,從原本取得單一射線的起點與方向變成同時取得多條射線的起點與方向,藉以更進一步對工件模型10提升在更新輪廓時的運算速度。It is worth mentioning that the Ray Marching algorithm can also be used in parallel with a Graphics Processing Unit (GPU) to obtain the starting point and direction of multiple rays instead of obtaining the starting point and direction of a single ray. This further improves the calculation speed of the workpiece model 10 when updating the contour.
下表一顯示以三維射線模型(Tri-Dexel Model)分別搭配傳統分割包圍體積層次結構(Splits Bounding Volume Hierarchies,簡稱SBVH)及本發明所使用的符號距離函數(Signed Distance Function)和光跡步進(Ray Marching)演算法的組合所設計的切削路徑在效率方面的差異進行比較。Table 1 below compares the efficiency differences of cutting paths designed using the Tri-Dexel Model in combination with the traditional Splits Bounding Volume Hierarchies (SBVH) and the combination of the Signed Distance Function and Ray Marching algorithm used in this invention.
表一
由上表可以發現,傳統模擬方法的平均運算時間約15.6636秒,每秒可以找出約702.329個刀尖點(Cutter Location Point),本發明之模擬方法的平均運算時間約9.29559秒,每秒可以找出約1183.464個刀尖點(Cutter Location Point),相較之下,本發明之模擬方法的運算時間明顯縮短,運算速度可以大幅提升約68.51%。As can be seen from the table above, the average computation time of the traditional simulation method is approximately 15.6636 seconds, and it can find approximately 702.329 cutter location points per second. The average computation time of the simulation method of this invention is approximately 9.29559 seconds, and it can find approximately 1183.464 cutter location points per second. In comparison, the computation time of the simulation method of this invention is significantly shortened, and the computation speed can be greatly improved by approximately 68.51%.
綜上所述,本發明之模擬方法透過三維射線模型(Tri-Dexel Model)、符號距離函數(Signed Distance Function)及光跡步進(Ray Marching)演算法的組合可以大幅提升運算速度,節省下來的運算時間不但可以用來分析瞬時切削力的大小,還可以計算刀具模型20之切削路徑是否會造成刀具模型20與工件模型10發生不當碰撞,若預估可能會發生不當碰撞,則需要調整切削路徑,以確保雙方不會發生互相碰撞的問題。In summary, the simulation method of this invention can significantly improve the calculation speed by combining the three-dimensional ray model, the signed distance function, and the ray Marching algorithm. The saved calculation time can be used not only to analyze the magnitude of the instantaneous cutting force, but also to calculate whether the cutting path of the tool model 20 will cause improper collision between the tool model 20 and the workpiece model 10. If improper collision is expected, the cutting path needs to be adjusted to ensure that the two do not collide with each other.
S1:步驟 S2:步驟 S3:步驟 10:工件模型 20:刀具模型 30:刀具-工件接觸區域S1: Step S2: Step S3: Step 10: Workpiece Model 20: Tool Model 30: Tool-Workpiece Contact Area
圖1為本發明之模擬方法的流程圖。 圖2為本發明之模擬方法所提供之工件模型和刀具模型的立體圖。 圖3為本發明之模擬方法所提供之移動距離及切削力的曲線圖。Figure 1 is a flowchart of the simulation method of the present invention. Figure 2 is a three-dimensional view of the workpiece model and tool model provided by the simulation method of the present invention. Figure 3 is a graph of the movement distance and cutting force provided by the simulation method of the present invention.
S1:步驟 S1: Steps
S2:步驟 S2: Steps
S3:步驟 S3: Steps
Claims (3)
Publications (1)
| Publication Number | Publication Date |
|---|---|
| TWI912161B true TWI912161B (en) | 2026-01-11 |
Family
ID=
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030083773A1 (en) | 2001-09-12 | 2003-05-01 | Siemens Aktiengesellschaft | Visualization of workpieces during simulation of milling processes |
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030083773A1 (en) | 2001-09-12 | 2003-05-01 | Siemens Aktiengesellschaft | Visualization of workpieces during simulation of milling processes |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107577882B (en) | A Surface Topography Modeling and Forming Simulation Method for Side Milled Ruled Surfaces | |
| US10838403B2 (en) | Simulation method for milling by use of dynamic position error | |
| Yang et al. | A generalized online estimation algorithm of multi-axis contouring errors for CNC machine tools with rotary axes | |
| JP2017140684A (en) | Robot programming device that teaches robot programs | |
| Han et al. | Optimal CNC plunge cutter selection and tool path generation for multi-axis roughing free-form surface impeller channel | |
| CN113276130A (en) | Free-form surface spraying path planning method and system based on point cloud slice | |
| Zhang et al. | 3D curvature grinding path planning based on point cloud data | |
| CN110497727A (en) | An Optimal Processing Space Selection Method for Three-dimensional Stone Sculpture Processing | |
| Dhanik et al. | Contour parallel milling tool path generation for arbitrary pocket shape using a fast marching method | |
| WO2020021793A1 (en) | Tool path correction device, tool path correction method, and numerical control device | |
| Zhang et al. | Single spherical angle linear interpolation for the control of non-linearity errors in five-axis flank milling | |
| TWI912161B (en) | Simulation method for multi-axis milling | |
| Dong et al. | A novel approach to modeling of multi-axis plunge milling and its application on the simulation of complex part plunging | |
| CN102528553B (en) | Method for quickly adjusting servo dynamic parameters of five-axis linkage numerically controlled milling machine | |
| CN103279608B (en) | The fast finding localization method of large complicated part process operation | |
| CN105930589A (en) | Data processing method of multi-axis linked electric discharge machining feeding speed postprocessor based on spatial mapping | |
| CN115156725A (en) | Etching forming method based on laser scanning strategy | |
| CN109773581B (en) | Method for applying robot to reappear machining | |
| Voronov et al. | Investigation of the milling process based on a reduced dynamic model of cutting tool | |
| Mantari-Ramos et al. | CNC Control and Simulation System for the Artisanal Cutting of Leather Accessories from a Shoe Factory | |
| Zhang et al. | A next generation NC machining system based on NC feature unit and real-time tool-path generation | |
| Msaddek et al. | Compensation of machining errors of Bspline and Cspline | |
| Morikawa et al. | 5-Axis control tool path generation using curved surface interpolation | |
| Sundi et al. | The effect of surface finish by varying machining strategies of five-axis flank milling for curvy angled convex profile | |
| Yang et al. | Verification of NC machining processes using swept volumes |