Nut seat part intelligent programming method, device, equipment, medium and product
By using intelligent programming methods, feature surfaces are identified using preset programming templates and color attributes, auxiliary geometric objects are constructed and classified into standardized layers, and tool trajectories are automatically calculated. This solves the problems of long programming time and inconsistent processes for nut seat parts, and improves machining accuracy and yield.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING JINGDIAO GRP CO LTD
- Filing Date
- 2026-01-15
- Publication Date
- 2026-05-12
AI Technical Summary
In the existing technology, the programming of nut seat parts is too time-consuming and the process is not uniform, resulting in large deviations in the dimensional accuracy of the workpiece after processing and large fluctuations in the yield, which makes it difficult to meet the needs of mass production.
The intelligent programming method calls a preset programming template to assign color attributes to the feature surfaces of the 3D model. Based on the color attributes, the feature surfaces are identified and auxiliary geometric objects are constructed and incorporated into a standardized layer. Combined with preset path parameters, the tool path is automatically calculated to generate the machining path.
It shortens programming time, eliminates subjective differences among operators, and improves the stability of workpiece dimensional accuracy and yield.
Smart Images

Figure CN122018424A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of CNC machining technology, and in particular to an intelligent programming method, device, equipment, medium, and product for nut seat parts. Background Technology
[0002] Nut seats are the core components of lead screw transmission systems and need to be compatible with various internal cavity diameter specifications. Currently, the industry mainly relies on traditional manual programming. Traditional manual programming requires manual operation step by step, including importing the model, adjusting the position and centering the model, manually selecting part features and constructing auxiliary lines and surfaces, manually assigning features and auxiliary lines and surfaces to a self-created layer, and then manually selecting the machine tool model, coordinate system, cutting tool, setting machining parameters, specifying machining planes and processes, selecting feature surfaces and starting path calculation. The entire process lacks automation and collaboration, and programming single-specification nut seats is generally too time-consuming, making it difficult to meet the needs of mass production.
[0003] Furthermore, the differences in feature settings, auxiliary line and surface construction methods, machining parameter selection, and path planning logic among different operators lead to inconsistent programming processes for nut seats of the same specification. This results in large deviations in the dimensional accuracy of the machined workpieces, significant fluctuations in the yield rate, and serious impacts on production stability. Summary of the Invention
[0004] This invention provides an intelligent programming method, device, equipment, medium, and product for nut seat parts, which solves the technical problems in the prior art where traditional manual programming of nut seats is generally too time-consuming, and the programming process for nut seats of the same specification is not uniform, resulting in large deviations in the dimensional accuracy of the processed workpiece and large fluctuations in the yield.
[0005] This invention provides an intelligent programming method for nut seat parts, comprising the following steps: Call the preset programming template that matches the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with preset processing path parameters. Import the 3D model of the nut seat part to be processed, and receive color marking instructions for each feature surface to be processed in the 3D model, and assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; Based on the color attributes, each of the aforementioned feature surfaces to be processed is determined, and corresponding auxiliary geometric objects are constructed based on the geometric topology information of each of the aforementioned feature surfaces to be processed. For each of the aforementioned feature surfaces to be processed, the feature surfaces to be processed and the corresponding auxiliary geometric objects are assigned to the corresponding processing layers in the preset programming template; Based on the preset machining path parameters associated with each machining layer, tool path calculation is performed on the feature surfaces to be machined and the auxiliary geometric objects belonging to each machining layer to generate corresponding machining paths.
[0006] According to the present invention, an intelligent programming method for a nut seat part, before receiving color marking instructions for each feature surface to be processed in the three-dimensional model and assigning corresponding color attributes to each feature surface to be processed, further includes: Call the application programming interface to traverse all the feature surfaces of the 3D model to be processed; The color attributes of all feature surfaces to be processed in the 3D model are uniformly modified to the preset initial color attributes.
[0007] According to the present invention, a smart programming method for a nut seat part includes determining each of the feature surfaces to be processed based on the color attribute, and constructing corresponding auxiliary geometric objects based on the geometric topology information of each of the feature surfaces to be processed, comprising: When the feature surface to be processed is determined to be a threaded hole feature surface or a positioning hole feature surface based on the color attribute, the circular outline of the hole edge of the feature surface to be processed is extracted, the center coordinates of the circular outline are calculated, and the center positioning line is constructed based on the center coordinates as an auxiliary geometric object corresponding to the feature surface to be processed. When the feature surface to be processed is determined to be a groove feature surface based on the color attribute, the bottom edge contour line of the feature surface to be processed is extracted, and a contour curve is generated based on the bottom edge contour line as an auxiliary geometric object corresponding to the feature surface to be processed.
[0008] According to the present invention, an intelligent programming method for a nut seat part includes calculating the tool path for the feature surfaces to be machined and the auxiliary geometric objects belonging to each of the machining layers based on the preset machining path parameters associated with each machining layer. Obtain the bottom height coordinates of the feature surface to be processed, which is included in the processing layer, in the workpiece coordinate system; Read the relative depth compensation value set in the preset processing path parameters; The target cutting depth is obtained by superimposing the bottom surface height coordinate value and the relative depth compensation value. Based on the target cutting depth and the cutting parameters in the preset machining path parameters, the tool path is calculated for the feature surfaces to be machined and the auxiliary geometric objects that are assigned to each of the machining layers.
[0009] According to the present invention, an intelligent programming method for a nut seat part includes, for each of the machining feature surfaces, classifying the machining feature surfaces and the corresponding auxiliary geometric objects into the corresponding machining layer in the preset programming template, comprising: Select the target processing layer that matches the feature surface to be processed from the preset configuration list; While maintaining the relative positional relationship between the feature surface to be processed and the auxiliary geometric object, the feature surface to be processed and the auxiliary geometric object are moved synchronously to the target processing layer.
[0010] According to the present invention, an intelligent programming method for a nut seat part, wherein calling a preset programming template matching the nut seat part to be processed includes: Determine the specification category of the nut seat part to be processed; Retrieve a preset programming template that matches the specified category from multiple programming template libraries of different specifications.
[0011] The present invention also provides an intelligent programming device for nut seat parts, comprising: The first programming module is used to call a preset programming template that matches the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with preset processing path parameters. The second programming module is used to import the three-dimensional model of the nut seat part to be processed, and to receive color marking instructions for each feature surface to be processed in the three-dimensional model, and to assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; The third programming module is used to determine each of the feature surfaces to be processed based on the color attributes, and to construct corresponding auxiliary geometric objects based on the geometric topology information of each of the feature surfaces to be processed. The fourth programming module is used to classify each of the feature surfaces to be processed and the corresponding auxiliary geometric objects into the corresponding processing layer in the preset programming template. The fifth programming module is used to calculate the tool path for the feature surfaces to be processed and the auxiliary geometric objects belonging to each of the processing layers according to the preset processing path parameters associated with each processing layer, and generate the corresponding processing path.
[0012] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the intelligent programming method for nut seat parts as described above.
[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the intelligent programming method for nut seat parts as described above.
[0014] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the intelligent programming method for the nut seat part as described above.
[0015] The intelligent programming method, device, equipment, medium, and product for nut seat parts provided by this invention, by calling a preset programming template that matches the specifications of the nut seat, and combining preset feature types with color attribute mapping rules to generate color marking instructions to assign color attributes to the feature surfaces to be processed in the 3D model, then identifying each feature surface to be processed based on the color attributes, constructing auxiliary geometric objects according to the geometric topology information of the identified feature surfaces to be processed and classifying them into the corresponding processing layers, and finally automatically calculating the tool trajectory to generate the processing path according to the preset processing path parameters associated with each processing layer; this replaces the entire manual operation process of adjusting the model position, constructing auxiliary lines and surfaces, classifying layers, selecting processing parameters, and selecting feature surfaces in traditional manual programming, shortening the programming time. At the same time, through standardized preset templates, mapping rules, and processing parameters, it eliminates the problem of inconsistent programming processes caused by subjective differences in operation by different operators, effectively controls the deviation of workpiece dimensional accuracy, and improves the stability of the yield. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating the intelligent programming method for nut seat parts provided by the present invention.
[0018] Figure 2 This is a schematic diagram of the intelligent programming device for nut seat parts provided by the present invention.
[0019] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0021] It should be noted that in the description of this invention, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The terms "upper," "lower," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the system or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0022] The terms "first," "second," etc., used in this invention are used to distinguish similar objects, not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0023] This invention provides an intelligent programming method for nut seat parts. Figure 1 This is a flowchart illustrating the intelligent programming method for nut seat parts provided by the present invention, as shown below. Figure 1 As shown, the method includes the following steps 110, 120, 130, 140 and 150.
[0024] Step 110: Call the preset programming template that matches the nut seat part to be processed. The preset programming template defines several types of processing layers, and each processing layer is associated with preset processing path parameters.
[0025] Here, the preset programming template serves as the fundamental carrier for automated programming. Based on the structural characteristics of the nut seat part, such as internal cavities, threaded holes, and grooves, this template pre-establishes a series of standardized machining layers. These machining layers are bound to specific preset machining paths. Furthermore, each preset machining path is pre-configured with corresponding preset machining path parameters. These parameters include the complete set of process path parameters required to complete the feature machining of that machining layer, including but not limited to: tool selection, cutting parameters, cutting mode, tool approach / retract method, and safety height.
[0026] As a specific embodiment, a dedicated template can be developed based on the SM9.6 software platform. Considering that nut seat parts typically have different inner cavity diameter specifications, such as A, B, C, D, etc., this embodiment has a pre-set template library for different specifications.
[0027] Taking the A-specification nut seat as an example, as shown in Table 1 below, when the preset programming template for this specification is called, the template has pre-set standardized layers such as the two-clamp automatic centering-probe 31 layer, the groove-flat bottom cutter-33 layer, and the positioning hole-drill bit-34 layer.
[0028] At the same time, each layer is associated with a specific path group. For example, the groove-flat end mill-33 layer is associated with two machining paths: A-specification groove roughing-flat end mill and groove finishing-flat end mill. This preset avoids the tedious operations of repeatedly creating layers, selecting tools, and inputting cutting parameters during programming.
[0029] Table 1 Step 120: Import the three-dimensional model of the nut seat part to be processed, and receive the color marking instructions for each feature surface to be processed in the three-dimensional model, and assign the corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules.
[0030] In the specific implementation process, the system established a standardized interface for human-computer interaction. Due to the complex and diverse geometric features of the nut seat parts to be processed, such as holes, slots, and surfaces, fully automated geometric feature recognition relying entirely on software often suffers from low recognition rates and is prone to errors. Therefore, in this embodiment, color attributes are set as the unique identifier for each feature. Operators do not need to set complex processing parameters; they only need to input the corresponding color marking command according to the preset mapping rules between feature types and color attributes, and the system can then assign the color attribute to the corresponding feature surface.
[0031] In one specific embodiment, the system supports importing 3D models in STEP or IGES format. The preset mapping rule between feature types and color attributes can be a standardized feature-color correspondence table. For example, referring to Table 2 below, the colors corresponding to the grooves are specified as RGB (0,0,255), the countersunk groove-groove straight wall color is RGB (139,139,0), the countersunk groove-groove curved surface color is RGB (165,42,0), the threaded hole color is RGB (255,0,0), the positioning hole color is RGB (255,104,32), the through hole color is RGB (0,255,0), the inner cavity wall color is RGB (0,255,255), the first clamp top plane color is RGB (255,0,255), the first clamp outer side wall color is RGB (255,255,255), the second clamp top plane color is RGB (255,255,255), and the second clamp outer side wall color is RGB (255,255,255).
[0032] Table 2 According to the preset mapping rules between feature types and color attributes, the operator uses the software's coloring tool to input color marking instructions for each feature surface to be processed on the 3D model. After receiving these color marking instructions, the system modifies the color of each feature surface to be processed on the 3D model to the specified color.
[0033] Step 130: Determine each of the feature surfaces to be processed based on the color attributes, and construct corresponding auxiliary geometric objects based on the geometric topology information of each of the feature surfaces to be processed.
[0034] When generating toolpaths, CNC programming software often requires not only surface information but also centerlines, contour lines, or auxiliary surfaces to determine the tool entry position or boundary. Therefore, in this embodiment, the system automatically traverses all feature surfaces on the model and reads their color attributes. Based on the read color, the system identifies the feature type represented by the surface, then extracts the geometric topology information of the surface according to the feature type, and constructs auxiliary geometric objects based on the geometric topology information of the surface.
[0035] Here, auxiliary geometric objects refer to geometric primitives used to assist in toolpath calculation. For example, for hole features, an auxiliary geometric object might be an axis passing through the center of a circle or an arc located at the opening of the hole; for groove features, an auxiliary geometric object might be the edge contour line of the groove bottom.
[0036] In one specific embodiment, when the system scans a feature surface with a color of RGB (255,0,0), it identifies it as a threaded hole according to a preset mapping rule between feature type and color attribute. The system then automatically extracts the circular outline of the hole's edge, calculates the center coordinates, and constructs a center positioning line perpendicular to the hole as an auxiliary geometric object for subsequent drill bit positioning guidance. When the system scans a feature surface with a color of RGB (0,0,255), it identifies it as a groove according to a preset mapping rule between feature type and color attribute. The system automatically extracts the edge of the groove's bottom surface and constructs a closed contour curve as an auxiliary geometric object to limit the milling cutter's machining range.
[0037] Step 140: For each of the feature surfaces to be processed, the feature surfaces to be processed and the corresponding auxiliary geometric objects are assigned to the corresponding processing layer in the preset programming template.
[0038] Specifically, the system also incorporates a logical mapping between feature surfaces and layers. For example, when the system detects a threaded hole based on its color attributes, it automatically moves the feature surface and its corresponding center positioning line to the positioning hole-drill-34 layer in the template according to rules; when the system detects a groove based on its color attributes, it automatically assigns the feature surface and its corresponding contour curve to the groove-flat end mill-33 layer. Through this process, the chaotic model features are organized into a layer structure with specific technological meanings, without the need for manual layer selection and object movement.
[0039] Step 150: Based on the preset machining path parameters associated with each machining layer, calculate the tool path for the feature surface to be machined and the auxiliary geometric object belonging to each machining layer, and generate the corresponding machining path.
[0040] Once a feature object is assigned to a layer, since the layer and path parameters are pre-bound, the system only needs to call the path generation command to trigger the calculation engine. The calculation engine will traverse each machining layer in the preset programming template, read the feature surfaces to be machined and their corresponding auxiliary geometric objects contained in that machining layer, and retrieve the preset machining path parameters pre-bound to that machining layer, such as preset spindle speed, feed rate, and depth of cut. Combining this with the position information of the geometric objects, it will perform tool path calculations and finally generate a machining path that can be recognized by the CNC machine tool.
[0041] In a specific embodiment, for objects within the Groove-Flat End Tool-33 layer, the system automatically calls the associated groove roughing path and groove finishing path, reads preset cutting depth, step distance and other parameters, and calculates the tool's motion trajectory by combining the contour range within the layer. Finally, the system generates a complete machining path.
[0042] The intelligent programming method for nut seat parts in this embodiment calls a preset programming template that matches the nut seat specifications. It uses color marking instructions generated by the mapping rules between preset feature types and color attributes to assign color attributes to the feature surfaces to be machined on the 3D model. Then, it identifies each feature surface to be machined based on the color attributes. Based on the geometric topology information of the identified feature surfaces, it constructs auxiliary geometric objects and classifies them into the corresponding machining layers. Finally, it automatically calculates the tool path and generates the machining path based on the preset machining path parameters associated with each machining layer. This method replaces the entire manual operation process of adjusting the model position, constructing auxiliary lines and surfaces, classifying layers, selecting machining parameters, and selecting feature surfaces in traditional manual programming. It shortens the programming time. At the same time, through standardized preset templates, mapping rules, and machining parameters, it eliminates the problem of inconsistent programming processes caused by subjective differences in operation by different operators, effectively controls the deviation of workpiece dimensional accuracy, and improves the stability of the yield.
[0043] It should be noted that each implementation method of this application can be freely combined, rearranged, or executed individually, and does not need to rely on or depend on a fixed execution order.
[0044] In some embodiments, before receiving color marking instructions for each feature surface to be processed in the 3D model and assigning corresponding color attributes to each feature surface to be processed; wherein the color marking instructions are generated according to a preset feature type and color attribute mapping rule, the method further includes: Call the application programming interface to traverse all the feature surfaces of the 3D model to be processed; The color attributes of all feature surfaces to be processed in the 3D model are uniformly modified to the preset initial color attributes.
[0045] It should be understood that in actual production scenarios, the 3D models provided by upstream designers may contain various arbitrary color markings or residual color attributes from exports from different CAD software. Therefore, in this embodiment, color initialization is performed before manual annotation.
[0046] In this embodiment, the system utilizes the API interface provided by the SM9.6 software to select the overall color coverage mode. The system automatically traverses all feature surfaces to be processed in the imported model, regardless of feature type, and modifies the color attributes of all feature surfaces to preset initial color attributes, such as uniformly modifying the colors to RGB (152,170,175) to cover the original colors of the model, providing a unified gray base. This avoids misjudgments caused by the original color attributes in subsequent manual annotation and system recognition, ensuring the uniqueness and accuracy of the correspondence between the preset feature types and color attributes.
[0047] The intelligent programming method for the nut seat component in this embodiment eliminates color interference from upstream design data during the programming process by performing global color initialization.
[0048] In some embodiments, determining each of the feature surfaces to be processed based on the color attribute, and constructing corresponding auxiliary geometric objects based on the geometric topology information of each of the feature surfaces to be processed, includes: When the feature surface to be processed is determined to be a threaded hole feature surface or a positioning hole feature surface based on the color attribute, the circular outline of the hole edge of the feature surface to be processed is extracted, the center coordinates of the circular outline are calculated, and the center positioning line is constructed based on the center coordinates as an auxiliary geometric object corresponding to the feature surface to be processed. When the feature surface to be processed is determined to be a groove feature surface based on the color attribute, the bottom edge contour line of the feature surface to be processed is extracted, and a contour curve is generated based on the bottom edge contour line as an auxiliary geometric object corresponding to the feature surface to be processed.
[0049] In practice, different types of feature surfaces require different auxiliary geometric elements to drive toolpath generation. The system stores preset mapping rules between feature types and color attributes, and associates them with preset programming templates. These mapping rules can be retrieved in real time during manual annotation to ensure accurate annotation.
[0050] Specifically, referring to Table 2 above, in this embodiment, the preset mapping rules include, but are not limited to: the RGB value of the groove is set to (0,0,255), the RGB value of the threaded hole is set to (255,0,0), the RGB value of the positioning hole is set to (255,104,32), the RGB value of the countersunk groove-groove straight wall is set to (139,139,0), the RGB value of the countersunk groove-groove curved surface is set to (165,42,0), and the RGB value of the through hole is set to (0,255,0), etc.
[0051] Based on the above color definitions, when the system recognizes that the model surface has RGB (255,0,0) or RGB (255,104,32) color attributes, the system determines that the feature is a hole-type feature. At this time, the circular contour of the hole edge of the feature surface is extracted, and the center coordinates of the contour are calculated using a geometric algorithm. Using these coordinates as a base point, a center positioning line perpendicular to the hole opening is constructed. This positioning line is the auxiliary geometric object required for subsequent drilling. When the system recognizes that the model surface has RGB (0,0,255) color attributes, the system determines that the feature is a groove-type feature. The bottom edge of the feature surface is extracted, and a closed contour curve is generated through fitting or projection. This contour curve is the processing boundary required for subsequent processing.
[0052] The intelligent programming method for the nut seat part in this embodiment distinguishes each feature surface according to color attributes, extracts the corresponding geometric topology information and automatically constructs auxiliary geometric objects, replacing the manual construction of auxiliary lines and surfaces.
[0053] In some embodiments, the step of calculating the tool path for the feature surfaces to be machined and the auxiliary geometric objects belonging to each of the machining layers based on the preset machining path parameters associated with each of the machining layers includes: Obtain the bottom height coordinates of the feature surface to be processed, which is included in the processing layer, in the workpiece coordinate system; Read the relative depth compensation value set in the preset processing path parameters; The target cutting depth is obtained by superimposing the bottom surface height coordinate value and the relative depth compensation value. Based on the target cutting depth and the cutting parameters in the preset machining path parameters, the tool path is calculated for the feature surfaces to be machined and the auxiliary geometric objects that are assigned to each of the machining layers.
[0054] In practice, in order to ensure machining accuracy and adapt to machining process requirements, path calculation is not simply based on the model surface, but adopts a relative depth calculation rule.
[0055] In this embodiment, the template pre-sets rules for specification-machining depth. Taking the machining of a groove of specification A as an example, the relative depth compensation value is set to Δ in the path parameters associated with the groove-flat bottom tool-33 layer. When the system generates a path, it first automatically detects the bottom Z-axis height of the groove feature surface belonging to this layer, then reads the compensation rules, and calculates the target cutting depth = groove bottom height + Δ. Subsequently, based on this depth parameter and preset cutting parameters, such as cutting speed, feed rate, tool change sequence, etc., the associated A specification groove roughing-flat bottom tool-46 and A specification groove finishing-flat bottom tool-56 paths are called for calculation.
[0056] The intelligent programming method for the nut seat part in this embodiment realizes the automated and precise setting of cutting depth parameters, ensuring the accuracy of tool path calculation and thus improving machining dimensional accuracy.
[0057] In some embodiments, the step of assigning the feature surface to be processed and the corresponding auxiliary geometric object to the processing layer in the preset programming template for each of the feature surfaces to be processed includes: Select the target processing layer that matches the feature surface to be processed from the preset configuration list; While maintaining the relative positional relationship between the feature surface to be processed and the auxiliary geometric object, the feature surface to be processed and the auxiliary geometric object are moved synchronously to the target processing layer.
[0058] After the feature surface and its auxiliary geometric objects are constructed, this step will first determine the feature type of a feature surface by recognizing its color according to the preset feature type and color attribute mapping rules. Then, according to the logical mapping of feature surface-layer, the target processing layer that matches the feature surface to be processed will be determined in the preset configuration list. Finally, the feature surface to be processed and its corresponding auxiliary geometric objects will be moved synchronously to the layer node in the preset programming template that is consistent with the target processing layer.
[0059] In this embodiment, taking specification A as an example, the preset mapping rules between feature types and color attributes include, but are not limited to: the Groove-Flat End Tool-33 layer is used to store groove-type feature surfaces, and the Locating Hole-Drill Bit-34 layer is used to store threaded holes and locating hole feature surfaces. When a feature surface with the color RGB (0,0,255) is detected, this feature surface and its related auxiliary geometric objects are synchronously moved to the layer node in the preset programming template that matches the name of the Groove-Flat End Tool-33 layer. When a feature surface with the color RGB (255,0,0) is detected, this feature surface and its related auxiliary geometric objects are synchronously moved to the layer node in the preset programming template that matches the name of the Locating Hole-Drill Bit-34 layer.
[0060] The intelligent programming method for nut seat parts in this embodiment matches the target machining layer in the preset configuration list and synchronously classifies the feature surface to be machined and the auxiliary geometric object into the corresponding layer node while keeping their relative positions unchanged. This achieves standardization and automation of the classification of feature surfaces and auxiliary geometric objects, avoids subjective differences in manual classification, and ensures the accuracy and consistency of subsequent machining path calculations.
[0061] In some embodiments, calling a preset programming template that matches the nut seat part to be processed includes: Determine the specification category of the nut seat part to be processed; Retrieve a preset programming template that matches the specified category from multiple programming template libraries of different specifications.
[0062] In practice, although nut seat parts have similar structures, their dimensions vary considerably. To achieve refined programming, this application adopts a specification-based management strategy.
[0063] In this embodiment, the parts are classified into four standard specifications: A, B, C, and D, based on the inner diameter of the nut seat. At the beginning of the programming phase, the specification category of the part to be processed is first determined. For example, if the inner diameter is identified as A, the system automatically loads a programming template for specification A nut seats from a pre-set template library. This template already contains a specification category layer and machining path group specifically adapted to specification A. For example, the called template contains a dedicated specification A groove roughing-flat end mill-46 path, whose tool diameter, step distance, and other parameters are optimized specifically for specification A. If the specification category of the part to be processed is specification B, then a programming template for specification B nut seats will be called.
[0064] The intelligent programming device for nut seat parts provided by the present invention is described below. The intelligent programming device for nut seat parts described below and the intelligent programming method for nut seat parts described above can be referred to in correspondence.
[0065] The intelligent programming device for nut seat parts according to embodiments of the present invention, such as Figure 2 As shown, it includes the following modules: The first programming module 210 is used to call a preset programming template matching the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with a preset processing path parameter. The second programming module 220 is used to import the three-dimensional model of the nut seat part to be processed, and to receive color marking instructions for each feature surface to be processed in the three-dimensional model, and to assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; The third programming module 230 is used to determine each of the feature surfaces to be processed according to the color attributes, and to construct corresponding auxiliary geometric objects according to the geometric topology information of each of the feature surfaces to be processed. The fourth programming module 240 is used to classify each of the feature surfaces to be processed and the corresponding auxiliary geometric objects into the corresponding processing layer in the preset programming template. The fifth programming module 250 is used to calculate the tool path for the feature surface to be processed and the auxiliary geometric object belonging to each of the processing layers according to the preset processing path parameters associated with each processing layer, and generate the corresponding processing path.
[0066] The intelligent programming device for nut seat parts in this embodiment calls a preset programming template that matches the specifications of the nut seat, and assigns color attributes to the feature surfaces to be machined on the 3D model by combining color marking instructions and preset mapping rules. Then, it identifies each feature surface to be machined based on the color attributes, constructs auxiliary geometric objects based on the geometric topology information of the identified feature surfaces to be machined, and classifies them into the corresponding machining layers. Finally, it automatically calculates the tool trajectory and generates the machining path based on the preset machining path parameters associated with each machining layer. This replaces the entire manual operation process of adjusting the model position, constructing auxiliary lines and surfaces, classifying layers, selecting machining parameters, and selecting feature surfaces in traditional manual programming, shortening the programming time. At the same time, through standardized preset templates, mapping rules, and machining parameters, it eliminates the problem of inconsistent programming processes caused by subjective differences in operation by different operators, effectively controls the deviation of workpiece dimensional accuracy, and improves the stability of the yield.
[0067] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communications interface 320, and the memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions in the memory 330 to execute a smart programming method for the nut seat part, which includes: Call the preset programming template that matches the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with preset processing path parameters. Import the 3D model of the nut seat part to be processed, and receive color marking instructions for each feature surface to be processed in the 3D model, and assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; Based on the color attributes, each of the aforementioned feature surfaces to be processed is determined, and corresponding auxiliary geometric objects are constructed based on the geometric topology information of each of the aforementioned feature surfaces to be processed. For each of the aforementioned feature surfaces to be processed, the feature surfaces to be processed and the corresponding auxiliary geometric objects are assigned to the corresponding processing layers in the preset programming template; Based on the preset machining path parameters associated with each machining layer, tool path calculation is performed on the feature surfaces to be machined and the auxiliary geometric objects belonging to each machining layer to generate corresponding machining paths.
[0068] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., each of which can store program code.
[0069] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program that can be stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to execute the intelligent programming method for the nut seat part provided by each of the above methods, the method comprising: Call the preset programming template that matches the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with preset processing path parameters. Import the 3D model of the nut seat part to be processed, and receive color marking instructions for each feature surface to be processed in the 3D model, and assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; Based on the color attributes, each of the aforementioned feature surfaces to be processed is determined, and corresponding auxiliary geometric objects are constructed based on the geometric topology information of each of the aforementioned feature surfaces to be processed. For each of the aforementioned feature surfaces to be processed, the feature surfaces to be processed and the corresponding auxiliary geometric objects are assigned to the corresponding processing layers in the preset programming template; Based on the preset machining path parameters associated with each machining layer, tool path calculation is performed on the feature surfaces to be machined and the auxiliary geometric objects belonging to each machining layer to generate corresponding machining paths.
[0070] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the intelligent programming method for the nut seat part provided by each of the above methods, the method comprising: Call the preset programming template that matches the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with preset processing path parameters. Import the 3D model of the nut seat part to be processed, and receive color marking instructions for each feature surface to be processed in the 3D model, and assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; Based on the color attributes, each of the aforementioned feature surfaces to be processed is determined, and corresponding auxiliary geometric objects are constructed based on the geometric topology information of each of the aforementioned feature surfaces to be processed. For each of the aforementioned feature surfaces to be processed, the feature surfaces to be processed and the corresponding auxiliary geometric objects are assigned to the corresponding processing layers in the preset programming template; Based on the preset machining path parameters associated with each machining layer, tool path calculation is performed on the feature surfaces to be machined and the auxiliary geometric objects belonging to each machining layer to generate corresponding machining paths.
[0071] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0072] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in each of the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.
Claims
1. A method for intelligent programming of nut seat parts, characterized in that, include: Call the preset programming template that matches the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with preset processing path parameters. Import the 3D model of the nut seat part to be processed, and receive color marking instructions for each feature surface to be processed in the 3D model, and assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; Based on the color attributes, each of the aforementioned feature surfaces to be processed is determined, and corresponding auxiliary geometric objects are constructed based on the geometric topology information of each of the aforementioned feature surfaces to be processed. For each of the aforementioned feature surfaces to be processed, the feature surfaces to be processed and the corresponding auxiliary geometric objects are assigned to the corresponding processing layers in the preset programming template; Based on the preset machining path parameters associated with each machining layer, tool path calculation is performed on the feature surfaces to be machined and the auxiliary geometric objects belonging to each machining layer to generate corresponding machining paths.
2. The intelligent programming method for nut seat parts according to claim 1, characterized in that, Before receiving the color marking instruction for each feature surface to be processed in the 3D model and assigning the corresponding color attribute to each feature surface to be processed, the method further includes: Call the application programming interface to traverse all the feature surfaces of the 3D model to be processed; The color attributes of all feature surfaces to be processed in the 3D model are uniformly modified to the preset initial color attributes.
3. The method according to claim 1, characterized in that, The step of determining each of the feature surfaces to be processed based on the color attributes, and constructing corresponding auxiliary geometric objects based on the geometric topology information of each of the feature surfaces to be processed, includes: When the feature surface to be processed is determined to be a threaded hole feature surface or a positioning hole feature surface based on the color attribute, the circular outline of the hole edge of the feature surface to be processed is extracted, the center coordinates of the circular outline are calculated, and the center positioning line is constructed based on the center coordinates as an auxiliary geometric object corresponding to the feature surface to be processed. When the feature surface to be processed is determined to be a groove feature surface based on the color attribute, the bottom edge contour line of the feature surface to be processed is extracted, and a contour curve is generated based on the bottom edge contour line as an auxiliary geometric object corresponding to the feature surface to be processed.
4. The method according to claim 1, characterized in that, The step of calculating the tool path for the feature surfaces to be processed and the auxiliary geometric objects belonging to each of the processing layers based on the preset processing path parameters associated with each processing layer includes: Obtain the bottom height coordinates of the feature surface to be processed, which is included in the processing layer, in the workpiece coordinate system; Read the relative depth compensation value set in the preset processing path parameters; The target cutting depth is obtained by superimposing the bottom surface height coordinate value and the relative depth compensation value. Based on the target cutting depth and the cutting parameters in the preset machining path parameters, the tool path is calculated for the feature surfaces to be machined and the auxiliary geometric objects that are assigned to each of the machining layers.
5. The method according to claim 1, characterized in that, For each of the aforementioned feature surfaces to be processed, the feature surface to be processed and the corresponding auxiliary geometric object are assigned to the corresponding processing layer in the preset programming template, including: Select the target processing layer that matches the feature surface to be processed from the preset configuration list; While maintaining the relative positional relationship between the feature surface to be processed and the auxiliary geometric object, the feature surface to be processed and the auxiliary geometric object are moved synchronously to the target processing layer.
6. The method according to claim 1, characterized in that, The process of calling the preset programming template that matches the nut seat part to be processed includes: Determine the specification category of the nut seat part to be processed; Retrieve a preset programming template that matches the specified category from multiple programming template libraries of different specifications.
7. An intelligent programming device for nut seat parts, characterized in that, include: The first programming module is used to call a preset programming template that matches the nut seat part to be processed. The preset programming template defines several categories of processing layers, and each processing layer is associated with preset processing path parameters. The second programming module is used to import the three-dimensional model of the nut seat part to be processed, and to receive color marking instructions for each feature surface to be processed in the three-dimensional model, and to assign corresponding color attributes to each feature surface to be processed; wherein, the color marking instructions are generated according to the preset feature type and color attribute mapping rules; The third programming module is used to determine each of the feature surfaces to be processed based on the color attributes, and to construct corresponding auxiliary geometric objects based on the geometric topology information of each of the feature surfaces to be processed. The fourth programming module is used to classify each of the feature surfaces to be processed and the corresponding auxiliary geometric objects into the corresponding processing layer in the preset programming template. The fifth programming module is used to calculate the tool path for the feature surfaces to be processed and the auxiliary geometric objects belonging to each of the processing layers according to the preset processing path parameters associated with each processing layer, and generate the corresponding processing path.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the intelligent programming method for the nut seat part as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the intelligent programming method for the nut seat part as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the intelligent programming method for the nut seat part as described in any one of claims 1 to 6.