CN109015008B - A clamping planning method and device for finishing five-axis CNC milling machine - Google Patents
A clamping planning method and device for finishing five-axis CNC milling machine Download PDFInfo
- Publication number
- CN109015008B CN109015008B CN201810851822.9A CN201810851822A CN109015008B CN 109015008 B CN109015008 B CN 109015008B CN 201810851822 A CN201810851822 A CN 201810851822A CN 109015008 B CN109015008 B CN 109015008B
- Authority
- CN
- China
- Prior art keywords
- clamping
- sub
- working mode
- sampling
- directions
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000003801 milling Methods 0.000 title claims abstract description 39
- 238000005070 sampling Methods 0.000 claims abstract description 85
- 238000003754 machining Methods 0.000 claims abstract description 50
- 238000009792 diffusion process Methods 0.000 claims abstract description 12
- 241000270295 Serpentes Species 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 9
- 238000003860 storage Methods 0.000 claims description 7
- 230000011218 segmentation Effects 0.000 claims description 5
- 238000009434 installation Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 238000004140 cleaning Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005520 cutting process Methods 0.000 description 2
- 238000000227 grinding Methods 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000003066 decision tree Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007730 finishing process Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 208000001491 myopia Diseases 0.000 description 1
- 230000004379 myopia Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23Q—DETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
- B23Q3/00—Devices holding, supporting, or positioning work or tools, of a kind normally removable from the machine
- B23Q3/02—Devices holding, supporting, or positioning work or tools, of a kind normally removable from the machine for mounting on a work-table, tool-slide, or analogous part
- B23Q3/06—Work-clamping means
- B23Q3/062—Work-clamping means adapted for holding workpieces having a special form or being made from a special material
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Numerical Control (AREA)
Abstract
本发明公开了种一种面向五轴数控铣床精加工的装夹规划方法及装置,该方法包括:接收工件模型,对其表面采样获得采样点,计算工件模型各采样点的可用刀具加工方向;将工件模型表面划分为3+2工作模式可加工的子区域,并指定其刀具方向;选择一组最优备选装夹方向,计算其中每个备选装夹方向的可加工范围;采用SetupCover算法计算所有有效装夹方向组合;将3+2工作模式可加工的子区域通过标签扩散的方法代入每个有效装夹方向组合;采用Graphcut算法消除代入子区域的有效装夹方向组合中的重合部分,得到最终划分区域;采用snake网格游走算法对最终划分区域的边界进行平滑。
The invention discloses a clamping planning method and device for finishing machining of a five-axis numerically controlled milling machine. The method comprises: receiving a workpiece model, sampling the surface of the workpiece to obtain sampling points, and calculating the available tool machining directions of each sampling point of the workpiece model; Divide the surface of the workpiece model into sub-regions that can be machined in the 3+2 working mode, and specify the tool direction; select a set of optimal alternative clamping directions, and calculate the machinable range of each alternative clamping direction; use SetupCover The algorithm calculates all effective clamping direction combinations; the sub-regions that can be processed in the 3+2 working mode are substituted into each effective clamping direction combination through the method of label diffusion; the Graphcut algorithm is used to eliminate the overlap in the effective clamping direction combinations substituted into the sub-regions The final divided area is obtained; the boundary of the final divided area is smoothed by the snake grid walking algorithm.
Description
技术领域technical field
本公开属于数控精加工的技术领域,涉及一种面向五轴数控铣床精加工的装夹规划方法及装置。The present disclosure belongs to the technical field of numerical control finishing, and relates to a clamping planning method and device for finishing of a five-axis numerical control milling machine.
背景技术Background technique
本部分的陈述仅仅是提供了与本公开相关的背景技术信息,不必然构成在先技术。The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.
数控加工(Computer Numerical Control,CNC)是指运用加工中心、数控铣床、数控车床、电火花线切割设备、螺纹切削机等数控设备进行加工。通过编程,数控机床自动以连续的方式按要求去除余料,适合于大批量、形状复杂的零件。自从上世纪40年代第一台手动控制机床诞生开始,数控加工发展出车、铣、刨、磨等多种加工工艺。其中铣床指用铣刀对工件多种表面进行加工的机床,能铣削平面、沟槽、轮齿、螺纹和花键轴,适合加工比较复杂的型面。其通常加工流程包括粗加工,精加工和后清理(清根)。粗加工一般采用大尺寸铣削刀头,快速去除大部分不属于目标形状的毛坯部分,得到目标部件的近似形状;该近似形状实际上是目标部件的一个等距偏置面。精加工用较小尺寸的铣削刀头,去除近似形状上不属于目标工件的余料。由于精加工刀头尺寸及待加工部件本身结构限制,精加工后仍可能会遗留部分未清理部分,需在后清理阶段进行进一步清理。CNC machining (Computer Numerical Control, CNC) refers to the use of CNC equipment such as machining centers, CNC milling machines, CNC lathes, wire EDM equipment, and thread cutting machines for processing. Through programming, the CNC machine automatically removes excess material as required in a continuous manner, which is suitable for parts with large quantities and complex shapes. Since the birth of the first manually controlled machine tool in the 1940s, CNC machining has developed various processing techniques such as turning, milling, planing, and grinding. Among them, a milling machine refers to a machine tool that uses a milling cutter to process various surfaces of a workpiece. It can mill planes, grooves, gear teeth, threads and spline shafts, and is suitable for processing more complex profiles. Its usual machining process includes roughing, finishing and post-cleaning (root cleaning). Rough machining generally uses a large-sized milling cutter head to quickly remove most of the blank parts that do not belong to the target shape, and obtain an approximate shape of the target part; the approximate shape is actually an equidistant offset surface of the target part. Smaller size milling head for finishing to remove residual material that does not belong to the target workpiece in approximate shape. Due to the limitation of the size of the finishing tool head and the structure of the parts to be machined, there may still be some uncleaned parts left after finishing, which needs to be further cleaned in the post-cleaning stage.
最常用的数控铣床包括:主要用于加工平面型腔结构的三轴数控铣床,以及加工复杂自由曲面的五轴数控铣床。五轴数控铣床一般由三个移动轴(XYZ)和两个转动轴(AB)组成,按照工作方式不同可分为3+2工作模式和5轴联动工作模式。3+2工作模式,或称为定轴加工,是指刀具在加工某一片区域的过程中只是三个移动轴联动,另外两个转动轴不动;加工区域转换由两个转动轴联动完成,此时三个移动轴终止铣削。五轴联动工作模式是指刀具在切削过程中五个运动轴同步运动铣削。The most commonly used CNC milling machines include: three-axis CNC milling machines mainly used for processing planar cavity structures, and five-axis CNC milling machines for processing complex free-form surfaces. The five-axis CNC milling machine is generally composed of three moving axes (XYZ) and two rotating axes (AB). According to different working methods, it can be divided into 3+2 working mode and 5-axis linkage working mode. 3+2 working mode, or fixed-axis machining, means that only three moving axes are linked in the process of machining a certain area, and the other two rotating axes are not moved; the transformation of the machining area is completed by the linkage of two rotating axes. At this point the three traversing axes terminate the milling. The five-axis linkage working mode refers to the synchronous milling of the five motion axes of the tool during the cutting process.
在3+2工作模式的五轴数据铣床加工前需要进行装夹规划和3+2区域划分。其中,装夹规划是指装夹过程工件方向规划及对应加工范围划分。3+2区域划分是指将某装夹方向下的加工范围进一步划分为3+2工作模式可加工的子区域并指定其刀具方向。现有技术中大多装夹规划采用遗传算法、专家系统、决策树、训练学习等方法,主要处理基本几何元素组成用于工业零件的CAD模型,无法处理无明显特征线的自由曲面组成的全封闭工件。当前的实际生产中,装夹规划和3+2区域划分还需要依赖于工程师的经验进行手动设计。Clamping planning and 3+2 area division are required before the five-axis data milling machine in the 3+2 working mode. Among them, the clamping planning refers to the direction planning of the workpiece during the clamping process and the division of the corresponding processing range. 3+2 area division refers to further dividing the machining range in a certain clamping direction into sub-areas that can be machined in the 3+2 working mode and specifying the tool direction. Most of the clamping planning in the prior art adopts methods such as genetic algorithm, expert system, decision tree, training and learning, etc., mainly dealing with basic geometric elements to form CAD models for industrial parts, and cannot deal with fully enclosed free-form surfaces without obvious characteristic lines. artifact. In the current actual production, the clamping planning and 3+2 area division also need to be manually designed depending on the experience of the engineer.
发明内容SUMMARY OF THE INVENTION
针对现有技术中存在的不足,本公开的一个或多个实施例提供了一种面向五轴数控铣床精加工的装夹规划方法及装置,首先进行3+2加工模式约束的区域分割,并将其分割结果代入之后装夹约束下的区域划分,最后用一种优化策略在不影响装夹约束和3+2加工模式约束的下对区域划分的边界进行平滑,保证划分区域边界的规整平滑。In view of the deficiencies in the prior art, one or more embodiments of the present disclosure provide a clamping planning method and device for finishing machining of a five-axis CNC milling machine. Substitute the segmentation result into the region division under the clamping constraint, and finally use an optimization strategy to smooth the boundary of the region division without affecting the clamping constraint and the 3+2 processing mode constraint, so as to ensure the regularity and smoothness of the divided region boundary. .
根据本公开的一个或多个实施例的一个方面,提供一种面向五轴数控铣床精加工的装夹规划方法。According to an aspect of one or more embodiments of the present disclosure, there is provided a fixture planning method for finishing machining of a five-axis CNC milling machine.
一种面向五轴数控铣床精加工的装夹规划方法,该方法包括:A clamping planning method for five-axis CNC milling machine finishing, the method includes:
接收工件模型,对其表面采样获得采样点,计算工件模型各采样点的可用刀具加工方向;Receive the workpiece model, sample its surface to obtain sampling points, and calculate the available tool machining directions for each sampling point of the workpiece model;
将工件模型表面划分为3+2工作模式可加工的子区域,并指定其刀具方向;Divide the surface of the workpiece model into sub-regions that can be machined in the 3+2 working mode, and specify the tool direction;
选择一组最优备选装夹方向,通过判定各采样点的可用刀具加工方向对于各备选装夹方向是否可加工,计算其中每个备选装夹方向的可加工范围;Select a set of optimal alternative clamping directions, and calculate the machinable range of each alternative clamping direction by judging whether the available tool machining directions of each sampling point are machinable for each alternative clamping direction;
采用SetupCover算法计算所有有效装夹方向组合;Use the SetupCover algorithm to calculate all effective clamping direction combinations;
将3+2工作模式可加工的子区域通过标签扩散的方法代入每个有效装夹方向组合;Substitute the sub-areas that can be processed in the 3+2 working mode into each effective clamping direction combination through the method of label diffusion;
若有效装夹方向组合中仍存在重合部分,消除代入子区域的有效装夹方向组合中的重合部分,得到最终划分区域;If there is still an overlapping part in the effective clamping direction combination, eliminate the overlapping part in the effective clamping direction combination substituted into the sub-area to obtain the final divided area;
采用snake网格游走算法对最终划分区域的边界进行平滑。The boundary of the final divided area is smoothed by snake grid walk algorithm.
进一步地,对工件模型表面进行均匀采样,获得采样点,针对每个采样点,采用空间配置法计算可用刀具加工方向。Further, uniformly sample the surface of the workpiece model to obtain sampling points, and for each sampling point, use the spatial configuration method to calculate the machining direction of the available tool.
进一步地,通过改进基于Graphcut的算法将工件模型表面划分为3+2工作模式可加工的子区域,具体方法步骤为:Further, by improving the algorithm based on Graphcut, the surface of the workpiece model is divided into sub-regions that can be processed in the 3+2 working mode. The specific method steps are:
在高斯球上均匀采样一组3+2工作模式加工方向di,i=1…n;Uniformly sample a group of 3+2 working mode machining directions d i , i=1...n on the Gaussian sphere;
对于每个采样方向di,在工件模型表面的采样点pj中计算di可加工的采样点。具体判断方法为,若di在采样点pj的可用刀具加工方向集合中,则采样点pj可被方向di加工;For each sampling direction d i , the d i machinable sampling points are calculated in the sampling points p j on the surface of the workpiece model. The specific judgment method is: if d i is in the set of available tool machining directions of the sampling point p j , then the sampling point p j can be machined by the direction d i ;
将工件模型表面3+2工作模式加工区域分割问题,定义为一个可基于GraphCut方法求解的图中能量最小化问题。定义工件模型表面采样点pj为节点,采样点pj临界关系为边的图GF。图GF中每个节点pj可取得label值为其可加工的采样方向di。使用经典的求解graphcut问题的求解器求得工件表面3+2工作模式的分割区域。最终每个采样点pj对应一个加工方向di。The 3+2 working mode machining area segmentation problem on the surface of the workpiece model is defined as a graph energy minimization problem that can be solved based on the GraphCut method. Define the surface sampling point p j of the workpiece model as the node, and the critical relationship between the sampling point p j as the graph GF of the edge. Each node p j in the graph GF can obtain the label value as its machinable sampling direction d i . Use a classic solver for graphcut problems to find the segmented regions of the workpiece surface in the 3+2 working mode. Finally, each sampling point p j corresponds to a machining direction d i .
进一步地,通过均匀或非均匀采样的方式在划分后的3+2工作模式可加工的子区域对应的高斯球上选择一组最优备选装夹方向。Further, a set of optimal alternative clamping directions is selected on the Gaussian sphere corresponding to the sub-regions that can be processed in the divided 3+2 working mode by means of uniform or non-uniform sampling.
进一步地,所述有效装夹方向组合为组合内备选装夹方向对应的加工方向的并集覆盖所有采样点,并且组合内两两备选装夹方向对应的加工方向的交集合非空的装夹方向组合。Further, the effective clamping direction combination is that the union of the machining directions corresponding to the optional clamping directions in the combination covers all sampling points, and the intersection of the machining directions corresponding to the two optional clamping directions in the combination is not empty. Clamping direction combination.
进一步地,所述将3+2工作模式可加工的子区域通过标签扩散的方法代入每个有效装夹方向组合的具体步骤包括:Further, the specific steps of substituting the processable sub-regions of the 3+2 working mode into each effective clamping direction combination by the method of label diffusion include:
若3+2工作模式可加工的子区域中某子区域采样点部分有重合,其他部分只能被某一个装夹方向加工到,则将该区域中所有采样点的标签完全指定为该装夹方向;If the sampling points of a sub-area in the sub-areas that can be processed in the 3+2 working mode overlap, and other parts can only be processed by a certain clamping direction, then the labels of all sampling points in the area are completely designated as this clamping. direction;
若3+2工作模式可加工的子区域中某子区域采样点完全处于重合情况,则将该区域中所有采样点的标签指定为重合情况中占优的装夹方向;If the sampling points of a sub-area in the sub-areas that can be processed in the 3+2 working mode are completely coincident, the labels of all sampling points in the area are designated as the dominant clamping direction in the coincident situation;
所述采样点重合为该采样点被多个组合内多个装夹方向加工。The overlapping of the sampling points means that the sampling points are processed in multiple clamping directions in multiple combinations.
进一步地,若经过3+2工作模式可加工的子区域通过标签扩散的方法代入每个有效装夹方向组合仍然存在覆盖情况,则采用Graphcut算法消除有效装夹方向组合中的重合部分。Further, if the sub-regions that can be processed in the 3+2 working mode are substituted into each effective clamping direction combination by the method of label diffusion and there is still coverage, the Graphcut algorithm is used to eliminate the overlapping part in the effective clamping direction combination.
进一步地,构造一个工件模型表面采样点pj为节点,采样点pj临界关系为边的图GF。图GF中每个节点pj可取得label值为其上述步骤对应的多重标签。Graphcut算法可以采用最小化能量的方式为重叠区域的每个节点pj指定某单一标签,因此达到消除重叠区域的目的。Further, construct a graph GF in which the sampling point p j of the surface of the workpiece model is a node, and the critical relationship of the sampling point p j is an edge. Each node p j in graph GF can obtain multiple labels whose label value corresponds to the above steps. The Graphcut algorithm can assign a single label to each node p j in the overlapping area by minimizing the energy, thus achieving the purpose of eliminating the overlapping area.
根据本公开的一个或多个实施例的另一个方面,还提供一种计算机可读存储介质。According to another aspect of one or more embodiments of the present disclosure, there is also provided a computer-readable storage medium.
一种计算机可读存储介质,其中存储有多条指令,所述指令适于由终端设备设备的处理器加载并执行以下处理:A computer-readable storage medium in which a plurality of instructions are stored, the instructions are adapted to be loaded by a processor of a terminal device device and perform the following processes:
接收工件模型,对其表面采样获得采样点,计算工件模型各采样点的可用刀具加工方向;Receive the workpiece model, sample its surface to obtain sampling points, and calculate the available tool machining directions for each sampling point of the workpiece model;
将工件模型表面划分为3+2工作模式可加工的子区域,并指定其刀具方向;Divide the surface of the workpiece model into sub-regions that can be machined in the 3+2 working mode, and specify the tool direction;
选择一组最优备选装夹方向,通过判定各采样点的可用刀具加工方向对于各备选装夹方向是否可加工,计算其中每个备选装夹方向的可加工范围;Select a set of optimal alternative clamping directions, and calculate the machinable range of each alternative clamping direction by judging whether the available tool machining directions of each sampling point are machinable for each alternative clamping direction;
采用SetupCover算法计算所有有效装夹方向组合;Use the SetupCover algorithm to calculate all effective clamping direction combinations;
将3+2工作模式可加工的子区域通过标签扩散的方法代入每个有效装夹方向组合;Substitute the sub-areas that can be processed in the 3+2 working mode into each effective clamping direction combination through the method of label diffusion;
若有效装夹方向组合中仍存在重合部分,消除代入子区域的有效装夹方向组合中的重合部分,得到最终划分区域;If there is still an overlapping part in the effective clamping direction combination, eliminate the overlapping part in the effective clamping direction combination substituted into the sub-area to obtain the final divided area;
采用snake网格游走算法对最终划分区域的边界进行平滑。The boundary of the final divided area is smoothed by snake grid walk algorithm.
根据本公开的一个或多个实施例的另一个方面,还提供一种终端设备。According to another aspect of one or more embodiments of the present disclosure, a terminal device is also provided.
一种终端设备,采用互联网终端设备,包括处理器和计算机可读存储介质,处理器用于实现各指令;计算机可读存储介质用于存储多条指令,所述指令适于由处理器加载并执行以下处理:A terminal device, using an Internet terminal device, includes a processor and a computer-readable storage medium, where the processor is used to implement various instructions; the computer-readable storage medium is used to store a plurality of instructions, the instructions are suitable for being loaded and executed by the processor The following processing:
接收工件模型,对其表面采样获得采样点,计算工件模型各采样点的可用刀具加工方向;Receive the workpiece model, sample its surface to obtain sampling points, and calculate the available tool machining directions for each sampling point of the workpiece model;
将工件模型表面划分为3+2工作模式可加工的子区域,并指定其刀具方向;Divide the surface of the workpiece model into sub-regions that can be machined in the 3+2 working mode, and specify the tool direction;
选择一组最优备选装夹方向,通过判定各采样点的可用刀具加工方向对于各备选装夹方向是否可加工,计算其中每个备选装夹方向的可加工范围;Select a set of optimal alternative clamping directions, and calculate the machinable range of each alternative clamping direction by judging whether the available tool machining directions of each sampling point are machinable for each alternative clamping direction;
采用SetupCover算法计算所有有效装夹方向组合;Use the SetupCover algorithm to calculate all effective clamping direction combinations;
将3+2工作模式可加工的子区域通过标签扩散的方法代入每个有效装夹方向组合;Substitute the sub-areas that can be processed in the 3+2 working mode into each effective clamping direction combination through the method of label diffusion;
若有效装夹方向组合中仍存在重合部分,消除代入子区域的有效装夹方向组合中的重合部分,得到最终划分区域;If there is still an overlapping part in the effective clamping direction combination, eliminate the overlapping part in the effective clamping direction combination substituted into the sub-area to obtain the final divided area;
采用snake网格游走算法对最终划分区域的边界进行平滑。The boundary of the final divided area is smoothed by snake grid walk algorithm.
本公开的有益效果:Beneficial effects of the present disclosure:
(1)本发明所述的一种面向五轴数控铣床精加工的装夹规划方法及装置,具体为采用五轴数控铣床3+2加工模式对完整工件进行精加工的装夹规划和3+2区域划分方法及装置,可以处理无明显特征线的自由曲面组成的全封闭工件,也可以用于处理基本几何元素组成用于工业零件的CAD模型;也可以应用于确定装夹方向的条件下再对工件当前可加工范围进行3+2区域划分。(1) A clamping planning method and device for the finishing of a five-axis CNC milling machine according to the present invention, specifically a clamping planning and 3+ 2. The area division method and device can process fully enclosed workpieces composed of free-form surfaces without obvious feature lines, and can also be used to process CAD models composed of basic geometric elements for industrial parts; it can also be used to determine the clamping direction. Then divide the current workable range of the workpiece into 3+2 areas.
(2)本发明所述的一种面向五轴数控铣床精加工的装夹规划方法及装置,能够保证装夹规划达到:1)最小化装夹次数;2)划分区域的边界尽量规整平滑;3)保证每个装夹规划对应的加工范围能被完全加工到;3+2区域划分能够达到:1)最小化3+2区域划分个数;2)划分区域的边界要尽量规整平滑;3)需保证子区域能被指定的刀具方向完全加工到。(2) A clamping planning method and device for the finishing of a five-axis CNC milling machine according to the present invention can ensure that the clamping planning achieves: 1) Minimize the number of clamping times; 2) The boundaries of the divided areas are as regular and smooth as possible; 3 ) Ensure that the processing range corresponding to each clamping plan can be fully processed; 3+2 area division can achieve: 1) Minimize the number of 3+2 area divisions; 2) The boundaries of the divided areas should be as regular and smooth as possible; 3) It is necessary to ensure that the sub-region can be completely machined by the specified tool direction.
(3)本发明所述的一种面向五轴数控铣床精加工的装夹规划方法及装置,可以直接应用于五轴数控铣床3+2加工模式精加工,也可应用于机械臂铣削加工或后期打磨的3+2加工模式精加工中;对完整工件进行精加工的装夹规划和3+2区域划分,有效的代替当前实际生产中手动规划的人力成本。(3) The method and device for clamping planning for five-axis CNC milling machine finishing described in the present invention can be directly applied to five-axis CNC milling machine 3+2 machining mode finishing, and can also be applied to mechanical arm milling or machining. The 3+2 processing mode of post-grinding is in the finishing process; the clamping planning and 3+2 area division for finishing the complete workpiece can effectively replace the labor cost of manual planning in the current actual production.
(4)本发明所述的一种面向五轴数控铣床精加工的装夹规划方法及装置,作为一个开放性的框架,适合融合更多的其他因素,比如考虑到装夹规划中的夹具设计。(4) The method and device for clamping planning for the finishing of a five-axis CNC milling machine according to the present invention, as an open frame, is suitable for integrating more other factors, such as considering the fixture design in the clamping planning .
(5)本发明所述的一种面向五轴数控铣床精加工的装夹规划方法及装置,考虑到了区域划分边界的规整平滑,在不影响装夹约束和3+2加工模式约束的下对区域划分的边界进行平滑,有利于后续的路径规划。(5) The clamping planning method and device for the finishing of a five-axis CNC milling machine according to the present invention takes into account the regularity and smoothness of the area division boundary, and does not affect the clamping constraints and the constraints of the 3+2 machining mode. The boundary of the area division is smoothed, which is beneficial to the subsequent path planning.
附图说明Description of drawings
构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。The accompanying drawings that form a part of the present application are used to provide further understanding of the present application, and the schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute improper limitations on the present application.
图1是根据一个或多个实施例的一种面向五轴数控铣床精加工的装夹规划方法流程图;FIG. 1 is a flowchart of a clamping planning method for finishing five-axis CNC milling machine according to one or more embodiments;
图2是根据一个或多个实施例的采样点可用刀具加工方向计算解析图;2 is an analytical diagram for calculating the available tool machining direction of a sampling point according to one or more embodiments;
图3是根据一个或多个实施例的3+2区域划分过程解析图;3 is an analytic diagram of a 3+2 area division process according to one or more embodiments;
图4是根据一个或多个实施例的备选装夹方向选择过程解析图;4 is an analytic diagram of an alternative clamping direction selection process according to one or more embodiments;
图5为根据一个或多个实施例的有效装夹方向组合示例展示图;5 is a diagram showing an example of a combination of effective clamping directions according to one or more embodiments;
图6为根据一个或多个实施例的标签扩散过程解析图;6 is an analytic diagram of a tag diffusion process according to one or more embodiments;
图7为根据一个或多个实施例的snake算法对区域划分边界进行平滑效果展示图。FIG. 7 is a diagram showing the effect of smoothing a region dividing boundary by a snake algorithm according to one or more embodiments.
具体实施方式:Detailed ways:
下面将结合本公开的一个或多个实施例中的附图,对本公开的一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本公开的一个或多个实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present disclosure. Obviously, the described embodiments are only part of the implementation of the present disclosure. examples, but not all examples. Based on one or more embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
应该指出,以下详细说明都是例示性的,旨在对本申请提供进一步的说明。除非另有指明,本实施例使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the application. Unless otherwise specified, all technical and scientific terms used in the examples have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural as well, furthermore, it is to be understood that when the terms "comprising" and/or "including" are used in this specification, it indicates that There are features, steps, operations, devices, components and/or combinations thereof.
需要注意的是,附图中的流程图和框图示出了根据本公开的各种实施例的方法和系统的可能实现的体系架构、功能和操作。应当注意,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,所述模块、程序段、或代码的一部分可以包括一个或多个用于实现各个实施例中所规定的逻辑功能的可执行指令。也应当注意,在有些作为备选的实现中,方框中所标注的功能也可以按照不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,或者它们有时也可以按照相反的顺序执行,这取决于所涉及的功能。同样应当注意的是,流程图和/或框图中的每个方框、以及流程图和/或框图中的方框的组合,可以使用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以使用专用硬件与计算机指令的组合来实现。It is noted that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems according to various embodiments of the present disclosure. It should be noted that each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which may include one or more components used in implementing various embodiments Executable instructions for the specified logical function. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may in fact be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented using dedicated hardware-based systems that perform the specified functions or operations , or can be implemented using a combination of dedicated hardware and computer instructions.
在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合,下面结合附图与实施例对本公开作进一步说明。In the case of no conflict, the embodiments of the present disclosure and the features of the embodiments may be combined with each other, and the present disclosure will be further described below with reference to the accompanying drawings and embodiments.
如图1所示,根据本公开的一个或多个实施例的一个方面,提供一种面向五轴数控铣床精加工的装夹规划方法,具体为一种面向五轴数控铣床3+2加工模式对完整工件进行精加工的装夹规划和3+2区域划分方法,该方法包括:As shown in FIG. 1 , according to an aspect of one or more embodiments of the present disclosure, there is provided a clamping planning method for finishing machining of a five-axis CNC milling machine, specifically a 3+2 machining mode for a five-axis CNC milling machine Setup planning and 3+2 area division method for finishing complete workpieces, including:
步骤(1):接收工件模型,对其表面采样获得采样点,计算工件模型各采样点的可用刀具加工方向;Step (1): receiving the workpiece model, sampling its surface to obtain sampling points, and calculating the available tool machining directions of each sampling point of the workpiece model;
步骤(2):将工件模型表面划分为3+2工作模式可加工的子区域,并指定其刀具方向;Step (2): Divide the surface of the workpiece model into sub-regions that can be machined in the 3+2 working mode, and specify the tool direction;
步骤(3):选择一组最优备选装夹方向,通过判定各采样点的可用刀具加工方向对于各备选装夹方向是否可加工,计算其中每个备选装夹方向的可加工范围;Step (3): Select a set of optimal alternative clamping directions, and calculate the machinable range of each alternative clamping direction by judging whether the available tool machining directions at each sampling point are machinable for each alternative clamping direction. ;
步骤(4):采用SetupCover算法计算所有有效装夹方向组合;Step (4): adopt the SetupCover algorithm to calculate all effective clamping direction combinations;
步骤(5):将3+2工作模式可加工的子区域通过标签扩散的方法代入每个有效装夹方向组合,消除有效装夹方向组合中的重合部分;Step (5): Substitute the sub-regions that can be processed in the 3+2 working mode into each effective clamping direction combination by the method of label diffusion, and eliminate the overlapping part in the effective clamping direction combination;
步骤(6):采用Graphcut算法消除代入子区域的有效装夹方向组合中的重合部分,得到最终划分区域;Step (6): adopt the Graphcut algorithm to eliminate the overlapping part in the effective clamping direction combination substituted into the sub-area to obtain the final divided area;
步骤(7):采用snake网格游走算法对最终划分区域的边界进行平滑。Step (7): use the snake grid walk algorithm to smooth the boundary of the final divided area.
所述步骤(1)中,工件模型可用多种数据结构表达(如step,iges,stl),本发明是一种基于采样点信息分析处理的方法,需要首先对工件模型表面进行采样,具体步骤包括:In the step (1), the workpiece model can be expressed by a variety of data structures (such as step, iges, stl). The present invention is a method based on the analysis and processing of sampling point information, and the surface of the workpiece model needs to be sampled first. The specific steps are: include:
(1-1)对工件模型表面进行均匀采样,获得采样点;(1-1) uniformly sample the surface of the workpiece model to obtain sampling points;
(1-2)对于每个采样点,使用Jun等人基于空间配置的方法计算可用刀具方向,如图2中展示了计算出的p0,p1和p2点的可用刀具方向。(1-2) For each sampling point, use Jun et al.'s method based on spatial configuration to calculate the available tool orientation, as shown in Fig. 2 for the calculated available tool orientations at points p0, p1 and p2.
所述步骤(2)中,通过改进Herholz等人基于Graphcut算法达成目标,取消Herholz等人方法中对曲面进行近视变形的步骤;在计算采样点可加工范围是使用步骤1中计算的结果;应用Herholz等人基于Graphcut的算法将工件模型表面划分为3+2工作模式可加工的子区域并指定其刀具方向,如图3为一个模型3+2区域划分的结果。In the step (2), by improving Herholz et al. to achieve the goal based on the Graphcut algorithm, the step of performing myopia deformation on the curved surface in the method of Herholz et al. is canceled; the processable range of the calculation sampling point is to use the result calculated in step 1; application The Graphcut-based algorithm of Herholz et al. divides the surface of the workpiece model into sub-regions that can be machined in the 3+2 working mode and specifies the tool direction. Figure 3 shows the result of a model 3+2 region division.
具体步骤包括:Specific steps include:
(2-1)在高斯球上均匀采样一组3+2工作模式加工方向di,i=1…n;(2-1) uniformly sample a group of 3+2 working mode machining directions d i on the Gaussian sphere, i=1...n;
(2-2)对于每个采样方向di,在工件模型表面的采样点pj中计算di可加工的采样点。具体判断方法为,若di在采样点pj的可用刀具加工方向集合中,则采样点pj可被方向di加工;(2-2) For each sampling direction d i , calculate sampling points that can be machined by d i in the sampling points p j on the surface of the workpiece model. The specific judgment method is: if d i is in the set of available tool machining directions of the sampling point p j , then the sampling point p j can be machined by the direction d i ;
(2-3)将工件模型表面3+2工作模式加工区域分割问题,定义为一个可基于GraphCut方法求解的图中能量最小化问题。定义工件模型表面采样点pj为节点,采样点pj临界关系为边的图GF。图GF中每个节点pj可取得label值为其可加工的采样方向di。使用经典的求解graph cut问题的求解器求得工件表面3+2工作模式的分割区域。最终每个采样点pj对应一个加工方向di。(2-3) Define the machining area segmentation problem of workpiece model surface 3+2 working mode as a graph energy minimization problem that can be solved based on GraphCut method. Define the surface sampling point p j of the workpiece model as the node, and the critical relationship between the sampling point p j as the graph GF of the edge. Each node p j in the graph GF can obtain the label value as its machinable sampling direction d i . Use the classic solver for graph cut problems to find the segmented regions of the workpiece surface in the 3+2 working mode. Finally, each sampling point p j corresponds to a machining direction d i .
所述步骤(3)中,具体步骤包括:In the step (3), the specific steps include:
(3-1)通过均匀或非均匀采样的方式在方向高斯球上选择备选方向,如图4(a)中两片区域,对应高斯球上可用装夹方向范围如图4(b)所示,图4(c)展示为每个装夹方向可加工范围大小的一个可视化,可据此来采样生成非均匀装夹备选方向;(3-1) Select alternative directions on the directional Gaussian sphere by means of uniform or non-uniform sampling, as shown in Figure 4(a) for two areas, corresponding to the range of available clamping directions on the Gaussian sphere as shown in Figure 4(b) Figure 4(c) shows a visualization of the size of the machinable range of each clamping direction, which can be used to sample and generate alternative directions for non-uniform clamping;
(3-2)通过判定每个采样点的可用刀具加工方向对于每个备选方向指定的装夹方向是否可加工,计算每个备选方向的可加工范围,如图2中展示的当前装夹方向下p0点和p2点可以被当前五轴机床刀具加工到,p1点不能被加工到。(3-2) Calculate the machinable range of each alternative direction by judging whether the available tool machining direction of each sampling point is machinable for the clamping direction specified by each alternative direction, as shown in Figure 2 for the current installation direction. Points p0 and p2 in the clamping direction can be machined by the current five-axis machine tool, but point p1 cannot be machined.
所述步骤(4)中,应用SetupCover算法得出所有有效的装夹方向组合,有效的装夹方向组合是指组合内方向对应的加工方向的并集覆盖所有采样点,并且。组合内方向两两方向对应的加工方向的交集合非空,如图5所示三组有效的装夹方向组合。In the step (4), the SetupCover algorithm is applied to obtain all valid clamping direction combinations, and an effective clamping direction combination means that the union of the machining directions corresponding to the inner directions of the combination covers all sampling points, and. The intersection of the machining directions corresponding to the two directions in the combination is not empty, as shown in Figure 5, there are three sets of effective clamping direction combinations.
所述步骤(5)中,对于一个有效的装夹方向组合可看作对于采样点附加了一些方向标签,表明在该装夹方向组合中该采样点可以被组合中的那些方向加工到。其中必然存在大量的重合情况,也就是说存在一个采样点内被多个组合内多个方向加工的情况。本步骤将步骤2中的区域划分通过标签扩散的方法代入采样点的方向标签中,目的是尽量减少标签中存在的重合情况,具体步骤包括:In the step (5), for an effective clamping direction combination, it can be regarded that some direction labels are attached to the sampling point, indicating that in the clamping direction combination, the sampling point can be processed by those directions in the combination. There must be a large number of overlapping cases, that is to say, there is a case where one sampling point is processed in multiple directions in multiple combinations. In this step, the area division in step 2 is substituted into the direction label of the sampling point by the method of label diffusion, in order to minimize the overlap in the label. The specific steps include:
(5-1)若3+2区域划分中某区域中采样点部分有重合,其他部分只能被某一个装夹方向加工到,则将该区域中所以点的标签完全指定为该装夹方向,如图6中H1区域直接指定为R1标签;(5-1) If the sampling points in a certain area in the 3+2 area division overlap, and other parts can only be processed by a certain clamping direction, then the labels of all points in the area are completely designated as the clamping direction , as shown in Figure 6, the H1 area is directly designated as the R1 label;
(5-2)若3+2区域划分中某区域中采样点完全处于重合情况,则将该区域中所以点的标签指定为重合情况中占优的装夹方向,如图6中H2区域被指定为R1标签;(5-2) If the sampling points in a certain area in the 3+2 area division are completely coincident, the labels of all points in the area are designated as the dominant clamping direction in the coincidence situation, as shown in Figure 6, the H2 area is Specified as R1 label;
所述步骤(6)中,若经过步骤(5)仍然存在覆盖情况,则用一个Graphcut算法消除,如图6中H3和H4区域;构造一个工件模型表面采样点pj为节点,采样点pj临界关系为边的图GF。图GF中每个节点pj可取得label值为其上述步骤对应的多重标签。Graphcut算法可以采用最小化能量的方式为重叠区域的每个节点pj指定某单一标签,因此达到消除重叠区域的目的。In the step (6), if there is still coverage after the step (5), then use a Graphcut algorithm to eliminate, as shown in Figure 6 in the H3 and H4 areas; construct a workpiece model surface sampling point p j is a node, and the sampling point p j is a graph GF whose critical relation is an edge. Each node p j in graph GF can obtain multiple labels whose label value corresponds to the above steps. The Graphcut algorithm can assign a single label to each node p j in the overlapping area by minimizing the energy, thus achieving the purpose of eliminating the overlapping area.
所述步骤(7)中,应用Yunjin等人snake网格游走方法的方法对最终划分区域的边界进行平滑,如图7所示边界平滑之前和之后的效果。In the step (7), the method of the snake grid walking method of Yunjin et al. is applied to smooth the boundary of the final divided area, as shown in Figure 7 before and after the boundary smoothing.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application. Thus, the present invention is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810851822.9A CN109015008B (en) | 2018-07-30 | 2018-07-30 | A clamping planning method and device for finishing five-axis CNC milling machine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810851822.9A CN109015008B (en) | 2018-07-30 | 2018-07-30 | A clamping planning method and device for finishing five-axis CNC milling machine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109015008A CN109015008A (en) | 2018-12-18 |
| CN109015008B true CN109015008B (en) | 2019-07-02 |
Family
ID=64647770
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810851822.9A Active CN109015008B (en) | 2018-07-30 | 2018-07-30 | A clamping planning method and device for finishing five-axis CNC milling machine |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109015008B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115774422B (en) * | 2022-11-29 | 2024-12-27 | 白思源 | Five-axis linkage rapid motion control method for numerical control machine tool |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8150663B2 (en) * | 2007-03-30 | 2012-04-03 | Paradigm Geophysical (Luxembourg) S.A.R.L. | Partitioning algorithm for building a stratigraphic grid |
| CN102166665B (en) * | 2010-12-23 | 2012-09-12 | 大连理工大学 | Five-axis NC (numerical control) milling method for internal surfaces of bent pipes |
| CN103699606B (en) * | 2013-12-16 | 2017-03-01 | 华中科技大学 | A kind of large-scale graphical partition method assembled with community based on summit cutting |
| CN105975650A (en) * | 2016-03-31 | 2016-09-28 | 北京理工大学 | Intelligent design method of clamp structure |
| CN106202822B (en) * | 2016-07-27 | 2019-04-19 | 西北工业大学 | A B-spline Surface Model Reconstruction Method for Blade Adaptive Machining |
-
2018
- 2018-07-30 CN CN201810851822.9A patent/CN109015008B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN109015008A (en) | 2018-12-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108544880B (en) | Method and system for robot engraving and processing three-dimensional special-shaped stone | |
| CN103454972B (en) | Based on the method for the cutter five-shaft numerical control grinding automated programming of UG NX API | |
| CN110091333A (en) | The device and method of complex-curved surface weld feature identification and automatic grinding and polishing | |
| CN113021356B (en) | Robot track planning method and system for ingot trimming process | |
| CN105739440A (en) | Adaptive machining method of wide-chord hollow fan blade | |
| US10884390B2 (en) | Optimized control of a metal-cutting machine tool | |
| CN102306010B (en) | A Polishing Trajectory Determination Method for NC Polishing Blade Surface | |
| EP1241549A2 (en) | Horizontally-structured manufacturing process modelling for fixtures and tooling | |
| US7099804B2 (en) | Automated horizontally structured manufacturing process design modeling | |
| CN100447689C (en) | Control Method of NC Machining for Spherical and Cylindrical Surfaces | |
| EP1241548A2 (en) | Horizontally-structured CAD/CAM modeling for virtual fixture and tooling processes | |
| CN116841246A (en) | Robot polishing path automatic planning method based on three-dimensional point cloud data | |
| CN109015008B (en) | A clamping planning method and device for finishing five-axis CNC milling machine | |
| EP1241546A2 (en) | Horizontally structured manufacturing process modeling for:alternate operations, large parts and charted parts | |
| EP1243994A2 (en) | Horizontally-structured manufacturing process modeling for concurrent product and process design | |
| CN104536385A (en) | Method for correcting machining program of numerical control machine tool | |
| EP1243993A2 (en) | Enhancement to horizontally structured manufacturing process modeling | |
| EP1241550A9 (en) | Enhancement to horizontally-structured CAD/CAM modeling | |
| CN102981456B (en) | Non-uniform rational B-spline (NURBS) interpolation feed speed planning method aiming at embedded system | |
| CN105549537B (en) | Assembly parametrization and automatic numerical control processing method based on material object scanning | |
| CN103279608B (en) | The fast finding localization method of large complicated part process operation | |
| CN105700469A (en) | Cutter location point solving method oriented to triangular mesh curved surface numerical control processing | |
| CN112000063B (en) | Die layered corner cleaning numerical control machining system and technological method thereof | |
| CN104889321A (en) | Method for machining sand mold through multi-robot linkage | |
| CN113158503A (en) | Method for predicting cutting deformation of complex curved surface part |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |