CN103279608B - The fast finding localization method of large complicated part process operation - Google Patents
The fast finding localization method of large complicated part process operation Download PDFInfo
- Publication number
- CN103279608B CN103279608B CN201310208054.2A CN201310208054A CN103279608B CN 103279608 B CN103279608 B CN 103279608B CN 201310208054 A CN201310208054 A CN 201310208054A CN 103279608 B CN103279608 B CN 103279608B
- Authority
- CN
- China
- Prior art keywords
- sigma
- tool
- coordinate system
- reference plane
- processing
- 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
Landscapes
- Numerical Control (AREA)
Abstract
一种大型复杂零件加工操作的快速查找定位方法,属于CAD/CAPP/CAM技术领域。该方法是在CAM环境下,首先由用户从零件模型上选择需要查找加工操作的几何面F;构造F的参考平面RF:若F是平面则RF=F,若F为曲面,则采用最小二乘法将F拟合为平面;以RF中点为坐标原点构造局部坐标系PS;在PS内以RF为基础构造刀位点搜索的数学空间V;搜索当前加工文件中的所有加工操作,将刀位点落入到V中的加工操作提取出来,记录其名称以及所在的工序、工步,同时显示刀轨;此时用户可根据需要,从搜索到的加工操作列表中选择并双击打开指定的加工操作进行编辑。该方法解决了查找零件局部位置加工操作过程繁琐,效率低的问题,尤其适用包含大量加工操作的大型结构件数控加工使用。
The invention relates to a fast search and positioning method for processing operations of large and complex parts, which belongs to the technical field of CAD/CAPP/CAM. This method is in the CAM environment. First, the user selects the geometric surface F that needs to be searched for processing operations from the part model; constructs the reference plane RF of F: if F is a plane, then RF=F; if F is a curved surface, the least square Multiplication fits F to a plane; constructs a local coordinate system PS with the middle point of RF as the coordinate origin; constructs a mathematical space V for tool position search based on RF in PS; searches all processing operations in the current processing file, and sets the tool Extract the processing operation whose position falls into V, record its name, process and step, and display the tool path at the same time; at this time, the user can select from the searched processing operation list and double-click to open the specified Machining operations are edited. The method solves the problem of cumbersome and low-efficiency machining operations for finding local positions of parts, and is especially suitable for numerical control machining of large structural parts involving a large number of machining operations.
Description
技术领域technical field
本发明涉及一种计算机辅助制造技术,尤其是一种飞机复杂结构件加工操作快速查找定位方法,具体地说是一种利用数学盒子实现大型复杂零件加工操作的快速查找定位方法。The invention relates to a computer-aided manufacturing technology, in particular to a fast search and positioning method for complex aircraft structural parts processing operations, in particular to a fast search and positioning method for realizing large-scale complex part processing operations by using a math box.
背景技术Background technique
目前,随着市场对产品性能及制造成本的要求不断提高,零件结构正向着大型化、复杂化发展,导致了零件加工工艺日益复杂,一个零件的加工常常包含成百上千个加工操作,这些加工操作的类型各异,分布在不同的工序及工序下面,查找指定局部位置的加工轨迹难度非常大,在进行编程及程序完善或优化时,目前只能通过手动鼠标粗略浏览所有的加工操作,通过观察模型上相应部位是否有刀轨出现的迹象来查找该部位的加工操作,查找效率极低,且工作量大,实际生产中具体相现状如下:At present, with the continuous improvement of market requirements for product performance and manufacturing costs, the structure of parts is developing towards large-scale and complex parts, resulting in increasingly complex parts processing technology. The processing of a part often includes hundreds or thousands of processing operations. There are different types of processing operations, which are distributed in different processes and processes. It is very difficult to find the processing track at a specified local position. When programming and program improvement or optimization, at present, all processing operations can only be roughly browsed through the manual mouse. Find the processing operation of this part by observing whether there is any sign of the tool track on the corresponding part of the model. The search efficiency is extremely low and the workload is heavy. The specific phase status in actual production is as follows:
大型复杂结构件的数控编程中,一个加工特征内会存在多个加工操作,由于工艺员在编制局部程序的过程中无法准确的判断当前位置的加工状态,所以需要查看与该局部位置相关的已经存在的加工操作的走刀轨迹情况,由于零件尺寸大、结构复杂,一个加工文件中会存在多个工序,每个工序又包含数个工步,各个工步具体会包含几百甚至至上千个加工操作,即使是确定了要查看位置的加工操作存在于某个工步,在查找过程中仍然需要人工遍历该工步下的所有加工操作,工作量极大,效率低下;另一方面考虑到在程序编制完成,通过仿真校对程序的过程中当发现过切或者欠切部位的时候,工艺员往往需要从仿真系统切换回CAM系统,在大量的加工操作中找到引起上述加工质量问题对应的加工操作,人工查找过程效率低,工作量大,且对于存在多个加工操作的局部部位,由于缺乏局部位置的全局刀轨视图,进行程序修改时常常产生张冠李戴的现象,仿真必然继续出错,同时可能产生新的问题。In the NC programming of large and complex structural parts, there will be multiple processing operations in one processing feature. Since the craftsman cannot accurately judge the processing status of the current position in the process of compiling the local program, it is necessary to check the existing data related to the local position. Due to the large size and complex structure of the existing machining operations, there will be multiple processes in one processing file, and each process will contain several working steps. Each working step will contain hundreds or even thousands of steps. For processing operations, even if the processing operation that needs to be viewed is determined to exist in a certain work step, it is still necessary to manually traverse all the processing operations under the work step during the search process, which has a huge workload and low efficiency; on the other hand, considering After the programming is completed, when the over-cut or under-cut parts are found in the process of verifying the program through simulation, the craftsman often needs to switch from the simulation system back to the CAM system, and find the corresponding processing that causes the above-mentioned processing quality problems in a large number of processing operations. Operation, manual search process is inefficient and heavy workload, and for local parts with multiple processing operations, due to the lack of global tool path view of local positions, the phenomenon of ambiguity often occurs when the program is modified, and the simulation will inevitably continue to make mistakes. At the same time, it may generate new problems.
目前在主流的商品化CAM软件中,如CATIA、NX,加工操作的查找主要通过人工指向每一个加工操作,观察该加工操作的轨迹是否落在需要查找的位置,这种方法的效率很低,并且容易发生遗漏。李迎光等人申请了专利“一种加工特征与加工操作快速定位与对应方法”,其通过匹配用户选取的模型几何与加工操作中包含的驱动几何信息,达到查找定位加工操作的目的。但该方法的不足之处在于:(1)不同的加工操作有着不同类型的加工驱动几何,如有的采用线驱动,有的是面驱动,甚至还有点驱动,在查找操作之前首先需要确定选择哪种类型的几何信息,对使用者要求较高;(2)针对实际生产中,很多加工操作中的驱动几何是人为创建的点、线、面,因此从模型中往往不能找到与之匹配的几何元素,制约了该方法的通用性。At present, in the mainstream commercial CAM software, such as CATIA and NX, the search of processing operations is mainly through manually pointing to each processing operation, and observing whether the trajectory of the processing operation falls on the position that needs to be searched. This method is very inefficient. And it is easy to miss. Li Yingguang and others applied for a patent "a method for fast positioning and correspondence between processing features and processing operations", which achieves the purpose of finding and positioning processing operations by matching the model geometry selected by the user with the driving geometric information contained in the processing operation. However, the disadvantages of this method are: (1) Different machining operations have different types of machining drive geometry. For example, some use line drive, some use surface drive, and even point drive. type of geometric information has high requirements for users; (2) In actual production, the driving geometry in many processing operations is artificially created points, lines, and surfaces, so it is often impossible to find matching geometric elements from the model , which limits the generality of the method.
发明内容Contents of the invention
本发明的目的是针对目前在对大型复杂零件数控加工(编程)过程中加工操作所处位置定位困难、费时费力还容易出错的问题,发明一种基于数学盒子的大型复杂零件加工操作的快速查找定位方法。The purpose of the present invention is to invent a fast search for the processing operation of large and complex parts based on the math box in order to solve the problems of difficult positioning, time-consuming, labor-intensive and error-prone in the process of CNC machining (programming) of large and complex parts. positioning method.
本发明的技术方案是:Technical scheme of the present invention is:
一种大型复杂零件加工操作的快速查找定位方法,其特征是它包括以下步骤:A fast search and positioning method for processing operations of large and complex parts is characterized in that it comprises the following steps:
步骤1:在CAM环境下打开零件工艺模型,所述的零件工艺模型包含零件几何模型,加工坐标系、机床、刀具信息以及零件加工操作的模型;Step 1: Open the part process model in the CAM environment, the part process model includes the part geometry model, the processing coordinate system, the machine tool, the tool information and the model of the part processing operation;
步骤2:从零件模型上点选需要查看其加工轨迹的几何面F;Step 2: Click on the geometric surface F whose machining track needs to be viewed from the part model;
步骤3:若F是平面,则直接将其当成参考平面RF;若F是曲面,则采用最小二乘法通过边界点列表将其拟合成参考平面RF;Step 3: If F is a plane, take it directly as the reference plane RF; if F is a curved surface, use the least square method to fit it into the reference plane RF through the list of boundary points;
步骤4:构造参考平面RF局部坐标系PS;Step 4: Construct the reference plane RF local coordinate system PS;
步骤5:获取参考平面RF在局部坐标系PS中的两点PA1(x1,y1,z1)与PA2(x2,y2,z2),其中x1,y1,z1分别为参考平面RF在PS坐标系中X、Y、Z三个方向上最小值,x2,y2,z2分别为在PS坐标系中X、Y、Z三个方向上最大值;Step 5: Obtain two points P A1 (x 1 , y 1 , z 1 ) and P A2 (x 2 , y 2 , z 2 ) of the reference plane RF in the local coordinate system PS, where x 1 , y 1 , z 1 is the minimum value of the reference plane RF in the three directions of X, Y, and Z in the PS coordinate system, and x 2 , y 2 , and z 2 are the maximum values in the three directions of X, Y, and Z in the PS coordinate system;
步骤6:设定三维数学盒子搜索空间V的高度并构建出搜索空间V;Step 6: Set the height of the search space V of the three-dimensional mathematical box and construct the search space V;
步骤7:提取零件加工文件中所有加工操作以及每个加工操作包含的所有刀位点列表PRL;Step 7: Extract all processing operations in the part processing file and all tool position lists PRL contained in each processing operation;
步骤8:循环遍历零件工艺模型中所有的加工操作,将刀位点落在数学盒子搜索空间V内的加工操作记录下来,并记录该加工操作所在的工序、工步信息;Step 8: Cycle through all the processing operations in the part process model, record the processing operations where the tool position falls in the search space V of the math box, and record the process and step information of the processing operation;
步骤9:用户根据需要,从得到的加工操作列表中选择需要的加工操作。Step 9: The user selects the required processing operation from the obtained processing operation list according to the requirement.
所述的采用最小二乘法拟合参考平面RF的具体步骤如下:The specific steps of adopting the least squares method to fit the reference plane RF described are as follows:
a)设基准平面RF方程为z=a0x+a1y+a2,a0,a1,a2是方程系数;a) Let the reference plane RF equation be z=a 0 x+a 1 y+a 2 , where a 0 , a 1 , and a 2 are equation coefficients;
b)根据边界点列表PL中的n个点,(n≥3):(xi,yi,zi),i=0,1,…,n-1,要用点(xi,yi,zi),i=0,1,…,n-1拟合计算上述平面方程,则使:b) According to the n points in the boundary point list PL, (n≥3): (x i , y i , z i ), i=0,1,...,n-1, use the point (x i ,y i , z i ), i=0,1,…,n-1 to fit and calculate the above plane equation, then make:
c)要使得S最小,应满足:k=0,1,2c) To make S the smallest, it should satisfy: k=0,1,2
即:
有,
或,
解上述线形方程组,得:a0,a1,a2;Solve the above linear equations to get: a 0 , a 1 , a 2 ;
d)即得基准平面RF:z=a0x+a1y+a2;d) Get the reference plane RF: z=a 0 x+a 1 y+a 2 ;
e)将边界点列表PL中的n个点投影至基准平面RF,得到新的边界列表PL’。e) Project n points in the boundary point list PL to the reference plane RF to obtain a new boundary list PL'.
所述的参考平面RF局部坐标系PS的构造步骤如下:The construction steps of the reference plane RF local coordinate system PS are as follows:
(1)获取面RF的几何中点P0,作为构建局部坐标系的原点AO;(1) Obtain the geometric midpoint P 0 of the surface RF as the origin A O of constructing the local coordinate system;
(2)获取面RF的指向材料外的法向方向,该法向作为局部坐标系的Z向并以RF轮廓上连线最长的相邻两点确定的方向作为X轴方向。(2) Obtain the normal direction of the surface RF pointing to the outside of the material. The normal direction is taken as the Z direction of the local coordinate system and the direction determined by the longest adjacent two points on the RF contour is taken as the X-axis direction.
所述的设定三维数学盒子搜索空间V的高度并构建出搜索空间V时为了查找的完整性以及尽可能的缩小空间V范围大小,需要依据加工余量以及刀具参数设置V的高度,其本质是在局部坐标系PS中对由三个方向的极大值构成的点的的Z值进行修正。已知刀具直径为D及加工余量a,因为刀具在切削时,对于刀具侧刃切削的情况下,刀位点的理论位置应该是在F沿其指向材料外的法向对其偏置(D/2+a)mm处,所以将L取(D+a)可以保证查找结果的完整性;而对于刀具底齿切削的情况下,刀位点的理论值是在F沿其指向材料外的法向对其偏置amm处,L取(D+a)完全可以保证查找结果的完整性。修正后的PA2的坐标为PA3(x2,y2,z2+D+a),以点PA1与点PA3为对角点的三维长方体区域即是数学盒子搜索空间V。即所述的三维数学盒子搜索空间V是以点PA1与点PA3为对角点的三维长方体区域,PA3是修正后的PA2的坐标,PA3(x2,y2,z2+D+a),D为刀具直径,a为加工余量;因为刀具在切削时,对于刀具侧刃切削的情况下,刀位点的理论位置应该是在F沿其指向材料外的法向对其偏置(D/2+a)mm处,所以取(D+a)可以保证查找结果的完整性;而对于刀具底齿切削的情况下,刀位点的理论值是在沿其指向材料外的法向对其偏置amm处,取(D+a)完全可以保证查找结果的完整性。When setting the height of the search space V of the three-dimensional mathematical box and constructing the search space V, in order to complete the search and reduce the size of the space V as much as possible, it is necessary to set the height of V according to the machining allowance and tool parameters. It is to correct the Z value of the point composed of the maximum values in the three directions in the local coordinate system PS. It is known that the tool diameter is D and the machining allowance a, because when the tool is cutting, in the case of side edge cutting, the theoretical position of the tool point should be offset from F along its normal direction pointing out of the material ( D/2+a) mm, so taking L as (D+a) can ensure the integrity of the search results; and for the cutting of the bottom tooth of the tool, the theoretical value of the tool position point is when F points out of the material At the offset amm of the normal direction of L, (D+a) can fully guarantee the integrity of the search results. The coordinates of the corrected P A2 are P A3 (x 2 , y 2 , z 2+ D+a), and the three-dimensional cuboid area with the points P A1 and P A3 as diagonal points is the mathematical box search space V. That is to say, the three-dimensional mathematical box search space V is a three-dimensional cuboid area with points P A1 and P A3 as diagonal points, P A3 is the coordinates of P A2 after correction, and P A3 (x 2 , y 2 , z 2 + D+a), D is the diameter of the tool, and a is the machining allowance; because the tool is cutting, in the case of side edge cutting, the theoretical position of the tool point should be along the normal direction of F pointing out of the material It is offset by (D/2+a) mm, so taking (D+a) can ensure the integrity of the search results; and for the cutting of the bottom tooth of the tool, the theoretical value of the tool position point is along its direction The normal direction outside the material is offset by amm, and taking (D+a) can fully guarantee the integrity of the search results.
本发明的有益效果:Beneficial effects of the present invention:
1)本发明不依赖于具体的CAD/CAM平台、加工操作及加工驱动几何类型,通用性强。1) The present invention does not depend on specific CAD/CAM platforms, processing operations and processing drive geometry types, and has strong versatility.
2)本发明的方法运算速度快,可以快速得到加工零件某一局部的所有加工操作。2) The calculation speed of the method of the present invention is fast, and all the processing operations of a certain part of the processed part can be quickly obtained.
3)本发明统一选取几何面作为搜索基本单元,使用简单。3) The present invention uniformly selects geometric planes as the basic search unit, which is easy to use.
4)本发明解决了查找零件局部位置加工操作过程繁琐,效率低的问题,尤其适用于包含大量加工操作的大型结构件数控加工程序编制。4) The present invention solves the problem of cumbersome and low-efficiency processing operations for finding the local positions of parts, and is especially suitable for the programming of numerical control processing programs for large-scale structural parts involving a large number of processing operations.
附图说明Description of drawings
图1本发明的基于数学盒子的加工操作快速查找定位方法流程图。Fig. 1 is a flow chart of the present invention's fast search and positioning method for processing operations based on a math box.
图2所示为本发明中点选的几何面F是平面的情况下,在局部坐标系PS中由两点PA1(x1,y1,z1)与点PA3(x2,y2,z2+L)构建的数学盒子搜索空间V示意图。其中x1,y1,z1分别为F在PS坐标系中X、Y、Z三个方向上最小值,x2,y2,z2分别为在PS坐标系中X、Y、Z三个方向上最大值,L为数学盒子搜索空间V高度,考虑到工程应用将其设置为为(D+a)mm。Fig. 2 shows that in the present invention, the selected geometric surface F is a plane, in the local coordinate system PS by two points P A1 (x 1 , y 1 , z 1 ) and point P A3 (x 2 , y 2 , z 2 +L) Schematic diagram of the mathematical box search space V. Among them, x 1 , y 1 , z 1 are the minimum values of F in the three directions of X, Y, and Z in the PS coordinate system, and x 2 , y 2 , z 2 are the three directions of X, Y, and Z in the PS coordinate system. The maximum value in each direction, L is the height of the search space V of the math box, and it is set to (D+a) mm considering engineering applications.
图3所示为本发明中点选的几何面F是曲面的情况下,如图中所示黑实线部分为曲面,先采用最小二乘法将该曲面拟合成虚线部分的平面RF。Fig. 3 shows that under the situation that the selected geometrical surface F in the present invention is a curved surface, as shown in the figure, the black solid line part is a curved surface, and the curved surface is first fitted into the plane RF of the dotted line part by the least squares method.
图4所示为由拟合面参考面RF上的两点构建的数学盒子搜索空间V示意图。于RF处构建局部坐标系PS,其中指向材料外的法向为Z轴方向,考虑工程应用X轴方向为RF轮廓上连线最长的相邻两点确定的方向,Y轴方向根据右手定律确定。获取RF在局部坐标PS中的点PA1(x1,y1,z1)与点PA2(x2,y2,z2),其中x1,y1,z1分别为RF在PS坐标系中X、Y、Z三个方向上最小值,x2,y2,z2分别为在PS坐标系中X、Y、Z三个方向上最大值,L为数学盒子搜索空间V高度,考虑到工程应用将其理论值为(D+a)mm。Fig. 4 is a schematic diagram of the mathematical box search space V constructed by two points on the fitting plane reference plane RF. Construct a local coordinate system PS at RF, where the normal direction pointing to the outside of the material is the Z-axis direction. Considering the engineering application, the X-axis direction is the direction determined by the longest adjacent two points on the RF contour, and the Y-axis direction is according to the right-hand law Sure. Obtain the point P A1 (x 1 , y 1 , z 1 ) and point P A2 (x 2 , y 2 , z 2 ) of RF in the local coordinates PS, where x 1 , y 1 , z 1 are RF in PS The minimum value in the three directions of X, Y, and Z in the coordinate system, x 2 , y 2 , and z 2 are the maximum values in the three directions of X, Y, and Z in the PS coordinate system, and L is the height of the search space V of the math box , considering the engineering application, its theoretical value is (D+a) mm.
图5为通过创建的数学盒子搜索空间V查找加工操作过程的示意图。其中以P1P2为对角点的长方体代表构建的数学盒子搜索空间V,黑点代表某一个或者多个加工操作所包含的刀位点,若某个刀位点位于该数学盒子搜索空间V内则说明刀位点所属的加工操作是查找的对象。Fig. 5 is a schematic diagram of searching the processing operation process through the created math box search space V. Among them, the cuboid with P 1 P 2 as the diagonal point represents the constructed mathematical box search space V, and the black dots represent the tool points contained in one or more machining operations. If a certain tool point is located in the mathematical box search space In V, it indicates that the processing operation to which the tool position belongs is the object of search.
图6为实际应用与数学盒子搜索空间V理论相结合的一个简图。图中的细实线代表加工刀轨,轨迹上的黑实心点即是刀位点,粗虚线框代表构建的虚拟数学盒子搜索空间V,位于槽腔底面中心部位的白色坐标系即是局部坐标系PS,白色实心圆P代表该刀轨上的倒数第二个刀位点,P1、P2与P3分别为构建数学盒子搜索空间V的三个关键点,P2与P3之间的距离为搜索空间的高度L,即为(D+a)mm。Fig. 6 is a schematic diagram of the combination of practical application and mathematical box search space V theory. The thin solid line in the figure represents the machining tool path, the black solid point on the path is the tool position point, the thick dotted line frame represents the virtual mathematical box search space V constructed, and the white coordinate system located at the center of the bottom surface of the cavity is the local coordinate system PS, the white solid circle P represents the penultimate tool point on the tool path, P 1 , P 2 and P 3 are the three key points for constructing the mathematical box search space V, and the distance between P 2 and P 3 The distance is the height L of the search space, which is (D+a) mm.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
如图1-6所示。As shown in Figure 1-6.
一种大型复杂零件加工操作的快速查找定位方法,如图1所示,它包括以下步骤:A fast search and positioning method for large and complex part processing operations, as shown in Figure 1, it includes the following steps:
步骤1:在CAM环境下打开零件工艺模型。零件工艺模型是指包含零件几何模型,加工坐标系、机床、刀具等信息以及零件加工操作的模型。Step 1: Open the part process model in the CAM environment. The part process model refers to the model that includes the part geometry model, the processing coordinate system, the machine tool, the cutting tool and other information, as well as the part processing operation.
步骤2:从零件模型上点选需要查看其加工轨迹的几何面F。Step 2: From the part model, click the geometric surface F whose machining track needs to be viewed.
步骤3:若F是平面,则直接将其当成参考平面RF;若F是曲面,则采用最小二乘Step 3: If F is a plane, take it directly as the reference plane RF; if F is a curved surface, use least squares
法通过边界点列表将其拟合成参考平面平面RF。The method fits it to the reference plane plane RF through the list of boundary points.
采用最小二乘法拟合平面的具体步骤如下:The specific steps of using the least squares method to fit the plane are as follows:
a)设基准平面RF方程为z=a0x+a1y+a2,a0,a1,a2是方程系数。a) Let the reference plane RF equation be z=a 0 x+a 1 y+a 2 , where a 0 , a 1 , and a 2 are equation coefficients.
b)根据边界点列表PL中的n个点,(n≥3):(xi,yi,zi),i=0,1,…,n-1,要用点(xi,yi,zi),i=0,1,…,n-1拟合计算上述平面方程,则使:b) According to the n points in the boundary point list PL, (n≥3): (x i , y i , z i ), i=0,1,...,n-1, use the point (x i ,y i , z i ), i=0,1,…,n-1 to fit and calculate the above plane equation, then make:
c)要使得S最小,应满足:k=0,1,2c) To make S the smallest, it should satisfy: k=0,1,2
即:
有,
或,
解上述线形方程组,得:a0,a1,a2。Solve the above linear equations to get: a 0 , a 1 , a 2 .
d)即得基准平面RF:z=a0x+a1y+a2。d) The reference plane RF is obtained: z=a 0 x+a 1 y+a 2 .
e)将边界点列表PL中的n个点投影至基准平面RF,得到新的边界列表PL’。步骤4:构造参考平面RF局部坐标系PS。构造步骤如下:e) Project n points in the boundary point list PL to the reference plane RF to obtain a new boundary list PL'. Step 4: Construct the reference plane RF local coordinate system PS. The construction steps are as follows:
(1)获取面RF的几何中点P0,作为构建局部坐标系的原点AO;(1) Obtain the geometric midpoint P 0 of the surface RF as the origin A O of constructing the local coordinate system;
(2)获取面RF的指向材料外的法向方向,该法向作为局部坐标系的Z向:考虑工程实际应用以RF轮廓上连线最长的相邻两点确定的方向作为X轴方向。(2) Obtain the normal direction of the surface RF pointing to the outside of the material, which is used as the Z direction of the local coordinate system: considering the practical application of engineering, the direction determined by the longest adjacent two points on the RF contour is used as the X-axis direction .
步骤5:获取RF上在局部坐标系PS中的两点PA1(x1,y1,z1)与PA2(x2,y2,z2),其中x1,y1,z1分别为RF在PS坐标系中X、Y、Z三个方向上最小值,x2,y2,z2分别为在PS坐标系中X、Y、Z三个方向上最大值。Step 5: Obtain two points P A1 (x 1 , y 1 , z 1 ) and P A2 (x 2 , y 2 , z 2 ) in the local coordinate system PS on RF, where x 1 , y 1 , z 1 are the minimum values of RF in the X, Y, and Z directions of the PS coordinate system, and x 2 , y 2 , and z 2 are the maximum values in the X, Y, and Z directions of the PS coordinate system, respectively.
步骤6:设定三维数学盒子搜索空间V的高度并构建出搜索空间V。为了查找的完整性以及尽可能的缩小空间V范围大小,需要依据加工余量以及刀具参数设置V的高度,其本质是在局部坐标系PS中对由三个方向的极大值构成的点的的Z值进行修正。已知刀具直径为D及加工余量a,因为刀具在切削时,对于刀具侧刃切削的情况下,刀位点的理论位置应该是在F沿其指向材料外的法向对其偏置(D/2+a)mm处,所以将L取(D+a)可以保证查找结果的完整性;而对于刀具底齿切削的情况下,刀位点的理论值是在F沿其指向材料外的法向对其偏置amm处,L取(D+a)完全可以保证查找结果的完整性。修正后的PA2的坐标为PA3(x2,y2,z2+D+a),以点PA1与点PA3为对角点的三维长方体区域即是数学盒子搜索空间V。Step 6: Set the height of the search space V of the three-dimensional mathematical box and construct the search space V. In order to complete the search and reduce the size of the space V as much as possible, it is necessary to set the height of V according to the machining allowance and tool parameters. The Z value is corrected. It is known that the tool diameter is D and the machining allowance a, because when the tool is cutting, in the case of side edge cutting, the theoretical position of the tool point should be offset from F along its normal direction pointing out of the material ( D/2+a) mm, so taking L as (D+a) can ensure the integrity of the search results; and for the cutting of the bottom tooth of the tool, the theoretical value of the tool position point is when F points out of the material At the offset amm of the normal direction of L, (D+a) can fully guarantee the integrity of the search results. The coordinates of the corrected P A2 are P A3 (x 2 , y 2 , z 2+ D+a), and the three-dimensional cuboid area with the points P A1 and P A3 as diagonal points is the mathematical box search space V.
步骤7:提取零件加工文件中所有加工操作以及每个加工操作包含的所有刀位点列表PRL。Step 7: Extract all processing operations in the part processing file and all tool location lists PRL contained in each processing operation.
步骤8:循环遍历零件工艺模型中所有的加工操作,将刀位点落在数学盒子搜索空间V内的加工操作记录下来,并记录该加工操作所在的工序、工步信息。Step 8: Cycle through all the processing operations in the part process model, record the processing operations whose tool positions fall in the search space V of the math box, and record the process and step information of the processing operations.
步骤9:用户根据需要,从得到的加工操作列表中选择需要的加工操作。Step 9: The user selects the required processing operation from the obtained processing operation list according to the requirement.
由上可见,本发明的实质是将模型上的几何面作为输入条件,通过获取平面上或者曲面拟合后的平面在构建的局部坐标系中的两个特殊点坐标,在考虑工程实际应用的情况,构建数学盒子搜索空间V,以遍历的方式判断各个加工操作中是否存在刀位点落在搜索空间V之中的情况,存在则将刀轨显示在屏幕中,并将其记录保存,同时记录其所在的工序以及工步信息,并一同显示于对话框中,作为用户选择定位的参考信息,对用户从查找到的操作集合中点选的某个操作,实现双击打开可以进行修改等操作。It can be seen from the above that the essence of the present invention is to use the geometric surface on the model as an input condition, and obtain two special point coordinates in the local coordinate system of the plane after fitting the plane or the curved surface, considering the practical application of engineering In this case, construct a mathematical box search space V, judge whether there is a situation that the tool position falls in the search space V in each processing operation in a traversal manner, and if it exists, the tool path will be displayed on the screen and its record will be saved, and at the same time Record the process and step information it is in, and display it in the dialog box together, as the reference information for the user to select and locate, and realize double-clicking to open an operation that can be modified and other operations for the user to click on the operation set found .
本发明的构建数学盒子搜索空间V与查找操作的具体过程如图2、图3、图4、图5所示,详述如下:The specific process of constructing the math box search space V and the search operation of the present invention is shown in Figure 2, Figure 3, Figure 4, and Figure 5, and is described in detail as follows:
1)当点选模型上的几何面F是平面时,如图2所示,可以得到其在当前加工坐标下的几何中心点坐标,该坐标作为局部坐标系的原点Ao,以平面F指向材料外法向方向作为Z轴方向,以F轮廓上连线最长的两点确定的方向作为X轴方向,由该X与Z轴方向依据笛卡尔坐标系右手定则确定Y轴方向,从而确定局部坐标系PS。1) When the geometric surface F on the selected model is a plane, as shown in Figure 2, the coordinates of its geometric center point under the current machining coordinates can be obtained, and this coordinate is used as the origin A o of the local coordinate system, pointing to the plane F The outer normal direction of the material is taken as the Z-axis direction, and the direction determined by the two longest points on the F contour is taken as the X-axis direction, and the X-axis direction and the Z-axis direction are determined according to the right-hand rule of the Cartesian coordinate system to determine the Y-axis direction, so that Determine the local coordinate system PS.
2)当点选模型上的几何面F是曲面时,如图3、图4所示,首先采用最小二乘法将曲面拟合成平面RF,得到RF在当前加工坐标下的几何中心点坐标,该坐标作为局部坐标系的原点Ao,以RF指向材料外方向的法向作为Z轴方向,考虑工程应用以RF轮廓上连线最长的相邻两点确定的方向作为X轴方向,由该X与Z轴方向依据笛卡尔坐标系右手定则确定Y轴方向,从而确定局部坐标系PS。2) When the geometric surface F on the selected model is a curved surface, as shown in Figure 3 and Figure 4, first use the least square method to fit the curved surface into a plane RF, and obtain the geometric center point coordinates of RF under the current processing coordinates, This coordinate is taken as the origin A o of the local coordinate system, and the normal direction of the RF pointing to the outside of the material is taken as the Z-axis direction. Considering engineering applications, the direction determined by the longest adjacent two points on the RF contour is taken as the X-axis direction. The directions of the X and Z axes determine the direction of the Y axis according to the right-hand rule of the Cartesian coordinate system, thereby determining the local coordinate system PS.
采用最小二乘法拟合平面的具体步骤如下:The specific steps of using the least squares method to fit the plane are as follows:
a)设基准平面RF方程为z=a0x+a1y+a2,a0,a1,a2是方程系数。a) Let the reference plane RF equation be z=a 0 x+a 1 y+a 2 , where a 0 , a 1 , and a 2 are equation coefficients.
b)根据边界点列表PL中的n个点,(n≥3):(xi,yi,zi),i=0,1,…,n-1,要用点(xi,yi,zi),i=0,1,…,n-1拟合计算上述平面方程,则使:b) According to the n points in the boundary point list PL, (n≥3): (x i , y i , z i ), i=0,1,...,n-1, use the point (x i ,y i , z i ), i=0,1,…,n-1 to fit and calculate the above plane equation, then make:
c)要使得S最小,应满足:k=0,1,2c) To make S the smallest, it should satisfy: k=0,1,2
即:
有,
或,
解上述线形方程组,得:a0,a1,a2。Solve the above linear equations to get: a 0 , a 1 , a 2 .
d)即得基准平面RF:z=a0x+a1y+a2。d) The reference plane RF is obtained: z=a 0 x+a 1 y+a 2 .
e)将边界点列表PL中的n个点投影至基准平面RF,得到新的边界列表PL’。e) Project n points in the boundary point list PL to the reference plane RF to obtain a new boundary list PL'.
3)获取RF平面在局部坐标PS中的PA1(x1,y1,z1)与PA2(x2,y2,z2),其中x1,y1,z1分别为RF平面在PS坐标系中X、Y、Z三个方向上最小值,x2,y2,z2分别为在PS坐标系中X、Y、Z三个方向上最大值。3) Obtain P A1 (x 1 , y 1 , z 1 ) and P A2 (x 2 , y 2 , z 2 ) of the RF plane in the local coordinate PS, where x 1 , y 1 , z 1 are the RF plane The minimum value in the three directions of X, Y, and Z in the PS coordinate system, and x 2 , y 2 , and z 2 are the maximum values in the three directions of X, Y, and Z in the PS coordinate system.
4)考虑到工程实际应用,数学盒子搜索空间V的高度设置为(D+a)mm,由此得到数学盒子搜索空间另一对角点PA3(x2,y2,z2+D+a),由PA1与PA3构建数学盒子搜索空间V,V=Box(PA1,PA3)。4) Considering the practical application of engineering, the height of the math box search space V is set to (D+a) mm, thus obtaining the other diagonal point P A3 (x 2 ,y 2 ,z 2 +D+ a), Construct a mathematical box search space V from P A1 and P A3 , V=Box(P A1 , P A3 ).
5)获取加工文件中所有的加工操作ListOp,ListOp={P1,P2,P3……Pn},n∈N*。5) Get all the processing operations ListOp in the processing file, ListOp={P 1 ,P 2 ,P 3 ......P n },n∈N * .
6)获取某个确定加工操作中的刀位点坐标Px(y),x代表加工操作的序号,y为第x个加工操作中的刀位点序号。6) Obtain the coordinates P x (y) of the tool position in a certain processing operation, x represents the serial number of the processing operation, and y is the serial number of the tool position in the xth processing operation.
7)如果某个刀位点坐标值存在于构建的数学盒子搜索空间V之中,则该操作符合查找条件;Px(y)∈V,得到符合条件的加工操作集合ReOpList。7) If the coordinate value of a certain tool position exists in the constructed mathematical box search space V, the operation meets the search conditions; P x (y)∈V, and the processing operation set ReOpList that meets the conditions is obtained.
如图6所示在局部坐标系中P1点的坐标为(41,25.5,0),P2点的坐标为(-41,-25.5,0),P3点的坐标为(x2,y2,z2+D+a),在这刀具直径为20mm,加工余量0mm,所以P3坐标为(-41,-25.5,20),粗虚线表示的搜索空间V=Box(P1,P3),由图所示有大量的刀位点落入V中,其中红色实心圆P代表的倒数第二个刀位点其坐标为Px(2)(26.5,10,0)由于Px(2)∈V,所以该加工操作符合查找条件。As shown in Figure 6, the coordinates of point P 1 in the local coordinate system are (41, 25.5, 0), the coordinates of point P 2 are (-41, -25.5, 0), and the coordinates of point P 3 are (x 2 , y 2 , z 2 +D+a), where the tool diameter is 20mm, and the machining allowance is 0mm, so the coordinates of P 3 are (-41, -25.5, 20), and the search space represented by the thick dashed line is V=Box(P 1 , P 3 ), as shown in the figure, there are a large number of tool positions falling into V, and the penultimate tool position represented by the red solid circle P has the coordinates of P x (2) (26.5, 10,0) due to P x (2) ∈ V, so the processing operation meets the search conditions.
8)点选ReOpList中任意加工操作,显示刀轨,达到一目了然的效果。8) Click any processing operation in ReOpList to display the tool path, so as to achieve a clear effect.
9)以上是基于数学盒子的加工操作快速查找定位方法流程,最后用户根据需要,从得到的加工操作列表中选择需要的加工操作,双击打开这些加工操作便可以进行参数修改等操作。9) The above is the process of quickly searching and locating the processing operations based on the math box. Finally, the user selects the required processing operations from the obtained processing operation list according to the needs, and double-clicks to open these processing operations to perform parameter modification and other operations.
本发明未涉及部分均与现有技术相同或可采用现有技术加以实现。The parts not involved in the present invention are the same as the prior art or can be realized by adopting the prior art.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310208054.2A CN103279608B (en) | 2013-05-28 | 2013-05-28 | The fast finding localization method of large complicated part process operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310208054.2A CN103279608B (en) | 2013-05-28 | 2013-05-28 | The fast finding localization method of large complicated part process operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103279608A CN103279608A (en) | 2013-09-04 |
CN103279608B true CN103279608B (en) | 2015-12-02 |
Family
ID=49062125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310208054.2A Active CN103279608B (en) | 2013-05-28 | 2013-05-28 | The fast finding localization method of large complicated part process operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103279608B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103454975B (en) * | 2013-09-18 | 2016-08-10 | 沈阳飞机工业(集团)有限公司 | Parametrization numerical control end mill design and manufacture technology method |
CN104050336A (en) * | 2014-06-27 | 2014-09-17 | 东南大学 | Method for judging restrained condition of three-dimensional geometrical elements based on track intersection |
CN104391481B (en) | 2014-10-29 | 2018-01-23 | 北京配天技术有限公司 | Machining movement locus space detection method, device and Digit Control Machine Tool |
CN116822190B (en) * | 2023-06-25 | 2024-06-11 | 成都飞机工业(集团)有限责任公司 | Automatic inspection method for aircraft digital-analog assembly normal vector |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561831A (en) * | 2008-04-16 | 2009-10-21 | 鸿富锦精密工业(深圳)有限公司 | Spare part outside measurement computing system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6982711B1 (en) * | 2000-09-18 | 2006-01-03 | Hitachi, Ltd. | Solid shape describing method and device therefor and solid shape design support system using them |
-
2013
- 2013-05-28 CN CN201310208054.2A patent/CN103279608B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561831A (en) * | 2008-04-16 | 2009-10-21 | 鸿富锦精密工业(深圳)有限公司 | Spare part outside measurement computing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN103279608A (en) | 2013-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109976259B (en) | VTK-based robot free-form surface workpiece polishing offline programming method | |
CN103093036B (en) | Work pieces process emulation | |
CN103454972B (en) | Based on the method for the cutter five-shaft numerical control grinding automated programming of UG NX API | |
Lin et al. | A generic uniform scallop tool path generation method for five-axis machining of freeform surface | |
CN102527554A (en) | Spray gun track planning method for free-form surface spraying robot | |
CN101615022A (en) | Radius compensation method for three-axis CNC machine tools based on surface reconstruction | |
CN107622530B (en) | An Efficient and Robust Triangulation Network Cutting Method | |
Li et al. | Arc–surface intersection method to calculate cutter–workpiece engagements for generic cutter in five-axis milling | |
US10062202B2 (en) | System and methods of generating a computer model of a composite component | |
CN103279608B (en) | The fast finding localization method of large complicated part process operation | |
CN107247444A (en) | It is a kind of to be used to generate projection algorithm of the curved surface without interference five-axis robot track | |
CN111324977A (en) | Simulation of Cutting Methods Using Dynamic Position Errors | |
Li et al. | A tracking-based numerical algorithm for efficiently constructing the feasible space of tool axis of a conical ball-end cutter in five-axis machining | |
CN104794272A (en) | Machining method of airplane component | |
CN103544343A (en) | Serialized and parameterized modeling method of power chuck | |
JPH0457105A (en) | Curved surface working method | |
CN103365243A (en) | Method for rapidly generating corner side milling process path | |
Sun et al. | Iso-planar feed vector-fields-based streamline tool path generation for five-axis compound surface machining with torus-end cutters | |
CN110955934A (en) | Realization method of cutting simulation for real-time monitoring of machining | |
CN110716502B (en) | Tool path generation method and device for engine blade repair | |
CN102147221A (en) | Three-coordinate measuring method of blade with T-shaped root | |
CN106054814A (en) | Image grayscale-based computer aided machining method | |
CN104392030B (en) | Curved surface machining method based on STL (Standard Template Library) three-dimensional model | |
US20040153296A1 (en) | Horizontally structured CAD/CAM coordinate system | |
CN105700469A (en) | Cutter location point solving method oriented to triangular mesh curved surface numerical control processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |