A tool path corner smoothing method under curvature monotonic constraint for five-axis CNC device

By using Bezier splines in five-axis CNC machining to generate corner transition curves under curvature monotonic constraints, the problem of velocity discontinuity at small line segment connections in five-axis CNC machining is solved, and the second-order geometric continuity and curvature monotonicity of the tool path are achieved. properties, improving processing efficiency and accuracy.

CN117991716BActive Publication Date: 2024-09-03YANTAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311648445.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2024-09-03
Estimated Expiration
2043-12-04

AI Technical Summary

Technical Problem

In five-axis CNC machining, the speed discontinuity and acceleration mutation at the connection of small line segments cause tool jitter, which reduces the machining accuracy and efficiency. The existing corner smoothing method adds a speed planning unit and prolongs the machining time.

Method used

The Bezier spline is used to generate the corner transition curve of the tool tip path and the tool axis path under the curvature monotonic constraint. Through the determination of control points and derivative continuity correction, the second-order geometric continuity and curvature monotonicity of the tool path are achieved, reducing speed planning. Number of units.

Benefits of technology

It effectively reduces the speed fluctuation on the tool path, improves the processing efficiency and accuracy, reduces the acceleration impact, the generated tool path is smoother, and the curvature monotonicity meets the constraint conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117991716B
    Figure CN117991716B
Patent Text Reader

Abstract

The present invention discloses a method for smoothing the corner transition of a tool path under the curvature monotonic constraint applicable to a five-axis numerical control device. The present invention analytically calculates the control points of the smooth transition curve of the corner of the five-axis tool path under the constraints of the maximum error allowed by the tool tip point path and the maximum curvature smoothing error allowed by the tool axis path; the second-order derivative of the tool direction with respect to the tool tip point displacement is continuous so that the generated Bezier spline transition curve is connected with the initial tool tip point path and the tool axis path described by small line segments obtained from the five-axis numerical control machining program; the control points of the corner transition curve are generated with the curvature monotonicity of the spline curve as a constraint, so that the number of speed planning units on the generated tool path is minimized, thereby reducing speed fluctuations during machining. The tool path of the present invention is second-order geometrically continuous, and the curvature of the generated tool path is monotonic, which reduces the number of speed planning units on the tool path, reduces speed fluctuations, and improves machining efficiency and machining quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a tool path smoothing technology in the field of five-axis numerical control machining, in particular to a tool path corner smoothing transition method suitable for a five-axis numerical control device under a curvature monotonic constraint. Background Art

[0002] Due to the characteristics of less workpiece clamping times and flexible tool posture adjustment, the five-axis CNC machining method is widely used in the machining process of high-precision, high-value, and complex curved industrial products. The five-axis CNC program generated by the computer-aided manufacturing system uses small line segments to describe the tool path. The connection of the small line segments can only keep the position of the tool path continuous, resulting in discontinuous machining speed during the machining process. The resulting acceleration mutation will cause tool jitter, which will further damage the machining accuracy and surface quality of the workpiece. In order to improve the machining quality, the existing small line segment corner smoothing method uses spline curves to smooth the corners at the connection of the tool path. However, the smoothing process generates a large number of speed planning units, which causes speed fluctuations that prolong the machining time and reduce the machining quality. Summary of the invention

[0003] In order to solve the above problems in the prior art, the present invention provides a tool path corner smoothing transition method under curvature monotonic constraint applicable to a five-axis CNC device. Therefore, the present invention is a tool path corner smoothing transition method for a five-axis tool path described by a small line segment, with the goal of improving processing quality and processing efficiency, taking the curvature monotonicity of the transition curve as a constraint condition, and being able to reduce the number of speed planning units.

[0004] The specific technical solutions are as follows:

[0005] The tool path corner smoothing transition method under the curvature monotonic constraint of the five-axis CNC device is as follows:

[0006] Step (1) The five-axis tool path is composed of a tool tip point path and a tool axis path. The i-th corner on the five-axis tool path is smoothed, that is, a transition curve pair at the i-th corner on the tool tip point path is generated by using a Bezier spline curve. And the transition curve pair at the i-th corner on the tool axis path

[0007] Wherein, k=2i represents the serial number of the transition curve, i represents the serial number of the corner on the five-axis tool path, and the value range of i is a positive integer;

[0008] Here are the steps:

[0009] Step (11) generates a corner transition Bezier spline curve pair at the i-th corner of the tool tip path

[0010] definition Indicates the command points on the tool tip path extracted from the five-axis CNC program provided by the user. The Bezier spline curve is used to align the command points on the tool tip path. The corner formed Perform smooth transition and generate the corner transition Bezier spline curve pair at the i-th corner of the tool tip path

[0011] Among them, the definition of spline curve The control point is and

[0012] Defining Splines The control point is and

[0013] and and Respectively and About the Corner The angle bisector is symmetrical;

[0014] Step (11.1) Define the corners Transition spline curve pair The transition error e,

[0015] definition Represents vectors length, and satisfy α and β are the process parameters set by the system, then the corner Insert transition spline The resulting transition error e is shown in the following formula (1):

[0016]

[0017] Among them, θ b =(π-η b ) / 2,η b Indicates corner size;

[0018] Step (11.2) is based on the restriction The length of the constrained corner Transition spline curve pair The transition error e is determined, and the adjacent transition spline curves are avoided from intersecting, so as to determine the transition spline curve of the tool tip path. The control point,

[0019] To make the corner Transition spline curve pair The transition error e is less than the maximum allowable value e provided by the user. max , then the process parameters The value of satisfies the following formula (2):

[0020]

[0021] In order to avoid the intersection of transition spline curve path segments at adjacent corners on the machining path, the vector The length of the vector is smaller than Half the length and the vector Half the length, i.e. the process parameter The value of satisfies the following formula (3):

[0022]

[0023] Based on the above constraints, determine the transition spline curve of the tool tip path The control points are shown in the following equations (4) and (5):

[0024]

[0025]

[0026] in, Representation vector Length, Representation vector Length;

[0027] Then, through the spline curve The control point is and And spline curves The control point is and Generate the corner transition Bezier spline curve pair at the i-th corner of the tool tip path

[0028] Step (12) generates a transition Bezier spline curve pair at the i-th corner of the tool axis path

[0029] definition Indicates the command points on the tool axis path extracted from the five-axis CNC program provided by the user. Bezier spline curves are used to align the command points on the tool axis path. The corner formed Perform smooth transition and generate transition Bezier spline curve pair at the i-th corner of the tool axis path

[0030] Defining Splines The control point is and

[0031] Defining Splines The control point is and

[0032] and and Respectively and About the Corner The angle bisector is symmetrical;

[0033] Step (12.1) defines the corners on the tool axis path The transition curve at The transition error,

[0034] To limit the corners on the tool axis path The transition curve at The transition error is the maximum arc smoothing error allowed in the tool axis path smoothing process provided by the user. t_max The error converted to Cartesian space represented by the spatial straight-line distance error t_tran_i ;

[0035]

[0036] Among them, O represents a point The center of the unit sphere coordinate system,

[0037] Represents the center of a sphere and a point The distance between

[0038] error t_max Indicates the maximum arc smoothing error allowed for the tool axis path provided by the user.

[0039] γ represents a straight line With continuous points on the tool axis path The angle between the planes formed;

[0040] Step (12.2) is based on the restriction The length of the constrained corner Transition spline curve pair The transition error of the tool axis path is determined by avoiding the intersection of adjacent transition spline curves. The control point,

[0041] definition Represents vectors length and meets Corner Insert transition spline The transition error generated after t_tran_i satisfy:

[0042]

[0043] Among them, θ t =(π-η t ) / 2,η t Indicates corner size;

[0044] In order to avoid the intersection of transition spline curve path segments at adjacent corners on the machining path, the vector The length of the vector is smaller than Half the length and the vector Half the length, i.e. the process parameter The value of needs to satisfy the following formula (7):

[0045]

[0046] Based on the above constraints, determine the tool axis path transition spline curve The control points are shown in the following equations (8) and (9):

[0047]

[0048]

[0049] in, Representation vector Length, Representation vector Length;

[0050] Then, through the spline curve The control point is and And spline curves The control point is and Generate a transition Bezier spline curve pair at the i-th corner of the tool axis path

[0051] Step (2) The first and second order derivatives of the tool direction with respect to the tool tip displacement are calculated at the control point The tool tip path corner transition spline curve generated in step (1) is continuous. Tool axis path corner transition spline pair The control points are corrected.

[0052] In order to reduce speed fluctuations and ensure smooth movement of the tool axis during machining, it is necessary to first adjust the tool tip path corner transition spline curve generated in step (1) before constraining the curvature monotonicity. Tool axis path corner transition spline pair The control points are corrected to achieve synchronization between the tool tip path and the tool axis path;

[0053] Step (21) generates the kth spline curve after the tool tip path is smoothed On the left, determine the first-order derivative of the corresponding tool direction Ori(u) at parameter u with respect to the tool tip displacement s Second Derivative They are expressed as formula (10) and (11) respectively:

[0054]

[0055]

[0056] Where u represents the spline curve Parameters; s indicates that the tool moves along the spline curve Tool tip displacement during movement; u s 、u ss They represent the first-order derivative and second-order derivative of parameter u with respect to s respectively; Table 1 shows the spline curve Coordinate value, first-order derivative value, and second-order derivative value at parameter u; Table 1 shows the spline curve Coordinate value, first-order derivative value, and second-order derivative value at parameter u;

[0057] Step (22) sets the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement at the control point Continuous,

[0058] Since the spline Control Points It is a curve With the initial tool path The intersection of Control Points It is a curve With the initial tool path Therefore, by ensuring that the first and second order derivatives of the tool direction with respect to the tool tip displacement are at the control point The continuity between the tool tip path and the tool axis path is achieved.

[0059] Let α = β, then the value of the second-order derivative of the tool direction Ori (u) with respect to the tool tip displacement is zero.

[0060] At this time, it is only necessary to make the tool direction Ori(u) about the tool tip displacement in The first-order derivative at the point is continuous, that is, it is realized The continuity of the second-order derivative of the tool direction Ori(u) at the point with respect to the tool tip displacement,

[0061] Step (22.1) at the control point At the left and right ends, the first-order derivative of the tool direction with respect to the tool tip displacement is defined respectively.

[0062] exist To the left of point , the first-order derivative of the tool direction with respect to the tool tip displacement is expressed as:

[0063]

[0064] exist To the right of the point, the first-order derivative of the tool direction with respect to the tool tip displacement is expressed as:

[0065]

[0066] Step (22.2) sets the first and second order derivatives of the tool direction with respect to the tool tip displacement at the control point Continuous,

[0067] In order to make the tool direction Ori(u) about the tool tip displacement If the first-order derivative at the point is continuous, then the tool direction Ori(u bott )The first-order derivative of the tool tip displacement is The limits on the left and right sides of the point are equal.

[0068] Therefore, let point Ori(u bott ) are equal, that is, the values ​​of formulas (12) and (13) are equal, then the first-order derivative of the tool direction with respect to the tool tip displacement is at point At this time, the following equation (14) holds true:

[0069]

[0070] At this time, the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement are Continuous at the point,

[0071] Step (22.3) sets the first and second order derivatives of the tool direction with respect to the tool tip displacement at the control point Continuous,

[0072] The same operation as steps (22.1) and (22.2) is used to make the tool direction Ori(u) about the tool tip displacement at point The first-order and second-order derivative values ​​on the left and right sides are equal, that is, the tool direction is about the displacement of the tool tip point. The condition for achieving the continuity of the second-order derivative at the point is shown in the following equation (15):

[0073]

[0074] At this time, the tool direction displacement to the tool tip point is The first and second order derivatives are continuous at the point;

[0075] After steps (22.1)-(22.3), the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement are calculated at the control point The generated tool tip path corner transition spline curve is continuous. The transition spline curve of the tool axis path corner The control points are corrected to synchronize the tool tip path with the tool axis path;

[0076] Step (3) is based on the synchronization between the tool tip point path and the tool axis path in step (2), and the parameter α value is calculated to make the curvature of the smooth transition spline curve of each generated tool path monotonic.

[0077] The number of curvature monotonically changing intervals on the tool path determines the number of speed planning units. In order to reduce the number of speed planning units in the machining process and thus reduce speed fluctuations, it is necessary to determine the specific value of parameter α under the constraint of curvature monotonicity so that the curvature of the smooth transition spline curve of each tool path generated changes monotonically, that is, the number of speed planning units on the tool path is the minimum;

[0078] Therefore, for the tool tip point smooth spline Define Curve The curvature value at any point on is:

[0079]

[0080] Among them, m and n are intermediate parameters of the calculation process set to simplify the calculation.

[0081] m=sin(2θ b )α(1-u),

[0082] n=cos 2 θ b [(u-1) 2 -αu(u-2)] 2 +α 2 u 2 sin 2 θ b (u-2) 2 ,

[0083] Then the derivative of curvature κ' is expressed as:

[0084]

[0085] Then, based on the derivative κ' monotone and the spline curve The path length is the shortest, and the parameter α value is calculated to minimize the processing time;

[0086] Step (4) makes the corners on the tool tip path obtained in step (1) smoothly transition to the Bezier spline curve pair Bezier spline curve for smooth transition of corners on tool axis path The control points of satisfy the formulas (14), (15) and the parameter α value calculated in step (3) at the same time. At this time, the generated tool path curvature is monotonic, the number of speed planning units is the minimum, and the tool direction displacement of the tool tip point is at the connection point. The second-order derivative is continuous, which eventually makes At the same time, it is connected with the initial tool tip point path and tool axis path described by small line segments obtained from the five-axis CNC machining program, thereby realizing the synchronization of the tool tip point and tool axis of the tool path and forming a smoothed tool path.

[0087] Compared with the existing technology, when the above method is used to perform smooth transition of the corners of the five-axis tool path, since the generated tool path has second-order geometric continuity and the generated tool path curvature is monotonic, it can effectively reduce the number of speed planning units on the tool path, reduce speed fluctuations, and improve processing efficiency and processing quality.

[0088] The five-axis CNC system uses a tool path described by small line segments to process complex workpieces. The connection of the small line segments can only keep the geometric position of the tool path continuous, which reduces the processing accuracy and efficiency. The existing five-axis tool path corner smoothing method does not consider the constraint of the monotonicity of the tool path curvature. The number of speed planning units on the generated tool path is large, which leads to large fluctuations in the speed curve during the processing. The resulting acceleration mutation will cause tool jitter, reducing the processing efficiency and processing accuracy. The invention is applicable to a method for smoothing corner transition of a tool path under curvature monotonic constraints of a five-axis numerical control device, and its innovation compared with the prior art lies in that the control points of the smooth corner transition curve of the five-axis tool path are analytically calculated under the constraints of the maximum error allowed by the tool tip point path and the maximum curvature smoothing error allowed by the tool axis path; the second-order derivative of the tool direction with respect to the tool tip point displacement is continuous so that the generated Bezier spline transition curve is connected with the initial tool tip point path and the tool axis path described by small line segments obtained from the five-axis numerical control machining program; the key lies in optimizing the control points of the generated corner transition curve with the curvature monotonicity of the spline curve as a constraint, so as to minimize the number of speed planning units on the generated tool path while ensuring smooth movement of the tool during machining, thereby reducing speed fluctuations during machining and improving machining efficiency and machining accuracy.

[0089] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the specific implementation methods of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0091] Figure 1 , tool tip path corners smooth transition,

[0092] Figure 2 , test tool paths,

[0093] Figure 3(a), the curvature of the tool tip path generated by method 1,

[0094] Figure 3(b), the curvature of the tool tip path generated by method 2,

[0095] Figure 4(a), Processing speed curve generated by method 1,

[0096] Fig. 4(b) Processing speed curve produced by method 2. DETAILED DESCRIPTION

[0097] The present invention will be described in more detail below with reference to the accompanying drawings, in which preferred embodiments of the present invention are shown, and it should be understood that those skilled in the art can modify the present invention described herein and still achieve the beneficial effects of the present invention. Therefore, the following description should be understood as being widely known to those skilled in the art, and not as a limitation of the present invention.

[0098] In order to make the purpose and features of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the accompanying drawings are all in a very simplified form and use inaccurate ratios, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0099] Example 1

[0100] The tool path corner smoothing transition method under the curvature monotonic constraint of the five-axis CNC device is as follows:

[0101] (1) Establish a method for generating smooth transition curves at the corners of five-axis CNC machining tool paths

[0102] It should be noted that the five-axis CNC machining tool path includes a tool tip path and a tool axis path. When performing corner smoothing transition processing on the five-axis CNC machining tool path, the present invention first uses Bezier spline curves to perform corner smoothing transition processing on the tool tip path and the tool axis path respectively.

[0103] (11) Establish a smooth transition curve for the corner of the tool tip path in five-axis CNC machining

[0104] The five-axis CNC program provided by the user can be processed to extract the initial tool path instruction points. They represent the initial instruction points on the tool tip path of the five-axis CNC machining respectively; η b Indicates corner size; Representation vector Length, Representation vector The length of; α, β are the process parameters set by the system. Figure 1 As shown in the figure, in order to generate a smooth tool tip path, the corners on the tool tip path Insert Bezier transition spline curves at To define a spline The control point, To define a spline The control point, Representation vector Assume that the intermediate parameter θ b =(π-ηb ) / 2, then the spline curve The control points are expressed as formula (1) and formula (2):

[0105]

[0106]

[0107] The undetermined parameters in equations (1) and (2) are And process parameters α, β. max Indicates the maximum smoothing error allowed for the tool tip path provided by the user. The Bezier spline curve generated during the tool tip path corner smoothing process is The maximum smoothing error must be less than e max At the same time, the spline curves generated at adjacent corners cannot intersect. Under these constraints, the calculated The values ​​are as follows:

[0108]

[0109] (12) Establish a smooth transition curve for the corner of the tool axis path in five-axis CNC machining

[0110] The five-axis CNC program provided by the user can be processed to extract the initial tool path instruction points. They represent the initial instruction points on the tool axis path of the five-axis CNC machining respectively; η t Indicates corner size; Representation vector Length, Representation vector ; α, β are the process parameters set by the system. In order to generate a smooth tool axis path, the corners on the tool axis path Insert Bezier transition spline curves at To define a spline The control point, To define a spline The control point, Representation vector Assume that the intermediate parameter θ t =(π-η t ) / 2, then the spline curve The control points of are expressed as formula (4) and formula (5):

[0111]

[0112]

[0113] The undetermined parameters in equations (4) and (5) are And process parameters α, β. t_max Indicates the maximum arc smoothing error allowed for the tool axis path provided by the user. When smoothing the tool axis path corners, this error needs to be converted into a distance error in Cartesian space. t_tran_i , specific, error t_tran_i The value of is expressed as Among them, O represents a point The center of the unit sphere coordinate system, Represents the center of a sphere and a point The distance between the straight line With continuous points on the tool axis path The angle between the planes formed. The Bezier spline curve generated during the tool axis path corner smoothing process The maximum arc smoothing error needs to be less than error t_tran_i At the same time, the spline curves generated at adjacent corners cannot intersect. Under these constraints, the calculated The values ​​are as follows:

[0114]

[0115] (2) Ensure that the generated tool tip corner smoothing path and tool axis corner smoothing path are synchronized

[0116] After the tool tip path and tool axis path are smoothed, the generated tool tip path corner transition spline curve is smoothed to ensure the smooth movement of the tool during machining. The tool axis path corner transition spline curve The control point correction is used to achieve synchronization between the tool tip point path and the tool axis path.

[0117] (21) The synchronization between the tool tip path and the tool axis path requires the first-order derivative of the tool direction with respect to the tool tip displacement Second Derivative continuous, It is expressed as:

[0118]

[0119]

[0120] Where u represents the spline curve Parameters; s indicates that the tool moves along the spline curve Tool tip displacement during movement; u s 、u ss They represent the first-order derivative and second-order derivative of parameter u with respect to s respectively; Table 1 shows the spline curve Coordinate value, first-order derivative value, and second-order derivative value at parameter u; Table 1 shows the spline curve Coordinate value, first-order derivative value, and second-order derivative value at parameter u.

[0121] (22) Let the first and second order derivatives of the tool direction with respect to the tool tip displacement be at the control point Continuous at all locations, achieving synchronization between the tool tip path and the tool axis path.

[0122] Let α = β, then the value of the second-order derivative of the tool direction Ori (u) with respect to the tool tip displacement is zero. The second-order derivative of the tool direction Ori(u) at the point is continuous with respect to the tool tip displacement. At this time, let the tool direction Ori(u) be about the tool tip displacement at The first-order derivative at the point is continuous, which can be achieved The continuity of the second-order derivative of the tool direction Ori(u) at the point with respect to the displacement of the tool tip.

[0123] (22.1) In order to make the tool direction Ori(u) about the tool tip displacement The first-order derivative at the point is continuous, so it is necessary to ensure that the tool direction Ori(u bott )The first-order derivative of the tool tip displacement is The limits on the left and right sides of the point are equal. To the left of point , the first-order derivative of the tool direction with respect to the tool tip displacement is expressed as:

[0124]

[0125] exist To the right of the point, the first-order derivative of the tool direction with respect to the tool tip displacement is expressed as:

[0126]

[0127] (22.2) Order point The derivative limit values ​​on the left and right sides are equal, that is, the values ​​of formulas (9) and (10) are equal, then the first-order derivative of the tool direction with respect to the tool tip displacement is At this time, the following equation (11) holds true:

[0128]

[0129] At this time, the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement are Continuous at the point,

[0130] (22.3) The same operation as steps (22.1) and (22.2) is used to make the tool direction Ori(u) about the tool tip displacement at point The first-order and second-order derivative values ​​on the left and right sides are equal, that is, the tool direction is about the displacement of the tool tip point. The conditions for achieving continuity of the first-order and second-order derivatives at the point are shown in the following equation (12):

[0131]

[0132] At this time, the tool direction displacement to the tool tip point is The first and second order derivatives are continuous at the point.

[0133] After steps (22.1)-(22.3), the generated tool tip path corner transition spline curve is The transition spline curve of the tool axis path corner By correcting the control points, the synchronization between the tool tip path and the tool axis path can be achieved.

[0134] (3) The number of curvature monotonically changing intervals on the tool path determines the number of speed planning units. In order to reduce the number of speed planning units during the machining process and thus reduce speed fluctuations, it is necessary to determine the parameter α under the constraint of curvature monotonicity so that the curvature of each generated tool path smooth transition spline curve changes monotonically, that is, the number of speed planning units on the tool path is minimized. curve The curvature value at any point on is:

[0135]

[0136] Among them, m and n are intermediate parameters of the calculation process set to simplify the calculation. Their values ​​are: m = sin(2θ b )α(1-u),n=cos 2 θ b [(u-1) 2 -αu(u-2)] 2 +α 2 u 2 sin 2 θ b (u-2) 2 .

[0137] Then the derivative of curvature κ' is expressed as:

[0138]

[0139] In order to make the derivative monotonic, the value range of α is α≥1.

[0140] Since the spline When the path length is the shortest, the processing time is the least. Therefore, in order to make the spline curve The path length is the shortest, α is 1, then the spline curve The curvature decreases monotonically.

[0141] (4) In order to ensure that the second-order derivative of the tool direction with respect to the tool tip displacement at the connection point of the path connection is continuous and the number of velocity planning units on the generated smooth tool path is minimal, the corner smooth transition Bezier spline curve on the tool tip path obtained in step (1) is Bezier spline curve for smooth transition of corners on tool axis path The control points of need to satisfy formulas (11), (12) and α = 1 at the same time. In this case, the generated tool path curvature is monotonic, the number of speed planning units is the minimum, and the tool direction displacement of the tool tip point is at the connection point. The second-order derivative is continuous at At the same time, it is connected with the initial tool tip point path and tool axis path described by small line segments obtained from the five-axis CNC machining program, thereby realizing the synchronization of the tool tip point and tool axis of the tool path and forming a smoothed tool path.

[0142] Example verification:

[0143] The five-axis CNC machining center produced by Shenyang Machine Tool Group Co., Ltd. is used to implement a method for smoothing the corner transition of the tool path under the curvature monotonic constraint applicable to the five-axis CNC device. The interpolation period of the CNC system of the five-axis CNC machining center is 1ms. In this patent, the method of smoothing the corners at the connection of the tool path using the spline curve of the prior art is referred to as method one, and the method for smoothing the corner transition of the tool path under the curvature monotonic constraint applicable to the five-axis CNC device proposed in this patent is referred to as method two. In order to verify the performance of the method proposed in the present invention, method one (specific method is X. Beudaert, S. Lavernhe, C. Tournier. 5-axis local corner rounding of linear tool path discontinuities [J]. International Journal of Machine Tools and Manufacture, 2013, 73: 9-16.) and method two are respectively used to Figure 2 The path shown is smoothed. Figure 2 The tool path shown uses small line segments to describe the tool tip path and tool axis path. During the machining process, the maximum smoothing error values ​​allowed for the tool tip path and tool axis path are set to 0.1 mm and 0.001 rad respectively.

[0144] The test results are as follows:

[0145] The curvature of the smooth tool path generated by method 1 and method 2 is as follows Figure 3(a) , 3(b) As shown in the figure, the tool path generated by method 1 has 92 curvature monotonic intervals, and the tool path generated by method 2 has 46 curvature monotonic intervals, indicating that method 2 of the present invention can effectively reduce speed fluctuations. Correspondingly, the processing speed curves corresponding to the tool paths generated by method 1 and method 2 are as follows: Figure 4(a) , 4(b) As shown in the figure, it can be seen that the speed curve generated by method 2 has 24 speed planning units, corresponding to 24 acceleration and deceleration processes, while the speed curve generated by method 1 has 71 speed planning units, corresponding to 71 acceleration and deceleration processes, that is, method 1 generates more speed planning units, and the speed fluctuation caused prolongs the processing time. It can be seen that method 2 of the present invention can effectively reduce the number of speed planning units on the generated tool path, thereby reducing speed fluctuations and improving processing efficiency.

[0146] During the machining process, the feedback of the encoder of the five-axis CNC machining center is collected, and the maximum value of the tool tip point path profile error of the five-axis CNC machining center is calculated. The maximum values ​​of the tool tip point path profile error generated by the tool paths generated by method one and method two are 0.440mm and 0.419mm respectively, indicating that the precision of the present invention is higher. This is because method two can generate a smoother machining speed curve. Therefore, the maximum value of the tool tip point path profile error generated by the CNC machining center during the machining process is smaller, and the machining precision is higher.

[0147] Compared with the prior art, the above implementation verification shows that the use of the above method of the present invention for the smooth transition of the corner of the five-axis tool path can achieve the second-order geometric smooth transition of the five-axis tool path, with higher precision and smaller speed fluctuation. This is because the generated tool path meets the constraint of curvature monotonicity, and the number of corresponding speed planning units on the tool path is smaller. Therefore, the speed fluctuation during the processing is less, and a higher processing speed and smaller acceleration impact can be achieved, thereby effectively improving the processing accuracy of the processing result. The reason for the analysis is that the present invention takes the maximum smoothing error allowed by the wheel diameter of the tool tip point and the maximum arc smoothing error allowed by the tool axis path provided by the user as constraints, and respectively provides the analytical calculation method of the tool tip point path and the tool axis corner smoothing curve control point. This method does not require an iterative process. The key is that under the constraint of the monotonic curvature of the tool path, a method is provided to ensure the second-order geometric continuity of the tool direction with respect to the tool tip point displacement. The smooth movement of the tool during the processing is ensured by realizing the synchronization of the tool tip point path and the tool axis path and reducing the number of speed planning units on the tool path during the processing.

[0148] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A tool path corner smoothing method under curvature monotonic constraint applicable to a five-axis CNC device, characterized in that Here are the steps: Step (1) uses Bezier spline curve to smooth the i-th corner on the five-axis tool path, and generates transition curve pairs at the i-th corner on the tool tip path. And the transition curve pair at the i-th corner on the tool axis path Wherein, k=2i represents the serial number of the transition curve, i represents the serial number of the corner on the five-axis tool path, and the value range of i is a positive integer; Step (11) uses Bezier spline curve to align the tool tip path from the command point The corner formed Perform smooth transition and generate the corner transition Bezier spline curve pair at the i-th corner of the tool tip path Among them, the definition Indicates the command point on the tool tip path extracted from the five-axis CNC program provided by the user. Defining Splines The control point is and Defining Splines The control point is and and and Respectively and About the Corner The angle bisector is symmetrical; Step (11.1) Define the corners Transition spline curve pair The transition error e, definition Represents vectors length, and satisfy α and β are the process parameters set by the system, then the corner Insert transition spline The resulting transition error e is shown in the following formula (1): Among them, θ b =(π-η b ) / 2 , η b Indicates corner size; Step (11.2) is based on the restriction The length of the constrained corner Transition spline curve pair The transition error e is determined, and the adjacent transition spline curves are avoided from intersecting, so as to determine the transition spline curve of the tool tip path. Control Points and and control points and To make the corner Transition spline curve pair The transition error e is less than the maximum allowable value e provided by the user. max , then the process parameters The value of satisfies the following formula (2): In order to avoid the intersection of transition spline curve path segments at adjacent corners on the machining path, the vector The length of the vector is smaller than Half the length and the vector Half the length, i.e. the process parameter The value of satisfies the following formula (3): Based on the above constraints, determine the transition spline curve of the tool tip path The control points are shown in the following equations (4) and (5): in, Representation vector Length, Representation vector Length; Then, through the spline curve The control point is and And spline curves The control point is and Generate the corner transition Bezier spline curve pair at the i-th corner of the tool tip path Step (12) uses Bezier spline curve to align the tool axis path from the command point The corner formed Perform smooth transition and generate transition Bezier spline curve pair at the i-th corner of the tool axis path Among them, the definition Indicates the instruction points on the tool axis path extracted from the five-axis CNC program provided by the user. Defining Splines The control point is and Defining Splines The control point is and and and Respectively and About the Corner The angle bisector is symmetrical; Step (12.1) defines the corners on the tool axis path The transition curve at The transition error, To limit the corners on the tool axis path The transition curve at The transition error is the maximum arc smoothing error allowed in the tool axis path smoothing process provided by the user. t_max The error converted to Cartesian space represented by the spatial straight-line distance error t_tran_i ; Among them, O represents a point The center of the unit sphere coordinate system, Represents the center of a sphere and a point The distance between error t_max Indicates the maximum arc smoothing error allowed for the tool axis path provided by the user. γ represents a straight line With continuous points on the tool axis path The angle between the planes formed; Step (12.2) is based on the restriction The length of the constrained corner Transition spline curve pair The transition error of the tool axis path is determined by avoiding the intersection of adjacent transition spline curves. Control Points and and control points and definition Represents vectors length and meets Corner Insert transition spline The transition error generated after t_tran_i Satisfies formula (6): Among them, θ t =(π-η t ) / 2,η t Indicates corner size; In order to avoid the intersection of transition spline curve path segments at adjacent corners on the machining path, the vector The length of the vector is smaller than Half the length and the vector Half the length, i.e. the process parameter The value of needs to satisfy the following formula (7): Based on the constraints of formulas (6) and (7), the transition spline curve of the tool axis path is determined. The control points are shown in the following equations (8) and (9): in, Representation vector Length, Representation vector Length; Then, through the spline curve The control point is and And spline curves The control point is and Generate a transition Bezier spline curve pair at the i-th corner of the tool axis path Step (2) The first and second order derivatives of the tool direction with respect to the tool tip displacement are calculated at the control point The tool tip path corner transition spline curve generated in step (1) is continuous. Tool axis path corner transition spline pair The control points are corrected to achieve synchronization between the tool tip path and the tool axis path, thereby reducing speed fluctuations and ensuring smooth movement of the tool axis during processing. Step (21) generates the kth spline curve after the tool tip path is smoothed On the left, determine the first-order derivative of the corresponding tool direction Ori(u) at parameter u with respect to the tool tip displacement s Second Derivative They are expressed as formula (10) and (11) respectively: Where u represents the spline curve Parameters; s indicates that the tool moves along the spline curve Tool tip displacement during movement; u s 、u ss They represent the first-order derivative and second-order derivative of parameter u with respect to s respectively; Table 1 shows the spline curve Coordinate value, first-order derivative value, and second-order derivative value at parameter u; Table 1 shows the spline curve Coordinate value, first-order derivative value, and second-order derivative value at parameter u; Step (22) sets the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement at the control point Continuous at all locations, achieving synchronization between the tool tip path and the tool axis path. Let α = β, then the value of the second-order derivative of the tool direction Ori (u) with respect to the tool tip displacement is zero. Let the tool direction Ori(u) be about the displacement of the tool tip point The first-order derivative at the point is continuous, that is, it is realized The continuity of the second-order derivative of the tool direction Ori(u) at the point with respect to the tool tip displacement, Step (22.1) at the control point On the left and right sides, the first-order derivative of the tool direction with respect to the tool tip displacement is defined respectively. exist To the left of point , the first-order derivative of the tool direction with respect to the tool tip displacement is expressed as: exist To the right of the point, the first-order derivative of the tool direction with respect to the tool tip displacement is expressed as: Step (22.2) Order point The derivative limit values ​​on the left and right sides are equal, so that the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement are at the control point Continuous, That is, the values ​​of formulas (12) and (13) are equal, then the first-order derivative of the tool direction with respect to the tool tip displacement is At this time, the following equation (14) holds true: At this time, the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement are Continuous at the point, Step (22.3) sets the first and second order derivatives of the tool direction with respect to the tool tip displacement at the control point Continuous, The same operation as steps (22.1) and (22.2) is used to make the tool direction Ori(u) about the tool tip displacement at point The first-order and second-order derivative values ​​on the left and right sides are equal, that is, the tool direction is about the displacement of the tool tip point. The condition for achieving the continuity of the second-order derivative at the point is shown in the following equation (15): At this time, the tool direction displacement to the tool tip point is The first and second order derivatives are continuous at the point; After steps (22.1)-(22.3), the first-order and second-order derivatives of the tool direction with respect to the tool tip displacement are calculated at the control point The generated tool tip path corner transition spline curve is continuous. The transition spline curve of the tool axis path corner The control points are corrected to synchronize the tool tip path with the tool axis path; Step (3) is based on the synchronization between the tool tip point path and the tool axis path in step (2), and the parameter α value is calculated so that the curvature of the smooth transition spline curve of each generated tool path is monotonic. Smoothing spline curves for tool tip points Define Curve The curvature value at any point on is: Among them, m and n are intermediate parameters of the calculation process set to simplify the calculation. m=sin(2θ b )α(1-u), n=cos 2 i b [(u-1) 2 -αu(u-2)] 2 +a 2 you 2 sin 2 i b (u-2) 2 , Then the derivative of curvature κ' is expressed as: Then, based on the derivative κ' monotone and the spline curve The path length is the shortest, and the parameter α value is calculated to minimize the processing time; Step (4) makes the corners on the tool tip path obtained in step (1) smoothly transition to the Bezier spline curve pair Bezier spline curve for smooth transition of corners on tool axis path The control points of satisfy formulas (14), (15) and the parameter α value calculated in step (3) at the same time, so that At the same time, it is connected with the initial tool tip point path and tool axis path described by small line segments obtained from the five-axis CNC machining program. The tool path curvature generated at this time is monotonic, the number of speed planning units is the least, and the tool direction displacement of the tool tip point is at the connection point The second-order derivative is continuous, so that the tool tip point of the tool path is synchronized with the tool axis and a tool path with smooth transition under monotonic constraints is generated, thereby realizing smooth transition of the tool path corner under curvature monotonic constraints suitable for five-axis CNC devices.