Groove surface profiling finish machining tool path generation method based on boring lathe technology
Through reverse modeling and numerical calculation, accurate boring tool path trajectories are generated, which solves the post-processing problem of boring and turning large thin-walled parts, achieves efficient and accurate bevel surface profiling processing, reduces costs and improves programming efficiency.
Patent Information
- Application Number
- CN202410957761.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-11
AI Technical Summary
The existing UG post-processing module cannot complete the boring and turning process post-processing of large thin-walled parts, resulting in low processing accuracy, slow speed and high cost, and it is difficult to ensure accuracy in manual processing.
A tool path generation method for profiling and finishing of bevel surfaces based on boring and turning technology is adopted. Geometric information is obtained through reverse modeling, the tool path for profiling and finishing is calculated, and accurate tool paths are generated using the boring and turning technology and machining process requirements. , realizing three-axis linkage processing.
It achieves precise processing of large thin-walled parts, saves post-processing time and costs, improves programming efficiency, and provides new ideas for profiling processing of non-standard multi-axis machine tools.
Smart Images

Figure CN118760054A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of groove surface profiling tool path generation method in CAM, in particular to a groove surface profiling finishing tool path generation method based on boring and turning technology. Background Art
[0002] For the profiling of the groove surface of large thin-walled parts, it is necessary to design corresponding non-standard machine tools to ensure the processing efficiency and accuracy of the groove. To achieve fully automated processing of parts, for profiling, especially circular hole processing, it is necessary to first use a visual system to scan the position of the hole where the groove is located in the workpiece, and then generate the inner and outer groove surface sheets through reverse modeling, and use the sheets for post-processing to obtain the finishing tool path of the groove. However, the existing UG post-processing module cannot complete the boring and turning process post-processing of such machine tools, and re-development is difficult and costly. If manual processing is used, the accuracy cannot be guaranteed and the processing speed is slow. Summary of the invention
[0003] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a method for generating a groove surface profiling finishing tool path based on a boring and turning process, read the reverse modeling geometric information, and then construct the groove surface through the geometric information, and then use the numerical calculation method to calculate the profiling finishing tool path trajectory. The groove surface finishing tool path trajectory can be calculated according to the corresponding boring and turning process and processing technology requirements, and the result is accurate without consuming a lot of time and cost.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0005] The method for generating a groove surface profiling finishing tool path based on boring and turning technology includes the following steps:
[0006] Step S1: obtaining two surface curved surfaces of two groove surfaces of the processed hole on the processed part, taking the central axis of the processed hole as the z-axis, establishing a workpiece coordinate system, and the yoz plane of the workpiece coordinate system is parallel to the yoz plane of the machine tool coordinate system;
[0007] Step S2: for a surface curved surface, refer to the workpiece coordinate system, and reversely model a sheet model of the groove surface corresponding to the surface curved surface based on the depth and width of the groove of the processed hole;
[0008] Step S3: Generate two boundaries corresponding to the sheet model of the groove surface, and obtain two coordinate matrices corresponding to the two boundaries respectively;
[0009] Step S4: generating two tool processing boundaries based on the boring tool head radius and the two boundaries and the two corresponding coordinate matrices;
[0010] Step S5: generating a machining spiral line including continuous points based on the two tool machining boundaries, and performing boring and turning processing on the surface based on the machining spiral line;
[0011] Step S6: Jump to step S2 until the other surface is processed by boring and turning;
[0012] Step S7: Jump to step S1 until all the holes to be processed on the processed part are completed by boring and turning.
[0013] Furthermore, the method of obtaining two surface curved surfaces of the groove of the processed hole on the processed part in step S1 is:
[0014] Step S101: obtaining point cloud data of the surface of the processed part;
[0015] Step S102: processing the outer surface curved surface of the processed hole and the intersection point between the central axis of the processed hole and the outer surface curved surface based on the point cloud data;
[0016] Step S103: establishing a workpiece coordinate system according to the intersection point;
[0017] Step S104: offset the workpiece wall thickness inward according to the outer surface curve to obtain the inner surface curve of the processed hole.
[0018] Furthermore, the method of step S3 is:
[0019] Step S301: generating two first boundaries based on the sheet model of the groove surface, and obtaining two first coordinate matrices corresponding to the two first boundaries respectively;
[0020] Step S302: setting the z-coordinate partition value, processing the two first coordinate matrices corresponding to the two first boundaries, and obtaining the two second coordinate matrices and the corresponding two second boundaries;
[0021] Step S303: reordering the coordinate points in the two second coordinate matrices to obtain two third coordinate matrices and corresponding two third boundaries;
[0022] Step S304: Smoothing the two third boundaries to generate two fourth boundaries;
[0023] Step S305: converting the two fourth boundaries corresponding to the sheet model of the groove surface into two saddle curves of equal curvature;
[0024] Step S306: taking the two saddle curves as final boundaries, and obtaining two final coordinate matrices based on the two final boundaries.
[0025] Furthermore, the method of step S302 is:
[0026] Step S3021: setting the first boundary of the sheet model of the groove surface with a large curvature as the groove surface large boundary, and setting the first boundary of the sheet model with a small curvature as the groove surface small boundary;
[0027] Step S3022: Find the maximum value WZmax and the minimum value WZmin of the z coordinate of the large boundary of the groove surface;
[0028] Step S3023: Calculate the maximum value WZ1max and the minimum value WZ1min of the z coordinate of the small boundary of the groove surface according to the depth of the groove;
[0029] Step S3024: Calculate the average value wz of WZmax and WZ1min;
[0030] Step S3025: Using [wz, WZmax] as the z coordinate interval to obtain the second coordinate matrix WW of the large boundary of the groove surface, and using [WZ1min, wz] as the z coordinate interval to obtain the second coordinate matrix W of the small boundary of the groove surface.
[0031] Furthermore, the method of step S303 is:
[0032] Reorder the coordinates of the points in the two second coordinate matrices according to the order of the first to fourth quadrants in the xoy plane.
[0033] Furthermore, the method of step S304 is:
[0034] Perform three-dimensional spline interpolation on each third boundary: the number of points is set according to the number of processing points per circle n, and after interpolation, the x coordinate of the starting point of each third boundary is a positive value and the y coordinate value is 0.
[0035] Furthermore, the method of step S305 is:
[0036] Step S3051: The size boundaries of the groove surface are arranged in a matrix order to form n groove surface side generatrix vectors;
[0037] Step S3052: Calculate the maximum curvature rmax of the points on the large boundary of the groove surface, and calculate the minimum curvature rmin of the points on the small boundary of the groove surface;
[0038] Step S3053: Adjust the position of the points on the large boundary of the groove surface, and calculate the adjusted coordinate value of each point according to the maximum curvature rmax and the three-point collinearity principle. Assuming that the two points on the same side generatrix are (x1, y1, z1) and (x2, y2, z2), the adjusted coordinate point is (x0, y0, z0), and calculate the direction vector [dx, dy, dz]:
[0039]
[0040] Step S3054: construct a set of equations to solve the quadratic equation coefficients a, b and c:
[0041]
[0042] Step S3055: Solve the quadratic equation ax 2 +bx+c=0, calculate the adjustment coefficient t and the coordinates of the adjusted point (x0, y0, z0):
[0043]
[0044] Further, the method of step S4 is:
[0045] Step S401: Based on the two acquired boundaries, obtain the unit normal vector of each point on each boundary along the groove surface;
[0046] Step S402: according to the radius r of the boring tool head, offset each point along the unit normal vector by r to obtain the surface where the machining path of the center point of the tool head is located;
[0047] Step S403: obtaining two tool head processing boundaries based on the curved surface where the tool head center point processing path is located, so that the points on the two tool head processing boundaries are all equal curvature points.
[0048] Furthermore, the method of step S401 is:
[0049] Step S4011: Set the two coordinate matrices corresponding to the two adjusted boundaries as NW and NN respectively, select two adjacent points on each of the two boundaries, and the four points have the same position in the two coordinate matrices to form a rectangular surface, traverse the entire matrix, and divide the groove surface into several rectangles;
[0050] Step S4012: Obtain the boundary vector of the rectangle;
[0051] Step S4013: Obtain two unit normal vectors corresponding to the two boundaries respectively.
[0052] Further, the method of step S4 is:
[0053] Step S501: according to the depth of the groove and the feed rate per turn, determine the number of spiral lines required for processing a single groove, determine the coordinates of each point of the first spiral line, obtain the step length of the z coordinate between two adjacent points according to the feed rate per turn and the number of processing points per turn, and calculate the coordinates of each point in the first spiral line in sequence according to the step length;
[0054] Step S502: according to the coordinates of each point of the first spiral line, the feed amount of each circle is used as the step length, and the coordinates of each point in the remaining spiral circles are calculated in sequence to obtain the coordinates of each point of the complete processed spiral line;
[0055] Step S503: Convert the coordinates of each point of the machining spiral line into cylindrical coordinates, wherein the origin and z-axis of the cylindrical coordinates are the same as those of the workpiece coordinate system.
[0056] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0057] The present invention provides a groove surface profiling finishing tool path generation method based on boring and turning process, uses the reverse modeled groove surface sheet model to convert the processing tool path, can accurately describe the geometric information of the groove through the numerical calculation method, further converts the groove information into a boring and turning processing spiral line, obtains the required continuous processing points, and then completes the finishing of the groove surface, realizes three-axis linkage processing, and this method can save post-processing time, modularize this type of profiling processing, and improve programming efficiency. It is a great innovation in the calculation of non-standard multi-axis linkage machine tool profiling tool path, and can also provide a new idea for other types of profiling finishing. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0059] Figure 1 is a flow chart of the present invention;
[0060] Figure 2 A schematic cross-sectional view of a typical processed hole of a processed part used in the present invention;
[0061] Figure 3 A schematic longitudinal section diagram of a typical processed hole of a processed part used in the present invention;
[0062] Figure 4 A top view of the groove sheet model and a schematic diagram of the workpiece coordinate system used in the present invention;
[0063] Figure 5 It is a side view of the groove plate model used in the present invention and a schematic diagram of the workpiece coordinate system. DETAILED DESCRIPTION
[0064] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0065] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means 2 or more.
[0066] Example 1
[0067] like Figure 2 and Figure 3 , which are respectively a schematic cross-sectional view of a typical processed hole of a processed part used in the present invention and a schematic longitudinal view of a typical processed hole of a processed part used in the present invention. The present embodiment 1 provides a method for generating a groove surface profiling finishing tool path based on a boring and turning process, which can quickly process a typical processed hole of a processed part based on a boring and turning process, such as Figure 1 As shown, the method for generating a groove surface profiling finishing tool path based on a boring and turning process provided in this embodiment 1 includes the following steps:
[0068] Step S1: obtaining two surface curved surfaces of two groove surfaces of the processed hole on the processed part, taking the central axis of the processed hole as the z-axis, establishing a workpiece coordinate system, and the yoz plane of the workpiece coordinate system is parallel to the yoz plane of the machine tool coordinate system;
[0069] Step S2: for a surface curved surface, refer to the workpiece coordinate system, and reversely model a sheet model of the groove surface corresponding to the surface curved surface based on the depth and width of the groove of the processed hole;
[0070] Step S3: Generate two boundaries corresponding to the sheet model of the groove surface, and obtain two coordinate matrices corresponding to the two boundaries respectively;
[0071] Step S4: generating two tool processing boundaries based on the boring tool head radius and the two boundaries and the two corresponding coordinate matrices;
[0072] Step S5: generating a machining spiral line including continuous points based on the two tool machining boundaries, and performing boring and turning processing on the surface based on the machining spiral line;
[0073] Step S6: Jump to step S2 until the other surface is processed by boring and turning;
[0074] Step S7: Jump to step S1 until all the holes to be processed on the processed part are completed by boring and turning.
[0075] In view of the high cost of non-standard machine tools designed and built in the prior art to process the groove surface of large thin-walled parts, and the difficulty and high cost of redeveloping the UG post-processing module for processing the groove surface of large thin-walled parts, this embodiment provides a groove surface profiling finishing tool path generation method based on boring and turning technology, using the reverse modeling groove surface sheet model to convert the processing tool path, through the numerical calculation method, it can accurately describe the geometric information of the groove surface, further convert the groove surface information into a boring and turning processing spiral line, obtain the required continuous processing points, and then complete the finishing of the groove surface, realize three-axis linkage processing, this method can not only save post-processing time, but also modularize this type of profiling processing and improve programming efficiency. It is a great innovation in the calculation of non-standard multi-axis linkage machine tool profiling tool path, and can also provide a new idea for other types of profiling finishing.
[0076] Since the boring and turning processing speed is fast, this embodiment is particularly suitable for processing thin-walled parts with more round holes. Therefore, this embodiment can greatly improve the processing efficiency of round holes of thin-walled parts in the prior art, and at the same time improve the processing accuracy of round holes of thin-walled parts.
[0077] In step S1 of this embodiment, the processed hole has an inner groove surface and an outer groove surface, the inner groove surface corresponds to the inner surface curved surface, and the outer groove surface corresponds to the outer groove curved surface. The method for obtaining the two surface curved surfaces of the groove surface of the processed hole on the processed part is:
[0078] Step S101: Acquire point cloud data of the surface of the processed part.
[0079] Specifically, by scanning the surface of the processed part through a machine vision system, point cloud data of the surface of the processed part can be obtained.
[0080] Step S102: Processing the outer surface curved surface of the processed hole and the intersection point between the central axis of the processed hole and the outer surface curved surface based on the point cloud data.
[0081] Step S103: Establishing a workpiece coordinate system according to the intersection point.
[0082] Step S104: offset the workpiece wall thickness inward according to the outer surface curve to obtain the inner surface curve of the processed hole.
[0083] In step S1 of this embodiment, the workpiece coordinate system established is a rectangular coordinate system for the workpiece. During processing, the center axis of the hole must be parallel to the yoz plane of the machine tool coordinate system. Point O is used as the coordinate origin, the center axis of the hole is used as the z-axis, and the workpiece coordinate system is established according to the right-hand rule, in which the yoz plane of the workpiece coordinate system is parallel to the yoz plane of the machine tool coordinate system, and the hole axis and the z-axis of the machine tool coordinate system are in the same plane.
[0084] This embodiment can accurately obtain the outer surface curve of the processed hole through the machine vision system, and then offset the workpiece wall thickness inward according to the outer surface curve to obtain the inner surface curve of the processed hole. Specifically, in the specific implementation method of this embodiment, a laser scanning measurement method is used to obtain point cloud data of the surface of the processed part, thereby facilitating three-dimensional modeling of the surface of the processed part.
[0085] In step S2 of this embodiment, the sheet model of the groove surface is converted into an STL file. After the STL file is subsequently imported into Matlab, the coordinates of each point on the sheet model of the groove surface can be obtained.
[0086] Specifically, the groove width is WK, the groove depth is WS, and the intersection line between the two groove surfaces (inner and outer groove surfaces) and the sheet model of the groove surface is obtained based on the principle of equal width and depth, and the workpiece coordinate system is used as a reference. Then, the sheet model of the groove surface is established and converted into an STL file. Since each processed hole has an inner and outer groove surface, such as Figure 5 As shown, it is a side view of the groove sheet model and a schematic diagram of the workpiece coordinate system used in the present invention, showing the inner and outer groove surfaces in the workpiece coordinate system, wherein WK1, WS1, WK2 and WS2 are the inner groove width, inner groove depth, outer groove depth and outer groove width respectively.
[0087] The STL file generated in step S2 is read using Matlab to generate a structure about the groove, and the coordinate matrix of the entire boundary of the groove surface is obtained in the structure.
[0088] After the STL file is imported into Matlab, the coordinates of all points are mixed together and have no order. Therefore, the coordinates of different boundaries need to be distinguished first, but the coordinate order of each boundary is still chaotic, so the coordinate order in each boundary needs to be further sorted. Therefore, this embodiment generates two boundaries corresponding to the sheet model of the groove surface through step S3, and obtains two coordinate matrices corresponding to the two boundaries respectively. It is possible to obtain the two boundaries corresponding to the sheet model of the groove surface corresponding to the boundaries accurately, and accurately obtain the two coordinate matrices corresponding to the two boundaries respectively. For the two boundaries, the one with a larger curvature is the large curvature boundary, and the one with a smaller curvature is the small curvature boundary.
[0089] The specific method is:
[0090] Step S301: Generate two first boundaries based on the sheet model of the groove surface, and obtain two first coordinate matrices corresponding to the two first boundaries respectively.
[0091] Step S302: setting the z-coordinate partition value, processing the two first coordinate matrices corresponding to the two first boundaries, and obtaining the two second coordinate matrices and the corresponding two second boundaries.
[0092] Through step S302, the coordinates of different boundaries are distinguished, and then two relatively accurate second coordinate matrices are generated, and two second boundaries corresponding to the two second coordinate matrices are obtained.
[0093] Step S303: reorder the coordinate points in the two second coordinate matrices to obtain two third coordinate matrices and corresponding two third boundaries.
[0094] Since the coordinate order of the second boundary is still chaotic, it is necessary to reorder the coordinates of the points in the two second coordinate matrices in the order of the first to fourth quadrants in the xoy plane to obtain two third coordinate matrices generated in coordinate order and the corresponding two third boundaries.
[0095] Step S304: Smoothing the two third boundaries to generate two fourth boundaries, and then generating smooth fourth boundaries between known data points for further analysis.
[0096] Specifically, three-dimensional spline interpolation is performed on each third boundary: the number of points is set according to the number of processing points per circle n, and after interpolation, the x coordinate of the starting point of each third boundary is a positive value and the y coordinate value is 0.
[0097] Step S305: converting the two fourth boundaries corresponding to the sheet model of the groove surface into two saddle curves of equal curvature.
[0098] In step S305, a new boundary curve is regenerated according to the maximum curvature of the large boundary and the minimum curvature of the small boundary, so that all points on the large and small boundaries have the same curvature.
[0099] Boring machines require a device called a flat turntable. This device has an axis that can move radially, called the u-axis, which can be understood as the radius. Due to its own characteristics, it cannot move back and forth very quickly, so the u-axis of the programmed machining program either keeps decreasing or keeps increasing. The final machining spiral line will be related to the shape of the large boundary. If it is not of equal curvature, the boundary will be an ellipse. In this way, the u-axis coordinates of the generated machining spiral line will continuously increase and decrease. In order to adapt to the flat turntable device, the boundary needs to be treated with equal curvature.
[0100] Step S306: taking the two saddle curves as final boundaries, and obtaining two final coordinate matrices based on the two final boundaries.
[0101] In step S302 of this embodiment, the z-coordinate partition value is set, and the two first coordinate matrices corresponding to the two first boundaries are processed to obtain the two second coordinate matrices and the corresponding two second boundaries.
[0102] Step S3021: setting the first boundary of the sheet model of the groove surface with a large curvature as the groove surface large boundary, and setting the first boundary of the sheet model with a small curvature as the groove surface small boundary;
[0103] Step S3022: Find the maximum value WZmax and the minimum value WZmin of the z coordinate of the large boundary of the groove surface;
[0104] Step S3023: Calculate the maximum value WZ1max and the minimum value WZ1min of the z coordinate of the small boundary of the groove surface according to the depth of the groove;
[0105] Step S3024: Calculate the average value wz of WZmax and WZ1min;
[0106] Step S3025: Using [wz, WZmax] as the z coordinate interval to obtain the second coordinate matrix WW of the large boundary of the groove surface, and using [WZ1min, wz] as the z coordinate interval to obtain the second coordinate matrix WN of the small boundary of the groove surface, such as Figure 4 , which is a top view of the groove sheet model and a schematic diagram of the workpiece coordinate system used in the present invention, showing the second coordinate matrix WW of the large boundary of the groove surface and the second coordinate matrix WN of the small boundary of the groove surface in the workpiece coordinate system.
[0107] In step S303 of this embodiment, the two second coordinate matrices WW and WN are reordered, and the four coordinate matrices are rearranged counterclockwise according to the order of the four quadrants of the xoy plane in the workpiece coordinate system to obtain two third coordinate matrices WW1 and WN1.
[0108] In step S304 of this embodiment, the two third coordinate matrices WW1 and WN1 are respectively used to form two third boundary curves, and the two third boundary curves are subjected to spline cubic spline interpolation. Assuming that the number of processing points per circle is n, the interpolation starting point is a point on the positive x-axis, and each third boundary curve is interpolated in a counterclockwise order to obtain two n*3 matrices WW2 and WN2.
[0109] In step S305 of this embodiment, the method of converting the two fourth boundaries corresponding to the sheet model of the groove surface into two saddle curves of equal curvature is:
[0110] Step S3051: The size boundaries of the groove surface are arranged in a matrix order to form n groove surface side generatrix vectors;
[0111] Step S3052: Calculate the maximum curvature rmax of the points on the large boundary of the groove surface, and calculate the minimum curvature rmin of the points on the small boundary of the groove surface;
[0112] Step S3053: Adjust the position of the points on the large boundary of the groove surface, and calculate the adjusted coordinate value of each point according to the maximum curvature rmax and the three-point collinearity principle. Assuming that the two points on the same side generatrix are (x1, y1, z1) and (x2, y2, z2), the adjusted coordinate point is (x0, y0, z0), and calculate the direction vector [dx, dy, dz]:
[0113]
[0114] Step S3054: construct a set of equations to solve the quadratic equation coefficients a, b and c:
[0115]
[0116] Step S3055: Solve the quadratic equation ax 2 +bx+c=0, calculate the adjustment coefficient t and the coordinates of the adjusted point (x0, y0, z0):
[0117]
[0118] In step S4 of this embodiment, the method for generating two tool processing boundaries based on the boring tool head radius and the two boundaries is:
[0119] Step S401: Based on the two acquired boundaries, obtain the unit normal vector of each point on each boundary along the groove surface;
[0120] Step S402: according to the radius r of the boring tool head, offset each point along the unit normal vector by r to obtain the surface where the machining path of the center point of the tool head is located;
[0121] Step S403: obtaining two tool head processing boundaries based on the curved surface where the tool head center point processing path is located, so that the points on the two tool head processing boundaries are all equal curvature points.
[0122] In step S401 of this embodiment, based on the two acquired boundaries, the method for obtaining the unit normal vector of each point on each boundary along the groove surface is:
[0123] Step S4011: Set the two coordinate matrices corresponding to the two adjusted boundaries (large boundary and small boundary) as NW and NN respectively, select two adjacent points on each of the two boundaries, and the positions of the four points in the two coordinate matrices are the same to form a rectangular surface, traverse the entire matrix, and divide the groove surface into several rectangles;
[0124] Step S4012: Get the boundary vector of the rectangle:
[0125]
[0126] Where i represents the i-th coordinate in the matrix, NW i+1 is the i+1th coordinate in the NW coordinate matrix, NW i is the i-th coordinate in the NW coordinate matrix, NN i+1 is the i+1th coordinate in the NN coordinate matrix, NN i is the i-th coordinate in the NN coordinate matrix, ww i is the vector from the i-th point to the i+1-th point on the large boundary, nw i is the vector from the i-th point on the large boundary to the i-th point on the small boundary, nn i is the vector from the i-th point to the i+1-th point on the small boundary;
[0127] Step S4013: Obtain two unit normal vectors corresponding to two boundaries (large boundary and small boundary):
[0128]
[0129] Among them, nnn1 i and nnn2 i They represent the two unit normal vectors corresponding to the i-th coordinate in the matrix of the two boundaries;
[0130] In step S402 of this embodiment, according to the radius r of the boring tool head, each point is offset by r along the unit normal vector to obtain the surface where the machining path of the tool head center point is located as follows:
[0131] Find the point on the boundary after the unit normal vector of the point is offset by r. Assuming that the coordinate matrices of the two boundaries (large boundary and small boundary) after offset are pnn1 and pnn2 respectively, the calculation method is:
[0132]
[0133] Among them, pnn1 i and pnn2 i They represent two boundaries for the i-th coordinate in the matrix along the two unit normal vectors nnn1 i and nnn2 iThe coordinates after offset r.
[0134] In step S5 of this embodiment, according to the radius r of the boring tool head, each point is offset by r along the unit normal vector to obtain the surface where the machining path of the center point of the head is located as follows:
[0135] In step S5 of this embodiment, a machining spiral line including continuous points is generated based on two tool machining boundaries, and a method for boring and turning the surface based on the machining spiral line is as follows:
[0136] Step S501: Determine the number of spiral lines required for single groove processing according to the depth of the groove and the feed amount per circle, determine the coordinates of each point of the first circle of the spiral line, obtain the step length of the z coordinate between two adjacent points according to the feed amount per circle and the number of processing points per circle, and calculate the coordinates of each point in the first circle of the spiral line in sequence according to the step length.
[0137] Specifically, the method for calculating the coordinates of each point in the first spiral line in sequence according to the step size is:
[0138] Step S5011: Solve the total number of turns fnum and the total number of points angnum of the first spiral line, assuming that the feed rate per turn is fr, and to leave an empty tool distance for entering and exiting the tool, the difference kn between WZ1max and WZ1min is taken as the height of the spiral line tool path;
[0139] fnum=kn / fr
[0140] angnum=fnum·n。
[0141] Step S5012: solving the coordinates of each point of the first spiral line, assuming that the coordinates of each point of the first spiral line on the groove processing spiral line are a matrix [x3b, y3b, z3b], the matrix size is angnum×3, and the step length is step;
[0142]
[0143] Among them, [x3b i ,y3b i ,z3b i ] is the i′th coordinate on the groove processing spiral line, n is the total number of coordinates, 1, 2, 3 correspond to the coordinate values of the x-axis, y-axis and z-axis of the workpiece coordinate system respectively, step i′represents the step size corresponding to the i′th coordinate, pnn1(i′,1) represents the coordinate value of the i′th coordinate on the x-axis in the coordinate matrix pnn1, pnn1(i′,2) represents the coordinate value of the i′th coordinate on the y-axis in the coordinate matrix pnn1, pnn1(i′,3) represents the coordinate value of the i′th coordinate on the z-axis in the coordinate matrix pnn1, pnn2(i′,1) represents the coordinate value of the i′th coordinate on the x-axis in the coordinate matrix pnn2, pnn2(i′,2) represents the coordinate value of the i′th coordinate on the y-axis in the coordinate matrix pnn2, and pnn2(i′,3) represents the coordinate value of the i′th coordinate on the z-axis in the coordinate matrix pnn2.
[0144] Step S502: Based on the coordinates of each point of the first spiral line, the feed amount of each circle is used as the step length, and the coordinates of each point in the remaining spiral circles are calculated in sequence to obtain the coordinates of each point of the complete processed spiral line.
[0145] The method to obtain the coordinates of the remaining points in the groove processing spiral matrix [x3b, y3b, z3b] is:
[0146]
[0147] Where i″ represents the number of the i″th spiral coil, fnum represents the number of spiral coils on the processed spiral line, j is the jth coordinate on the groove processing spiral line, [x3b (i″-1)·n+j ,y3b (i″-1)·n+j ,z3b (i″-1)·n+j ] represents the (i″-1)·n+jth coordinate on the groove processing spiral line, z3b (i″-2)·n Indicates the z-axis coordinate value of the (i″-1)·nth coordinate on the groove processing spiral line, z3b i″ It represents the coordinate value of the z-axis of the (i″-1)·nth coordinate on the groove processing spiral line, pnn1(j,1) represents the coordinate value of the x-axis of the j-th coordinate in the coordinate matrix pnn1, pnn1(j,2) represents the coordinate value of the y-axis of the j-th coordinate in the coordinate matrix pnn1, pnn1(j,3) represents the coordinate value of the z-axis of the j-th coordinate in the coordinate matrix pnn1, pnn2(j,1) represents the coordinate value of the x-axis of the j-th coordinate in the coordinate matrix pnn2, pnn2(j,2) represents the coordinate value of the y-axis of the j-th coordinate in the coordinate matrix pnn2, and pnn2(j,3) represents the coordinate value of the z-axis of the j-th coordinate in the coordinate matrix pnn2.
[0148] Step S503: Convert the coordinates of each point of the machining spiral line into cylindrical coordinates, wherein the origin and z-axis of the cylindrical coordinates are the same as those of the workpiece coordinate system.
[0149] Specifically, the rectangular coordinates of the workpiece are converted into cylindrical coordinates, and the origin remains unchanged to adapt to the flat disk processing. The flat disk has a u-axis, a w-axis, and an sp-axis. The w-axis is used to control the height of the spiral line, the u-axis is used to control the curvature of each point, and the sp-axis is used for rotational motion. In this way, the three axes are linked to form a spiral descending processing path.
[0150] In summary, the present invention uses the sheet model of the groove surface of reverse modeling to convert the processing tool path, and through the method of numerical calculation, the geometric information of the groove can be accurately described, and the groove information is further converted into the required processing points, and the finishing of the groove surface is completed through the point file, and three-axis linkage processing is realized. In this way, post-processing time can be saved, and this type of profiling processing can be modularized to improve programming efficiency. It is a great innovation in the calculation of the profiling tool path of non-standard multi-axis linkage machine tools, and a new idea can also be provided for other types of profiling finishing.
[0151] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for generating a groove surface profiling finishing tool path based on a boring and turning process, characterized in that: The following steps are involved: Step S1: obtaining two surface curved surfaces of two groove surfaces of the processed hole on the processed part, taking the central axis of the processed hole as the z-axis, establishing a workpiece coordinate system, and the yoz plane of the workpiece coordinate system is parallel to the yoz plane of the machine tool coordinate system; Step S2: for a surface curved surface, refer to the workpiece coordinate system, and reversely model a sheet model of the groove surface corresponding to the surface curved surface based on the depth and width of the groove of the processed hole; Step S3: Generate two boundaries corresponding to the sheet model of the groove surface, and obtain two coordinate matrices corresponding to the two boundaries respectively; Step S4: generating two tool processing boundaries based on the boring tool head radius and the two boundaries and the two corresponding coordinate matrices; Step S5: generating a machining spiral line including continuous points based on the two tool machining boundaries, and performing boring and turning processing on the surface based on the machining spiral line; Step S6: Jump to step S2 until the other surface is processed by boring and turning; Step S7: Jump to step S1 until all the holes to be processed on the processed part are completed by boring and turning.
2. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 1, characterized in that: Step S1: The method for obtaining two surface curved surfaces of the groove of the processed hole on the processed part is: Step S101: obtaining point cloud data of the surface of the processed part; Step S102: processing the outer surface curved surface of the processed hole and the intersection point between the central axis of the processed hole and the outer surface curved surface based on the point cloud data; Step S103: establishing a workpiece coordinate system according to the intersection point; Step S104: offset the workpiece wall thickness inward according to the outer surface curve to obtain the inner surface curve of the processed hole.
3. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 1, characterized in that: The method of step S3 is: Step S301: generating two first boundaries based on the sheet model of the groove surface, and obtaining two first coordinate matrices corresponding to the two first boundaries respectively; Step S302: setting the z-coordinate partition value, processing the two first coordinate matrices corresponding to the two first boundaries, and obtaining the two second coordinate matrices and the corresponding two second boundaries; Step S303: reordering the coordinate points in the two second coordinate matrices to obtain two third coordinate matrices and corresponding two third boundaries; Step S304: Smoothing the two third boundaries to generate two fourth boundaries; Step S305: converting the two fourth boundaries corresponding to the sheet model of the groove surface into two saddle curves of equal curvature; Step S306: taking the two saddle curves as final boundaries, and obtaining two final coordinate matrices based on the two final boundaries.
4. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 3 is characterized in that: The method of step S302 is: Step S3021: setting the first boundary of the sheet model of the groove surface with a large curvature as the groove surface large boundary, and setting the first boundary of the sheet model with a small curvature as the groove surface small boundary; Step S3022: Find the maximum value WZmax and the minimum value WZmin of the z coordinate of the large boundary of the groove surface; Step S3023: Calculate the maximum value WZ1max and the minimum value WZ1min of the z coordinate of the small boundary of the groove surface according to the depth of the groove; Step S3024: Calculate the average value wz of WZmax and WZ1min; Step S3025: Using [wz, WZmax] as the z coordinate interval to obtain the second coordinate matrix WW of the large boundary of the groove surface, and using [WZ1min, wz] as the z coordinate interval to obtain the second coordinate matrix W of the small boundary of the groove surface.
5. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 3, characterized in that: The method of step S303 is: Reorder the coordinates of the points in the two second coordinate matrices according to the order of the first to fourth quadrants in the xoy plane.
6. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 3, characterized in that: The method of step S304 is: Perform three-dimensional spline interpolation on each third boundary: the number of points is set according to the number of processing points per circle n, and after interpolation, the x coordinate of the starting point of each third boundary is a positive value and the y coordinate value is 0.
7. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 3, characterized in that: The method of step S305 is: Step S3051: The size boundaries of the groove surface are arranged in a matrix order to form n groove surface side generatrix vectors; Step S3052: Calculate the maximum curvature rmax of the points on the large boundary of the groove surface, and calculate the minimum curvature rmin of the points on the small boundary of the groove surface; Step S3053: Adjust the position of the points on the large boundary of the groove surface, and calculate the adjusted coordinate value of each point according to the maximum curvature rmax and the three-point collinearity principle. Assuming that the two points on the same side generatrix are (x1, y1, z1) and (x2, y2, z2), the adjusted coordinate point is (x0, y0, z0), and calculate the direction vector [dx, dy, dz]: Step S3054: construct a set of equations to solve the quadratic equation coefficients a, b and c: Step S3055: Solve the quadratic equation ax 2 +bx+c=0, calculate the adjustment coefficient t and the coordinates of the adjusted point (x0, y0, z0):
8. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 1, characterized in that: The method of step S4 is: Step S401: Based on the two acquired boundaries, obtain the unit normal vector of each point on each boundary along the groove surface; Step S402: according to the radius r of the boring tool head, offset each point along the unit normal vector by r to obtain the surface where the machining path of the center point of the tool head is located; Step S403: obtaining two tool head processing boundaries based on the curved surface where the tool head center point processing path is located, so that the points on the two tool head processing boundaries are all equal curvature points.
9. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 7, characterized in that: The method of step S401 is: Step S4011: Set the two coordinate matrices corresponding to the two adjusted boundaries as NW and NN respectively, select two adjacent points on each of the two boundaries, and the four points have the same position in the two coordinate matrices to form a rectangular surface, traverse the entire matrix, and divide the groove surface into several rectangles; Step S4012: Obtain the boundary vector of the rectangle; Step S4013: Obtain two unit normal vectors corresponding to the two boundaries respectively.
10. The method for generating a groove surface profiling finishing tool path based on a boring and turning process according to claim 1, characterized in that: The method of step S4 is: Step S501: according to the depth of the groove and the feed rate per turn, determine the number of spiral lines required for processing a single groove, determine the coordinates of each point of the first spiral line, obtain the step length of the z coordinate between two adjacent points according to the feed rate per turn and the number of processing points per turn, and calculate the coordinates of each point in the first spiral line in sequence according to the step length; Step S502: according to the coordinates of each point of the first spiral line, the feed amount of each circle is used as the step length, and the coordinates of each point in the remaining spiral circles are calculated in sequence to obtain the coordinates of each point of the complete processed spiral line; Step S503: Convert the coordinates of each point of the machining spiral line into cylindrical coordinates, wherein the origin and z-axis of the cylindrical coordinates are the same as those of the workpiece coordinate system.
