CN107544430B - Contour error estimation method of three-axis numerical control machine tool - Google Patents

Contour error estimation method of three-axis numerical control machine tool Download PDF

Info

Publication number
CN107544430B
CN107544430B CN201710853232.5A CN201710853232A CN107544430B CN 107544430 B CN107544430 B CN 107544430B CN 201710853232 A CN201710853232 A CN 201710853232A CN 107544430 B CN107544430 B CN 107544430B
Authority
CN
China
Prior art keywords
point
machining
actual
circle
contour error
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
CN201710853232.5A
Other languages
Chinese (zh)
Other versions
CN107544430A (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 CN201710853232.5A priority Critical patent/CN107544430B/en
Publication of CN107544430A publication Critical patent/CN107544430A/en
Application granted granted Critical
Publication of CN107544430B publication Critical patent/CN107544430B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

本发明属于精密制造技术领域,并公开了一种三轴数控机床的轮廓误差估算方法。该方法包括下列步骤:(a)规划理想的加工参考轨迹,存储参考轨迹经插补后的各个加工点的三维坐标,监测并存储每个采用周期内实际加工轨迹上各个加工点的三维坐标;(b)获取在参考轨迹上距实际加工点最近的参考位置点;(c)根据最近的参考位置点与其相邻的点的不同位置关系,按照不同的情况采用不同的方法对所需的轮廓误差进行估算。通过本发明,使得估算过程不需要理想加工参数轨迹的参数信息和曲率信息,适合加工过程中曲率较大的情况,实现难度低,计算量小,用时短,具有实时性,适用范围广。

Figure 201710853232

The invention belongs to the technical field of precision manufacturing, and discloses a contour error estimation method of a three-axis numerically controlled machine tool. The method includes the following steps: (a) planning an ideal machining reference trajectory, storing the three-dimensional coordinates of each machining point after the interpolation of the reference trajectory, monitoring and storing the three-dimensional coordinates of each machining point on the actual machining trajectory in each adoption cycle; (b) Obtain the reference position point closest to the actual processing point on the reference trajectory; (c) According to the different positional relationship between the nearest reference position point and its adjacent points, different methods are used according to different situations for the required contour. error is estimated. Through the present invention, the estimation process does not need the parameter information and curvature information of the ideal machining parameter trajectory, which is suitable for the case of large curvature in the machining process, with low realization difficulty, small calculation amount, short time consumption, real-time performance and wide application range.

Figure 201710853232

Description

一种三轴数控机床的轮廓误差估算方法A Contour Error Estimation Method for Three-axis CNC Machine Tool

技术领域technical field

本发明属于精密制造技术领域,更具体地,涉及一种三轴数控机床的轮廓误差估算方法。The invention belongs to the technical field of precision manufacturing, and more particularly, relates to a contour error estimation method of a three-axis numerically controlled machine tool.

背景技术Background technique

近年来,随着制造业的迅速发展,加工零件愈来愈趋向精密化和复杂化,使得数控机床在精密制造领域中的加工要求也逐渐向高精度方向不断发展。所谓高精度,一般指的是高轮廓加工精度。数控机床的加工精度水平直接反映了国家装备制造的技术水平。In recent years, with the rapid development of the manufacturing industry, the processing parts are becoming more and more precise and complex, which makes the processing requirements of CNC machine tools in the field of precision manufacturing gradually develop towards high precision. The so-called high precision generally refers to high contour machining accuracy. The machining accuracy level of CNC machine tools directly reflects the technical level of national equipment manufacturing.

为了减少数控加工过程中的轮廓误差,进而提高被加工工件表面的轮廓精度,常用的方法是基于轮廓误差信息设计出相应的轮廓误差控制器以实现高加工精度的轮廓控制,现有的估算方法一般需要参考轨迹的曲率、微分等信息或者采用迭代的方法估算轮廓误差,这样的方法会限制估算方法的通用性,而且存在计算过大导致实时性不强的问题,由于高精度轮廓误差估计是有效轮廓控制的前提条件,因此,如何快速有效的估算出数控加工过程中的轮廓误差,如何建立数控加工轮廓误差估算的数学模型,是当前亟待解决的一大难题。In order to reduce the contour error in the NC machining process and improve the contour accuracy of the workpiece surface to be machined, a common method is to design a corresponding contour error controller based on the contour error information to achieve contour control with high machining accuracy. The existing estimation method Generally, it is necessary to refer to the curvature, differential and other information of the trajectory or use an iterative method to estimate the contour error. This method will limit the versatility of the estimation method, and there is a problem that the calculation is too large and the real-time performance is not strong. Because the high-precision contour error estimation is Therefore, how to quickly and effectively estimate the contour error in the NC machining process and how to establish a mathematical model for NC machining contour error estimation is a major problem to be solved urgently.

发明内容SUMMARY OF THE INVENTION

针对现有技术的以上缺陷或改进需求,本发明提供了一种三轴数控机床的轮廓误差估算方法,通过在刀具理想轨迹中找到与当前加工点位置最近的点,然后通过该点和其相邻的点之间的位置关系,确定误差估算的方式,由此解决三维空间的三轴轮廓加工误差估算的技术问题。In view of the above defects or improvement requirements of the prior art, the present invention provides a contour error estimation method for a three-axis CNC machine tool. The positional relationship between adjacent points determines the method of error estimation, thereby solving the technical problem of error estimation of three-axis contour machining in three-dimensional space.

为实现上述目的,按照本发明,提供了一种三轴数控机床的轮廓误差估算方法,其特征在于,该方法包括下列步骤:In order to achieve the above object, according to the present invention, a method for estimating a contour error of a three-axis CNC machine tool is provided, characterized in that the method comprises the following steps:

(a)针对待加工对象,规划三轴数控机床刀具的加工路径并获得理想的加工参考轨迹,插补该参考轨迹并存储插补后的各个加工点的三维坐标,所述刀具按照所述参考轨迹加工待加工对象,同时监测该刀具的实际加工轨迹,存储实际加工轨迹上各个加工点的三维坐标;(a) For the object to be processed, plan the processing path of the three-axis CNC machine tool tool and obtain an ideal processing reference trajectory, interpolate the reference trajectory and store the three-dimensional coordinates of each processing point after interpolation, and the tool follows the reference. The object to be processed is processed by the trajectory, and the actual processing trajectory of the tool is monitored at the same time, and the three-dimensional coordinates of each processing point on the actual processing trajectory are stored;

(b)针对所述刀具当前的实际加工点Pa,在所述参考轨迹中找到与该实际加工点对应的参考点Pr+k,计算该实际加工点与参考点附近的点的距离,距离的最小值对应的点即为在所述参考轨迹上与所述实际加工点最近的参考位置点Pr+k-j(b) For the current actual machining point Pa of the tool, find the reference point Pr+k corresponding to the actual machining point in the reference trajectory, and calculate the distance between the actual machining point and a point near the reference point, The point corresponding to the minimum value of the distance is the reference position point Pr+kj closest to the actual machining point on the reference track;

(c)在所述参考轨迹上与所述最近的参考位置点Pr+k-j相邻的点为Pr+k-j-1和Pr+k-j+1,根据下列不同的情况,分别对所需的轮廓误差进行估算:(c) The points adjacent to the nearest reference position point Pr+kj on the reference track are Pr +kj-1 and Pr +k-j+1 , according to the following different situations, respectively The required contour error is estimated:

(c1)当所述Pr+k-j-1、Pr+k-j和Pr+k-j+1不在同一条直线上时,(c1) When the Pr+kj-1 , Pr+kj and Pr +k-j+1 are not on the same straight line,

根据所述Pr+k-j-1、Pr+k-j和Pr+k-j+1构建一个圆,并确定该圆的半径和圆心O0坐标;将所述实际加工点在所述圆所在平面⊙O0投影,获取其投影点P′a;将所述圆心O0与投影点Pa′的连线,该连线与所述圆上Pr+k-j-1和Pr+k-j+1之间的圆弧相交,交点为

Figure BDA0001413833560000022
该交点
Figure BDA0001413833560000023
与所述实际加工点Pa的距离为待估算的轮廓误差
Figure BDA0001413833560000024
Construct a circle according to the Pr+kj-1 , Pr+kj and Pr +k-j+1 , and determine the radius of the circle and the coordinates of the center O 0 ; place the actual machining point at the location of the circle The plane ⊙O 0 is projected, and its projection point P' a is obtained; the connecting line between the center O 0 of the circle and the projection point P a ' is connected with Pr+kj-1 and Pr +k- on the circle The arcs between j+1 intersect, and the intersection point is
Figure BDA0001413833560000022
the intersection
Figure BDA0001413833560000023
The distance from the actual machining point Pa is the contour error to be estimated
Figure BDA0001413833560000024

(c2)当所述Pr+k-j-1、Pr+k-j和Pr+k-j+1在同一条直线上时,(c2) When the Pr+kj-1 , Pr+kj and Pr +k-j+1 are on the same straight line,

根据所述Pr+k-j-1、Pr+k-j和Pr+k-j+1构建一条直线,获取所述实际加工点在该条直线上的投影点,该投影点与所述实际加工点Pa之间的距离为待估算的轮廓误差

Figure BDA0001413833560000021
A straight line is constructed according to the Pr+kj-1 , Pr+kj and Pr +k-j+1 , and the projection point of the actual processing point on the straight line is obtained, and the projection point is the same as the actual processing point. The distance between points Pa is the contour error to be estimated
Figure BDA0001413833560000021

(c3)当所述参考位置点Pr+k-j为所述参考轨迹上两端的端点时,(c3) When the reference position point Pr+kj is the end point of both ends on the reference track,

该参考位置点Pr+k-j与所述实际加工点Pa之间的距离为待估算的轮廓误差

Figure BDA0001413833560000034
The distance between the reference position point P r+kj and the actual machining point P a is the contour error to be estimated
Figure BDA0001413833560000034

进一步优选地,在步骤(b)中,优选按照下列表达式计算所述最近的参考位置点Pr+k-jFurther preferably, in step (b), the nearest reference position point Pr+kj is preferably calculated according to the following expression,

Figure BDA0001413833560000031
Figure BDA0001413833560000031

其中,Pa在式中是实际加工点Pa的坐标,Pr+k+i在式中是所述参考点附近的点Pr+k+i的坐标,i是沿参考轨迹的正反向或反方向上取样点编号,Li是实际加工点与参考点附近的点的距离。Among them, Pa is the coordinate of the actual processing point Pa in the formula, Pr+ k +i is the coordinate of the point Pr+k+ i near the reference point in the formula, and i is the positive and negative along the reference trajectory Sampling point number in the forward or reverse direction, Li is the distance between the actual processing point and the point near the reference point.

进一步优选地,在步骤(c1)中,所述圆的半径优选按照下列表达式进行,Further preferably, in step (c1), the radius of the circle is preferably performed according to the following expression,

Figure BDA0001413833560000032
Figure BDA0001413833560000032

其中,O0在式中是所述圆的圆心的坐标,Pr+k-j-1在式中是点Pr+k-j-1的坐标,R是所述圆的半径。Wherein, O 0 is the coordinate of the center of the circle in the formula, Pr+kj-1 is the coordinate of the point Pr+kj-1 in the formula, and R is the radius of the circle.

进一步优选地,在步骤(c1)中,所述轮廓误差优选按照下列表达式进行,Further preferably, in step (c1), the contour error is preferably performed according to the following expression,

Figure BDA0001413833560000033
Figure BDA0001413833560000033

其中,P′a在式中是所述投影点的坐标,Pa在式中是实际加工点的坐标。Wherein, P' a is the coordinate of the projection point in the formula, and P a is the coordinate of the actual processing point in the formula.

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

1、本发明中通过利用理想的加工参数轨迹上的离散点,估算过程不需要理想加工参数轨迹的参数信息和曲率信息,只需采用离散点的坐标,降低估算复杂性,难度低,适用范围广;1. In the present invention, by using the discrete points on the ideal processing parameter trajectory, the estimation process does not require the parameter information and curvature information of the ideal processing parameter trajectory, but only needs to use the coordinates of the discrete points to reduce the complexity of the estimation, the difficulty is low, and the scope of application wide;

2、本发明中通过三个相邻的点确定圆弧,由此体现理想路径曲线的变化,估算中与理想加工参数轨迹的曲率,从而减小对轨迹的曲率变化的敏感性,适合加工过程中曲率较大的情况;2. In the present invention, the arc is determined by three adjacent points, thereby reflecting the change of the ideal path curve, and estimating the curvature of the trajectory between the ideal processing parameters, thereby reducing the sensitivity to the curvature change of the trajectory, which is suitable for the processing process In the case of large curvature;

3、本发明提供的三轴数控加工的轮廓误差估算方法,高精度地估算出三轴数控加工过程中轮廓误差的大小,且估算过程中仅需要刀具轨迹插补后的距离实际加工点最近的参考位置点和实际加工点位置,而不需要其他额外的信息,计算量小,用时短,具有实时性;3. The contour error estimation method for three-axis numerical control machining provided by the present invention can accurately estimate the size of the contour error in the three-axis numerical control machining process, and in the estimation process, only the distance to the actual machining point after the interpolation of the tool path is required. The reference position point and the actual processing point position do not need other additional information, the calculation amount is small, the time is short, and it is real-time;

4、本发明简单易行,可以准确、快速地估算出数控加工过程中轮廓误差的大小,且具备通用性,适用于各种类型的三维空间的刀具轨迹,对于提高数控机床的加工精度具有很好的应用价值。4. The invention is simple and easy to implement, can accurately and quickly estimate the size of the contour error in the CNC machining process, and has universality, which is suitable for various types of three-dimensional space tool paths, and has a great effect on improving the machining accuracy of CNC machine tools. good application value.

附图说明Description of drawings

图1是按照本发明的优选实施例所构建的三轴数控机床(CNC)加工过程中轮廓误差估算的实施流程图;Fig. 1 is the implementation flow chart of the contour error estimation during the machining process of the three-axis numerical control machine tool (CNC) constructed according to the preferred embodiment of the present invention;

图2是按照本发明的优选实施例所构建的数控加工的轮廓误差示意图;Fig. 2 is the contour error schematic diagram of the numerical control machining constructed according to the preferred embodiment of the present invention;

图3是按照本发明的优选实施例所构建的三轴轮廓误差估算方法示意图;3 is a schematic diagram of a three-axis contour error estimation method constructed according to a preferred embodiment of the present invention;

图4是按照本发明的优选实施例所构建的针对特殊情况下的三轴轮廓误差估算方法示意图;4 is a schematic diagram of a three-axis contour error estimation method under special circumstances constructed according to a preferred embodiment of the present invention;

图5(a)是按照本发明的优选实施例所构建的整体轮廓误差的估算精度对比图;Figure 5(a) is a comparison diagram of the estimation accuracy of the overall contour error constructed according to the preferred embodiment of the present invention;

图5(b)是按照本发明的优选实施例所构建的各个轴的轮廓误差分量的估算精度对比图。Fig. 5(b) is a comparison chart of the estimation accuracy of the contour error components of each axis constructed according to the preferred embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but 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 conflict with each other.

图1是按照本发明的优选实施例所构建的三轴数控机床(CNC)加工过程中轮廓误差估算的实施流程图,如图1所示,本发明构建三轴数控加工过程中轮廓误差估算模型的方法包括以下步骤:Fig. 1 is the implementation flow chart of the contour error estimation in the three-axis numerical control machine tool (CNC) machining process constructed according to the preferred embodiment of the present invention, as shown in Fig. 1, the present invention constructs the contour error estimation model in the three-axis CNC machining process The method includes the following steps:

将数控机床加工时的参考轨迹经插补后的X、Y和Z轴的刀具参考位置命令存储到数控机床的内存中;Store the tool reference position commands of X, Y and Z axes after interpolation of the reference trajectory during CNC machine tool processing into the memory of the CNC machine tool;

如图2所示,为数控加工在X-Y平面的轮廓误差示意图,其中Pr为刀具参考位置,Pa为与刀具参考位置Pr相对应的刀具实际位置,ex和ey表示数控加工过程中刀具分别在X轴和Y轴方向上的跟踪误差,ε表示数控加工过程中刀具的轮廓误差。显然,从图2可以清楚的得知轮廓误差定义为刀具实际位置到刀具参考轨迹的最短法向距离。As shown in Figure 2, it is a schematic diagram of the contour error of CNC machining on the XY plane, where P r is the tool reference position, P a is the actual tool position corresponding to the tool reference position P r , and e x and e y represent the CNC machining process. The tracking error of the tool in the X-axis and Y-axis directions respectively, ε represents the contour error of the tool during the CNC machining process. Obviously, it is clear from Fig. 2 that the contour error is defined as the shortest normal distance from the actual position of the tool to the reference trajectory of the tool.

因为要想在数控加工过程中实时精确地计算出轮廓误差的真实值非常困难,所以在实际求解轮廓误差的过程中人们一般采用近似估算的方法,这样既能够满足估算的精度要求,也能够降低计算负荷达到实时估算的效果。Because it is very difficult to accurately calculate the true value of the contour error in real time during the CNC machining process, people generally use the approximate estimation method in the process of actually solving the contour error, which can not only meet the accuracy requirements of the estimation, but also reduce the The computing load achieves the effect of real-time estimation.

在数控加工过程中,刀具参考位置命令是在工件加工启动之前就预先存储到数控机床的内存中的,也就是说刀具参考位置命令存储到数控机床的内存中是数控加工本来就有的过程,而不是本发明所额外要求的步骤,因此这提高了本发明的实用性和便捷性。In the CNC machining process, the tool reference position command is pre-stored in the memory of the CNC machine tool before the workpiece machining starts, that is to say, the tool reference position command is stored in the CNC machine tool memory. Rather than an additional step required by the present invention, this increases the utility and convenience of the present invention.

2、利用编码器实时测量每个采样周期所对应的刀具实际位置;2. Use the encoder to measure the actual position of the tool corresponding to each sampling period in real time;

目前市面上商用的三轴数控机床绝大多数都具有通过位置检测装置对刀具位置进行实时监测的功能,位置检测装置包括编码器、光栅尺和激光干涉仪等。由于编码器相较于其他位置检测装置具有经济实惠且检测精度基本满足实际加工要求的特点,使得编码器在数控机床位置检测中运用得最广泛。因此,利用编码器就可以快速方便地实时测量到每个采样周期所对应的刀具实际位置。At present, most of the commercial three-axis CNC machine tools on the market have the function of real-time monitoring of the tool position through a position detection device, which includes an encoder, a grating ruler, and a laser interferometer. Compared with other position detection devices, the encoder is economical and the detection accuracy basically meets the actual processing requirements, so the encoder is most widely used in the position detection of CNC machine tools. Therefore, the actual position of the tool corresponding to each sampling period can be quickly and easily measured in real time by using the encoder.

3、用索引法找到距离刀具实际位置最近的参考位置;3. Use the index method to find the reference position closest to the actual position of the tool;

图3是按照本发明的优选实施例所构建的三轴轮廓误差估算方法示意图,如图3所示,为本发明所提出的三轴轮廓误差估算方法示意图,其中…Pr+k-j-1,Pr+k-j,Pr+k-j+1…是刀具轨迹经过插补处理后的刀具参考位置命令点,这些点是预存到数控系统内存中的,因此是已知的;Pr+k为当前采样周期内与刀具实际位置Pa相对应的刀具参考位置,刀具实际位置Pa是通过编码器监测获得的。理想情况下我们希望Pr+k和Pa是重合的,但是由于实际情况下的运动控制系统存在扰动、带宽限制等问题,所以不可避免的存在误差。首先,分别计算出刀具实际位置Pa与参考位置Pr+k附近的点的距离:FIG. 3 is a schematic diagram of a three-axis contour error estimation method constructed according to a preferred embodiment of the present invention. As shown in FIG. 3 , it is a schematic diagram of a three-axis contour error estimation method proposed by the present invention, wherein ... P r+kj-1 , P r+kj , P r+k-j+1 ... are the tool reference position command points after the tool path has been interpolated, these points are pre-stored in the CNC system memory, so they are known; P r+k is the tool reference position corresponding to the actual tool position P a in the current sampling period, and the actual tool position P a is obtained through the monitoring of the encoder. Ideally, we hope that P r+k and P a are coincident, but due to the problems of disturbance and bandwidth limitation in the motion control system in practice, errors inevitably exist. First, calculate the distance between the actual tool position Pa and the point near the reference position Pr+k :

Figure BDA0001413833560000061
Figure BDA0001413833560000061

式(1)中Pa=[xa,ya,za]为刀具实际位置,Pr+k+i=[xr+k+i,yr+k+i,zr+k+i]为刀具参考位置Pr+k附近的位置点,N为设置的索引边界,设置索引边界是为了减轻计算量,提高估算速度,索引边界的大小一般设置为50~100之间,这样既可以保证索引精度,也可以减少计算量。然后通过比较式(1)所得到的各个距离找出其中的最小值

Figure BDA0001413833560000062
所对应的参考位置即为所要获得的距离刀具实际位置最近的参考位置点。如图3所示,参考位置点Pr+k-j即为所找到的距离刀具实际位置最近的参考位置点。In formula (1), P a =[x a , y a , z a ] is the actual position of the tool, P r+k+i =[x r+k+i , y r+k+i , z r+k+ i ] is the position point near the tool reference position Pr+k , and N is the index boundary set. The index boundary is set to reduce the amount of calculation and improve the estimation speed. The size of the index boundary is generally set between 50 and 100, so that both The index accuracy can be guaranteed, and the calculation amount can also be reduced. Then find the minimum value by comparing the distances obtained by formula (1)
Figure BDA0001413833560000062
The corresponding reference position is the closest reference position to the actual position of the tool to be obtained. As shown in Fig. 3, the reference position point Pr+kj is the found reference position point closest to the actual position of the tool.

4、利用所存储的参考位置命令和实际测得的刀具位置运用所提出的三点圆弧逼近估算方法进行轮廓误差估算;4. Use the stored reference position command and the actual measured tool position to use the proposed three-point arc approximation estimation method to estimate the contour error;

如图3所示,参考位置点Pr+k-j为所找到的距离刀具实际位置Pa最近的参考位置点,Pr+k-j-1和Pr+k-j+1为Pr+k-j相邻两侧的参考位置点。As shown in Figure 3, the reference position point Pr+kj is the found reference position point closest to the actual position Pa of the tool, and Pr+kj-1 and Pr +k-j+1 are the Pr+kj phase Reference location points on both sides of the neighbor.

首先,假设Pr+k-j-1、Pr+k-j和Pr+k-j+1这三点不共线,则根据“过不在一条直线上的三点,有且只有一个平面”的定理可知不在同一直线上的三点Pr+k-j-1、Pr+k-j和Pr+k-j+1可以唯一确定一个空间平面,且不在同一直线上的三点可以确定唯一的圆弧。因此,可以令不在同一直线上的三点Pr+k-j-1、Pr+k-j和Pr+k-j+1所确定的平面为圆平面⊙O0,Pr+k-j-1、Pr+k-j和Pr+k-j+1三点所确定的圆弧的圆心为O0=[x0,y0,z0]T、圆弧半径为R,圆心O0=[x0,y0,z0]T和半径R是待求的未知量,其求解方法将在下面详细展开。First of all, assuming that the three points Pr +kj-1 , Pr+kj and Pr +k-j+1 are not collinear, then according to the theorem of "Three points that are not on a straight line, there is only one plane" It can be known that three points Pr+kj-1 , Pr+kj and Pr +k-j+1 which are not on the same straight line can uniquely determine a space plane, and three points that are not on the same straight line can determine a unique arc. Therefore, the plane determined by the three points Pr+kj-1 , Pr+kj and Pr +k-j+1 which are not on the same straight line can be defined as the circular plane ⊙O 0 , Pr +kj-1 , P The center of the arc determined by the three points r+kj and P r+k-j+1 is O 0 =[x 0 , y 0 , z 0 ] T , the radius of the arc is R, and the center O 0 =[x 0 , y 0 , z 0 ] T and radius R are unknowns to be solved, and the solution method will be expanded in detail below.

因为三维空间的四点Pr+k-j-1=[xr+k-j-1,yr+k-j-1,zr+k-j-1]TBecause the four points in the three-dimensional space P r+kj-1 =[x r+kj-1 , y r+kj-1 , z r+kj-1 ] T ,

Pr+k-j=[xr+k-j,yr+k-j,zr+k-j]T、Pr+k-j+1=[xr+k-j+1,yr+k-j+1,zr+k-j+1]T和O0=[x0,y0,z0]T是共面的,因此可得下式:P r+kj =[x r+kj ,y r+kj ,z r+kj ] T , P r+k-j+1 =[x r+k-j+1 ,y r+k-j+1 ,z r+k-j+1 ] T and O 0 =[x 0 ,y 0 ,z 0 ] T are coplanar, so the following formula can be obtained:

Figure BDA0001413833560000071
Figure BDA0001413833560000071

式(2)中Pr+k-j-1、Pr+k-j和Pr+k-j+1是已知的参考位置;式(2)可改写为如下等式: Pr+kj-1 , Pr+kj and Pr +k-j+1 in formula (2) are known reference positions; formula (2) can be rewritten as the following equation:

A1x0+B1y0+C1z0+D1=0 (3)A 1 x 0 +B 1 y 0 +C 1 z 0 +D 1 =0 (3)

式(3)中

Figure BDA0001413833560000072
Figure BDA0001413833560000073
Figure BDA0001413833560000074
In formula (3)
Figure BDA0001413833560000072
Figure BDA0001413833560000073
and
Figure BDA0001413833560000074

又根据圆弧圆心O0到圆弧上的三点Pr+k-j-1、Pr+k-j和Pr+k-j+1的距离都等于圆弧半径R,可以得到如下两个等式:According to the distance from the arc center O 0 to the three points Pr+kj-1 , Pr+kj and Pr +k-j+1 on the arc are equal to the arc radius R, the following two equations can be obtained :

(Pr+k-j+1-O0)T(Pr+k-j+1-O0)=(Pr+k-j-O0)T(Pr+k-j-O0) (4)( Pr+k-j+1 -O 0 ) T ( Pr+k-j+1 -O 0 )=( Pr+kj -O 0 ) T ( Pr+kj -O 0 ) (4)

(Pr+k-j+1-O0)T(Pr+k-j+1-O0)=(Pr+k-j-1-O0)T(Pr+k-j-1-O0) (5)( Pr+k-j+1 -O 0 ) T ( Pr+k-j+1 -O 0 )=( Pr+kj-1 -O 0 ) T ( Pr+kj-1 -O 0 ) (5)

式(4)和式(5)可以分别写成下式:Equations (4) and (5) can be written as the following equations, respectively:

A2x0+B2y0+C2z0+D2=0 (6)A 2 x 0 +B 2 y 0 +C 2 z 0 +D 2 =0 (6)

A3x0+B3y0+C3z0+D3=0 (7)A 3 x 0 +B 3 y 0 +C 3 z 0 +D 3 =0 (7)

式(4)和式(5)中[A2 B2 C2]T=2(Pr+k-j-Pr+k-j+1)、In formula (4) and formula (5) [A 2 B 2 C 2 ] T =2( Pr+kj -Pr +k-j+1 ),

D2=Pr+k-j+1 T·Pr+k-j+1-Pr+k-j T·Pr+k-j、[A3 B3 C3]T=2(Pr+k-j-1-Pr+k-j+1)、和D 2 = Pr+k-j+1 T · Pr+k-j+1 -Pr +kj T ·Pr +kj , [A 3 B 3 C 3 ] T =2( Pr+kj- 1 -Pr +k-j+1 ), and

D3=Pr+k-j+1 T·Pr+k-j+1-Pr+k-j-1 T·Pr+k-j-1D 3 = Pr+k-j+1 T · Pr+k-j+1 -Pr +kj-1 T · Pr+kj-1 .

联立公式(3)、(6)和(7)可以得到下式:Simultaneous formulas (3), (6) and (7) can be obtained as follows:

Figure BDA0001413833560000081
Figure BDA0001413833560000081

因此,在三维空间的圆弧圆心O0的坐标可以通过下式(9)获得:Therefore, the coordinates of the arc center O 0 in the three-dimensional space can be obtained by the following formula (9):

Figure BDA0001413833560000082
Figure BDA0001413833560000082

因此,圆弧的半径也可以通过下式(10)容易的得到:Therefore, the radius of the arc can also be easily obtained by the following formula (10):

因为刀具实际位置Pa有可能与圆平面⊙O0不共面,因此要进行投影处理。假设刀具实际位置Pa=[xa,ya,za]T在圆平面⊙O0的投影点为P′a=[x′a,y′a,z′a]T。圆平面⊙O0的单位法向量n可以通过下式获得:Because the actual position P a of the tool may not be coplanar with the circular plane ⊙O 0 , projection processing is required. Assume that the actual tool position P a =[x a , y a , z a ] T is projected on the circular plane ⊙O 0 to be P′ a =[x′ a , y′ a , z′ a ] T . The unit normal vector n of the circular plane ⊙O 0 can be obtained by the following formula:

Figure BDA0001413833560000084
Figure BDA0001413833560000084

Figure BDA0001413833560000085
Figure BDA0001413833560000085

n=v1×v2 (13)n=v 1 ×v 2 (13)

式(11)和式(12)中||·||为欧里几德范数,式(13)中的“ד表示两个向量之间的叉乘。当圆平面⊙O0的单位法向量n通过式(13)获得后,刀具实际位置Pa=[xa,ya,za]T在圆平面⊙O0的投影点P′a可以通过下式获得:||·|| in Equation (11) and Equation (12) is the Euclidean norm, and “×” in Equation (13) represents the cross product between two vectors. When the unit normal vector n of the circular plane ⊙O 0 is obtained by formula (13), the actual position of the tool P a =[x a , y a , z a ] The projection point P′ a of T on the circular plane ⊙O 0 can be passed through Obtained by the following formula:

Figure BDA0001413833560000086
Figure BDA0001413833560000086

如图3所示,圆弧圆心O0与投影点P′a的连线与圆弧Pr+k-j+1Pr+k-j-1的交点

Figure BDA0001413833560000087
为估算所得到的轮廓位置。三轴数控加工的轮廓误差的大小可以通过下式获得:As shown in Figure 3, the line connecting the arc center O 0 and the projection point P'a and the intersection of the arc P r+k-j+1 P r+kj-1
Figure BDA0001413833560000087
for the estimated contour position. The size of the contour error of three-axis CNC machining can be obtained by the following formula:

Figure BDA0001413833560000091
Figure BDA0001413833560000091

(15)中||·||为欧里几德范数。由式(15)可知,估算轮廓误差的大小不需要求解出所估算的轮廓位置

Figure BDA0001413833560000097
的坐标,轮廓误差大小的估算只需要求解出拟合圆弧的圆心O0的坐标、圆弧半径R的大小以及刀具实际位置Pa=[xa,ya,za]T在圆平面⊙O0的投影点P′a的坐标即可。(15) ||·|| is the Euclidean norm. It can be seen from equation (15) that the estimated contour error does not need to solve the estimated contour position
Figure BDA0001413833560000097
To estimate the size of the contour error, it only needs to solve the coordinates of the center O 0 of the fitted arc, the size of the arc radius R and the actual position of the tool P a = [x a , y a , z a ] T on the circular plane The coordinates of the projection point P'a of ⊙O 0 are sufficient.

当Pr+k-j-1、Pr+k-j和Pr+k-j+1这三点共线时,此时这三点不能确定一个唯一的平面,上述的三点圆弧的估算方法就不能处理这种情况,为了能够处理这种情况,本发明采用了如图4所示的方法。通过投影方法直接求出刀具实际位置Pa=[xa,ya,za]T在线段上的投影点P′a。计算投影点P′a的方法可以通过下式获得:When the three points P r+kj-1 , P r+kj and P r+k-j+1 are collinear, the three points cannot determine a unique plane, and the above three-point arc estimation method is This situation cannot be handled, and in order to be able to handle this situation, the present invention adopts the method shown in FIG. 4 . The actual tool position P a =[x a ,y a ,z a ] T line segment is directly obtained by the projection method The projected point P' a on . The method of calculating the projection point P'a can be obtained by the following formula:

Figure BDA0001413833560000093
Figure BDA0001413833560000093

Figure BDA0001413833560000094
Figure BDA0001413833560000094

式(16)中||·||为欧里几德范数。通过式(16)和式(17)可以获得刀具实际位置Pa=[xa,ya,za]T在线段

Figure BDA0001413833560000095
上的投影点P′a的坐标。因此,此时三轴数控加工的轮廓误差的大小可以通过下式获得:In formula (16) ||·|| is the Euclidean norm. The actual tool position P a =[x a , y a , z a ] T line segment can be obtained by formula (16) and formula (17)
Figure BDA0001413833560000095
The coordinates of the projected point P'a on . Therefore, the size of the contour error of the three-axis CNC machining can be obtained by the following formula:

Figure BDA0001413833560000096
Figure BDA0001413833560000096

通过式(18)可以估算出当Pr+k-j-1、Pr+k-j和Pr+k-j+1这三点共线时的轮廓误差。The contour error when the three points Pr +kj-1 , Pr+kj and Pr +k-j+1 are collinear can be estimated by equation (18).

当通过索引法找到的距离刀具实际位置最近的参考位置位于参考位置命令的两个端点时,即为P1或PN(下标1和N分别表示首尾两端的参考位置命令),此时三轴数控加工的轮廓误差的大小可以通过下式获得:When the reference position closest to the actual position of the tool found by the index method is located at the two end points of the reference position command, it is P 1 or P N (the subscripts 1 and N represent the reference position commands at the beginning and the end respectively). The size of the contour error of the axis CNC machining can be obtained by the following formula:

Figure BDA0001413833560000101
Figure BDA0001413833560000101

综上所述,即为本发明所提出的完整的三轴数控加工的轮廓误差估算方法。To sum up, it is a complete contour error estimation method for three-axis numerical control machining proposed by the present invention.

图5(a)是按照本发明的优选实施例所构建的整体轮廓误差的估算精度对比图,图5(b)是按照本发明的优选实施例所构建的各个轴的轮廓误差分量的估算精度对比图,如图5(a)和图5(b)所示,估算精度是通过估算偏差的大小来反映出来的,估算偏差为本发明所提出的估算方法减去轮廓误差的实际值得出的。从图5可以看出,无论整体轮廓误差的估算精度还是各个轴的轮廓误差分量的估算精度都在2×10-6mm以内,亦即所提出的轮廓误差估算方法的估算误差小于2×10-3μm,远远满足商用数控加工过程中的精度要求。因此,通过实验可以得出本发明所提出的方法能够满足三轴数控加工的轮廓误差估算。Fig. 5(a) is a comparison diagram of the estimation accuracy of the overall contour error constructed according to the preferred embodiment of the present invention, and Fig. 5(b) is the estimated accuracy of the contour error components of each axis constructed according to the preferred embodiment of the present invention As shown in Fig. 5(a) and Fig. 5(b), the estimation accuracy is reflected by the size of the estimated deviation, which is obtained by subtracting the actual value of the contour error from the estimation method proposed by the present invention. . It can be seen from Fig. 5 that both the estimation accuracy of the overall contour error and the estimation accuracy of the contour error components of each axis are within 2 × 10 -6 mm, that is, the estimation error of the proposed contour error estimation method is less than 2 × 10 mm. -3 μm, which far meets the precision requirements in the commercial CNC machining process. Therefore, through experiments, it can be concluded that the method proposed by the present invention can meet the contour error estimation of three-axis numerical control machining.

本发明提出了一种三轴数控加工的轮廓误差估算方法,此方法可以高精度地估算出三轴数控加工过程中轮廓误差的大小,且估算过程中仅需要刀具轨迹插补后的参考位置和实际刀尖点位置,而不需要其他额外的信息。本发明简单易行,可以准确、快速地估算出数控加工过程中轮廓误差的大小,且具备通用性,适用于各种类型的三维空间的刀具轨迹,对于提高数控机床的加工精度具有很好的应用价值。The invention proposes a contour error estimation method for three-axis numerical control machining. This method can estimate the size of the contour error in the three-axis numerical control machining process with high accuracy, and only the reference position and the tool path interpolation are required in the estimation process. The actual tool nose point position without any additional information. The invention is simple and easy to implement, can accurately and quickly estimate the size of the contour error in the numerical control machining process, has universality, is suitable for various types of three-dimensional space tool paths, and has a good effect on improving the machining accuracy of the numerical control machine tool. Value.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily 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, etc., All should be included within the protection scope of the present invention.

Claims (4)

1. A contour error estimation method of a three-axis numerical control machine tool is characterized by comprising the following steps:
(a) planning a machining path of a cutter of a three-axis numerical control machine tool and obtaining an ideal machining reference track aiming at an object to be machined, interpolating the reference track and storing three-dimensional coordinates of each machining point after interpolation, machining the object to be machined by the cutter according to the reference track, monitoring an actual machining track of the cutter and storing the three-dimensional coordinates of each machining point on the actual machining track;
(b) for the current actual machining point P of the toolaFinding a reference point P corresponding to the actual processing point in the reference trackr+kCalculating the distance between the actual processing point and a point near the reference point, wherein the point corresponding to the minimum value of the distance is the reference position point P closest to the actual processing point on the reference trackr+k-j
(c) On the reference track and the nearest reference position point Pr+k-jAdjacent point is Pr+k-j-1And Pr+k-j+1The required profile error is estimated separately from the following different cases:
(c1) when said P isr+k-j-1、Pr+k-jAnd Pr+k-j+1When the two are not on the same straight line,
according to said Pr+k-j-1、Pr+k-jAnd Pr+k-j+1Constructing a circle, and determining the radius and center O of the circle0Coordinates of the actual machining point on the plane ⊙ O of the circle0Projecting to obtain its projected point P'a(ii) a The center of the circle O0And projection point P'aIs connected to the circle Pr+k-j-1And Pr+k-j+1The arc between them is crossed, the intersection point is
Figure FDA0002263493110000011
The point of intersection
Figure FDA0002263493110000012
And the actual machining point PaIs the profile error to be estimated
Figure FDA0002263493110000013
(c2) When said P isr+k-j-1、Pr+k-jAnd Pr+k-j+1When the two parts are on the same straight line,
according to said Pr+k-j-1、Pr+k-jAnd Pr+k-j+1Constructing a straight line, and acquiring the projection point of the actual processing point on the straight line, wherein the projection point and the actual processing point PaThe distance between them being the profile error to be estimated
Figure FDA0002263493110000014
(c3) When the reference position point Pr+k-jAs end points of both ends of the reference track,
the reference position point Pr+k-jAnd the actual machining point PaThe distance between them being the profile error to be estimated
Figure FDA0002263493110000021
2. The contour error estimation method of a three-axis numerical control machine tool according to claim 1, wherein in the step (b), the nearest reference position point P is calculated according to the following expressionr+k-j
Figure FDA0002263493110000022
Wherein, PaIn the formula, the actual processing point PaCoordinate of (A), Pr+k+iIn which is a point P in the vicinity of the reference pointr+k+iI is along the reference trackNumber of sample points in the forward or reverse direction of the trace, LiIs the distance of the actual machining point from a point near the reference point.
3. The contour error estimation method of a three-axis numerical control machine tool according to claim 1, wherein, in the step (c1), the radius of the circle is performed according to the following expression,
wherein, O0In which is the coordinate of the center of the circle, Pr+k-j-1In the formula is point Pr+k-j-1R is the radius of the circle.
4. The contour error estimation method of a three-axis numerical control machine tool according to claim 1, wherein, in the step (c1), the contour error is performed according to the following expression,
Figure FDA0002263493110000024
wherein, P'aIn which is the coordinate of the projection point, PaIn the formula, the coordinates of the actual machining point are shown, and R is the radius of the circle.
CN201710853232.5A 2017-09-20 2017-09-20 Contour error estimation method of three-axis numerical control machine tool Active CN107544430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710853232.5A CN107544430B (en) 2017-09-20 2017-09-20 Contour error estimation method of three-axis numerical control machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710853232.5A CN107544430B (en) 2017-09-20 2017-09-20 Contour error estimation method of three-axis numerical control machine tool

Publications (2)

Publication Number Publication Date
CN107544430A CN107544430A (en) 2018-01-05
CN107544430B true CN107544430B (en) 2020-02-14

Family

ID=60963878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710853232.5A Active CN107544430B (en) 2017-09-20 2017-09-20 Contour error estimation method of three-axis numerical control machine tool

Country Status (1)

Country Link
CN (1) CN107544430B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459559B (en) * 2018-05-03 2021-04-13 南京航空航天大学 Real-time monitoring method of trajectory error of five-axis linkage machining machine tool
CN108803487B (en) * 2018-08-17 2021-01-29 西南交通大学 A point profile error prediction method for side milling surfaces of parts
CN109240214B (en) * 2018-11-12 2020-04-21 电子科技大学 A Contour Error Estimation and Visualization Method for Multi-axis CNC Machining
CN109491321B (en) * 2018-12-05 2021-05-14 沈阳工业大学 A Contour Error Estimation Method Based on H-type Precision Motion Platform
CN111240267B (en) * 2020-01-09 2021-06-18 华中科技大学 A method and device for defining and estimating contour error for robot machining
CN111487927B (en) * 2020-04-26 2022-02-15 华中科技大学 A spline trajectory control instruction optimization method based on the joint action of dual codes
CN112506140B (en) * 2020-12-02 2021-11-12 宁夏大学 A space arc interpolation method and system for a five-axis linkage water cutting machine tool
CN115562163B (en) * 2022-12-06 2023-04-07 江苏古田自动化股份有限公司 Real-time monitoring system based on numerical control machine tool parameter data
CN118707894B (en) * 2024-08-29 2024-12-13 成都飞机工业(集团)有限责任公司 A method, device, medium and equipment for obtaining plane contour error in CNC machine tool processing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540977A (en) * 2012-03-16 2012-07-04 上海大学 Method for estimating error in numerical control processing
CN103268081A (en) * 2013-03-25 2013-08-28 昆山天大精益数控科技发展有限公司 Precision error control based orbit segment transfer processing algorithm for numerical control machine tool
CN104536381A (en) * 2014-11-11 2015-04-22 华中科技大学 System and method for measuring contour error of multi-axis movement control system
CN105388840A (en) * 2015-12-24 2016-03-09 上海交通大学 Real-time self-adaptive contour error estimation method
CN106125673A (en) * 2016-08-03 2016-11-16 大连理工大学 Profile errors real-time estimation method based on space circular arc approximation
CN106125674A (en) * 2016-08-03 2016-11-16 大连理工大学 A kind of high accuracy real time profile error estimation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540977A (en) * 2012-03-16 2012-07-04 上海大学 Method for estimating error in numerical control processing
CN103268081A (en) * 2013-03-25 2013-08-28 昆山天大精益数控科技发展有限公司 Precision error control based orbit segment transfer processing algorithm for numerical control machine tool
CN104536381A (en) * 2014-11-11 2015-04-22 华中科技大学 System and method for measuring contour error of multi-axis movement control system
CN105388840A (en) * 2015-12-24 2016-03-09 上海交通大学 Real-time self-adaptive contour error estimation method
CN106125673A (en) * 2016-08-03 2016-11-16 大连理工大学 Profile errors real-time estimation method based on space circular arc approximation
CN106125674A (en) * 2016-08-03 2016-11-16 大连理工大学 A kind of high accuracy real time profile error estimation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A tool path generation and contour error estimation method for four-axis serial machines;Jixiang Yang,etc;《Mechatronics》;20151015;第31卷(第1期);第78-88页 *
Real time parameter based contour error estimation algorithms for free form contour following;Hung-Ruey Chen,etc;《International Journal of Machine Tools and Manufacture》;20160315;第102卷(第1期);第1-8页 *

Also Published As

Publication number Publication date
CN107544430A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107544430B (en) Contour error estimation method of three-axis numerical control machine tool
CN105425727B (en) Five axis Flank machining cutter path method for fairing
CN103759635B (en) The scanning survey robot detection method that a kind of precision is unrelated with robot
CN103777570B (en) Mismachining tolerance quick detection compensation method based on nurbs surface
CN109483322B (en) Zero calibration method of five-axis numerical control machine tool
CN107330142B (en) On-machine detection measuring point normal vector estimation method based on STL model
CN106125673B (en) Based on the approximate profile errors real-time estimation method of space circular arc
CN105676779B (en) A kind of Free-Form Surface Machining method for tracing that locally interference zone boundary determines
CN104816307A (en) Four-point normal leveling method for precise hole manufacturing of industrial robot
CN104985482B (en) A kind of Five-axis NC Machining Center On-machine Test complex profile method
CN103256916A (en) Evaluation method of part flatness error based on minimum area
CN108803487A (en) A kind of point profile errors prediction technique on part side milling surface
CN106406237A (en) Method for processing metal part with free-form hook surface
CN108062071B (en) A Real-time Measurement Method of Servo Profile Error of Parametric Curve Track
CN112965440B (en) Tool path generation method, electronic device, and storage medium
CN110989490A (en) A method for obtaining the optimal installation position of workpiece based on contour error
CN103292769B (en) A kind of plane inclination error detection method based on Minimum Area
CN102540977B (en) Method for estimating error in numerical control processing
CN110531709B (en) Method for analyzing relation between machining error and feed rate of curved surface part
CN115179323B (en) Machine terminal posture measurement device and precision improvement method based on telecentric vision constraint
CN106707967B (en) Three-D profile error estimation and device based on approximate test expansion
CN114310897B (en) Pose optimization and motion fairing calculation method, system and application of robot measurement
CN109491321B (en) A Contour Error Estimation Method Based on H-type Precision Motion Platform
CN114578754A (en) Method for identifying pitching error and deflection error of numerical control machine tool
CN102359783A (en) Vision-based mobile robot positioning method

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