Part machining programming method and device based on model pre-correction

Through the model pre-correction method, conflicting features in non-standard parts are identified and modified, and the problems of low machining and programming efficiency and program errors are solved, thereby achieving more efficient and accurate machining program generation.

CN119596845APending Publication Date: 2025-03-11SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411146551.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the field of automated machinery and equipment manufacturing, the processing and programming process of non-standard parts is inefficient and can easily lead to machining program errors, which may lead to damage to the processing equipment or the parts cannot be processed normally.

Method used

Using a part machining programming method based on model pre-correction, we can use the three-dimensional model of the part to be processed, search and identify possible conflicting features, and modify these conflicting features to generate optimization models, thereby avoiding the generation of wrong machining programs.

Benefits of technology

It improves the efficiency and accuracy of the generation of non-standard parts processing programs, avoids processing program errors, and reduces the risks of machining equipment damage and parts processing failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119596845A_ABST
    Figure CN119596845A_ABST
Patent Text Reader

Abstract

The invention provides a part machining programming method and device based on model pre-correction, and the method comprises the steps: determining a three-dimensional model of a to-be-machined part, and carrying out the feature search of the three-dimensional model, and obtaining all to-be-machined features; detecting whether a plurality of to-be-processed features needing to be segmented exist in all the to-be-processed features, and if yes, determining the plurality of to-be-processed features as a group of conflict features; and modifying at least one to-be-processed feature in the group of conflict features to obtain an optimization model, and performing part processing programming based on the optimization model. According to the method, the generating efficiency and accuracy of the non-standard part machining program are improved in a mode of modifying the conflict features in advance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of parts processing, and in particular to a parts processing programming method and device based on model pre-correction. Background Art

[0002] In the field of automated mechanical equipment manufacturing, there are many non-standard (quasi) parts designs, and processing is often based on individual parts rather than batch production, which often leads to urgent delivery of parts. The production cycle of individual parts processing is relatively long, mainly because the processing programming of non-standard parts cannot have existing processing programs or more mature programming processes like standard parts. The programming and debugging process of the processing program takes a long time, and there may be similar features to be processed in non-standard parts. These features to be processed may be identified as the same processing step when generating the processing program, which may cause the generated part processing program to conflict with the processing equipment during execution, which may lead to problems such as complicated processing programs, damage to processing equipment, or inability to process parts normally. Summary of the invention

[0003] One object of the present application is to provide a part processing programming method based on model pre-correction, which improves the efficiency and accuracy of non-standard part processing program generation by pre-modifying conflicting features. Another object of the present application is to provide a part processing programming device based on model pre-correction.

[0004] In order to achieve the above-mentioned purpose, the present application discloses, on the one hand, a part machining programming method based on model pre-correction, comprising:

[0005] Determine a three-dimensional model of the part to be processed, and perform feature search on the three-dimensional model to obtain all features to be processed;

[0006] Detecting whether there are multiple features to be processed that need to be segmented among all the features to be processed, and if so, determining the multiple features to be processed as a group of conflicting features;

[0007] At least one to-be-processed feature in the group of conflicting features is modified to obtain an optimized model, and part processing programming is performed based on the optimized model.

[0008] Optionally, the multiple features to be processed that need to be segmented belong to the same processing step, and the detecting whether there are multiple features to be processed that need to be segmented among all the features to be processed includes:

[0009] It is detected whether there are multiple features to be processed that have the same processing features and are on the same processing tool trajectory among all the features to be processed.

[0010] Optionally, modifying at least one to-be-processed feature in the group of conflicting features to obtain an optimized model includes:

[0011] A pre-correction feature is set on the three-dimensional model corresponding to at least one feature to be processed in the group of conflicting features to obtain an optimized model.

[0012] Optionally, setting a pre-correction feature on the three-dimensional model corresponding to at least one feature to be processed in the set of conflicting features to obtain an optimized model includes:

[0013] Determining at least one of two adjacent features to be processed in the set of conflicting features as a feature to be corrected;

[0014] The pre-correction feature is arranged at one end of the feature to be corrected close to an adjacent feature to be processed.

[0015] Optionally, the pre-calibration feature is a blind hole, and the method for setting the pre-calibration feature is as follows:

[0016] Traverse all faces of the part, check each face to determine whether it is an inward cylindrical face, and obtain the normal direction, radius and center point of the cylindrical face;

[0017] Find the arc edge on the cylindrical surface, obtain the edge curve and take points on the edge curve, send rays along the axial direction of the cylinder through the points on the edge for interference detection. If the contact surface with the ray forming the interference point is not the current cylindrical surface or the surface connected to the current cylindrical surface, and the interference point is the edge of another cylindrical surface, it is determined that the edge currently traversed is the edge for which a pre-correction feature needs to be created;

[0018] Creates a cone feature at the edge currently traversed to form a blind hole.

[0019] Optionally, the plurality of features to be processed that need to be segmented are features with processing interference, and modifying at least one feature to be processed in the group of conflicting features to obtain an optimized model includes:

[0020] Determine the interference lines of the features to be processed that have processing interference;

[0021] The corresponding feature to be processed is cut based on the interference line.

[0022] Optionally, determining the interference line of the feature to be processed with machining interference includes:

[0023] Projecting the three-dimensional model along the processing normal vector direction to obtain a projection pattern contour;

[0024] Stretching the projection pattern contour along the processing normal vector direction until a stretched sheet body covering the three-dimensional model is obtained;

[0025] All interference lines between the stretched sheet and the three-dimensional model are searched to determine features to be processed that have processing interference.

[0026] Optionally, the method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed:

[0027] It is detected whether there are multiple cutting surfaces in the three-dimensional model, and the multiple cutting surfaces can be merged into a regular feature. If so, the multiple cutting surfaces are merged.

[0028] Optionally, the method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed:

[0029] The curved edges of the three-dimensional model of the machined part are optimized based on a preset optimization tolerance.

[0030] The present application also discloses a part processing programming device based on model pre-correction, comprising:

[0031] A feature search module is used to determine a three-dimensional model of a part to be processed, and perform feature search on the three-dimensional model to obtain all features to be processed;

[0032] A conflict feature detection module is used to detect whether there are multiple features to be processed that need to be segmented among all the features to be processed, and if so, determine the multiple features to be processed as a group of conflict features;

[0033] The model pre-correction module is used to modify at least one feature to be processed in the group of conflicting features to obtain an optimized model, and perform part processing programming based on the optimized model.

[0034] The beneficial effects of the present invention are as follows:

[0035] The part processing programming method based on model pre-correction of the present application includes determining the three-dimensional model of the part to be processed, performing feature search on the three-dimensional model to obtain all the features to be processed; detecting whether there are multiple features to be processed belonging to the same processing step among all the features to be processed, and determining whether there are features in the three-dimensional model that will be mistaken for the same processing step during processing, that is, features to be processed that may cause the processing program to be incorrectly generated. If so, the multiple features to be processed are determined as a group of conflicting features; modifying at least one feature to be processed in the group of conflicting features to obtain an optimized model, so that a group of conflicting features can be distinguished from each other, and each feature to be processed can be correctly distinguished when performing part processing programming based on the optimized model, so as to avoid conflicts between the generated part processing program and the processing equipment during execution, resulting in problems such as complicated processing programs, damage to processing equipment, or inability to process parts normally. Therefore, the present application adopts a method of pre-modifying conflicting features to avoid generating erroneous processing programs, and improve the efficiency and accuracy of generating non-standard part processing programs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 It is a flowchart of a specific embodiment of the part processing programming method based on model pre-correction of the present application;

[0038] Figure 2a and Figure 2b It is a model screenshot of three-dimensional model optimization and inspection of a specific embodiment of a part processing programming method based on model pre-correction of the present application;

[0039] Figure 3a to Figure 3e It is a screenshot of a model for adjusting the orientation of a machining surface of a three-dimensional model according to a specific embodiment of a part machining programming method based on model pre-correction of the present application;

[0040] Figure 4 It is a flowchart of a specific embodiment S310 of the part processing programming method based on model pre-correction of the present application;

[0041] Figure 5a and Figure 5b It is a model screenshot of concentric hole feature modification in a specific embodiment of a part machining programming method based on model pre-correction of the present application;

[0042] Figure 6 It is a flowchart of a specific embodiment S100 of the part processing programming method based on model pre-correction of the present application;

[0043] Figure 7 It is a flowchart of a specific embodiment S120 of the part processing programming method based on model pre-correction of the present application;

[0044] Figure 8a to Figure 8c It is a model screenshot of interference checking of a three-dimensional model in a specific embodiment of a part processing programming method based on model pre-correction of the present application;

[0045] Figure 9a to Figure 9c They are respectively screenshots of the segmentation model of the step surface intersection, the vertical surface of the contour area, and the curved surface processing area of ​​the specific embodiment of the part processing programming method based on model pre-correction of the present application;

[0046] Figure 10a to Figure 10d It is a model screenshot of a specific example of the part processing programming method based on model pre-correction of the present application;

[0047] Figure 11a to Figure 11dIt is a model screenshot of another specific example of the part processing programming method based on model pre-correction of the present application;

[0048] Fig.12 It is a structural diagram of a specific embodiment of a part processing programming device based on model pre-correction of the present application;

[0049] Fig.13 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0051] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0052] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0053] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0054] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0055] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0056] In the prior art, CNC programming (CNC Machining), that is, CNC machining, refers to the use of CNC machining tools to process parts. CNC refers to the CNC machine tools that are programmed and controlled by CNC machining languages, usually G codes. The CNC machining G code language tells the CNC machine tool what kind of Cartesian position coordinates to use for the machining tool, and controls the feed speed and spindle speed of the tool, as well as the tool changer, coolant and other functions. CNC machining has great advantages over manual machining, such as the parts produced by CNC machining are very precise and repeatable. CNC machining can produce parts with complex shapes that cannot be completed by manual machining. CNC machining technology has now been widely promoted, and most machine shops have CNC machining capabilities. The most common CNC machining methods in typical machine shops are CNC milling, CNC turning and CNC EDM wire cutting (electric spark wire cutting). The tool for CNC milling is called a CNC milling machine or a CNC machining center. The lathe that performs CNC turning is called a CNC turning center. CNC machining G codes can be programmed manually, but usually machine shops use CAM (computer-aided manufacturing) software to automatically read CAD (computer-aided design) files and generate G-code programs to control CNC machine tools.

[0057] In the field of automated mechanical equipment manufacturing, for standard parts, there are usually existing processing programs or the programming process is relatively mature, so the generation of processing programs for standard parts does not take up too much time. However, for non-standard parts, processing is often based on individual parts, and a set of processing programs needs to be set up separately for non-standard parts. Therefore, the programming and debugging process of non-standard parts processing programs takes a long time, and there may be similar features to be processed in non-standard parts. These features to be processed may be mistakenly identified as the same processing step when generating the processing program, which may cause the generated parts processing program to conflict with the processing equipment during execution, which may cause problems such as damage to the processing equipment or failure of parts to be processed normally.

[0058] For example, in the prior art, there may be multiple features to be processed with the same characteristic parameters such as multiple apertures on the same straight line in a three-dimensional model. These features to be processed may be mistaken for the same intermittent hole features during part processing programming, and may be formed through a single processing process. In this way, the processing program obtained by the part processing programming may contain erroneous processing tool trajectories, which may lead to processing errors when the processing program is executed, resulting in damage to the processing equipment or failure to process parts normally.

[0059] Based on this, in order to improve the efficiency and accuracy of generating non-standard parts processing programs, the present application provides a part processing programming method and device based on model pre-correction, which adopts the method of pre-modification of conflicting features to avoid generating erroneous processing programs, thereby improving the efficiency and accuracy of generating non-standard parts processing programs.

[0060] Figure 1 It is a schematic diagram of a part processing programming method based on model pre-correction provided in an embodiment of the present application.

[0061] like Figure 1 As shown, in this embodiment, the method includes:

[0062] S100: Determine a three-dimensional model of a part to be processed, and perform feature search on the three-dimensional model to obtain all features to be processed.

[0063] S200: Detect whether there are multiple features to be processed that need to be segmented among all the features to be processed. If yes, determine the multiple features to be processed as a group of conflicting features.

[0064] S300: modifying at least one to-be-processed feature in the group of conflicting features to obtain an optimized model, and performing part processing programming based on the optimized model.

[0065] The part processing programming method based on model pre-correction of the present application includes determining the three-dimensional model of the part to be processed, performing feature search on the three-dimensional model to obtain all the features to be processed; detecting whether there are multiple features to be processed belonging to the same processing step among all the features to be processed, and determining whether there are features in the three-dimensional model that will be mistaken for the same processing step during processing, that is, features to be processed that may cause the processing program to be incorrectly generated. If so, the multiple features to be processed are determined as a group of conflicting features; modifying at least one feature to be processed in the group of conflicting features to obtain an optimized model, so that a group of conflicting features can be distinguished from each other, and each feature to be processed can be correctly distinguished when performing part processing programming based on the optimized model, so as to avoid conflicts between the generated part processing program and the processing equipment during execution, resulting in problems such as complicated processing programs, damage to processing equipment, or inability to process parts normally. Therefore, the present application adopts a method of pre-modifying conflicting features to avoid generating erroneous processing programs, and improve the efficiency and accuracy of generating non-standard part processing programs.

[0066] In an optional embodiment, the method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed:

[0067] S010: Detect whether there are multiple cutting surfaces in the three-dimensional model, and the multiple cutting surfaces can be merged into a regular feature. If so, merge the multiple cutting surfaces.

[0068] Specifically, it is understandable that after the 3D model constructed by the design engineer is imported into the machining programming software, for example, when the 3D model of the part in step format is imported, the complete cylindrical surface in the machining body will be divided into two surfaces, such as Figure 2a The area 1 shown will affect the subsequent feature search and generation of the processing program for the segmented cutting surface. In this optional embodiment, before performing the feature search, the imported three-dimensional model of the processed part is first checked and optimized, and the multiple cutting surfaces segmented by the original conventional features are detected and merged into the original conventional features, which facilitates the subsequent feature search and simplifies the processing technology.

[0069] In an optional embodiment, the method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed:

[0070] S020: Optimizing the curved edge of the three-dimensional model of the machined part based on a preset optimization tolerance.

[0071] Specifically, after the 3D model constructed by the design engineer is imported into the machining programming software, for example, when the 3D model of the part in step format is imported, structural problems such as tiny line segment alignment may occur due to format conversion, such as Figure 2aThe 2 areas shown are not conducive to the later feature search, so the 3D model needs to be optimized first, and the optimization tolerance is preferably set to about 0.002. Among them, the optimization tolerance can be set according to actual needs, and the optimization tolerance can be changed in the initialization configuration config file of the processing program generation software, and this application does not limit this.

[0072] Optionally, after the 3D model is optimized in step S010 and / or S020, the 3D model of the part needs to be structurally checked again. This check includes ensuring the consistency of the geometric edges of the part, the intersection of the body surface, and whether the sheet boundary is correct; and checking the smoothness of the part surface, whether there is a self-intersection problem, and whether the structural tolerance meets the requirements. Only when it is within the error range can subsequent automated programming be performed, such as Figure 2b shown.

[0073] In an optional embodiment, the method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed:

[0074] S030: Determine whether there is initialization record information for the three-dimensional model; if not, check whether the length, width and height of the three-dimensional model coincide with the basic coordinate system respectively; if not, adjust the position and angle of the three-dimensional model so that the length, width and height of the minimum cube coincide with the corresponding coordinate axes of the basic coordinate system respectively.

[0075] Specifically, if the three-dimensional model contains initialization record information such as the model placement direction, there is no need to adjust the position and angle of the three-dimensional model, and the designer's default placement direction is used to generate the processing program. If there is no initialization record information, the position and angle of the three-dimensional model and other information are first detected. When the size of the smallest cube covering the three-dimensional model does not meet the preset conditions, the position and angle of the three-dimensional model are adjusted to facilitate the subsequent generation of processing technology and processing flow, reduce processing difficulty, and improve processing efficiency. Optionally, the minimum spatial rectangular enclosing size of the part can be calculated, and then the part body can be realigned. After alignment, the length and shortness of the part are aligned to the absolute coordinate system according to the rectangular enclosing size. The alignment methods are X as the longest side, Y as the second, and Z as the shortest, such as Figure 3a shown.

[0076] In an optional embodiment, the method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed:

[0077] S041: Acquire characteristic surfaces of the top and bottom surfaces of the three-dimensional model;

[0078] Calculate the processing quantity of the plane and the single-sided processing cone surface of the non-penetrating model on the top surface and the bottom surface respectively, wherein the normal vectors of the plane and the single-sided processing cone surface are parallel to the processing tool axis direction, the normal vectors of the plane and the single-sided processing cone surface on the top surface are respectively oriented toward and away from one side of the plane, and the normal vectors of the plane and the single-sided processing cone surface on the bottom surface are respectively oriented toward and away from one side of the bottom surface;

[0079] S042: Adjust the direction of the three-dimensional model so that the side of the top surface and the bottom surface with a larger number of processes faces the processing tool axis.

[0080] In this optional implementation, the front and back sides of the part are first judged as the priority processing surface before feature search, mainly to prevent the graphics that can be processed from the top surface once from being processed twice. For example, when processing multiple countersunk hole features, it is best to complete the processing from one direction to prevent them from being processed twice, wasting clamping times and affecting the overall processing time.

[0081] In a specific example, the feature surface of the straightened three-dimensional model can be traversed first, and the parameters of each feature surface in the part body can be traversed in a loop, and the planes and cones of the positive and negative (Z+ and Z- directions) surfaces in the condition can be counted. Among them, it can be determined whether the normal vector of the feature surface is parallel to the Z axis first, and all non-parallel surfaces are excluded to obtain the plane and cone surfaces. Then exclude the external fillet cone surface and the two edge lines and the cone surface above, that is, obtain the single-sided processing cone surface of the non-penetrating model (the main surface is a blind hole feature), such as Figure 3b and Figure 3c As shown. Among them, the normal vector of the plane is perpendicular to the plane and its direction is toward the surface. The normal vector of the single-sided machined cone is opposite to the direction of the surface (the normal vector of the cone is toward the tip of the cone).

[0082] Calculate the angle between the reverse direction of the normal vector of the plane and the single-sided machining cone on the top and bottom surfaces and the coordinate axis Z+. If the angle value is 0, the machining quantity count of the surface facing the Z+ direction is increased by 1. If it is 180, the machining quantity count of the surface facing the Z- direction is increased by 1. Finally, adjust the surface of the 3D model facing the Z+ direction according to the calculated machining quantity of the top and bottom surfaces and the main machining tool axis direction. For example, Figure 3d and Figure 3e The numbers of planes of the top and bottom surfaces of the illustrated three-dimensional model are 6 and 1, respectively.

[0083] In an optional embodiment, the multiple features to be processed that need to be segmented belong to the same processing step, and the step S200 of detecting whether there are multiple features to be processed that need to be segmented among all the features to be processed includes:

[0084] S210: Detect whether there are multiple features to be processed that have the same processing features and are on the same processing tool trajectory among all the features to be processed.

[0085] Specifically, it can be understood that the same machining features means that there are the same features to be machined among the features to be machined, and the feature types and predetermined size parameters of these features to be machined are the same. For example, for two hole features whose feature types are both holes, when the predetermined size is the aperture, if the aperture of the hole features is the same, then these hole features with the same aperture are the features to be machined with the same machining features, which can be obtained by machining with the same tool. On this basis, if the features to be machined with the same machining features are also set on the same axis, they can be completed in one machining process with the same tool. Therefore, when performing feature search, these multiple features to be machined with the same machining features and on the same machining tool trajectory may be mistaken for the same intermittent feature to be machined, which can be formed by one process step. However, in actual program operation, due to the limitations of tool size and displacement, the tool cannot mill out two hole features at the same time, which will cause tool damage or the part cannot be formed correctly.

[0086] It should be noted that, in actual applications, those skilled in the art can set the judgment rules for the same processing features and the method for determining the tool trajectory according to actual needs, as long as they can identify the conflicting features in the features to be processed. This application does not limit this.

[0087] Of course, in other embodiments, the designer can also set a conflict identification mark at at least one of the conflicting features to be processed when constructing the three-dimensional model of the part to be processed for subsequent identification of the conflicting features. When searching for features, when the conflict identification mark is identified, all the features to be processed in a group of conflicting features are determined, and the features at the conflict identification mark or other positions of the features to be processed are modified to obtain an optimized model.

[0088] In an optional embodiment, the step of modifying at least one to-be-processed feature in the set of conflicting features to obtain an optimized model in S300 includes:

[0089] S310: Setting a pre-correction feature on the three-dimensional model corresponding to at least one feature to be processed in the group of conflicting features to obtain an optimized model.

[0090] Specifically, when conflicting features are retrieved, a pre-correction feature can be set at at least one feature to be processed in a group of conflicting features to distinguish multiple features to be processed with the same processing features in a group of conflicting features, thereby avoiding generating a processing program as the same feature during processing programming and avoiding erroneous generation of a processing program.

[0091] The present application distinguishes multiple features to be processed structurally by setting pre-correction features. There is no need to modify the feature search program. An accurate processing program can be obtained through the existing feature search and program automatic generation method. This correction method is simple and easy to operate and can improve the accuracy of the processing program. Of course, in practical applications, those skilled in the art can also modify the features to be processed in other ways to distinguish the features to be processed in a group of conflicting features, and the present application does not limit this.

[0092] In an optional embodiment, if Figure 4 As shown, the step S310 of setting a pre-correction feature on the three-dimensional model corresponding to at least one feature to be processed in the set of conflicting features to obtain an optimized model includes:

[0093] S311: Determine at least one of two adjacent features to be processed in the group of conflicting features as a feature to be corrected.

[0094] S312: Setting the pre-correction feature at one end of the feature to be corrected that is close to an adjacent feature to be processed.

[0095] Specifically, it is understandable that when modifying a feature to be processed, it is necessary to distinguish between two adjacent features to be processed to avoid the adjacent features to be processed being mistaken for one feature for generating a processing program. Among them, one or two of the adjacent features to be processed can be modified. If only one of the features to be processed is modified, it is necessary to set a pre-correction feature at one end of the modified feature to be corrected close to the adjacent conflicting feature, so that the processing program can be disconnected in the middle of the adjacent conflicting features, and no continued processing program will be generated, thereby ensuring the accuracy of the processing program.

[0096] Optionally, the pre-correction feature can be a blind hole. By setting the pre-correction feature of the blind hole, the processing parameters of the tool can be adjusted in the processing program so that the tool processing depth is longer than the length of the hole. The setting of the blind hole can not only distinguish the conflicting features, but also be naturally removed by the processing program during the hole processing, without the need for other post-processing programs, thereby improving the efficiency of part processing.

[0097] In a specific example, Figure 5a As shown, in order to prevent the concentric disconnection between subsequent hole features, the position of the corresponding hole feature of the model needs to be modified, that is, modify at least one of the conflicting features to be processed. Otherwise, when the processing program hole is created later, it will be regarded as the same intermittent through-hole feature, thereby generating an incorrect tool path. Optionally, a cone feature can be created in the bottom area of ​​the hole, and a reference axis can be used as a conflict identification mark to facilitate subsequent inspection. The original through-hole feature will be changed to a blind hole feature during subsequent feature search. The specific creation method is as follows: 1)

[0098] 1) Traverse the surface: traverse all the surfaces of the processing body, check each surface to determine whether it is an inward cylindrical surface, and obtain its normal direction. Obtain the normal direction and radius, and obtain the center point position of the cylindrical surface. 2) Traverse the edge: find the arc edge on the cylindrical surface, obtain the edge curve and take points on the edge curve, send rays along the axial direction of the cylinder through the points on the edge for interference detection. If the contact surface with the interference point is not the current cylindrical surface or the surface connected to the current cylindrical surface (the cylindrical surfaces are discontinuous and there are gaps), and the interference point is the edge of another cylindrical surface, it is determined that the edge currently traversed is the edge that needs to create a pre-correction feature. Find the edge on the cylindrical surface and obtain the closed type arc edge curve. Take points at equal distances on the arc edge curve. Send ray points through the points on the edge and the direction of the cylinder to interfere with the part body. If the contact surface where the interference point is located is not the surface adjacent to the currently judged cylindrical surface, and the interference point is also the edge of another cylinder, it is determined that the edge currently traversed is the edge that needs to create a conical feature. 3) Create a tapered feature at the edge: Calculate the required height, angle, diameter, offset and other parameters based on the geometric characteristics of the bottom of the hole. Use the previously calculated parameters to create a tapered feature to form a blind hole pre-correction feature, such as Figure 5b shown.

[0099] For two identical hole features located on the same straight line in a set of conflicting features, a blind hole pre-correction feature can be set at one end of one hole feature close to the other hole feature. This blind hole pre-correction feature will be naturally removed during the hole machining process by setting the tool machining parameters.

[0100] In an optional embodiment, if Figure 6 As shown, the plurality of features to be processed that need to be segmented are features with processing interference, and the S300 modifies at least one feature to be processed in the group of conflicting features to obtain an optimized model, including:

[0101] S320: Determine the interference lines of the features to be processed that have processing interference.

[0102] S330: Cutting the corresponding feature to be processed based on the interference line.

[0103] Specifically, when searching for conventional features to be processed, such as holes or surfaces, they can be obtained through existing feature search methods. That is, in this optional implementation, when searching for all conventional features of the three-dimensional model through existing feature search methods, for non-standard parts that may be searched for features to be processed that cannot be directly processed or identified, in order to improve the efficiency of subsequent feature processing, the features to be processed can be split, so that some of the split features to be processed can be processed once or fused to form unit features of conventional features, and then processed through conventional feature matching processing technology.

[0104] In an optional embodiment, if Figure 7 As shown, the interference lines of the to-be-processed features that are determined to have processing interference in S320 include:

[0105] S321: Projecting the three-dimensional model along the processing normal vector direction to obtain a projection pattern contour.

[0106] S323: stretching the projection pattern contour along the processing normal vector direction until a stretched sheet body covering the three-dimensional model is obtained.

[0107] S323: Searching for all interference lines between the stretched sheet and the three-dimensional model to determine features to be processed that have processing interference.

[0108] Specifically, in order to better support the accuracy of feature search and reduce the association between individual feature faces, in this optional implementation, the three-dimensional model is segmented into contour interference surfaces, a stretched sheet is created using the contour lines of the three-dimensional model, and the stretched sheet and the three-dimensional model of the part are edge segmented. The interference lines used for segmentation on the features to be processed that have processing interference are determined by projection, stretching and interference detection. The features obtained by segmentation correspond to the overall contour of the three-dimensional model, which is convenient for subsequent one-time processing of features or fusion into conventional feature processing.

[0109] like Figure 8a to Figure 8c In the specific example shown, the projection edge curve of the part outer contour is created in the machining Z-axis direction as the projection pattern contour, such as Figure 8a As shown in the figure, a stretching sheet body that can wrap the part geometry is created in the machining Z-axis direction, such as Figure 8b As shown in the figure, the edge of the stretched sheet is used to perform surface interference segmentation on the part body, as shown in the figure. Figure 8c As shown in the figure, the part body after segmentation has independent feature surface area in the subsequent feature search, and generates a reasonable tool path program with clear processing area when automatically creating the processing program.

[0110] Furthermore, the present application can segment the intersection of the step surfaces of the three-dimensional model by segmenting the interference surface of the contour body of the three-dimensional model, such as Figure 9a As shown in the figure, after the area surface is segmented, the area can form independent open slot features and through slot features. Figure 9b As shown in the figure, after the regional surface is divided, the contour area can be made independent, and the curved surface processing area can be accompanied by the contour processing area tool side edge processing missed surface. And the undercut surface of the contour area can be separated into two surfaces, so that the curved surface can be separated into two surfaces, so as to process the front and back sides respectively, as shown in the figure. Fig.9c shown.

[0111] In a specific example, for Fig.10a The three-dimensional model shown in FIG. 1 is projected upward along the vertical processing normal vector direction to obtain the vertical contour of the model, forming a projection pattern contour. The projection pattern contour is then stretched downward along the vertical direction to obtain a stretching sheet covering the three-dimensional model. Fig.10b As can be seen from Figure 10c, the stretched sheet and an arc-shaped feature of the three-dimensional model form an interference line A, while the model without interference lines is as shown in Fig.10d Furthermore, the interference line can be used to divide the arc feature into two parts, the upper and lower parts, where the upper and lower parts are processed by the top surface and bottom surface processes respectively. Splitting the arc feature facilitates the subsequent unit feature processing process to combine the features processed on the top surface and the bottom surface for one-time processing, thereby improving processing efficiency.

[0112] In another specific example, for Fig.11a The three-dimensional model shown in FIG. 1 is used to obtain the interference line B by projection, stretching and interference detection, as shown in FIG. Fig.11b As shown. The feature is segmented by the interference line B, as shown Fig.11c As shown in the figure, the segmented features can be merged to obtain two conventional features: step surface and square groove, as shown in the figure. Fig.11d As shown in the figure, the square groove and the step surface can be processed sequentially in the subsequent processing, which converts the unconventional features into conventional features, simplifies the processing technology, and thus improves the processing efficiency and accuracy of the parts.

[0113] It should be noted that the process of performing part machining programming based on the optimization model can adopt the existing part machining programming method, which will not be described in detail in this application.

[0114] Based on the same principle, the present application also discloses a part processing programming device based on model pre-correction. Fig.12 As shown, in this embodiment, the device includes a feature search module 11, a conflict feature detection module 12 and a model pre-correction module 13.

[0115] The feature search module 11 is used to determine the three-dimensional model of the part to be processed, and perform feature search on the three-dimensional model to obtain all features to be processed.

[0116] The conflict feature detection module 12 is used to detect whether there are multiple features to be processed that need to be segmented among all the features to be processed. If so, the multiple features to be processed are determined as a group of conflict features.

[0117] The model pre-correction module 13 is used to modify at least one feature to be processed in the group of conflicting features to obtain an optimized model, and perform part processing programming based on the optimized model.

[0118] In an optional embodiment, the multiple features to be processed that need to be segmented belong to the same processing step, and the conflict feature detection module 12 is used to detect whether there are multiple features to be processed that have the same processing features and are on the same processing tool trajectory among all the features to be processed.

[0119] In an optional embodiment, the conflict feature detection module 12 is used to set a pre-correction feature on the three-dimensional model corresponding to at least one feature to be processed in the group of conflict features to obtain an optimized model.

[0120] In an optional embodiment, the model pre-correction module 13 is used to determine at least one of two adjacent features to be processed in the set of conflicting features as a feature to be corrected; and to set the pre-correction feature at one end of the feature to be corrected close to the adjacent feature to be processed.

[0121] In an optional embodiment, the pre-correction feature is a blind hole, and the model pre-correction module 13 is used to traverse all surfaces of the part, check each surface to determine whether it is an inward cylindrical surface, and obtain the normal direction, radius and center point of the cylindrical surface; find the arc edge on the cylindrical surface, obtain the edge curve and take points on the edge curve, and send rays along the axial direction of the cylinder through the points on the edge for interference detection. If the contact surface that forms the interference point with the ray is not the current cylindrical surface or the surface connected to the current cylindrical surface, and the interference point is the edge of another cylindrical surface, it is determined that the edge currently traversed is the edge that needs to create a pre-correction feature; create a conical feature at the currently traversed edge to form a blind hole.

[0122] In an optional embodiment, the multiple features to be processed that need to be segmented are features with processing interference, and the model pre-correction module 13 is used to determine the interference lines of the features to be processed with processing interference, and cut the corresponding features to be processed based on the interference lines.

[0123] In an optional embodiment, the model pre-correction module 13 is used to project the three-dimensional model along the processing normal vector direction to obtain a projection pattern contour; stretch the projection pattern contour along the processing normal vector direction until a stretched sheet covering the three-dimensional model is obtained; search for all interference lines between the stretched sheet and the three-dimensional model to determine the features to be processed that have processing interference.

[0124] Since the principle of solving the problem by the device is similar to that of the above method, the implementation of the device can refer to the implementation of the method and will not be repeated here.

[0125] An embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.

[0126] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0127] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer programs to produce the systems, devices, modules or units described in the above embodiments, which can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer device, and specifically, the computer device can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0128] In a typical example, the computer device specifically includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method executed by the client as described above is implemented; or, when the processor executes the program, the method executed by the server as described above is implemented.

[0129] Reference below Fig.13 , which shows a schematic diagram of the structure of a computer device 600 suitable for implementing an embodiment of the present application.

[0130] like Fig.13 As shown, the computer device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0131] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal feedback device (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 606 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed as needed as the storage section 608.

[0132] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611.

[0133] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0134] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0135] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0138] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0139] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0140] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0141] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0142] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A part processing programming method based on model pre-correction, characterized in that: include: Determine a three-dimensional model of the part to be processed, and perform feature search on the three-dimensional model to obtain all features to be processed; Detecting whether there are multiple features to be processed that need to be segmented among all the features to be processed, and if so, determining the multiple features to be processed as a group of conflicting features; At least one to-be-processed feature in the group of conflicting features is modified to obtain an optimized model, and part processing programming is performed based on the optimized model.

2. The part processing programming method based on model pre-correction according to claim 1 is characterized in that: The multiple features to be processed that need to be segmented belong to the same processing step, and the detecting whether there are multiple features to be processed that need to be segmented among all the features to be processed includes: It is detected whether there are multiple features to be processed that have the same processing features and are on the same processing tool trajectory among all the features to be processed.

3. The part processing programming method based on model pre-correction according to claim 2 is characterized in that: The modifying at least one to-be-processed feature in the group of conflicting features to obtain an optimized model comprises: A pre-correction feature is set on the three-dimensional model corresponding to at least one feature to be processed in the group of conflicting features to obtain an optimized model.

4. The part processing programming method based on model pre-correction according to claim 3 is characterized in that: The step of setting a pre-correction feature on the three-dimensional model corresponding to at least one feature to be processed in the set of conflicting features to obtain an optimized model comprises: Determining at least one of two adjacent features to be processed in the set of conflicting features as a feature to be corrected; The pre-correction feature is arranged at one end of the feature to be corrected close to an adjacent feature to be processed.

5. The part processing programming method based on model pre-correction according to claim 3 or 4, characterized in that: The pre-calibration feature is a blind hole, and the setting method of the pre-calibration feature is as follows: Traverse all faces of the part, check each face to determine whether it is an inward cylindrical face, and obtain the normal direction, radius and center point of the cylindrical face; Find the arc edge on the cylindrical surface, obtain the edge curve and take points on the edge curve, send rays along the axial direction of the cylinder through the points on the edge for interference detection. If the contact surface with the ray forming the interference point is not the current cylindrical surface or the surface connected to the current cylindrical surface, and the interference point is the edge of another cylindrical surface, it is determined that the edge currently traversed is the edge for which a pre-correction feature needs to be created; Creates a cone feature at the edge currently traversed to form a blind hole.

6. The part processing programming method based on model pre-correction according to claim 1 is characterized in that: The plurality of features to be processed that need to be segmented are features with processing interference, and modifying at least one feature to be processed in the group of conflicting features to obtain an optimized model includes: Determine the interference lines of the features to be processed that have processing interference; The corresponding feature to be processed is cut based on the interference line.

7. The part processing programming method based on model pre-correction according to claim 6 is characterized in that: The interference line of the feature to be processed that is determined to have processing interference includes: Projecting the three-dimensional model along the processing normal vector direction to obtain a projection pattern contour; Stretching the projection pattern contour along the processing normal vector direction until a stretched sheet body covering the three-dimensional model is obtained; All interference lines between the stretched sheet and the three-dimensional model are searched to determine features to be processed that have processing interference.

8. The part processing programming method based on model pre-correction according to claim 1 is characterized in that: The method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed: It is detected whether there are multiple cutting surfaces in the three-dimensional model, and the multiple cutting surfaces can be merged into a regular feature. If so, the multiple cutting surfaces are merged.

9. The part processing programming method based on model pre-correction according to claim 1 is characterized in that: The method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed: The curved edges of the three-dimensional model of the machined part are optimized based on a preset optimization tolerance.

10. The part processing programming method based on model pre-correction according to claim 1, characterized in that: The method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed: Determine whether there is initialization record information for the three-dimensional model; if not, check whether the length, width and height of the three-dimensional model coincide with the basic coordinate system respectively; if not, adjust the position and angle of the three-dimensional model so that the length, width and height of the minimum cube coincide with the corresponding coordinate axes of the basic coordinate system respectively.

11. The part processing programming method based on model pre-correction according to claim 1 or 10, characterized in that: The method further comprises, before performing feature search on the three-dimensional model to obtain all features to be processed: Acquire characteristic surfaces of the top and bottom surfaces of the three-dimensional model; Calculate the processing quantity of the plane and the single-sided processing cone surface of the non-penetrating model on the top surface and the bottom surface respectively, wherein the normal vectors of the plane and the single-sided processing cone surface are parallel to the processing tool axis direction, the normal vectors of the plane and the single-sided processing cone surface on the top surface are respectively oriented toward and away from one side of the plane, and the normal vectors of the plane and the single-sided processing cone surface on the bottom surface are respectively oriented toward and away from one side of the bottom surface; The direction of the three-dimensional model is adjusted so that the side with more processing quantity among the top surface and the bottom surface faces the side of the processing tool axis.

12. A part processing programming device based on model pre-correction, characterized in that: include: A feature search module is used to determine a three-dimensional model of a part to be processed, and perform feature search on the three-dimensional model to obtain all features to be processed; A conflict feature detection module is used to detect whether there are multiple features to be processed that need to be segmented among all the features to be processed, and if so, determine the multiple features to be processed as a group of conflict features; The model pre-correction module is used to modify at least one feature to be processed in the group of conflicting features to obtain an optimized model, and perform part processing programming based on the optimized model.