CN-122018424-A - Intelligent programming method, device, equipment, medium and product for nut seat part
Abstract
The invention relates to the technical field of numerical control machining, and provides an intelligent programming method, device, equipment, medium and product for nut seat parts, which comprise the steps of calling a preset programming template matched with the nut seat parts to be machined, wherein a machining layer is defined in the preset programming template, and the machining layer is related to preset machining path parameters; the method comprises the steps of importing a three-dimensional model of a nut seat part to be processed, receiving a color marking instruction generated according to a mapping rule of a preset feature type and a color attribute, giving the color attribute of each feature surface to be processed, determining the feature surface to be processed according to the color attribute, constructing an auxiliary geometric object according to geometric topology information of the feature surface to be processed, classifying the feature surface to be processed and the auxiliary geometric object into corresponding processing layers, and calculating tool paths of the feature surface to be processed and the auxiliary geometric object according to preset processing path parameters related to the processing layers to generate processing paths. The invention realizes automatic programming, shortens programming time and effectively controls the dimensional accuracy deviation of the workpiece.
Inventors
- WEI CHENGFENG
- Hu fangde
- ZHANG LIBO
- SUN XUCAN
Assignees
- 北京精雕科技集团有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260115
Claims (10)
- 1. An intelligent programming method for a nut seat part is characterized by comprising the following steps: Invoking a preset programming template matched with a nut seat part to be processed, wherein a plurality of types of processing layers are defined in the preset programming template, and each processing layer is associated with preset processing path parameters; Importing a three-dimensional model of the nut seat part to be processed, receiving color marking instructions aiming at all feature surfaces to be processed in the three-dimensional model, and endowing all the feature surfaces to be processed with corresponding color attributes, wherein the color marking instructions are generated according to mapping rules of preset feature types and the color attributes; determining each feature surface to be processed according to the color attribute, and constructing a corresponding auxiliary geometric object according to geometric topology information of each feature surface to be processed; for each feature surface to be processed, classifying the feature surface to be processed and the corresponding auxiliary geometric object into the corresponding processing layer in the preset programming template; And calculating tool paths of the feature surfaces to be machined and the auxiliary geometric objects which are included in each machining layer according to the preset machining path parameters related to each machining layer, and generating corresponding machining paths.
- 2. The method for intelligently programming a nut seat component according to claim 1, wherein before receiving the color marking instruction for each feature surface to be processed in the three-dimensional model and endowing each feature surface to be processed with a corresponding color attribute, the method further comprises: an application program interface is called to traverse all feature surfaces to be processed of the three-dimensional model; and uniformly modifying the color attributes of all the feature surfaces to be processed of the three-dimensional model into preset initialized color attributes.
- 3. The method of claim 1, wherein determining each of the feature surfaces to be processed according to the color attribute, and constructing a corresponding auxiliary geometric object according to geometric topology information of each of the feature surfaces to be processed, comprises: When the feature surface to be processed is determined to be a threaded hole feature surface or a positioning hole feature surface according to the color attribute, extracting a circular outline of the orifice edge of the feature surface to be processed, calculating the circle center coordinate of the circular outline, and constructing a circle center positioning line by taking the circle center coordinate as a reference to serve as an auxiliary geometric object corresponding to the feature surface to be processed; And when the feature surface to be processed is determined to be the groove feature surface according to the color attribute, extracting a bottom edge contour line of the feature surface to be processed, and generating a contour curve according to the bottom edge contour line to serve as an auxiliary geometric object corresponding to the feature surface to be processed.
- 4. The method according to claim 1, wherein the calculating the tool path for the feature surface to be machined and the auxiliary geometric object included in each of the machining layers according to the preset machining path parameters associated with each of the machining layers includes: Acquiring a bottom surface height coordinate value of the feature surface to be processed, which belongs to the processing layer, under a workpiece coordinate system; reading a relative depth compensation value set in the preset processing path parameters; Performing superposition calculation on the bottom surface height coordinate value and the relative depth compensation value to obtain a target cutting depth; And calculating tool paths of the feature surfaces to be machined and the auxiliary geometric objects which are included in each machining layer according to the target cutting depth and cutting parameters in the preset machining path parameters.
- 5. The method according to claim 1, wherein for each of the feature surfaces to be processed, classifying the feature surface to be processed and the corresponding auxiliary geometric object into the corresponding processing layer in the preset programming template comprises: Determining a target processing layer matched with the feature surface to be processed in a preset configuration list; and keeping the relative position relation between the feature surface to be processed and the auxiliary geometric object unchanged, and synchronously moving the feature surface to be processed and the auxiliary geometric object into the target processing layer.
- 6. The method of claim 1, wherein the calling a preset programming template for matching nut seat parts to be machined comprises: determining the specification class of the nut seat part to be processed; and calling a preset programming template matched with the specification category from a plurality of programming template libraries with different specifications.
- 7. An intelligent programming device for a nut seat part, comprising: the first programming module is used for calling a preset programming template matched with the nut seat part to be processed, a plurality of types of processing layers are defined in the preset programming template, and each processing layer is associated with a preset processing path parameter; The second programming module is used for importing a three-dimensional model of the nut seat part to be processed, receiving color marking instructions aiming at all feature surfaces to be processed in the three-dimensional model and endowing the feature surfaces to be processed with corresponding color attributes, wherein the color marking instructions are generated according to mapping rules of preset feature types and color attributes; The third programming module is used for determining each feature surface to be processed according to the color attribute and constructing a corresponding auxiliary geometric object according to the geometric topology information of each feature surface to be processed; the fourth programming module is used for classifying the feature surfaces to be processed and the corresponding auxiliary geometric objects into the corresponding processing layers in the preset programming template for each feature surface to be processed; and the fifth programming module is used for calculating tool paths of the feature surfaces to be machined and the auxiliary geometric objects which are included in each machining layer according to the preset machining path parameters related to each machining layer, and generating corresponding machining paths.
- 8. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the nut seat part intelligent programming method of any one of claims 1 to 6 when the computer program is executed by the processor.
- 9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the nut seat part intelligent programming method of any one of claims 1 to 6.
- 10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements a method for intelligent programming of nut seat parts according to any one of claims 1 to 6.
Description
Intelligent programming method, device, equipment, medium and product for nut seat part Technical Field The invention relates to the technical field of numerical control machining, in particular to an intelligent programming method, device, equipment, medium and product for a nut seat part. Background The nut seat is a core component of a screw transmission system, various inner cavity diameter specifications are required to be adapted, the current industry mainly relies on traditional manual programming, the traditional manual programming of efficiency transmission needs manual operation step by step, the method comprises the steps of adjusting a position setting model to center after a model is imported, manually selecting part characteristics and constructing auxiliary line surfaces, manually classifying the characteristics and the auxiliary line surfaces into a self-built layer, and further manually selecting machine tool models, coordinate systems, cutters, setting processing parameters, designating processing planes and processes, selecting characteristic surfaces by frame and starting path calculation. In addition, different operators have great differences in feature setting, auxiliary line surface construction modes, processing parameter selection and path planning logic, so that the programming process of the nut seat with the same specification is not uniform, the dimensional accuracy deviation of the processed workpiece is large, the fluctuation range of the finished product rate is large, and the production stability is seriously influenced. Disclosure of Invention The invention provides an intelligent programming method, device, equipment, medium and product for nut seat parts, which are used for solving the technical problems that the traditional manual programming of nut seats is generally excessively long in time consumption, the programming process of nut seats with the same specification is not uniform, the dimensional accuracy deviation of processed workpieces is larger, and the fluctuation range of yield is larger in the prior art. The invention provides an intelligent programming method for a nut seat part, which comprises the following steps: Invoking a preset programming template matched with a nut seat part to be processed, wherein a plurality of types of processing layers are defined in the preset programming template, and each processing layer is associated with preset processing path parameters; Importing a three-dimensional model of the nut seat part to be processed, receiving color marking instructions aiming at all feature surfaces to be processed in the three-dimensional model, and endowing all the feature surfaces to be processed with corresponding color attributes, wherein the color marking instructions are generated according to mapping rules of preset feature types and the color attributes; determining each feature surface to be processed according to the color attribute, and constructing a corresponding auxiliary geometric object according to geometric topology information of each feature surface to be processed; for each feature surface to be processed, classifying the feature surface to be processed and the corresponding auxiliary geometric object into the corresponding processing layer in the preset programming template; And calculating tool paths of the feature surfaces to be machined and the auxiliary geometric objects which are included in each machining layer according to the preset machining path parameters related to each machining layer, and generating corresponding machining paths. According to the intelligent programming method for the nut seat part provided by the invention, before receiving the color marking instruction aiming at each feature surface to be processed in the three-dimensional model and endowing each feature surface to be processed with the corresponding color attribute, the intelligent programming method further comprises the following steps: an application program interface is called to traverse all feature surfaces to be processed of the three-dimensional model; and uniformly modifying the color attributes of all the feature surfaces to be processed of the three-dimensional model into preset initialized color attributes. According to the intelligent programming method for the nut seat part provided by the invention, each feature surface to be processed is determined according to the color attribute, and a corresponding auxiliary geometric object is constructed according to the geometric topology information of each feature surface to be processed, and the intelligent programming method comprises the following steps: When the feature surface to be processed is determined to be a threaded hole feature surface or a positioning hole feature surface according to the color attribute, extracting a circular outline of the orifice edge of the feature surface to be processed, calculating the circle center coordinate of the circular outline, and const