A method and system for converting three-axis code to four-axis code for unfolding contour of shaft parts

By performing two-dimensional drawing and coordinate transformation on shaft-type parts, four-axis CNC machining code is directly generated, solving the problems of low efficiency and poor stability in existing technologies and realizing efficient four-axis machining.

CN114995288BInactive Publication Date: 2024-11-26GUANGDONG INST OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210607649.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the process of converting three-axis code to four-axis code for shaft parts requires manual input of the outer contour features and dimensions, which results in low efficiency, long time consumption, and easy tool interference, affecting the stability of machining.

Method used

A method for converting three-axis code to four-axis code for shaft-type parts by unfolding the contour is adopted. The contour of the shaft-type part is drawn in two dimensions, a machining coordinate system is constructed, and the three-axis code is converted into four-axis code using a conversion formula, reducing manual operation steps and directly generating four-axis CNC machining code.

Benefits of technology

It improves the conversion efficiency of four-axis code, avoids tool interference, and achieves stable and efficient four-axis CNC machining.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995288B_ABST
    Figure CN114995288B_ABST
Patent Text Reader

Abstract

A method and system for converting three-axis codes of unfolded contours of shaft parts into four-axis codes, wherein the method comprises the following steps: step S1: performing two-dimensional drawing of the unfolded contours of shaft parts to obtain the two-dimensional contours of the shafts; step S2: constructing a machining coordinate system, wherein the XY plane of the machining coordinate system is coplanar with the two-dimensional contour, and the origin of the machining coordinate system is located at the center point of the two-dimensional contour; step S3: generating a tool path for the two-dimensional contour, inputting the tool path to a post-processor, and outputting the three-axis codes of the tool position coordinates in the tool path; step S4: converting the three-axis codes of the tool position coordinates to obtain the four-axis codes of the tool position coordinates. The present invention does not require complete modeling of shaft parts, but only needs to complete the two-dimensional drawing of the unfolded contour, thereby avoiding a large number of manual operation links, and directly realizing the generation of four-axis CNC machining codes for the outer cylindrical contours of shaft parts, which has the advantages of stability, speed and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of shaft processing, in particular to a method and system for converting a three-axis code of an unfolded contour of a shaft part into a four-axis code. Background Art

[0002] At present, with the actual requirements of the rapid development of industrial technology, the outer contour features of shaft parts are becoming increasingly complex. For such shaft parts with complex outer contour features, the size and features of their outer contours are more often expressed using unfolded plane contours. Correspondingly, more four-axis tool paths with unfolded contours are used for processing design. For some shaft parts, their CNC processing must use the four-axis linkage method.

[0003] At present, the three-axis code can be converted into the four-axis code through the three-dimensional modeling of CAD software and CAM software, and the four-axis linkage processing of these shaft parts can be realized through the converted four-axis code. However, in the overshoot of the conversion, the outer contour features and dimensions of such shaft parts need to be manually input, which leads to low efficiency, long time consumption, low stability of the code generation of the four-axis code, and easy occurrence of processing defects such as tool interference, which is not conducive to practical application in industry. Summary of the invention

[0004] In view of the above-mentioned defects, the purpose of the present invention is to propose a method and system for converting the three-axis code of the unfolded contour of shaft parts into the four-axis code, so as to improve the conversion efficiency of the four-axis code.

[0005] To achieve this purpose, the present invention adopts the following technical solution: a method for converting the three-axis code of the unfolded contour of a shaft part into a four-axis code, characterized in that it includes the following steps:

[0006] Step S1: unfold the shaft parts and draw the two-dimensional contour to obtain the two-dimensional contour of the shaft;

[0007] Step S2: constructing a processing coordinate system, wherein an XY plane of the processing coordinate system is coplanar with the two-dimensional contour, and the origin of the processing coordinate system is located at the center point of the two-dimensional contour;

[0008] Step S3: generating a tool path of the two-dimensional contour, inputting the tool path into a post-processor, and outputting a three-axis code of the tool position coordinates in the tool path;

[0009] Step S4: converting the three-axis code of the tool position coordinate to obtain the four-axis code of the tool position coordinate, wherein the conversion formula for converting the three-axis code of the tool position coordinate to the four-axis code of the tool position coordinate is as follows:

[0010]

[0011] Among them, X, Y, and Z are the linear coordinates in the tool position coordinates of the four axes, A is the rotation axis coordinate in the tool position coordinates of the four axes, X′, Y′, and Z′ are the linear coordinates in the tool position coordinates of the three axes, and R is the radius of the shaft part.

[0012] Preferably, in step S3, if there is a curve in the tool path, the curve is converted into a plurality of straight lines.

[0013] Preferably, the conversion formula is written into a post-processing file, and when there are three-axis tool position coordinates that need to be converted, the post-processing file is called to convert the three-axis code of the tool position coordinates into the four-axis code of the tool position coordinates.

[0014] A system for converting three-axis code of unfolded contour of shaft parts into four-axis code, using the method for converting three-axis code of unfolded contour of shaft parts into four-axis code, comprising a contour acquisition module, a coordinate construction module, a tool position coordinate acquisition module and a conversion module;

[0015] The contour acquisition module is used to perform two-dimensional contour drawing on the unfolded shaft parts to obtain the two-dimensional contour of the shaft;

[0016] The coordinate construction module is used to construct a processing coordinate system, wherein an XY plane of the processing coordinate system is parallel to the two-dimensional contour, and the origin of the processing coordinate system is located at a center point of the two-dimensional contour;

[0017] The tool position coordinate acquisition module is used to generate a tool path of the two-dimensional contour, input the tool path to a post-processor, and output a three-axis code of the tool position coordinates in the tool path;

[0018] The conversion module is used to convert the three-axis code of the tool position coordinate to obtain the four-axis code of the tool position coordinate, wherein the conversion formula for converting the three-axis code of the tool position coordinate to the four-axis code of the tool position coordinate is as follows:

[0019]

[0020] Among them, X, Y, and Z are the linear coordinates in the tool position coordinates of the four axes, A is the rotation axis coordinate in the tool position coordinates of the four axes, X′, Y′, and Z′ are the linear coordinates in the tool position coordinates of the three axes, and R is the radius of the shaft part.

[0021] Preferably, it also includes a curve conversion module;

[0022] The curve conversion module is used to convert the curve into a plurality of straight lines when there is a curve in the tool path.

[0023] Preferably, it also includes a writing module;

[0024] The writing module is used to write the conversion formula into a post-processing file. When there are three-axis tool position coordinates that need to be converted, the post-processing file is called to convert the three-axis code of the tool position coordinates into the four-axis code of the tool position coordinates.

[0025] One of the above technical solutions has the following advantages or beneficial effects: the present invention does not need to completely model the shaft parts, but only needs to complete the two-dimensional drawing of the unfolded contour, which can avoid a large number of manual operation links and directly realize the four-axis CNC machining code generation of the outer circle contour of the shaft parts, and has the advantages of stability and speed efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flow chart of a method in one embodiment of the present invention.

[0027] Figure 2 It is a schematic diagram of the structure of a system in one embodiment of the present invention.

[0028] Figure 3 It is a structural schematic diagram of an existing four-axis machine tool. DETAILED DESCRIPTION

[0029] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0030] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0031] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0032] like Figures 1 to 3 As shown, a method for converting the three-axis code of the unfolded contour of a shaft part into a four-axis code comprises the following steps:

[0033] Step S1: unfold the shaft parts and draw the two-dimensional contour to obtain the two-dimensional contour of the shaft;

[0034] Step S2: constructing a processing coordinate system, wherein an XY plane of the processing coordinate system is coplanar with the two-dimensional contour, and the origin of the processing coordinate system is located at the center point of the two-dimensional contour;

[0035] Step S3: generating a tool path of the two-dimensional contour, inputting the tool path into a post-processor, and outputting a three-axis code of the tool position coordinates in the tool path;

[0036] Step S4: converting the three-axis code of the tool position coordinate to obtain the four-axis code of the tool position coordinate, wherein the conversion formula for converting the three-axis code of the tool position coordinate to the four-axis code of the tool position coordinate is as follows:

[0037]

[0038] Among them, X, Y, and Z are the linear coordinates in the tool position coordinates of the four axes, A is the rotation axis coordinate in the tool position coordinates of the four axes, X′, Y′, and Z′ are the linear coordinates in the tool position coordinates of the three axes, and R is the radius of the shaft part.

[0039] like Figure 3 The figure shows the most common four-axis machine tool structure, which consists of three linear axes XYZ and a rotary axis A. The workpiece is clamped on a rotary table on the workbench, and the tailstock can be used to enhance the force support. The axial direction of the shaft parts is parallel to the X axis, and the rotary motion is powered by the rotary table.

[0040] In the present application, the shaft parts are first unfolded to draw the two-dimensional contour of the outer surface of the shaft parts. When drawing, the two-dimensional contour and tool path can be drawn through the existing CAM software, and the drawing process of the two-dimensional contour and tool path will not be described in detail here. After obtaining the two-dimensional contour, a machining coordinate system is constructed to facilitate the subsequent conversion of the tool position coordinates of the four axes. The positional relationship between the two-dimensional contour and the machining coordinate system and the positional relationship between the rotating axis and the machining coordinate system are also defined in the present application. After the machining coordinate system is set up according to the above requirements, the following spatial relationship exists:

[0041] 1. There is no change in the coordinates of any tool position in the axial direction of the shaft part, and X=X′.

[0042] 2. Four-axis machining of two-dimensional contours must keep the tool axis vector away from the rotation axis of the shaft part, that is, the tool cutting edge corresponding to all tool position coordinates must be facing the rotation axis directly from top to bottom, with inherent Y=0.

[0043] 3. The tool position coordinates are cut to the position Z′=0 on the three-axis tool path of the two-dimensional contour. In the four-axis machining of shaft parts, they are cut to the working bottom surface of the two-dimensional contour of the shaft parts, that is, the position Z=R. R is the radius of the shaft parts. Intrinsic Z=Z′+R.

[0044] 4. The rotation position of the A axis corresponds to the Y′ axis movement position of the three-axis tool path. According to the arc length calculation formula, l = a*R. Among them, l is the arc length of the circle corresponding to the conversion of the tool position coordinates of the three axes of the three-axis tool path to the two-dimensional contour, and a is the degree of the center angle of the circle corresponding to the arc length. The positive movement of the Y′ axis corresponds to the negative rotation of the rotation axis A, and the radian system must be converted into the angle system. The angle of the inherent rotation axis corresponds to

[0045] The conversion formula can be obtained based on the above four spatial relationships. It is only necessary to substitute the three-axis code of each tool position coordinate in the tool path into the conversion formula to obtain the four-axis code of the corresponding tool position coordinate.

[0046] Compared with the existing four-axis code acquisition method, the present invention does not need to completely model the shaft parts, but only needs to complete the two-dimensional drawing of the unfolded contour, which can avoid a large number of manual operation links and directly realize the four-axis CNC machining code generation of the outer circular contour of the shaft parts, and has the advantages of stability and speed efficiency.

[0047] Preferably, in step S3, if there is a curve in the tool path, the curve is converted into a plurality of straight lines.

[0048] Since general CNC machines use straight-line cutting to cut shafts, if the tool position coordinates of the three axes are stored as data in arcs, after being converted into the tool position coordinates of the four axes, the tool position of the rotary axis may be wrong, making it impossible to accurately convert the tool position coordinates of the three axes into the four-axis coordinates. Therefore, the calculus processing method is used in this application. When there is a curve, the curve is converted into several straight lines, and the size of the straight lines can be adjusted according to the accuracy of the machine. After being converted into several straight lines, the tool position coordinates of the three axes can be converted into accurate tool position coordinates of the four axes, realizing accurate processing of shaft parts.

[0049] Preferably, the conversion formula is written into a post-processing file, and when there are three-axis tool position coordinates that need to be converted, the post-processing file is called to convert the three-axis code of the tool position coordinates into the four-axis code of the tool position coordinates.

[0050] In the existing modeling software, there is a post-processing file, which can store formulas or parameters defined by the user. By writing the conversion formula into the post-processing file, the user does not need to manually input the three-axis code of the tool position coordinates again when converting the coordinates, and the conversion formula can be directly called in the modeling software, which is convenient and fast, and improves the efficiency of the user's four-axis CNC machining code generation.

[0051] A system for converting three-axis code of unfolded contour of shaft parts into four-axis code, using the method for converting three-axis code of unfolded contour of shaft parts into four-axis code, comprising a contour acquisition module, a coordinate construction module, a tool position coordinate acquisition module and a conversion module;

[0052] The contour acquisition module is used to perform two-dimensional contour drawing on the unfolded shaft parts to obtain the two-dimensional contour of the shaft;

[0053] The coordinate construction module is used to construct a processing coordinate system, wherein an XY plane of the processing coordinate system is parallel to the two-dimensional contour, and the origin of the processing coordinate system is located at a center point of the two-dimensional contour;

[0054] The tool position coordinate acquisition module is used to generate a tool path of the two-dimensional contour, input the tool path to a post-processor, and output a three-axis code of the tool position coordinates in the tool path;

[0055] The conversion module is used to convert the three-axis code of the tool position coordinate to obtain the four-axis code of the tool position coordinate, wherein the conversion formula for converting the three-axis code of the tool position coordinate to the four-axis code of the tool position coordinate is as follows:

[0056]

[0057] Among them, X, Y, and Z are the linear coordinates in the tool position coordinates of the four axes, A is the rotation axis coordinate in the tool position coordinates of the four axes, X′, Y′, and Z′ are the linear coordinates in the tool position coordinates of the three axes, and R is the radius of the shaft part.

[0058] Preferably, it also includes a curve conversion module;

[0059] The curve conversion module is used to convert the curve into a plurality of straight lines when there is a curve in the tool path.

[0060] Preferably, it also includes a writing module;

[0061] The writing module is used to write the conversion formula into a post-processing file. When there are three-axis tool position coordinates that need to be converted, the post-processing file is called to convert the three-axis code of the tool position coordinates into the four-axis code of the tool position coordinates.

[0062] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0063] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for converting the three-axis code of the unfolded contour of a shaft part into a four-axis code, characterized in that: The following steps are involved: Step S1: unfold the shaft parts and draw the two-dimensional contour to obtain the two-dimensional contour of the shaft; Step S2: constructing a processing coordinate system, wherein an XY plane of the processing coordinate system is coplanar with the two-dimensional contour, and the origin of the processing coordinate system is located at the center point of the two-dimensional contour; Step S3: generating a tool path of the two-dimensional contour, inputting the tool path into a post-processor, and outputting a three-axis code of the tool position coordinates in the tool path; Step S4: converting the three-axis code of the tool position coordinate to obtain the four-axis code of the tool position coordinate, wherein the conversion formula for converting the three-axis code of the tool position coordinate to the four-axis code of the tool position coordinate is as follows: ; Among them, X, Y, and Z are the linear coordinates in the tool position coordinates of the four axes, and A is the rotation axis coordinate in the tool position coordinates of the four axes. , , is the straight line coordinate in the three-axis tool position coordinate, and R is the radius of the shaft part.

2. The method for converting the three-axis code of the unfolded contour of a shaft part to the four-axis code according to claim 1, characterized in that: In step S3, if there is a curve in the tool path, the curve is converted into a plurality of straight lines.

3. The method for converting the three-axis code of the unfolded contour of a shaft part to the four-axis code according to claim 1, characterized in that: The conversion formula is written into a post-processing file, and when there are three-axis tool position coordinates that need to be converted, the post-processing file is called to convert the three-axis code of the tool position coordinates into the four-axis code of the tool position coordinates.

4. A system for converting the three-axis code of the unfolded contour of shaft parts into a four-axis code, using the method for converting the three-axis code of the unfolded contour of shaft parts according to any one of claims 1 to 3, characterized in that: It includes a contour acquisition module, a coordinate construction module, a tool position coordinate acquisition module and a conversion module; The contour acquisition module is used to perform two-dimensional contour drawing on the unfolded shaft parts to obtain the two-dimensional contour of the shaft; The coordinate construction module is used to construct a processing coordinate system, wherein an XY plane of the processing coordinate system is parallel to the two-dimensional contour, and the origin of the processing coordinate system is located at a center point of the two-dimensional contour; The tool position coordinate acquisition module is used to generate a tool path of the two-dimensional contour, input the tool path to a post-processor, and output a three-axis code of the tool position coordinates in the tool path; The conversion module is used to convert the three-axis code of the tool position coordinate to obtain the four-axis code of the tool position coordinate, wherein the conversion formula for converting the three-axis code of the tool position coordinate to the four-axis code of the tool position coordinate is as follows: ; Among them, X, Y, and Z are the linear coordinates in the tool position coordinates of the four axes, and A is the rotation axis coordinate in the tool position coordinates of the four axes. , , is the straight line coordinate in the three-axis tool position coordinate, and R is the radius of the shaft part.

5. A system for converting three-axis code to four-axis code for unfolded contour of shaft parts according to claim 4, characterized in that: Also includes curve conversion module; The curve conversion module is used to convert the curve into a plurality of straight lines when there is a curve in the tool path.

6. A system for converting three-axis code to four-axis code for unfolded contour of shaft parts according to claim 5, characterized in that: Also includes a write module; The writing module is used to write the conversion formula into a post-processing file. When there are three-axis tool position coordinates that need to be converted, the post-processing file is called to convert the three-axis code of the tool position coordinates into the four-axis code of the tool position coordinates.