[go: up one dir, main page]

CN108508848B - An Evaluation Method of Milling Contour Error Based on Interpolation Data - Google Patents

An Evaluation Method of Milling Contour Error Based on Interpolation Data Download PDF

Info

Publication number
CN108508848B
CN108508848B CN201810356880.4A CN201810356880A CN108508848B CN 108508848 B CN108508848 B CN 108508848B CN 201810356880 A CN201810356880 A CN 201810356880A CN 108508848 B CN108508848 B CN 108508848B
Authority
CN
China
Prior art keywords
tool
cutter
point
contour
workpiece
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
Application number
CN201810356880.4A
Other languages
Chinese (zh)
Other versions
CN108508848A (en
Inventor
高嵩
刘春辉
杨建中
周会成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201810356880.4A priority Critical patent/CN108508848B/en
Publication of CN108508848A publication Critical patent/CN108508848A/en
Application granted granted Critical
Publication of CN108508848B publication Critical patent/CN108508848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/41Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by interpolation, e.g. the computation of intermediate points between programmed end points to define the path to be followed and the rate of travel along that path
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34083Interpolation general
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

本发明公开了一种基于插补数据的铣削加工轮廓误差的评估方法,属于加工误差评估领域,包括如下步骤:步骤1:将工件设计曲面三角面片化,得到工件几何模型;步骤2:建立刀具有效切削轮廓的几何模型;步骤3:构建轮廓误差并行计算模型,基于插补数据分组并行计算各组的轮廓误差并返回结果。本发明在插补数据上每个刀位点通过刀具有效切削轮廓与加工曲面的设计模型进行对比来计算轮廓误差,各点之间的轮廓误差计算没有联系,而且每个刀位点算出的轮廓误差可以与该刀位点位置对应,可以并行计算各刀位点的轮廓误差,效率更高,并且考虑了G代码、数控系统以及伺服系统的误差,更加接近实际加工过程中刀具相对加工曲面的运动位置。

The invention discloses a method for evaluating the contour error of milling machining based on interpolation data, which belongs to the field of processing error evaluation and includes the following steps: Step 1: Triangular surface of the workpiece design surface is sliced to obtain the geometric model of the workpiece; Step 2: Establishing The geometric model of the effective cutting contour of the tool; Step 3: Construct a parallel calculation model of the contour error, calculate the contour error of each group in parallel based on the interpolation data grouping, and return the result. In the present invention, each tool position point on the interpolation data calculates the contour error by comparing the effective cutting contour of the tool with the design model of the processed surface. The error can correspond to the position of the tool point, and the contour error of each tool point can be calculated in parallel, which is more efficient, and takes into account the errors of the G code, the numerical control system and the servo system, and is closer to the actual machining process. exercise position.

Description

一种基于插补数据的铣削加工轮廓误差的评估方法An Evaluation Method of Milling Contour Error Based on Interpolation Data

技术领域technical field

本发明属于加工误差评估领域,更具体地,涉及一种基于插补数据的铣削加工轮廓误差的评估方法。The invention belongs to the field of processing error evaluation, and more particularly relates to an evaluation method of milling processing contour error based on interpolation data.

背景技术Background technique

传统生产中,由于各种加工误差因素的存在,在成批加工之前需要使用三坐标测量仪测量试切工件进行精度评估,保证零件加工精度。三坐标测量仪评价方法的缺点是需要先试切工件,再使用三坐标测量仪测量试切后的轮廓误差,成本高,而且测量方法效率低,测量时间长。In traditional production, due to the existence of various processing error factors, it is necessary to use a three-coordinate measuring instrument to measure the test-cut workpieces for accuracy evaluation before batch processing to ensure the processing accuracy of parts. The disadvantage of the three-coordinate measuring instrument evaluation method is that it is necessary to try to cut the workpiece first, and then use the three-coordinate measuring instrument to measure the contour error after the trial cutting. The cost is high, and the measurement method is inefficient and takes a long time.

除了使用测量设备评价试切轮廓误差,现有一种轮廓误差虚拟评估方法,通过加工仿真软件或者三维引擎仿真加工过程来评价轮廓误差,例如在UG和Verycut等CAM软件中有这样的功能,主要是通过G代码进行加工仿真。在G代码加工仿真过程中,通过刀具与工件毛坯求交计算,比较IPW(In Process Workpiece)与设计模型来获得仿真误差。图1展示了通过三坐标测量仪、G代码加工仿真测量加工轮廓误差的基本流程。In addition to using measuring equipment to evaluate the contour error of trial cutting, there is a virtual evaluation method for contour error, which evaluates the contour error through processing simulation software or 3D engine simulation process. For example, there are such functions in CAM software such as UG and Verycut, mainly Machining simulation through G code. During the G code machining simulation process, the simulation error is obtained by comparing the IPW (In Process Workpiece) with the design model through the calculation of intersection between the tool and the workpiece blank. Figure 1 shows the basic process of measuring the machining contour error through a three-coordinate measuring instrument and G-code machining simulation.

G代码是保证设计曲面给定轮廓精度的加工指令,数据密度小。而且基于G代码仿真的方法在前后刀具点之间毛坯求交计算是相关联的,前一刀位点刀具与毛坯计算的结果是后一刀位点求交计算的毛坯,不可以相互独立,仿真需要按G代码的顺序进行,难以做到并行仿真。G code is a processing instruction to ensure the given contour accuracy of the design surface, and the data density is small. Moreover, in the method based on G code simulation, the intersection calculation of the blank between the front and rear tool points is related. The result of the calculation of the tool and the blank at the previous tool point is the blank calculated by the intersection calculation of the next tool point, which cannot be independent of each other. The simulation needs Carry out in the order of G code, it is difficult to achieve parallel simulation.

而一台三坐标测量仪不能做到并行测量,在加工仿真中也难以做到分开G代码并行仿真。However, a three-coordinate measuring instrument cannot perform parallel measurement, and it is also difficult to separate G code parallel simulation in processing simulation.

发明内容Contents of the invention

针对现有技术的以上缺陷或改进需求,本发明提供了一种基于插补数据的铣削加工轮廓误差的评估方法,其目的在于根据刀具有效切削轮廓,对刀位点的插补数据按照插补顺序进行分组,并行计算各组的刀具有效切削轮廓误差,由此实现在提高测量效率的同时实现仿真加工。Aiming at the above defects or improvement needs of the prior art, the present invention provides a method for evaluating milling contour errors based on interpolation data. Grouping is performed sequentially, and the effective cutting contour error of each group is calculated in parallel, thereby realizing simulation processing while improving measurement efficiency.

为实现上述目的,按照本发明的一个方面,提供了一种基于插补数据的铣削加工轮廓误差的评估方法,包括如下步骤:In order to achieve the above object, according to one aspect of the present invention, a method for evaluating milling contour errors based on interpolation data is provided, including the following steps:

步骤1:将工件设计曲面三角面片化,得到工件几何模型;Step 1: Thinning the triangular surface of the workpiece design surface to obtain the geometric model of the workpiece;

步骤2:根据刀具在工件几何模型上的加工轨迹,在刀具上建立刀具坐标系(X,Y,Z),原点O在刀位点位置,刀具运动速度在XOZ平面,Z轴沿着刀具轴线方向布置;Step 2: Establish a tool coordinate system (X, Y, Z) on the tool according to the machining track of the tool on the workpiece geometric model, the origin O is at the tool position, the tool movement speed is in the XOZ plane, and the Z axis is along the tool axis direction arrangement;

刀具的切削刃包括上圆锥面、过渡圆环面和下圆锥面三个部分,刀具有效切削轮廓包括上圆锥面有效切削轮廓SweepU,C、过渡圆环面有效切削轮廓SweepT,C以及下圆锥面有效切削轮廓SweepL,CThe cutting edge of the tool includes three parts: the upper conical surface , the transitional toroidal surface and the lower conical surface. Effective cutting profile of conical surface Sweep L,C :

其中,α为下圆锥面的半锥角,0≤α<90°,Among them, α is the half-cone angle of the lower conical surface, 0≤α<90°,

β为上圆锥面的半锥角,0≤β<90°,β is the half-cone angle of the upper conical surface, 0≤β<90°,

R1为过渡圆环的圆弧部分球心到刀轴的距离,R 1 is the distance from the center of the arc part of the transition ring to the tool axis,

R2为过渡圆环的圆弧部分的半径,R 2 is the radius of the arc portion of the transition ring,

L为切削刃的总长度,L is the total length of the cutting edge,

h为过渡圆环的圆弧部分的球心到刀具坐标系的OXY平面的距离;h is the distance from the center of the arc of the transition ring to the OXY plane of the tool coordinate system;

Vel.x为刀具速度在X轴方向上的分量,Vel.x is the component of the tool speed in the X-axis direction,

Vel.y为刀具速度在Y轴方向上的分量;Vel.y is the component of the tool speed in the Y-axis direction;

步骤3:根据刀具有效切削轮廓,对插补数据按照插补顺序进行分组,按照步骤3.1~3.3并行计算各组的刀具有效切削轮廓误差,步骤3.1~3.3如下:Step 3: According to the effective cutting contour of the tool, group the interpolation data according to the interpolation sequence, and calculate the effective cutting contour error of each group in parallel according to steps 3.1 to 3.3. Steps 3.1 to 3.3 are as follows:

步骤3.1、估算当前刀位点的刀具速度方向;Step 3.1. Estimating the direction of the tool speed at the current tool position;

步骤3.2、在不同的刀位点下,将刀具有效切削轮廓在刀具坐标系下的坐标转换到工件坐标系,得到工件坐标系下的刀具有效切削轮廓;Step 3.2, at different tool positions, the coordinates of the effective cutting contour of the tool in the tool coordinate system are converted to the workpiece coordinate system to obtain the effective cutting contour of the tool in the workpiece coordinate system;

步骤3.3、根据工件坐标系下的刀具有效切削轮廓,结合刀具理论轮廓计算各刀位点的有效切削轮廓误差并区分误差类型为欠切、过切还是理想加工。Step 3.3. According to the effective cutting contour of the tool in the workpiece coordinate system, combined with the theoretical contour of the tool, the effective cutting contour error of each tool position is calculated and the error type is distinguished as undercutting, overcutting or ideal machining.

进一步地,步骤3.2中,刀具坐标系到工件坐标系的转换矩阵RtoolToWork为:Further, in step 3.2, the conversion matrix R toolToWork from the tool coordinate system to the workpiece coordinate system is:

其中(x′,y′,z′)为工件坐标系下刀具速度矢量的单位向量,CL为工件坐标系下刀位点坐标;Where (x′, y′, z′) is the unit vector of the tool speed vector in the workpiece coordinate system, and CL is the coordinate of the tool position point in the workpiece coordinate system;

通过刀具坐标系到工件坐标系的转换矩阵求解工件坐标系下的瞬时轮廓:Solve the instantaneous contour in the workpiece coordinate system through the conversion matrix from the tool coordinate system to the workpiece coordinate system:

p=RtoolToWork·p′ (17)p = R toolToWork p' (17)

p为工件坐标系下有效切削轮廓上点的坐标,p′为刀具坐标系下有效切削轮廓上点的坐标,通过式(12)~(14)和式(17)得到工件坐标系下的刀具有效切削轮廓。p is the coordinate of a point on the effective cutting contour in the workpiece coordinate system, p′ is the coordinate of a point on the effective cutting contour in the tool coordinate system, and the tool in the workpiece coordinate system can be obtained by formulas (12)~(14) and formula (17) Effectively cuts contours.

进一步地,步骤3.3中,点铣时,通过刀具有效切削轮廓与设计曲面的交点个数n区分刀具当前刀位点处于欠切、过切还是理想加工情况:Further, in step 3.3, during point milling, the number n of intersection points between the effective cutting contour of the tool and the design surface is used to distinguish whether the current tool position of the tool is undercut, overcut or ideal processing:

当n=0时属于刀具欠切情况;欠切时轮廓误差表示为刀具有效切削轮廓与工件理想加工轮廓之间的最短距离ε;When n=0, it belongs to the undercutting condition of the tool; when undercutting, the contour error is expressed as the shortest distance ε between the effective cutting contour of the tool and the ideal machining contour of the workpiece;

当n=2时为过切情况;过切时,刀具有效切削轮廓与工件理论加工轮廓至少有两个交点P1、P2;过切时的轮廓误差衡量为刀具轮廓的在两个交点间的部分,即P1P2段曲线与理论刀具切削轮廓之间的单向豪斯多夫距离:When n=2, it is an overcutting situation; during overcutting, there are at least two intersection points P 1 and P 2 between the effective cutting contour of the tool and the theoretical machining contour of the workpiece; the contour error during overcutting is measured as the difference between the two intersection points of the tool contour The part of , that is, the one-way Hausdorff distance between the P 1 P 2 segment curve and the theoretical tool cutting profile:

其中,in,

A表示刀具轮廓上的P1P2段曲线,将A离散成一系列点a1,a2,a3…am,用集合表示为A={a1,a2,a3…am};B是工件理论加工轮廓曲面,工件理论加工轮廓曲面记为集合B={b1,b2,b3…bk};A represents the P 1 P 2 segment curve on the tool profile, and discretizes A into a series of points a 1 , a 2 , a 3 ...a m , expressed as A={a 1 ,a 2 ,a 3 ...a m } ; B is the theoretical machining contour surface of the workpiece, and the theoretical machining contour surface of the workpiece is recorded as the set B={b 1 ,b 2 ,b 3 ...b k };

当n=1时为理想加工情况;此时刀具有效切削轮廓与工件理论加工轮廓相切,轮廓误差为0;When n=1, it is an ideal processing situation; at this time, the effective cutting contour of the tool is tangent to the theoretical processing contour of the workpiece, and the contour error is 0;

侧铣时,将刀具有效切削轮廓离散成点P1,P2,...,Pt,将对应的工件理论轮廓离散成点P1′P2′,...,Pt′,P1,P2,...,Pt与P1′P2′,...,Pt′一一对应,矢量与工件理论轮廓在点Pt′上的法向量的夹角为如果则点Pt′处欠切,如果则为过切,如果则为理想加工情况。During side milling, the effective cutting contour of the tool is discretized into points P 1 , P 2 ,...,P t , and the corresponding theoretical workpiece contour is discretized into points P 1 ′P 2 ′,...,P t ′,P 1 ,P 2 ,...,P t have one-to-one correspondence with P 1 ′P 2 ′,...,P t ′, the vector The normal vector to the theoretical contour of the workpiece at the point P t The included angle is if Then point P t ′ is undercut, if is overcut if is an ideal processing situation.

进一步地,步骤2中,刀具的上圆锥、过渡圆环和下圆锥三个部分在刀具坐标系下的几何轮廓分别如下式所示:Further, in step 2, the geometric contours of the upper cone, transition ring and lower cone of the tool in the tool coordinate system are shown in the following formulas:

CSC=CSU,C∪CST,C∪CSL,C (7)CS C =CS U,C ∪CS T,C ∪CS L,C (7)

其中,in,

CSU,C为刀具上圆锥面的几何轮廓,CS U, C are the geometric contours of the conical surface on the tool,

CST,C为刀具过渡圆环面的几何轮廓,CS T, C is the geometric profile of the tool transition torus,

CSL,C为刀具下圆锥面的几何轮廓,CS L, C are the geometric contours of the lower conical surface of the tool,

CSC为刀具整个表面的几何轮廓。CS C is the geometric profile of the entire surface of the tool.

进一步地,步骤2中,在刀具运动的过程中,刀具的有效切削轮廓的数学模型由下式表示:Further, in step 2, during the tool movement, the mathematical model of the effective cutting profile of the tool is expressed by the following formula:

其中,为刀具表面各点的法向量,为刀具的切削方向;in, is the normal vector of each point on the tool surface, is the cutting direction of the tool;

刀具表面各点的法向量包括如下组成部分:The normal vector of each point on the tool surface Including the following components:

其中,in,

nU,C为刀具上圆锥面上各点的法向量,n U, C are the normal vectors of each point on the conical surface of the tool,

nT,C为刀具在过渡圆环上各点的法向量,n T, C are the normal vectors of the tool at each point on the transition ring,

nL,C(θ)为刀具下圆锥面各点的法向量。n L, C (θ) is the normal vector of each point on the lower conical surface of the tool.

进一步地,步骤3.1中,估算当前刀位点的刀具速度方向的方法如下:Further, in step 3.1, the method of estimating the tool speed direction at the current tool position is as follows:

对于插补的第一个刀位点P0,选择前三个刀位点P0、P1、P2拟合圆弧,以P0在该圆弧上的切矢作为P0处的刀具速度方向,其中,与矢量夹角小于180°;For the first tool point P 0 of interpolation, select the first three tool points P 0 , P 1 , and P 2 to fit the arc, and use the tangent vector of P 0 on the arc as the tool speed direction at P 0 , where, with vector The included angle is less than 180°;

对于插补的中间刀位点Pi,使用前一刀位点Pi-1、当前刀位点Pi和后一刀位点Pi+1三点拟合一圆弧,将当前刀位点Pi在该圆弧上的切线与矢量夹角小于180°的方向作为该刀位点上的刀具速度方向,i≥1;For the interpolated intermediate tool point P i , use the previous tool point P i-1 , the current tool point P i and the next tool point P i+1 to fit a circular arc, and the current tool point P The tangent and vector of i on the arc Directions where the included angle is less than 180° As the tool speed direction on the tool point, i≥1;

对于插补的最后一个刀位点,使用最后三个刀位点拟合圆弧,将最后一个刀位点在该圆弧上的切线方向作为该刀位点上的刀具速度方向。For the last tool point of interpolation, the last three tool points are used to fit the arc, and the tangent direction of the last tool point on the arc is As the tool speed direction on the tool point.

进一步地,还包括步骤4:根据步骤3.3得到的每个刀位点对应的刀具有效切削轮廓误差及误差类型,调整G代码,使刀具有效切削轮廓误差不超出预设的精度范围,从而实现加工仿真和模拟验证试切工件轮廓精度。Further, step 4 is also included: According to the effective cutting contour error and error type of the tool corresponding to each tool position obtained in step 3.3, adjust the G code so that the effective cutting contour error of the tool does not exceed the preset accuracy range, so as to realize machining Simulation and simulation verify the contour accuracy of the trial-cut workpiece.

总体而言,本发明所构思的以上技术方案与现有技术相比,能够取得下列有益效果:Generally speaking, compared with the prior art, the above technical solutions conceived by the present invention can achieve the following beneficial effects:

1、由于数控系统的插补数据是直接控制机床各轴运动的控制指令,数据密度大,本发明在插补数据的每个刀位点通过刀具有效切削轮廓与加工曲面的设计模型进行对比来计算轮廓误差,各点之间的轮廓误差计算没有联系,而且每个刀位点算出的轮廓误差可以与该刀位点位置对应,可以并行计算;本发明基于插补数据的仿真更加接近实际加工过程中刀具相对加工曲面的运动位置,考虑了G代码、数控系统以及伺服系统的误差,相比于现有技术中通过G代码加工仿真的方法,误差考虑更全面。1. Since the interpolation data of the numerical control system is a control command that directly controls the movement of each axis of the machine tool, the data density is high. The present invention compares the effective cutting contour of the tool with the design model of the processed surface at each tool position point of the interpolation data. Calculate the contour error, the contour error calculation between each point has no connection, and the contour error calculated by each tool point can correspond to the position of the tool point, and can be calculated in parallel; the simulation based on the interpolation data of the present invention is closer to the actual processing During the process, the movement position of the tool relative to the processing surface takes into account the errors of the G code, the numerical control system and the servo system. Compared with the method of processing and simulating through the G code in the prior art, the error consideration is more comprehensive.

2、本发明基于插补数据的方法考虑到了机床加工之前的误差,并且可以与基于G代码仿真的方法和三坐标测量仪测量方法结合使用,从而判断轮廓误差出自于哪个环节,兼容性好;2. The method based on interpolation data of the present invention takes into account the error before machine tool processing, and can be used in combination with the method based on G code simulation and the measurement method of the three-coordinate measuring instrument, so as to determine which link the contour error comes from, and has good compatibility;

3、基于插补数据的轮廓误差评价方法由于各刀位点的轮廓误差计算不相互关联,所以非常适合并行计算。3. The contour error evaluation method based on interpolation data is very suitable for parallel calculation because the contour error calculation of each tool position point is not related to each other.

附图说明Description of drawings

图1是现有三坐标测量仪、G代码加工仿真和本发明的基于插补数据的三种轮廓误差评价方法流程对比图;Fig. 1 is a flow comparison diagram of three kinds of contour error evaluation methods based on interpolation data of the existing three-coordinate measuring instrument, G code processing simulation and the present invention;

图2是扫掠体积和有效切削轮廓示意图;Fig. 2 is a schematic diagram of swept volume and effective cutting profile;

图3是七参数刀具定义,其中,3(a)为刀具坐标系示意图,3(b)为刀具切削刃结构示意图,3(c)为刀具参数示意图;Fig. 3 is the definition of a seven-parameter tool, wherein, 3(a) is a schematic diagram of the tool coordinate system, 3(b) is a schematic diagram of the cutting edge structure of the tool, and 3(c) is a schematic diagram of the tool parameters;

图4是刀具有效切削轮廓示意图;Fig. 4 is a schematic diagram of the effective cutting profile of the tool;

图5是本发明的基于插补数据并行计算轮廓误差模型;Fig. 5 is the contour error model based on interpolation data parallel calculation of the present invention;

图6是本发明的中间刀位点(即第一个刀位点和最后一个刀位点之间的刀位点)刀具速度方向示意图;Fig. 6 is a schematic diagram of the speed direction of the tool at the middle tool position point (that is, the tool position point between the first tool position point and the last tool position point) of the present invention;

图7是本发明的第一个刀位点刀具速度方向确定示意图;Fig. 7 is a schematic diagram of determining the speed direction of the tool at the first tool position point of the present invention;

图8是本发明的最后一个刀位点刀具速度方向确定示意图;Fig. 8 is a schematic diagram of determining the speed direction of the tool at the last tool position point of the present invention;

图9是本发明的欠切情况的轮廓误差计算示意图;Fig. 9 is a schematic diagram of contour error calculation in the undercut situation of the present invention;

图10是本发明的过切情况的轮廓误差计算示意图;Fig. 10 is a schematic diagram of contour error calculation in the case of overcut in the present invention;

图11理想情况情况的轮廓误差计算示意图;Figure 11 is a schematic diagram of contour error calculation in an ideal situation;

图12是本发明的点铣过程单个刀位点轮廓误差计算流程图;Fig. 12 is a flow chart of calculating the contour error of a single tool point in the point milling process of the present invention;

图13是本发明的侧铣加工示意图;Fig. 13 is a schematic diagram of side milling of the present invention;

图14是本发明的侧铣误差分布示意图;Fig. 14 is a schematic diagram of side milling error distribution of the present invention;

图15是本发明的插补数据逐点轮廓误差计算示意图;Fig. 15 is a schematic diagram of point-by-point contour error calculation of interpolation data in the present invention;

图16是插补数据的产生过程示意图。Fig. 16 is a schematic diagram of the generation process of interpolation data.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

在正式介绍本发明之前,先介绍几个术语:Before introducing the present invention formally, introduce a few terms first:

插补数据:Imputation data:

在数控加工过程中,数控系统所输入的加工代码为CAD/CAM系统后置处理得到的G代码,但是G代码不能直接控制机床各轴伺服系统电机转动,所以数控系统需要对G代码进行插补以及速度规划,得到控制各电机运动的指令数据,通过指令数据,各轴运动到指定的位置,本发明所用到的插补数据就是在每一个插补周期各轴伺服电机所反馈的实际位置数据。插补数据的产生过程如图16所示。In the process of CNC machining, the processing code input by the CNC system is the G code obtained by the post-processing of the CAD/CAM system, but the G code cannot directly control the rotation of the servo system motor of each axis of the machine tool, so the CNC system needs to interpolate the G code And speed planning, get the instruction data to control the movement of each motor, through the instruction data, each axis moves to the specified position, the interpolation data used in the present invention is the actual position data fed back by the servo motor of each axis in each interpolation cycle . The generation process of interpolation data is shown in Figure 16.

刀具有效切削轮廓的概念:The concept of the effective cutting contour of the tool:

当一个固体进行刚性运动时,它的外表面轮廓上的所有点构成空间上的区域称为扫掠体积。在数控加工中,当刀具沿着切削轨迹加工一个毛坯时,这个工件被加工掉的部分就是刀具扫掠体积。这个加工过程可以看作是刀具外表面的某个轮廓沿着刀具轨迹对毛坯进行切削,而这个刀具外表面的轮廓被定义为刀具的有效切削轮廓,如图2所示。When a solid is in rigid motion, all points on its outer surface contour form a spatial area called the swept volume. In CNC machining, when the tool processes a blank along the cutting path, the part of the workpiece that is machined is the swept volume of the tool. This machining process can be regarded as a certain contour of the outer surface of the tool cutting the blank along the tool trajectory, and the contour of the outer surface of the tool is defined as the effective cutting contour of the tool, as shown in Figure 2.

豪斯多夫距离(HD)基本定义如下:The basic definition of Hausdorff distance (HD) is as follows:

A={a1,a2,a3…am},B={b1,b2,b3…bk}分别表示两个有限点的集合。HD定义为A={a 1 , a 2 , a 3 ...a m }, B={b 1 , b 2 , b 3 ...b k } represent two sets of finite points respectively. HD is defined as

H(A,B)=max(h(A,B),h(B,A)) (1)H(A,B)=max(h(A,B),h(B,A)) (1)

式中h(A,B)称为从集合A~B的单向豪斯多夫距离,定义为In the formula, h(A,B) is called the one-way Hausdorff distance from the set A to B, defined as

h(B,A)称为从集合B~A的单向豪斯多夫距离,定义为h(B,A) is called the one-way Hausdorff distance from the set B to A, defined as

并行计算的概念:The concept of parallel computing:

并行计算(Parallel Computing)是指同时使用多种计算资源解决计算问题的过程,是提高计算机系统计算速度和处理能力的一种有效手段。它的基本思想是用多个处理器来协同求解同一问题,即将被求解的问题分解成若干个部分,各部分均由一个独立的处理机来并行计算。并行计算要求技术内容相互之间没有关系,可以分成多组数据同时计算。Parallel computing (Parallel Computing) refers to the process of using multiple computing resources to solve computing problems at the same time. It is an effective means to improve the computing speed and processing capacity of computer systems. Its basic idea is to use multiple processors to solve the same problem cooperatively, that is, to decompose the problem to be solved into several parts, and each part is calculated in parallel by an independent processor. Parallel computing requires that the technical content has no relationship with each other, and can be divided into multiple sets of data for simultaneous calculation.

下面介绍本发明一种基于插补数据的铣削加工轮廓误差的评估方法的主要步骤,请参照图1,本发明的步骤如下:Introduce below the main steps of a kind of evaluation method of the milling processing outline error based on interpolation data of the present invention, please refer to Fig. 1, the steps of the present invention are as follows:

步骤1:准备数据,包括:采集数控系统加工过程中的插补数据;工件模型的离散,将工件设计曲面三角面片化;从数控系统读取加工刀具参数。其中,采集插补数据、读取加工刀具参数也可以在后续步骤中需要用到时实时执行。Step 1: Prepare data, including: collecting interpolation data during the machining process of the CNC system; discretizing the workpiece model, making the triangular surface of the workpiece design surface into slices; reading the processing tool parameters from the CNC system. Among them, collecting interpolation data and reading processing tool parameters can also be executed in real time when needed in subsequent steps.

步骤2:建立刀具有效切削轮廓的几何模型Step 2: Establish a geometric model of the effective cutting profile of the tool

根据APT刀具的定义,一把通用刀具由七个参数确定。为了便于刀具的描述,在刀具上建立刀具坐标系(X,Y,Z),使刀具坐标满足原点O在刀位点位置,刀具运动速度在XOZ平面,Z沿着刀具轴线方向。以APT刀具为例,其定义方式如图3(a)、3(b)、3(c)所示。According to the definition of APT tool, a universal tool is determined by seven parameters. In order to facilitate the description of the tool, a tool coordinate system (X, Y, Z) is established on the tool, so that the tool coordinates satisfy that the origin O is at the tool position, the tool movement speed is in the XOZ plane, and Z is along the tool axis. Taking the APT tool as an example, its definition method is shown in Figure 3(a), 3(b) and 3(c).

其中刀具的参数:Among them, the parameters of the tool:

α为刀具底部的半锥角,0≤α<90°,α is the half cone angle at the bottom of the tool, 0≤α<90°,

β为刀具刀刃半锥角,0≤β<90°,β is the semi-cone angle of the cutting edge, 0≤β<90°,

R1为刀具过渡圆环的圆弧部分球心到刀轴的距离,R 1 is the distance from the center of the arc part of the tool transition ring to the tool axis,

R2为刀具过渡圆环的圆弧部分的半径,R 2 is the radius of the arc portion of the tool transition ring,

L为刀具切削刃的总长度,L is the total length of the cutting edge of the tool,

h为刀具过渡圆环的圆弧部分球心到刀具坐标系的OXY平面的距离。h is the distance from the center of the arc part of the tool transition ring to the OXY plane of the tool coordinate system.

一把通用刀具由三个部分组成:上圆锥、过渡圆环、下圆锥。由此得到铣刀三部分在刀具坐标系下的几何描述分别如下式所示。A general tool consists of three parts: upper cone, transition ring, and lower cone. Thus, the geometric descriptions of the three parts of the milling cutter in the tool coordinate system are shown in the following formulas.

CSC=CSU,C∪CST,C∪CSL,C (7)CS C =CS U,C ∪CS T,C ∪CS L,C (7)

其中a∈[0,1],b∈[0,1],θ∈[0,2π],下标C表示刀具坐标系,下标U表示上圆锥,下标T表示过渡圆环,下标L表示下圆锥,所以CSU,C为刀具上圆锥面,CST,C为刀具过渡圆环面,CSL,C为刀具下圆锥面,CSC为刀具整个表面,刀具整个表面由上圆锥面、过渡圆环面、下圆锥面组成。where a∈[0,1], b∈[0,1], θ∈[0,2π], the subscript C indicates the tool coordinate system, the subscript U indicates the upper cone, the subscript T indicates the transition ring, and the subscript L indicates the lower cone, so CS U, C are the upper conical surface of the tool, CS T, C are the transition torus of the tool, CS L, C are the lower conical surface of the tool, CS C is the entire surface of the tool, and the entire surface of the tool is composed of an upper conical surface, a transitional torus, and a lower conical surface.

在刀具运动的过程中,刀具的有效切削轮廓的数学模型可由下式得出:During the movement of the tool, the mathematical model of the effective cutting profile of the tool can be obtained by the following formula:

其中为刀具表面各点的法向量,为刀具的切削方向。in is the normal vector of each point on the tool surface, is the cutting direction of the tool.

根据刀具表面CSC(s)的数学表达(7)知,刀具表面的法向量可以表示为:According to the mathematical expression (7) of the tool surface CS C (s), the normal vector of the tool surface It can be expressed as:

其中nU,C为刀具上圆锥面上各点的法向量,nT,C为刀具在过渡圆环上各点的法向量,nL,C(θ)为刀具下圆锥面各点的法向量。Among them, n U, C is the normal vector of each point on the upper conical surface of the tool, n T, C is the normal vector of each point of the tool on the transition ring, n L, C (θ) is the normal vector of each point on the lower conical surface of the tool vector.

所以由公式(8)~(11)得到运动刀具在各段的有效切削轮廓的数学表达分别为:Therefore, the mathematical expressions of the effective cutting contours of the moving tool in each segment obtained from formulas (8) to (11) are:

其中a∈[0,1],b∈[0,1],SweepU,C为刀具上圆锥面的有效切削轮廓,SweepT,C为刀具过渡圆环面的有效切削轮廓,SweepL,C为刀具下圆锥面的有效切削轮廓。由a和b的取值范围可以得到刀具上圆锥面和下圆锥面的有效切削轮廓。Vel.x为刀具速度在X轴方向上的分量,Vel.y为刀具速度在Y轴方向上的分量,所以当刀具切削方向已知时,对于每一个值都可以计算出SweepT,C上的一个点。刀具有效切削轮廓由刀具上圆锥面的有效切削轮廓(SweepU,C)、过渡圆环面的有效切削轮廓(SweepT,C)以及下圆锥面的有效切削轮廓(SweepL,C)组成,从而可以在刀具坐标系下建立刀具有效切削轮廓的完整模型,如图4所示。where a∈[0,1], b∈[0,1], Sweep U, C are the effective cutting contours of the upper conical surface of the tool, Sweep T, C are the effective cutting contours of the tool transition torus, and Sweep L, C are the effective cutting contours of the lower conical surface of the tool. From the value range of a and b, the effective cutting contours of the upper and lower conical surfaces of the tool can be obtained. Vel.x is the component of the tool speed in the X-axis direction, and Vel.y is the component of the tool speed in the Y-axis direction, so when the cutting direction of the tool is known, for each Values can be calculated as a point on Sweep T,C . The effective cutting contour of the tool is composed of the effective cutting contour (Sweep U,C ) of the upper conical surface of the tool, the effective cutting contour (Sweep T,C ) of the transitional toroidal surface and the effective cutting contour (Sweep L,C ) of the lower conical surface of the tool, Therefore, a complete model of the effective cutting contour of the tool can be established in the tool coordinate system, as shown in Figure 4.

步骤3:构建轮廓误差并行计算模型Step 3: Build a parallel computing model for contour errors

由于插补数据的精度高、数据量大,而且本发明使用刀具有效切削轮廓来计算轮廓误差,刀位点之间没有必然关联,因此按照步骤3.1~3.4并行计算提高效率。通过对插补数据进行分组,利用CPU、GPU或者计算机集群并行计算各组的轮廓误差并返回结果。图5为插补数据并行计算的模型。并行计算的步骤如下:Due to the high precision of the interpolation data and the large amount of data, and the present invention uses the effective cutting contour of the tool to calculate the contour error, there is no necessary relationship between the tool positions, so the parallel calculation according to steps 3.1 to 3.4 improves the efficiency. By grouping the interpolation data, use CPU, GPU or computer cluster to calculate the contour error of each group in parallel and return the result. Figure 5 is a model for parallel computing of imputation data. The steps of parallel computing are as follows:

步骤3.1、估算当前刀位点的速度方向Step 3.1. Estimate the speed direction of the current tool position point

由于插补点包含的是刀具运动过程的离散刀位点,没有刀具运动速度方向,可以通过多种方法估算当前刀位点的刀具速度方向,例如可以使用前一刀位点Pi-1、当前刀位点Pi和后一刀位点Pi+1三点拟合一圆弧计算刀具运动速度方向,如6图所示,圆弧在当前刀位点的切线上与矢量夹角小于180°的方向为该刀位点的速度方向。同理在插补点第一个位置使用前三个刀位点P0、P1、P2拟合圆弧,如7图所示,速度矢量为圆弧在第一个刀位点P0的切矢与矢量夹角小于180°。最后一个位置使用最后三个点拟合圆弧,速度方向为圆弧在最后一个点上的切矢,如8图所示。Since the interpolation point contains the discrete tool position points in the tool movement process, and has no tool movement speed direction, the tool speed direction of the current tool position point can be estimated by various methods, for example, the previous tool position point P i-1 , the current tool position point can be used Tool position point P i and the next tool position point P i+1 three points fit a circular arc to calculate the direction of tool movement speed, as shown in Figure 6, the arc is on the tangent line of the current tool position point and the vector Directions where the included angle is less than 180° is the velocity direction of the tool position point. Similarly, use the first three tool points P 0 , P 1 , and P 2 to fit the arc at the first position of the interpolation point, as shown in Figure 7, the velocity vector is the arc at the first tool point P 0 Kiriya with vector The included angle is less than 180°. The last position uses the last three points to fit the arc, and the velocity direction is the tangent vector of the arc at the last point, as shown in Figure 8.

步骤3.2、刀具有效切削轮廓坐标转换Step 3.2, tool effective cutting contour coordinate conversion

步骤2中建立的刀具有效切削轮廓的模型是在刀具坐标系下的,而加工曲面设计模型在工件坐标系,所以在不同的刀位点下,把有效切削轮廓坐标变换到工件坐标系。The effective cutting contour model of the tool established in step 2 is in the tool coordinate system, while the machining surface design model is in the workpiece coordinate system, so the effective cutting contour coordinates are transformed to the workpiece coordinate system at different tool positions.

因为刀具坐标原点O在刀位点位置,刀具运动速度在XOZ平面,Z沿着刀具轴线方向,所以刀具坐标到工件坐标的转换矩阵RtoolToWork为:Because the tool coordinate origin O is at the tool position, the tool movement speed is on the XOZ plane, and Z is along the tool axis, so the conversion matrix R toolToWork from tool coordinates to workpiece coordinates is:

其中(x′,y′,z′)为工件坐标系下刀具速度矢量的单位向量,CL为工件坐标系下刀位点坐标。Where (x′, y′, z′) is the unit vector of the tool velocity vector in the workpiece coordinate system, and CL is the coordinate of the tool position in the workpiece coordinate system.

通过刀具坐标系到工件坐标系的转换矩阵求解工件坐标系下的瞬时轮廓:Solve the instantaneous contour in the workpiece coordinate system through the conversion matrix from the tool coordinate system to the workpiece coordinate system:

p=RtoolToWork·p′ (17)p=R t o lT o W o rk ·p′ (17)

p为工件坐标系下有效切削轮廓上点的坐标,p′为刀具坐标系下有效切削轮廓上点的坐标,通过式(12)-(14)和式(17)可以得到工件坐标系下的有效切削轮廓。p is the coordinate of the point on the effective cutting contour in the workpiece coordinate system, and p′ is the coordinate of the point on the effective cutting contour in the tool coordinate system. Through formulas (12)-(14) and formula (17), we can get the Effectively cuts contours.

步骤3.3轮廓误差的计算Step 3.3 Calculation of contour error

点铣情况,有欠切、过切、理想加工三种情况,通过刀具有效切削轮廓与设计曲面的交点个数n来区分属于哪一种情况:In spot milling, there are three situations: undercutting, overcutting, and ideal processing. The number n of intersections between the effective cutting contour of the tool and the design surface is used to distinguish which situation it belongs to:

当n=0时属于刀具欠切情况。欠切时轮廓误差表示为刀具有效切削轮廓与工件理性加工轮廓的最短距离ε,如图9所示。When n=0, it belongs to the situation of tool undercut. The contour error during undercutting is expressed as the shortest distance ε between the effective cutting contour of the tool and the rational machining contour of the workpiece, as shown in Figure 9.

当n=2时为过切情况。过切时,刀具有效切削轮廓与工件理论加工轮廓至少有两个交点,如图10所示,刀具轮廓与理想轮廓有两个交点P1,P2。过切时的轮廓误差衡量为刀具轮廓的在两个交点间的部分(即P1P2段曲线)与理论轮廓的单向豪斯多夫距离,此时误差标记为过切,有:When n=2, it is the case of overcut. When overcutting, there are at least two intersection points between the effective cutting contour of the tool and the theoretical machining contour of the workpiece. As shown in Figure 10, there are two intersection points P 1 and P 2 between the tool contour and the ideal contour. The contour error during overcutting is measured as the one-way Hausdorff distance between the part of the tool contour between two intersection points (that is, the P 1 P 2 segment curve) and the theoretical contour. At this time, the error is marked as overcutting, as follows:

其中A为在刀具轮廓上的曲线P1P2,将A离散成一系列点a1,a2,a3…am,用集合表示为A={a1,a2,a3…am},同理,工件理论轮廓轮廓记为集合B={b1,b2,b3…bk}。Among them, A is the curve P 1 P 2 on the tool profile, discretize A into a series of points a 1 , a 2 , a 3 ...a m , expressed as A={a 1 ,a 2 ,a 3 ...a m }, similarly, the theoretical contour of the workpiece is recorded as the set B={b 1 ,b 2 ,b 3 . . . b k }.

当n=1时为理想加工情况。此时刀具有效切削轮廓与工件理论加工轮廓相切,轮廓误差衡量为0,如图11所示。图12为点铣过程单个刀位点轮廓误差计算流程图。When n=1, it is an ideal processing situation. At this time, the effective cutting contour of the tool is tangent to the theoretical machining contour of the workpiece, and the contour error is measured as 0, as shown in Figure 11. Fig. 12 is a flow chart of calculating the contour error of a single tool point in the point milling process.

侧铣时理论上为刀具的侧刃与工件的表面线接触,如图13所示,所以侧铣情况简化为离工件表面距离小于刀具半径的刀具有效切削轮廓侧刃与工件表面的距离分布,先把刀具有效切削轮廓离散成点,然后求离散点与工件理论轮廓的最短距离,如图14所示各离散点到工件理论轮廓的距离分别为P1P1′,P2P2′,...,PtPt′,点Pn在刀具有效切削轮廓的侧刃上,点Pt′在理论曲面轮廓上,矢量与理论曲面轮廓在点Pn′上的法向量的夹角为如果则该点的误差符号为欠切,如果则为过切,如果则为理想加工情况。Theoretically, during side milling, the side edge of the tool is in line contact with the surface of the workpiece, as shown in Figure 13, so the side milling situation is simplified to the distance distribution between the side edge of the effective cutting contour of the tool and the surface of the workpiece whose distance from the surface of the workpiece is less than the radius of the tool, First, the effective cutting contour of the tool is discretized into points, and then the shortest distance between the discrete points and the theoretical contour of the workpiece is calculated. As shown in Figure 14, the distances from each discrete point to the theoretical contour of the workpiece are P 1 P 1 ′, P 2 P 2 ′, ..., P t P t ′, point P n is on the side edge of the effective cutting contour of the tool, point P t ′ is on the theoretical surface contour, vector and the normal vector of the theoretical surface contour at point P n The included angle is if Then the error sign of this point is undercut, if is overcut if is an ideal processing situation.

通过连续的插补数据在每一个刀位点按以上步骤计算轮廓误差,可得到曲面的轮廓误差虚拟计算,计算过程如图15所示。Through the continuous interpolation data at each tool point to calculate the contour error according to the above steps, the virtual calculation of the contour error of the curved surface can be obtained. The calculation process is shown in Figure 15.

步骤4:轮廓误差评估Step 4: Contour Error Evaluation

在并行计算所有插补点的轮廓误差后,输出每个刀位点对应的轮廓误差,并对输出轮廓误差通过图表的形式展示各刀位点欠切或者过切的情况,例如使用色谱图显示加工曲面设计模型上各点的轮廓误差状况。通过轮廓误差的评价调整出现精度超差位置的G代码,使轮廓误差不超出精度范围,达到加工仿真和三坐标测量试切零件验证轮廓精度的效果。After calculating the contour error of all interpolation points in parallel, output the contour error corresponding to each tool position point, and display the undercut or overcut situation of each tool position point in the form of a graph for the output contour error, for example, use the chromatogram display The contour error status of each point on the machining surface design model. Through the evaluation of the contour error, adjust the G code at the position where the accuracy is out of tolerance, so that the contour error does not exceed the accuracy range, and achieve the effect of machining simulation and three-coordinate measurement test cutting parts to verify the contour accuracy.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.

Claims (6)

1. an evaluation method of milling contour error based on interpolation data is characterized by comprising the following steps:
Step 1: triangularization is carried out on the workpiece design curved surface to obtain a geometric model of the workpiece;
step 2: establishing a tool coordinate system (X, Y, Z) on the tool according to the processing track of the tool on the geometric model of the workpiece, wherein an original point O is at the position of a tool position point, the moving speed of the tool is on an XOZ plane, and a Z axis is arranged along the axial direction of the tool;
The cutting edge of cutter includes circular conical surface, transition ring surface and circular conical surface three part down, and the effective cutting profile of cutter includes circular conical surface effective cutting profile sweet U, C, transition ring surface effective cutting profile sweet pT, C and circular conical surface effective cutting profile sweet L, C down:
Wherein alpha is the half cone angle of the lower conical surface, alpha is more than or equal to 0 and less than 90 degrees,
Beta is the half cone angle of the upper conical surface, beta is more than or equal to 0 and less than 90 degrees,
R1 is the distance from the sphere center of the arc part of the transition ring to the cutter shaft,
R2 is the radius of the arc portion of the transition circle,
l is the total length of the cutting edge,
h is the distance from the spherical center of the arc part of the transition ring to the OXY plane of the cutter coordinate system;
a∈[0,1],b∈[0,1],θ∈[0,2π],
x is the component of the tool velocity in the X-axis direction,
Ve.y is the component of the tool speed in the Y-axis direction;
and step 3: grouping the interpolation data according to the interpolation sequence according to the effective cutting profile of the cutter, and calculating the error of the effective cutting profile of the cutter of each group in parallel according to the steps 3.1-3.3, wherein the steps 3.1-3.3 are as follows:
step 3.1, estimating the speed direction of the cutter at the current cutter location point;
3.2, converting the coordinates of the effective cutting profile of the cutter in the cutter coordinate system to a workpiece coordinate system at different cutter positions to obtain the effective cutting profile of the cutter in the workpiece coordinate system;
3.3, calculating the effective cutting contour error of each tool location point by combining the theoretical contour of the tool according to the effective cutting contour of the tool in the workpiece coordinate system, and distinguishing whether the error type is under-cut, over-cut or ideal processing;
in step 3.3, during point milling, whether the current tool location point of the tool is under-cut, over-cut or ideal is distinguished through the number n of intersection points of the effective cutting profile of the tool and the designed curved surface:
when n is 0, the condition of the cutter under-cutting is adopted; the contour error in the case of under-cutting is expressed as the shortest distance epsilon between the effective cutting contour of the cutter and the ideal processing contour of the workpiece;
an over-cut condition when n is 2; when the cutter is over-cut, at least two intersection points P1 and P2 are arranged between the effective cutting profile of the cutter and the theoretical machining profile of the workpiece; the profile error at overcutting is measured as the one-way Housdov distance between the portion of the tool profile between the two intersection points, i.e., the curve for segment P1P2, and the theoretical tool cutting profile:
Wherein,
a represents a curve of segment P1P2 on the tool profile, and a is discretized into a series of points a1, a2 and a3 … am, which are collectively represented as a ═ a1, a2 and a3 … am; b is a theoretical machining contour curved surface of the workpiece, and the theoretical machining contour curved surface of the workpiece is recorded as a set B ═ B1, B2 and B3 … bk;
When n is 1, the ideal processing condition is obtained; at the moment, the effective cutting profile of the cutter is tangent to the theoretical machining profile of the workpiece, and the profile error is 0;
in the side milling process, the effective cutting profile of the cutter is scattered into points P1, P2, the right angle and Pt, the corresponding theoretical profile of the workpiece is scattered into points P1 'P2', the right angle, Pt ', P1, P2, the right angle and P1' P2 ', the right angle and Pt' are in one-to-one correspondence, and the included angle between the vector and the normal vector of the theoretical profile of the workpiece on the point Pt 'is an undercut point if the included angle is the point Pt', and is an over-cut point if the included angle is the ideal processing condition.
2. the method for evaluating the milling machining contour error based on the interpolation data as claimed in claim 1, wherein in step 3.2, the transformation matrix RtoolToWo from the tool coordinate system to the workpiece coordinate system is:
Wherein (x ', y ', z ') is a unit vector of a tool velocity vector under the workpiece coordinate system, and CL is a tool position point coordinate under the workpiece coordinate system;
And (3) solving the instantaneous profile under the workpiece coordinate system through a conversion matrix from the tool coordinate system to the workpiece coordinate system:
p=R·p′ (17)
and p is the coordinate of a point on the effective cutting contour under the workpiece coordinate system, p' is the coordinate of a point on the effective cutting contour under the tool coordinate system, and the effective cutting contour of the tool under the workpiece coordinate system is obtained through the equations (12) to (14) and (17).
3. the method for evaluating the milling machining contour error based on the interpolation data as claimed in claim 1 or 2, wherein in the step 2, the geometric contours of the upper cone, the transition ring and the lower cone of the tool in the tool coordinate system are respectively as follows:
CS=CS∪CS∪CS (7)
wherein,
CSU, C is the geometrical outline of the conical surface on the cutter,
CST, C is the geometrical outline of the transition ring surface of the cutter,
CSL and C are the geometrical outline of the lower conical surface of the cutter,
CSC is the geometric profile of the entire surface of the tool.
4. the method for evaluating the error of the milling machining profile based on the interpolation data as claimed in claim 3, wherein in the step 2, during the movement of the tool, the mathematical model of the effective cutting profile of the tool is represented by the following formula:
wherein, the normal vector of each point on the surface of the cutter is the cutting direction of the cutter;
The normal vector of each point on the surface of the tool comprises the following components:
Wherein,
nU and C are normal vectors of each point on the conical surface of the cutter,
nT and C are normal vectors of each point of the cutter on the transition ring,
nL and C (theta) are normal vectors of each point of the conical surface under the cutter.
5. The method for evaluating the milling machining contour error based on the interpolation data as claimed in claim 1 or 2, wherein in step 3.1, the method for estimating the tool speed direction of the current tool location is as follows:
for the interpolated first cutter position P0, selecting the fitting circular arc of the first three cutter positions P0, P1 and P2, and taking the tangent vector of P0 on the circular arc as the cutter speed direction at P0, wherein the included angle between the tangent vector and the cutter speed direction is less than 180 degrees;
for the interpolated middle cutter point Pi, fitting an arc by using three points of a previous cutter point Pi-1, a current cutter point Pi and a next cutter point Pi +1, and taking the direction in which the included angle between the tangent of the current cutter point Pi on the arc and a vector is less than 180 degrees as the speed direction of a cutter on the cutter point, wherein i is more than or equal to 1;
And for the last interpolated tool location point, fitting an arc by using the last three tool location points, and taking the tangential direction of the last tool location point on the arc as the tool speed direction on the tool location point.
6. the method for evaluating the milling machining contour error based on the interpolation data as claimed in claim 1 or 2, further comprising the step 4: and 3.3, adjusting the G code according to the effective cutting contour error and the error type of the cutter corresponding to each cutter location point obtained in the step 3.3, so that the effective cutting contour error of the cutter does not exceed the preset precision range, and thus, the contour precision of the trial-cut workpiece is realized through machining simulation and simulation verification.
CN201810356880.4A 2018-04-20 2018-04-20 An Evaluation Method of Milling Contour Error Based on Interpolation Data Active CN108508848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810356880.4A CN108508848B (en) 2018-04-20 2018-04-20 An Evaluation Method of Milling Contour Error Based on Interpolation Data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810356880.4A CN108508848B (en) 2018-04-20 2018-04-20 An Evaluation Method of Milling Contour Error Based on Interpolation Data

Publications (2)

Publication Number Publication Date
CN108508848A CN108508848A (en) 2018-09-07
CN108508848B true CN108508848B (en) 2019-12-06

Family

ID=63382998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810356880.4A Active CN108508848B (en) 2018-04-20 2018-04-20 An Evaluation Method of Milling Contour Error Based on Interpolation Data

Country Status (1)

Country Link
CN (1) CN108508848B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684687B (en) * 2018-12-11 2023-02-28 中国航发贵州黎阳航空动力有限公司 Modeling method for rotor blade forging tip process extension section
JP7221900B2 (en) * 2019-05-13 2023-02-14 芝浦機械株式会社 Computer program, workpiece machining method using computer program, and workpiece machining apparatus using computer program
CN110262394B (en) * 2019-07-05 2020-09-08 华中科技大学 A Compensation Method for Contour Error in NC Machining
CN111958611B (en) * 2020-07-31 2021-10-08 华中科技大学 Attitude optimization method and equipment of milling robot considering minimum contour error
CN112417537B (en) * 2020-12-16 2024-02-02 华中科技大学 Surface morphology simulation method for visualizing geometric errors based on turning
CN113523371B (en) * 2021-07-02 2022-07-05 华中科技大学 Super multi-edge cutter for cutting brittle material and manufacturing method thereof
CN115808903B (en) * 2021-09-15 2025-05-27 沈阳建筑大学 Command point interpolation method for cylindrical ruled surface sawing
CN115601527B (en) * 2022-11-28 2023-03-10 大方智造(天津)科技有限公司 G code-based trial blank creating method
CN115958473B (en) * 2023-03-16 2023-06-13 华辰精密装备(昆山)股份有限公司 Precise grinding numerical control machining method and system for non-circular component
CN118732602B (en) * 2024-08-19 2024-11-22 泰安市勇瑞智能装备有限公司 Intelligent end part counting treatment system and method for air conditioner compressor shell

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10291127A (en) * 1997-04-17 1998-11-04 Nissan Motor Co Ltd Gear cutting method
KR20080105691A (en) * 2007-05-31 2008-12-04 정융호 Optimization Method of Interpolation Length for Speed Improvement of 5-Axis Milling Process Based on Mechanical Operation Characteristics

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591260B (en) * 2012-02-15 2013-11-06 西北工业大学 Method for judging transient contact region of cutter and workpiece in five-axis milling process
CN103218475B (en) * 2013-03-14 2015-09-23 天津大学 A kind of complex space type surface Error Feedback compensation method based on testing and assessing at machine
CN105509653B (en) * 2015-11-30 2019-03-05 广州超音速自动化科技股份有限公司 Machine components profile tolerance vision measuring method and system
CN106776877B (en) * 2016-11-28 2020-05-01 常州市星网计算机技术有限公司 Automatic identification method for motorcycle part models
CN108515217B (en) * 2018-04-09 2019-05-31 吉林大学 A kind of ball-end milling free form surface surface topography emulation mode

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10291127A (en) * 1997-04-17 1998-11-04 Nissan Motor Co Ltd Gear cutting method
KR20080105691A (en) * 2007-05-31 2008-12-04 정융호 Optimization Method of Interpolation Length for Speed Improvement of 5-Axis Milling Process Based on Mechanical Operation Characteristics

Also Published As

Publication number Publication date
CN108508848A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN108508848B (en) An Evaluation Method of Milling Contour Error Based on Interpolation Data
CN100435055C (en) Planning method for smooth and interference-free tool paths in five-axis NC machining
CN103744349B (en) A non-interference tool path generation method for machining transitional surfaces with flat end mills
CN102527554A (en) Spray gun track planning method for free-form surface spraying robot
CN109683552B (en) Numerical control machining path generation method on complex point cloud model guided by base curve
CN110032140B (en) Spherical cutter shaft vector planning method in five-axis machining
CN109343468A (en) A method for generating multi-axis trajectory of blade based on projection offset
CN110531709B (en) Method for analyzing relation between machining error and feed rate of curved surface part
CN115562159A (en) Tool path planning method, device and computer-readable storage medium
Wei et al. Modeling and machining of integral impeller based on NURBS curve
CN110672032A (en) Blade machining torsion error measuring method based on chord line
CN102147221A (en) Three-coordinate measuring method of blade with T-shaped root
Zhang et al. A tool path generation method based on smooth machine rotary angle and tilt angle in five-axis surface machining with torus cutters
Dong et al. An improved calculation method for cutting contact point and tool orientation analysis according to the CC points
CN104392030B (en) Curved surface machining method based on STL (Standard Template Library) three-dimensional model
CN110716502A (en) Tool path generation method and device for engine blade repair
CN102176211B (en) Path planning method of measuring system based on projected grating phase method
Song et al. The mechanism of curvature for complex surfaces during five-axis flank milling
CN102728658A (en) Method for determining flexibility error in blade processing
Liu et al. Direct 5-axis tool posture local collision-free area generation for point clouds
Kong et al. Cutter position optimization with tool runout for flank milling of non-developable ruled surfaces
CN111026035B (en) Method for solving cyclone milling blade tool location point based on curvature change
CN116811231A (en) Five-axis linkage material increasing and decreasing mixed machining sequence planning method
Legge Integration of design and inspection systems-a literature review
Han et al. An irredundant G01 tool path generation method for five-axis machining considering tool tip and orientation errors

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