CN114942615B - Equal-bow-height error interpolation method, device and storage medium - Google Patents
Equal-bow-height error interpolation method, device and storage medium Download PDFInfo
- Publication number
- CN114942615B CN114942615B CN202210565329.7A CN202210565329A CN114942615B CN 114942615 B CN114942615 B CN 114942615B CN 202210565329 A CN202210565329 A CN 202210565329A CN 114942615 B CN114942615 B CN 114942615B
- Authority
- CN
- China
- Prior art keywords
- curve
- curvature
- interpolation
- height error
- step size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 238000003860 storage Methods 0.000 title claims description 13
- 238000004364 calculation method Methods 0.000 claims abstract description 74
- 230000008859 change Effects 0.000 claims abstract description 60
- 238000012545 processing Methods 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 20
- 230000006870 function Effects 0.000 claims description 11
- 239000013598 vector Substances 0.000 claims description 10
- 238000003754 machining Methods 0.000 abstract description 8
- 238000005192 partition Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 12
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical 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/41—Numerical 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/34—Director, elements to supervisory
- G05B2219/34083—Interpolation general
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total 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)
- Image Generation (AREA)
- Numerical Control (AREA)
Abstract
本发明的插补方法需要预先分析自由曲线的曲率变化情况,根据曲率变化率将待加工曲线划分区段,各区段采用不同策略进行插补点的计算。曲率平稳的区段优先采用传统几何方法进行计算,舍弃校验功能,尽可能提高计算效率;曲率波动明显的区段需要严格监控曲率变化,根据误差自动调整步长大小,保证加工精度满足要求。基于曲率分区策略构建的新型插补方法,在参数控制灵活、计算快速稳定且可靠的基础上,解决了传统等弓高误差法存在的误差超限和步长过保守问题。
The interpolation method of the present invention needs to analyze the curvature change of the free curve in advance, divide the curve to be processed into sections according to the curvature change rate, and use different strategies to calculate the interpolation points in each section. For sections with stable curvature, the traditional geometric method is preferred for calculation, and the calibration function is discarded to improve calculation efficiency as much as possible; for sections with obvious curvature fluctuations, the curvature change needs to be strictly monitored, and the step size is automatically adjusted according to the error to ensure that the machining accuracy meets the requirements. The new interpolation method based on the curvature partition strategy solves the problems of error overrun and step size overconservation in the traditional contour height error method on the basis of flexible parameter control, fast, stable and reliable calculation.
Description
技术领域technical field
本发明涉及数控加工运动控制技术领域,尤其是指一种等弓高误差插补方法、设备、装置及计算机存储介质。The invention relates to the technical field of numerical control machining motion control, in particular to a method, equipment, device and computer storage medium for interpolating contour height errors.
背景技术Background technique
工业化进程的不断向前推进,对产品的设计、制造提出了更高的要求,自由曲面也应运而生。数控技术作为自由曲面加工的主要方式,也正朝着高速高精可靠的方向发展,而自由曲线的插补方法是影响自由曲面加工质量的一项关键技术。The continuous advancement of the industrialization process has put forward higher requirements for the design and manufacture of products, and free-form surfaces have also emerged as the times require. As the main method of free-form surface machining, numerical control technology is also developing in the direction of high speed, high precision and reliability, and the interpolation method of free-form curve is a key technology that affects the quality of free-form surface machining.
目前,工程上使用较多的是等距离步长法、等参数步长法、参数筛选法和等弓高误差法。等距离法采用相等的距离对刀轨进行插值,为满足逼近误差,取值较为保守,从而生成较多的冗余刀轨。等参数步长法是将曲线参数等距分割得到若干离散参数节点,以此作为实际加工的插补点,由于参数方程与曲线方程的非线性关系,使得插补点间误差波动较大,加工质量不均匀,甚至局部会出现大逼近误差的情况。参数筛选法要求初始离散点足够密集,因此计算量较大,计算速度较慢,而且该方法得到的弓高误差参差不齐,影响加工面精度。等弓高误差法考虑了曲率的变化,较前述方法有了较好的改善,但本质仍是借助圆弧计算步长,导致需要对误差反复进行校验,降低了计算性能,且校验结果仍可能超出误差允许范围。而当前存在的改进方案,仍存在一定的缺陷:(1)借助空间向量的方式改进相邻切触点间弓高误差值的计算,虽然可以得到更加精确的弓高误差值,一定程度上可以提高自由曲线插补后的精度,但并未解决曲率骤变带来的误差超限问题和步长过保守问题;(2)通过迭代计算寻找各切触点间的符合弓高误差要求的最佳步长值,没有考虑曲线情况,一味的通过计算来保证弓高误差符合要求,导致存在部分冗余的计算,降低了算法的执行效率。At present, the most widely used methods in engineering are equidistant step method, equal parameter step method, parameter screening method and equal bow height error method. The equidistance method uses equal distances to interpolate the tool paths. In order to meet the approximation error, the value is relatively conservative, thus generating more redundant tool paths. The equal parameter step method divides the curve parameters equidistantly to obtain several discrete parameter nodes, which are used as the interpolation points for actual processing. Due to the nonlinear relationship between the parameter equation and the curve equation, the error between the interpolation points fluctuates greatly, and the processing The quality is not uniform, and even large approximation errors may occur locally. The parameter screening method requires that the initial discrete points be sufficiently dense, so the calculation amount is large and the calculation speed is slow. Moreover, the error of the bow height obtained by this method is uneven, which affects the precision of the processed surface. The equal bow height error method takes into account the change of curvature, which is a better improvement than the previous method, but the essence is still to use the arc to calculate the step size, which leads to the need to repeatedly verify the error, which reduces the calculation performance, and the verification results It is still possible to exceed the tolerance range of error. However, there are still some defects in the existing improvement schemes: (1) The calculation of the error value of the bow height between adjacent tangent points is improved by means of space vectors. Although a more accurate error value of the bow height can be obtained, to a certain extent Improve the accuracy of free curve interpolation, but it does not solve the problem of error overrun and step size too conservative caused by sudden curvature changes; Optimum step length value does not consider the curve situation, and blindly calculates to ensure that the bow height error meets the requirements, resulting in some redundant calculations and reducing the execution efficiency of the algorithm.
发明内容Contents of the invention
为此,本发明所要解决的技术问题在于克服现有技术中计算效率低的问题和计算不精确的问题。Therefore, the technical problem to be solved by the present invention is to overcome the problems of low calculation efficiency and inaccurate calculation in the prior art.
为解决上述技术问题,本发明提供了一种等弓高误差插补方法、设备、装置及计算机存储介质,包括:In order to solve the above technical problems, the present invention provides a contour height error interpolation method, equipment, device and computer storage medium, including:
根据待加工曲线的控制顶点数据,计算得到贝塞尔曲线的参数表达式;Calculate the parameter expression of the Bezier curve according to the control vertex data of the curve to be processed;
计算所述贝塞尔曲线的曲率,得到曲率随着曲线参数变化的变化率;Calculating the curvature of the Bezier curve to obtain the rate of change of the curvature as the curve parameters change;
若当前区段的变化率不大于基准值,则利用几何关系计算得到当前区段内的最小曲率半径,并以所述最小曲率半径为圆弧半径计算插补步长;If the rate of change of the current section is not greater than the reference value, the minimum radius of curvature in the current section is calculated by using the geometric relationship, and the interpolation step is calculated with the minimum radius of curvature as the radius of the arc;
若当前区段的变化率大于基准值,则利用几何关系计算所述当前区段初始点位的曲率半径,并以所述初始点位的曲率半径为圆弧半径近似逼近计算得到初始步长,迭代更新所述初始步长,直至求解出符合弓高误差要求的最佳步长;If the rate of change of the current section is greater than the reference value, the geometric relationship is used to calculate the radius of curvature of the initial point of the current section, and the initial step is obtained by approximating the radius of curvature of the initial point as the arc radius, Iteratively updating the initial step size until an optimal step size meeting the bow height error requirement is obtained;
根据所述最佳步长计算对应的插补终点,以此判断当前区段是否计算完毕,若未计算完毕,则将所述初始点位更新为所述插补终点,返回执行上述求解最佳步长的步骤;Calculate the corresponding interpolation end point according to the optimal step length, so as to judge whether the calculation of the current section is completed. If the calculation is not completed, update the initial point to the interpolation end point, and return to perform the above-mentioned optimal solution. Step by step;
当所有区段计算完毕后,将离散插补点进行合并,得到完整的离散点路径。When all sections are calculated, the discrete interpolation points are merged to obtain a complete discrete point path.
优选地,所述根据待加工曲线的控制顶点数据,计算得到贝塞尔曲线的参数表达式包括:Preferably, according to the control vertex data of the curve to be processed, the calculated parameter expression of the Bezier curve includes:
根据给定的所述待加工曲线的控制顶点数据P,计算得到贝塞尔曲线L;According to the given control vertex data P of the curve to be processed, calculate the Bezier curve L;
根据控制顶点数量n计算得到贝塞尔曲线的基函数表达式:Calculate the basis function expression of the Bezier curve according to the number of control vertices n:
其中,i=0,1,2,…,n,曲线参数u∈[0,1],由此计算得到贝塞尔曲线L的参数表达式:Among them, i=0,1,2,...,n, the curve parameter u∈[0,1], thus the parameter expression of the Bezier curve L is calculated:
优选地,所述计算所述贝塞尔曲线的曲率,得到曲率随着曲线参数变化的变化率包括:Preferably, the calculation of the curvature of the Bezier curve to obtain the rate of change of the curvature as the curve parameter changes comprises:
计算所述贝塞尔曲线的曲率其中c(u)为所述贝塞尔曲线的参数表达式,c′(u)为曲线一阶导数,c″(u)为曲线二阶导数;Calculate the curvature of the Bezier curve Wherein c (u) is the parametric expression of described Bezier curve, c ' (u) is the curve first-order derivative, and c " (u) is the curve second-order derivative;
计算曲率随着曲线参数变化的变化率 Computes the rate of change of curvature as a function of a curve parameter
优选地,所述迭代更新所述初始步长,直至求解出符合弓高误差要求的最佳步长包括:Preferably, the iteratively updating the initial step size until an optimal step size that meets the bow height error requirement is obtained includes:
步骤a:计算得到当前步长值时相邻插补点间的最大弓高误差值;Step a: Calculate the maximum bow height error value between adjacent interpolation points when the current step value is obtained;
步骤b:计算当前步长最大弓高误差值与加工容许最大弓高误差值之间差值的绝对值,并与迭代误差比较;Step b: Calculate the absolute value of the difference between the maximum bow height error value of the current step length and the processing allowable maximum bow height error value, and compare it with the iterative error;
步骤c:若所述绝对值大于迭代误差,则跳转至步骤d,若所述绝对值不大于迭代误差,则跳出迭代计算,将当前步长作为最佳步长;Step c: if the absolute value is greater than the iterative error, jump to step d; if the absolute value is not greater than the iterative error, skip the iterative calculation and use the current step size as the optimal step size;
步骤d:若当前步长最大弓高误差值不大于所述加工容许最大弓高误差值时,则增大自由曲线的参数增量,更新所述当前步长值,跳转到步骤a,将当前步长作为最佳步长,否则,减小所述自由曲线的参数增量,更新所述当前步长值,跳转到步骤a,直至所述当前步长最大弓高误差值不大于所述加工容许最大弓高误差值。Step d: If the maximum bow height error value of the current step size is not greater than the processing allowable maximum bow height error value, then increase the parameter increment of the free curve, update the current step size value, jump to step a, and set The current step size is the optimal step size, otherwise, reduce the parameter increment of the free curve, update the current step size value, and jump to step a until the maximum bow height error value of the current step size is not greater than the specified The above processing allowable maximum bow height error value.
优选地,所述择增大或减小所述自由曲线的参数增量Δu=(1±α)Δu,其中,α为预设的步长自动调整系数。Preferably, the optional increase or decrease of the parameter increment of the free curve Δu=(1±α)Δu, where α is a preset step size automatic adjustment coefficient.
优选地,所述更新所述当前步长值为si=c′(ui)Δui,其中,c(u)为所述贝塞尔曲线的参数表达式,i=0,1,2,…,n,u∈[0,1];Preferably, the updated current step value is s i =c'(u i )Δu i , where c(u) is a parameter expression of the Bezier curve, i=0,1,2 ,...,n,u∈[0,1];
计算其对应的插补段终点为c(ui+1)=c(ui+Δui)。The corresponding end point of the interpolation segment is calculated as c(u i+1 )=c(u i +Δu i ).
优选地,所述计算得到当前步长值时相邻插补点间的最大弓高误差值e0=||T2||sinθ;Preferably, when the calculation obtains the current step length value, the maximum bow height error value e 0 =||T 2 ||sinθ between adjacent interpolation points;
其中,两矢量间的夹角是两个相邻插补点构成的矢量,/>是插补段的起点到曲线段上任一点所构成的矢量。Among them, the angle between the two vectors is a vector composed of two adjacent interpolation points, /> It is the vector formed from the starting point of the interpolation segment to any point on the curve segment.
本发明还提供了一种等弓高误差插补的装置,包括:The present invention also provides a device for interpolating contour height errors, including:
曲线参数表达式计算模块,用于根据待加工曲线的控制顶点数据,计算得到贝塞尔曲线的参数表达式;The curve parameter expression calculation module is used to calculate the parameter expression of the Bezier curve according to the control vertex data of the curve to be processed;
曲线变化率计算模块,用于计算所述贝塞尔曲线的曲率,得到曲率随着曲线参数变化的变化率;Curve rate of change calculation module, used to calculate the curvature of the Bezier curve, to obtain the rate of change of the curvature as the curve parameter changes;
平稳区段插补步长计算模块,用于利用几何关系计算得到当前区段内的最小曲率半径,并以所述最小曲率半径为圆弧半径计算插补步长;The smooth section interpolation step calculation module is used to calculate the minimum curvature radius in the current section by using the geometric relationship, and calculate the interpolation step with the minimum curvature radius as the arc radius;
波动区段最佳步长计算模块,用于利用几何关系计算所述当前区段的初始点位的曲率半径,并以所述初始点位的曲率半径为圆弧半径近似逼近计算得到初始步长,迭代更新所述初始步长,直至求解出符合弓高误差要求的最佳步长;The optimal step size calculation module of the fluctuation section is used to calculate the curvature radius of the initial point of the current section by using the geometric relationship, and use the curvature radius of the initial point as the arc radius to obtain the initial step size by approximate calculation , iteratively updating the initial step size until the optimal step size meeting the bow height error requirement is obtained;
波动区段计算是否完毕判断模块,用于根据所述最佳步长计算对应的插补终点,以此判断当前区段是否计算完毕,若未计算完毕,则将所述初始点位更新为所述插补终点,返回执行上述求解最佳步长的步骤;The judging module for whether the calculation of the fluctuation section is completed is used to calculate the corresponding interpolation end point according to the optimal step length, so as to judge whether the calculation of the current section is completed, and if the calculation is not completed, update the initial point to the The end point of the interpolation is described, and the step of performing the above-mentioned solution to the optimal step size is returned;
离散插补点合并模块,用于当所有区段计算完毕后,将离散插补点进行合并,得到完整的离散点路径。The discrete interpolation point merging module is used to merge the discrete interpolation points to obtain a complete discrete point path after all sections are calculated.
本发明还提供了一种等弓高误差插补的设备,包括:The present invention also provides a device for contour height error interpolation, including:
存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述一种等弓高误差插补方法的步骤。The memory is used to store the computer program; the processor is used to realize the steps of the above-mentioned contour error interpolation method when executing the computer program.
本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述一种等弓高误差插补方法的步骤。The present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned contour error interpolation method are realized.
本发明的上述技术方案相比现有技术具有以下优点:The above technical solution of the present invention has the following advantages compared with the prior art:
本发明提出了一种基于曲率分区的曲线加工中的等弓高误差插补方法。该插补方法需要预先分析自由曲线的曲率变化情况,根据曲率变化率将待加工曲线划分区段,各区段采用不同策略进行插补点的计算。曲率平稳的区段优先采用传统几何方法进行计算,舍弃校验功能,尽可能提高计算效率;曲率波动明显的区段需要严格监控曲率变化,根据误差自动调整步长大小,保证加工精度满足要求。The invention proposes a contour height error interpolation method in curve processing based on curvature partition. This interpolation method needs to analyze the curvature change of the free curve in advance, divide the curve to be processed into sections according to the curvature change rate, and use different strategies to calculate the interpolation points in each section. For sections with stable curvature, the traditional geometric method is preferred for calculation, and the calibration function is discarded to improve calculation efficiency as much as possible; for sections with obvious curvature fluctuations, the curvature change needs to be strictly monitored, and the step size is automatically adjusted according to the error to ensure that the machining accuracy meets the requirements.
附图说明Description of drawings
为了使本发明的内容更容易被清楚的理解,下面根据本发明的具体实施例并结合附图,对本发明作进一步详细的说明,其中:In order to make the content of the present invention more easily understood, the present invention will be described in further detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:
图1是本发明等弓高误差插补方法的实现流程图;Fig. 1 is the realization flowchart of contour height error interpolation method of the present invention;
图2为几何方法计算插补步长的示意图;Fig. 2 is a schematic diagram of calculating the interpolation step length by the geometric method;
图3为根据曲率变化自动调整步长机制的示意图;Fig. 3 is a schematic diagram of the automatic adjustment step size mechanism according to the curvature change;
图4为本发明实施例中的等弓高误差插补方法流程图;Fig. 4 is a flow chart of a method for interpolating contour height errors in an embodiment of the present invention;
图5为待加工自由曲线的示意图;Fig. 5 is the schematic diagram of free curve to be processed;
图6为所选待加工自由曲线的曲率变化示意图;Fig. 6 is the schematic diagram of the curvature change of the selected free curve to be processed;
图7(a)为等弓高误差法进行插补计算后的离散刀触点;Figure 7(a) is the discrete knife contact after the interpolation calculation by the equal bow height error method;
图7(b)为等弓高误差法进行插补计算后的误差分布情况;Figure 7(b) shows the error distribution after the interpolation calculation by the contour error method;
图8(a)为基于曲率分区的等弓高误差插补方法进行插补计算后的离散刀触点;Fig. 8(a) is the discrete knife contact after the interpolation calculation based on the curvature partition equal bow height error interpolation method;
图8(b)为基于曲率分区的等弓高误差插补方法进行插补计算后的误差分布情况;Figure 8(b) shows the error distribution after the interpolation calculation based on the curvature partition-based contour height error interpolation method;
图9为本发明实施例提供的一种等弓高误差插补装置的结构框图。Fig. 9 is a structural block diagram of a contour height error interpolation device provided by an embodiment of the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种等弓高误差插补的方法、装置、设备及计算机存储介质,根据曲率变化率将待加工曲线划分区段,各区段采用不同策略进行插补点的计算,提高了计算精度与效率。The core of the present invention is to provide a method, device, equipment and computer storage medium for interpolation of contour height errors. According to the curvature change rate, the curve to be processed is divided into sections, and each section adopts different strategies to calculate the interpolation points, so as to improve calculation accuracy and efficiency.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
请参考图1,图1为本发明所提供的等弓高误差插补方法的实现流程图;具体操作步骤如下:Please refer to Fig. 1, Fig. 1 is the realization flowchart of the contour height error interpolation method provided by the present invention; The specific operation steps are as follows:
系统给定参数,包括:待加工曲线的控制顶点数据P、加工所用球头刀的刀具半径r、加工容许的最大弓高误差e、划分区段的曲率变化率基准值μ、步长自动调整系数α;The given parameters of the system include: the control vertex data P of the curve to be processed, the tool radius r of the ball nose cutter used for processing, the maximum bow height error e allowed for processing, the curvature change rate reference value μ of the divided section, and the step size automatic adjustment Coefficient α;
S101:根据待加工曲线的控制顶点数据,计算得到贝塞尔曲线的参数表达式;S101: According to the control vertex data of the curve to be processed, calculate the parameter expression of the Bezier curve;
根据给定的所述待加工曲线的控制顶点数据P,计算得到贝塞尔曲线L;According to the given control vertex data P of the curve to be processed, calculate the Bezier curve L;
根据控制顶点数量n计算得到贝塞尔曲线的基函数表达式:Calculate the basis function expression of the Bezier curve according to the number of control vertices n:
其中,i=0,1,2,…,n,曲线参数u∈[0,1],由此计算得到贝塞尔曲线L的参数表达式:Among them, i=0,1,2,...,n, the curve parameter u∈[0,1], thus the parameter expression of the Bezier curve L is calculated:
贝塞尔曲线的一阶导数式和二阶导数式:The first and second derivatives of Bezier curves:
S102:计算所述贝塞尔曲线的曲率,得到曲率随着曲线参数变化的变化率;S102: Calculate the curvature of the Bezier curve to obtain the rate of change of the curvature as the curve parameters change;
假设一条曲线的参数表达式为c(u),该曲线上一点处的曲率k只与曲线参数u、曲线一阶导数c′(u)和二阶导数c″(u)有关:Assuming that the parameter expression of a curve is c(u), the curvature k at a point on the curve is only related to the curve parameter u, the first order derivative c′(u) and the second order derivative c″(u) of the curve:
进而得到曲率随着曲线参数变化的变化率 Then the rate of change of the curvature with the change of the curve parameters is obtained
S103:若当前区段的变化率不大于基准值,则利用几何关系计算得到当前区段内的最小曲率半径,并以所述最小曲率半径为圆弧半径计算插补步长;S103: If the rate of change of the current section is not greater than the reference value, calculate the minimum curvature radius in the current section by using the geometric relationship, and use the minimum curvature radius as the radius of the arc to calculate the interpolation step size;
若当前区段的变化率不大于基准值μ0≤μ,则意味着当前曲线段的曲率变化微小,对插补步长计算的干扰可以忽略不计;If the change rate of the current segment is not greater than the reference value μ 0 ≤ μ, it means that the curvature of the current curve segment changes slightly, and the interference to the interpolation step calculation can be ignored;
如附图2所示,利用曲率半径与曲率互为倒数的几何关系,求取当前插补段内的最小曲率半径并以此作为圆弧半径进行插补步长的计算/>进而实现曲线段的离散逼近;As shown in Figure 2, the minimum radius of curvature in the current interpolation segment is obtained by using the geometric relationship between the radius of curvature and the reciprocal of the curvature And use this as the arc radius to calculate the interpolation step length /> Then realize the discrete approximation of the curve segment;
引入时间变量参数t,在t=ti处对曲线参数u进行二阶泰勒展开:The time variable parameter t is introduced, and the second-order Taylor expansion is performed on the curve parameter u at t=t i :
将曲线参数u对时间参数t的一、二阶导数t′、t″代入上式,展开化简可得插补步长si与参数增量Δui两者间的关系式:si=c′(ui)Δui;Substituting the first and second derivatives t′ and t″ of the curve parameter u to the time parameter t into the above formula, and expanding and simplifying, the relationship between the interpolation step s i and the parameter increment Δu i can be obtained: s i = c'(u i )Δu i ;
对当前插补点进行步长计算后,需要找到其后一个插补点的位置,也就是插补线段与曲线的交点,但直接通过求交点的方式十分复杂,通常利用两插补点间的参数增量来实现插补点的递推计算,即c(ui+1)=c(ui+Δui),由此可以递推计算出当前插补区段内的所有插补点,完成对曲率稳定区段的插补计算。After calculating the step length of the current interpolation point, it is necessary to find the position of the next interpolation point, that is, the intersection point between the interpolation line segment and the curve. However, it is very complicated to directly calculate the intersection point. The parameter increment is used to realize the recursive calculation of interpolation points, that is, c(u i+1 )=c(u i +Δu i ), so that all interpolation points in the current interpolation section can be recursively calculated, Complete the interpolation calculation for the curvature stable segment.
S104:若当前区段的变化率大于基准值,则利用几何关系计算所述当前区段初始点位的曲率半径,并以所述初始点位的曲率半径为圆弧半径近似逼近计算得到初始步长,迭代更新所述初始步长,直至求解出符合弓高误差要求的最佳步长;S104: If the rate of change of the current section is greater than the reference value, calculate the radius of curvature of the initial point of the current section using the geometric relationship, and use the radius of curvature of the initial point as the radius of the arc to approximate the calculation to obtain the initial step is long, update the initial step size iteratively until the optimal step size that meets the bow height error requirement is obtained;
S105:根据所述最佳步长计算对应的插补终点,以此判断当前区段是否计算完毕,若未计算完毕,则将所述初始点位更新为所述插补终点,返回执行上述求解最佳步长的步骤;S105: Calculate the corresponding interpolation end point according to the optimal step length, so as to judge whether the calculation of the current section is completed, if not, update the initial point to the interpolation end point, and return to execute the above solution The step with the optimal step size;
S106:当所有区段计算完毕后,将离散插补点进行合并,得到完整的离散点路径。S106: After all sections are calculated, merge the discrete interpolation points to obtain a complete discrete point path.
本发明构建的等弓高误差插补方法模型包含两个主要步骤:区段划分和插补计算。The contour height error interpolation method model constructed by the present invention includes two main steps: section division and interpolation calculation.
区段划分是指利用待加工曲线的控制顶点数据P进行贝塞尔曲线的拟合,对拟合后所得到的曲线进行曲率计算,通过比较曲线曲率随着曲线参数变化的变化率μ0和用于区段划分的曲率变化率基准值μ两者间的大小关系,从而实现对待加工自由曲线的区段划分,所得到的各区段内的曲率变化特征应保持基本一致。Segment division refers to the use of the control vertex data P of the curve to be processed to fit the Bezier curve, and calculate the curvature of the curve obtained after fitting, by comparing the change rate of the curve curvature with the curve parameter change μ 0 and The size relationship between the curvature change rate reference value μ used for section division, so as to realize the section division of the free curve to be processed, and the obtained curvature change characteristics in each section should remain basically the same.
插补计算是指对自由曲线经过区段划分后得到的各种不同曲率变化特性的区段分别采用不同的计算策略进行插补点的计算。自由曲线一般可以分为曲率稳定、曲率增大和曲率减小三类区段,每类区段都有相对应的插补计算策略。曲率稳定的区段利用几何关系求取插补段内的最小曲率半径,并以此作为圆弧半径进行曲线段的逼近,因为区段内的曲率保持稳定,为了提升算法执行效率,可忽略校验部分。曲率增大和曲率减小两类区段可以合并为曲率变化明显区段,该类型区段内需要实时监控曲线曲率在各位置处的变化情况,通过比较离散后弓高误差的实际值和给定值间的大小关系自动进行步长调节,经过一定次数的迭代计算,寻找到满足给定弓高误差的最大步长。这样可以保证即使曲线曲率变化剧烈,也能够使加工精度满足要求,加工后表面误差保持均匀,并且加工所需的步数少,加工效率高。Interpolation calculation refers to the calculation of interpolation points by using different calculation strategies for the sections with different curvature change characteristics obtained after the free curve is divided into sections. Free curves can generally be divided into three types of sections: stable curvature, increasing curvature, and decreasing curvature. Each type of section has a corresponding interpolation calculation strategy. The segment with stable curvature uses the geometric relationship to find the minimum curvature radius in the interpolation segment, and uses it as the radius of the arc to approximate the curve segment. Because the curvature in the segment remains stable, in order to improve the efficiency of the algorithm, the calibration can be ignored. test part. The two types of sections with increased curvature and decreased curvature can be combined into a section with obvious curvature change. In this type of section, it is necessary to monitor the change of the curvature of the curve at each position in real time. By comparing the actual value of the discrete back bow error with the given The size relationship between the values is automatically adjusted for the step size, and after a certain number of iterative calculations, the maximum step size that satisfies the given bow height error is found. This can ensure that even if the curvature of the curve changes drastically, the processing accuracy can meet the requirements, the surface error after processing can be kept uniform, and the number of steps required for processing is small, and the processing efficiency is high.
当插补模型确定后,待加工自由曲线被划分为了多个区段,根据各区段的曲率变化特征,采用合适的计算策略进行后续的插补计算。When the interpolation model is determined, the free curve to be processed is divided into multiple sections, and an appropriate calculation strategy is used for subsequent interpolation calculations according to the curvature change characteristics of each section.
如图3,基于以上实施例,本实施例对步骤S104-S105进行进一步详细说明,具体如下:As shown in Figure 3, based on the above embodiment, this embodiment will further describe steps S104-S105 in detail, as follows:
步骤a:计算得到当前步长值时相邻插补点间的最大弓高误差值e0=||T2||sinθ;Step a: Calculate the maximum bow height error value e 0 between adjacent interpolation points when the current step value is obtained =||T 2 ||sinθ;
其中,两矢量间的夹角是两个相邻插补点构成的矢量,/>是插补段的起点到曲线段上任一点所构成的矢量。Among them, the angle between the two vectors is a vector composed of two adjacent interpolation points, /> It is the vector formed from the starting point of the interpolation segment to any point on the curve segment.
步骤b:计算当前步长最大弓高误差值与加工容许最大弓高误差值e之间差值的绝对值,并与迭代误差δ比较;Step b: Calculate the absolute value of the difference between the maximum bow height error value of the current step length and the processing allowable maximum bow height error value e, and compare it with the iteration error δ;
步骤c:若所述绝对值大于迭代误差|e0-e|>δ,意味着当前步长所产生的最大弓高误差值e0与加工容许的弓高误差e的差值不满足迭代精度要求,则判断当前步长最大弓高误差值与加工容许最大弓高误差值之间的大小关系,若所述绝对值不大于迭代误差|e0-e|≤δ,则跳出迭代计算,将当前步长作为最佳步长;Step c: If the absolute value is greater than the iteration error |e 0 -e|>δ, it means that the difference between the maximum bow height error value e 0 generated by the current step size and the bow height error e allowed by processing does not meet the iteration accuracy If required, judge the size relationship between the maximum bow height error value of the current step length and the processing allowable maximum bow height error value, if the absolute value is not greater than the iteration error |e 0 -e|≤δ, then jump out of the iterative calculation, and set The current step size is used as the optimal step size;
步骤d:若当前步长最大弓高误差值不大于所述加工容许最大弓高误差值时e0≤e,则跳出迭代计算,将当前步长作为最佳步长,若所述当前步长最大弓高误差值大于所述加工容许最大弓高误差值时e0>e,减小自由曲线的参数增量,更新所述当前步长值,跳转到步骤a,直至所述当前步长最大弓高误差值不大于所述加工容许最大弓高误差值。Step d: If the maximum bow height error value of the current step is not greater than the allowable maximum bow height error value e 0 ≤ e, jump out of the iterative calculation, and use the current step size as the optimal step size, if the current step size When the maximum bow height error value is greater than the processing allowable maximum bow height error value e 0 >e, reduce the parameter increment of the free curve, update the current step value, and jump to step a until the current step The maximum bow height error value is not greater than the processing allowable maximum bow height error value.
步骤d:若当前步长最大弓高误差值不大于所述加工容许最大弓高误差值e0≤e时,说明当前步长值较保守,则增大自由曲线的参数增量Δu=(1+α)Δu,更新所述当前步长值,跳转到步骤a,将当前步长作为最佳步长,若e0>e,说明当前步长值过大,减小所述自由曲线的参数增量Δu=(1-α)Δu,更新所述当前步长值,跳转到步骤a,直至所述当前步长最大弓高误差值不大于所述加工容许最大弓高误差值。Step d: If the maximum bow height error value of the current step size is not greater than the processing allowable maximum bow height error value e 0 ≤ e, it means that the current step size value is relatively conservative, then increase the parameter increment of the free curve Δu=(1 +α)Δu, update the current step value, jump to step a, take the current step as the optimal step, if e 0 >e, it means the current step value is too large, reduce the free curve Parameter increment Δu=(1-α)Δu, update the current step value, jump to step a, until the current step maximum bow height error value is not greater than the processing allowable maximum bow height error value.
本发明提供的插补方法可根据系统给定参数,将控制顶点数据拟合成自由曲线,预先分析曲线的曲率变化情况,根据曲率变化率和基准值之间的大小关系将待加工曲线划分区段,各区段采用不同策略进行插补点的计算。曲率平稳的区段优先采用传统几何方法进行计算,舍弃校验功能,尽可能提高计算效率;曲率波动明显的区段需要严格监控曲率变化,根据误差自动调整步长大小以便找到满足弓高误差要求的最佳步长值,保证加工精度符合要求。基于曲率分区策略构建的新型插补方法,在参数控制灵活、计算快速稳定且可靠的基础上,解决了等弓高误差法存在的误差超限和步长过保守问题。The interpolation method provided by the present invention can fit the control vertex data into a free curve according to the given parameters of the system, analyze the curvature change of the curve in advance, and divide the curve to be processed into zones according to the relationship between the curvature change rate and the reference value Each segment adopts different strategies to calculate the interpolation points. The section with stable curvature is preferentially calculated by traditional geometric method, and the calibration function is discarded to improve the calculation efficiency as much as possible; the section with obvious curvature fluctuation needs to strictly monitor the curvature change, and automatically adjust the step size according to the error to find the bow height error requirement. The optimal step length value to ensure that the machining accuracy meets the requirements. The new interpolation method based on the curvature partition strategy solves the problems of error overrun and step size overconservation in the contour height error method on the basis of flexible parameter control, fast, stable and reliable calculation.
如图4,基于以上实施例,本实施例选择自由曲面中的一条自由曲线(如图5)作为实验对象,具体如下:As shown in Figure 4, based on the above embodiment, the present embodiment selects a free curve (as shown in Figure 5) in the free-form surface as the experimental object, specifically as follows:
设置加工所用球头刀的刀具半径r为5mm、加工容许的最大弓高误差e为0.01mm、划分区段的曲率变化率基准值μ为0.03、步长自动调整系数α为0.005。Set the cutter radius r of the ball-end cutter used for processing to 5mm, the maximum allowable bow height error e to 0.01mm, the reference value μ of the curvature change rate of the divided section to 0.03, and the step length automatic adjustment coefficient α to 0.005.
对给定的控制顶点数据进行拟合,得到的贝塞尔曲线,所选待加工路径的曲率变化情况如附图6所示;Fitting the given control vertex data, the obtained Bezier curve, the curvature variation of the selected path to be processed is as shown in accompanying drawing 6;
当曲率变化不大于基准值时,则利用曲率半径与曲率互为倒数的几何关系,求取当前插补段内的最小曲率半径ρ,并以此作为圆弧半径进行插补步长s的计算,进而实现曲线段的离散逼近;When the curvature change is not greater than the reference value, the minimum curvature radius ρ in the current interpolation section is obtained by using the geometric relationship between the curvature radius and the curvature as the reciprocal of each other, and the interpolation step s is calculated as the arc radius , and then realize the discrete approximation of the curve segment;
若曲率变化小于基准值时,则实时监控曲线曲率在各位置处的变化情况,通过比较离散后弓高误差的实际值和给定值间的大小关系自动进行步长调节。If the curvature change is less than the reference value, the real-time monitoring of the change of the curvature of the curve at each position will automatically adjust the step size by comparing the actual value of the discretized bow height error with the given value.
本发明通过预先分析待加工曲线的曲率特性,并进行相应的分区,以便使用不同计算策略进行刀触点的离散计算,有效地规避了等弓高误差法的误差超限和步长过保守问题。从图7(a)、图7(b)和图8(a)、图8(b)中,可以看出等弓高误差法总共离散了41个刀触点,本方法总共离散了34个刀触点。与等弓高误差法相比较,刀触点数减少了17%,有效提高了机加工的效率,并且在程序计算耗时方面也有大幅的缩减。在加工后表面质量方面,本方法通过预先分析曲率变化的情况,合理使用步长自动调整机制,保证算法能够有效跟踪曲率变化。相较于等弓高误差法,可以有效规避最大弓高误差超限问题和弓高误差过小时导致的步长过保守问题。因此采用本方法进行加工后所得到的表面残余误差恒定且均为允许最大值,既保证了加工后的表面质量均匀,又极大地提高了加工效率,同时避免了曲率因素对加工精度的干扰。The present invention pre-analyzes the curvature characteristics of the curve to be processed, and carries out corresponding partitions, so as to use different calculation strategies for the discrete calculation of the knife contact, effectively avoiding the problems of error overrun and step size overconservation in the equal bow height error method . From Figure 7(a), Figure 7(b) and Figure 8(a), Figure 8(b), it can be seen that the equal bow height error method has discretized a total of 41 knife contacts, and this method has discretized a total of 34 knife contacts. Compared with the equal bow height error method, the number of tool contacts is reduced by 17%, which effectively improves the efficiency of machining, and also greatly reduces the time-consuming aspect of program calculation. In terms of surface quality after processing, this method pre-analyzes the curvature change and uses the step size automatic adjustment mechanism reasonably to ensure that the algorithm can effectively track the curvature change. Compared with the equal bow height error method, it can effectively avoid the problem that the maximum bow height error exceeds the limit and the problem of too conservative step size caused by too small bow height error. Therefore, the surface residual error obtained after processing by this method is constant and is the allowable maximum value, which not only ensures the uniform surface quality after processing, but also greatly improves the processing efficiency, and at the same time avoids the interference of curvature factors on processing accuracy.
本发明的插补方法可根据系统给定参数,将控制顶点数据拟合成自由曲线,预先分析曲线的曲率变化情况,根据曲率变化率和基准值之间的大小关系将待加工曲线划分区段,各区段采用不同策略进行插补点的计算。曲率平稳的区段优先采用传统几何方法进行计算,舍弃校验功能,尽可能提高计算效率;曲率波动明显的区段需要严格监控曲率变化,根据误差自动调整步长大小以便找到满足弓高误差要求的最佳步长值,保证加工精度符合要求。基于曲率分区策略构建的新型插补方法,在参数控制灵活、计算快速稳定且可靠的基础上,解决了等弓高误差法存在的误差超限和步长过保守问题。The interpolation method of the present invention can fit the control vertex data into a free curve according to the given parameters of the system, analyze the curvature change of the curve in advance, and divide the curve to be processed into sections according to the magnitude relationship between the curvature change rate and the reference value , each section adopts different strategies to calculate the interpolation points. The section with stable curvature is preferentially calculated by traditional geometric method, and the calibration function is discarded to improve the calculation efficiency as much as possible; the section with obvious curvature fluctuation needs to strictly monitor the curvature change, and automatically adjust the step size according to the error to find the bow height error requirement. The optimal step length value to ensure that the machining accuracy meets the requirements. The new interpolation method based on the curvature partition strategy solves the problems of error overrun and step size overconservation in the contour height error method on the basis of flexible parameter control, fast, stable and reliable calculation.
请参考图9,图9为本发明实施例提供的一种等弓高误差插补装置的结构框图;具体装置可以包括:Please refer to Fig. 9, Fig. 9 is a structural block diagram of a contour error interpolation device provided by an embodiment of the present invention; the specific device may include:
曲线参数表达式计算模块100,用于根据待加工曲线的控制顶点数据,计算得到贝塞尔曲线的参数表达式;The curve parameter expression calculation module 100 is used to calculate the parameter expression of the Bezier curve according to the control vertex data of the curve to be processed;
曲线变化率计算模块200,用于计算所述贝塞尔曲线的曲率,得到曲率随着曲线参数变化的变化率;The curve rate of change calculation module 200 is used to calculate the curvature of the Bezier curve to obtain the rate of change of the curvature as the curve parameters change;
平稳区段插补步长计算模块300,用于利用几何关系计算得到当前区段内的最小曲率半径,并以所述最小曲率半径为圆弧半径计算插补步长;The smooth section interpolation step calculation module 300 is used to calculate the minimum radius of curvature in the current section by using the geometric relationship, and calculate the interpolation step with the minimum curvature radius as the radius of the arc;
波动区段最佳步长计算模块400,用于利用几何关系计算所述当前区段的初始点位的曲率半径,并以所述初始点位的曲率半径为圆弧半径近似逼近计算得到初始步长,迭代更新所述初始步长,直至求解出符合弓高误差要求的最佳步长;The optimal step length calculation module 400 for the fluctuation section is used to calculate the curvature radius of the initial point of the current section by using the geometric relationship, and use the curvature radius of the initial point as the arc radius to obtain the initial step is long, update the initial step size iteratively until the optimal step size that meets the bow height error requirement is obtained;
波动区段计算是否完毕判断模块500,用于根据所述最佳步长计算对应的插补终点,以此判断当前区段是否计算完毕,若未计算完毕,则将所述初始点位更新为所述插补终点,返回执行上述求解最佳步长的步骤;The judging module 500 whether the calculation of the fluctuation section is completed is used to calculate the corresponding interpolation end point according to the optimal step size, so as to judge whether the calculation of the current section is completed, and if the calculation is not completed, update the initial point to The end point of the interpolation returns to the above-mentioned step of solving the optimal step size;
离散插补点合并模块600,用于当所有区段计算完毕后,将离散插补点进行合并,得到完整的离散点路径。The discrete interpolation point merging module 600 is used for merging the discrete interpolation points to obtain a complete discrete point path after all sections are calculated.
本实施例的等弓高误差插补装置用于实现前述的等弓高误差插补方法,因此等弓高误差插补装置中的具体实施方式可见前文等弓高误差插补方法的实施例部分,例如,曲线参数表达式计算模块100,曲线变化率计算模块200,平稳区段插补步长计算模块300,波动区段最佳步长计算模块400,波动区段计算是否完毕判断模块500,离散插补点合并模块600,分别用于实现上述等弓高误差插补方法中步骤S101,S102,S103,S104,S105和S106,所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再赘述。The contour height error interpolation device of this embodiment is used to implement the aforementioned contour height error interpolation method, so the specific implementation of the contour height error interpolation device can be seen in the embodiment part of the contour height error interpolation method above. , For example, the curve parameter expression calculation module 100, the curve rate of change calculation module 200, the smooth section interpolation step calculation module 300, the fluctuation section optimal step calculation module 400, the fluctuation section calculation completion judgment module 500, The discrete interpolation point merging module 600 is respectively used to realize the steps S101, S102, S103, S104, S105 and S106 in the above-mentioned equal bow error interpolation method, so, its specific implementation can refer to the description of the corresponding parts of the embodiments , which will not be repeated here.
本发明具体实施例还提供了一种等弓高误差插补的设备,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述一种等弓高误差插补方法的步骤。A specific embodiment of the present invention also provides a device for contour error interpolation, including: a memory for storing a computer program; a processor for implementing the above-mentioned contour error interpolation when executing the computer program method steps.
本发明具体实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述一种等弓高误差插补方法的步骤。A specific embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned contour error interpolation method is implemented. step.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,上述实施例仅仅是为清楚地说明所作的举例,并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Apparently, the above-mentioned embodiments are only examples for clear description, and are not intended to limit the implementation. For those of ordinary skill in the art, on the basis of the above description, other changes or changes in various forms can also be made. It is not necessary and impossible to exhaustively list all the implementation manners here. And the obvious changes or changes derived therefrom are still within the scope of protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210565329.7A CN114942615B (en) | 2022-05-23 | 2022-05-23 | Equal-bow-height error interpolation method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210565329.7A CN114942615B (en) | 2022-05-23 | 2022-05-23 | Equal-bow-height error interpolation method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114942615A CN114942615A (en) | 2022-08-26 |
CN114942615B true CN114942615B (en) | 2023-07-28 |
Family
ID=82908908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210565329.7A Active CN114942615B (en) | 2022-05-23 | 2022-05-23 | Equal-bow-height error interpolation method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114942615B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10261096A (en) * | 1997-03-21 | 1998-09-29 | Toyota Motor Corp | Curve generating device |
CN107077126A (en) * | 2014-10-29 | 2017-08-18 | 株式会社牧野铣床制作所 | Tool path generation method and machine tool |
CN107817764A (en) * | 2017-10-23 | 2018-03-20 | 山东大学 | A kind of nurbs curve bidirectional self-adaptive interpolation algorithm based on the S curve plus-minus short-cut counting method |
EP3346230A1 (en) * | 2017-01-04 | 2018-07-11 | Schlatter Industries AG | Device and method for measuring the curvature of a wire |
CN109322221A (en) * | 2018-08-08 | 2019-02-12 | 华南理工大学 | A method of constructing three-dimensional spatial alignment of highway by segmented quartic Bezier curve |
CN112947295A (en) * | 2021-03-03 | 2021-06-11 | 湘潭大学 | Method for dividing intervals based on spline cutter track curvature |
CN114296398A (en) * | 2021-11-16 | 2022-04-08 | 中南大学 | High-speed high-precision interpolation method for laser cutting |
-
2022
- 2022-05-23 CN CN202210565329.7A patent/CN114942615B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10261096A (en) * | 1997-03-21 | 1998-09-29 | Toyota Motor Corp | Curve generating device |
CN107077126A (en) * | 2014-10-29 | 2017-08-18 | 株式会社牧野铣床制作所 | Tool path generation method and machine tool |
EP3346230A1 (en) * | 2017-01-04 | 2018-07-11 | Schlatter Industries AG | Device and method for measuring the curvature of a wire |
CN107817764A (en) * | 2017-10-23 | 2018-03-20 | 山东大学 | A kind of nurbs curve bidirectional self-adaptive interpolation algorithm based on the S curve plus-minus short-cut counting method |
CN109322221A (en) * | 2018-08-08 | 2019-02-12 | 华南理工大学 | A method of constructing three-dimensional spatial alignment of highway by segmented quartic Bezier curve |
CN112947295A (en) * | 2021-03-03 | 2021-06-11 | 湘潭大学 | Method for dividing intervals based on spline cutter track curvature |
CN114296398A (en) * | 2021-11-16 | 2022-04-08 | 中南大学 | High-speed high-precision interpolation method for laser cutting |
Non-Patent Citations (1)
Title |
---|
杨海明,傅建中.基于数控加工的三次Bézier曲线变步长直线插补新算法.机床与液压.2003,(第06期),第163-164、168页. * |
Also Published As
Publication number | Publication date |
---|---|
CN114942615A (en) | 2022-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107765648B (en) | CNC machining feeding speed planning method and device | |
WO2019119268A1 (en) | Numerical control system, apparatus with storage function, and nurbs curve interpolation method | |
CN104007705B (en) | The prediction interpolation system that little line segment path compression is smooth | |
CN106814694B (en) | A high-speed and high-precision forward-looking interpolation method for parametric curves | |
US20120265331A1 (en) | Five-axis flank milling system for machining curved surface and the tool-path planning method thereof | |
US9938833B2 (en) | Methods, systems, and devices for designing and manufacturing flank millable components | |
CN112486101B (en) | NURBS curve self-adaptive look-ahead interpolation method | |
CN107817764A (en) | A kind of nurbs curve bidirectional self-adaptive interpolation algorithm based on the S curve plus-minus short-cut counting method | |
CN109164759B (en) | Curve interpolation method, equipment and computer readable storage medium | |
US10549367B2 (en) | Numerical controller for wire electrical discharge machine adapted for corner control of minute blocks | |
CN113204215B (en) | A real-time interpolation method of global NURBS trajectory in NC machining and its application | |
CN112329175B (en) | Turbine blade profile establishing method | |
Chen et al. | Augmented Taylor's expansion method for B-spline curve interpolation for CNC machine tools | |
CN106970589B (en) | A kind of feed rate relaxation method reducing Multi-axis Machining profile errors | |
CN104597847A (en) | Akima spline fitting based look-ahead interpolation method | |
CN112518433A (en) | A tool path automatic generation method for complex surface grinding | |
US11327466B2 (en) | Command-value generation apparatus | |
JP6189007B1 (en) | Numerical control parameter adjusting device and numerical control parameter adjusting method | |
CN117008532A (en) | Three-order geometrically continuous numerical control tool path corner smoothing method | |
CN114942615B (en) | Equal-bow-height error interpolation method, device and storage medium | |
US11048233B2 (en) | Program correction device | |
KR102409653B1 (en) | Numerical controller, numerical control method, and numerical control program | |
CN114488941A (en) | Trace fairing method and medium for micro line segments and machine tool numerical control equipment | |
CN113835397A (en) | Linear NC machining path smoothing method based on B-spline curve and path integral | |
JP2001051708A (en) | Numerical control 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 |