An automatic programming method for on-off locking helical surface numerical control machining of process parameter correlation mapping
By using a process parameter association mapping method, the CNC machining parameters of the gun's locking and unlocking spiral surface are automatically acquired and updated, solving the problems of high programming difficulty and version inconsistency, and improving programming efficiency and quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WEAPON EQUIP RES INST OF CHINA NAT WEAPON EQUIP GRP
- Filing Date
- 2024-09-30
- Publication Date
- 2026-06-30
AI Technical Summary
In the existing technology, the CNC machining programming of the opening and closing spiral surface of firearms requires the manual setting of multiple parameters, which leads to high programming difficulty and low efficiency. Furthermore, after the process specification is changed, it is impossible to guarantee the consistency between the process parameters and the machining toolpath program, which increases the probability of errors.
By using a process parameter association mapping method, tool information, cutting method and component material information are automatically obtained and analyzed from the process model file to generate a CNC machining program for the opening and closing of the helical surface, and the machining parameters are automatically updated when the process specification is changed.
It reduces the workload of process engineers, improves the rationality, standardization and consistency of machining toolpath programs, and reduces the time and probability of errors in manual settings.
Smart Images

Figure CN119414769B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of intelligent machining technology for firearm parts, and particularly relates to an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter correlation mapping. Background Technology
[0002] Currently, interactive automatic programming using CAD / CAM graphics has been widely adopted and represents a new trend in CNC machining technology. Using CAD-drawn part machining drawings, the computer performs calculations and post-processing on tool path data to automatically generate CNC machine tool part machining programs, thus simplifying CNC programming.
[0003] In traditional CNC programming, after process engineers compile the part's process specifications, programmers then create toolpath programs by selecting machining areas based on the 3D model. During CNC programming, programmers primarily set the toolpath program parameters manually based on their experience or by consulting relevant manuals. Parameter settings can be further divided into process parameter settings and operational parameter settings, corresponding to the process and machining processes respectively. Process parameters mainly include tool information (such as tool diameter, tool length, tool number, etc.), spindle speed, feed rate, machining allowance, and other parameter values set during the process. Operational parameters mainly include cutting mode, step mode, step value, and tool approach / retract settings.
[0004] Creating a toolpath program requires manually setting process and operation parameters. CNC machining programming for the locking and unlocking spiral surface of firearms requires setting the above parameters for the free travel straight groove section before / after unlocking, the unlocking (working) spiral surface, the locking (working) spiral surface, and the recoil driving surface, etc. This includes fine geometric features required for smoother and more stable unlocking and unlocking movements, more solid contact parts between the machine head / frame or bolt / bolt frame, deformation and recovery, and machining processability. It requires a high level of professional machining knowledge and involves a lot of content, resulting in high programming difficulty, low efficiency, and inconsistent CNC toolpath program quality, which affects the machining quality of the locking and unlocking spiral surface.
[0005] CN111650885A discloses an automatic programming method for CNC machine tools, including the following steps:
[0006] Update processing data steps: Record blade type information, and based on the characteristic data of the current blade type, generate the corresponding processing plan and record it;
[0007] Processing steps: When the blade to be processed is of a known blade type, update the feature data, retrieve the corresponding processing scheme, and generate the processing program.
[0008] Specifically, it includes:
[0009] 1. First, determine the type of blade to be processed. If the type of blade is unknown, proceed to the step of updating processing data. If the type of blade is known, proceed to the step of updating processing data as described in the processing steps, further including steps 2-5:
[0010] 2. Record and label the blade type.
[0011] 3. Identify the characteristic data of several positions / shapes of the blade using characteristic parameters to obtain a characteristic parameter table;
[0012] 4. Based on the feature data corresponding to the feature parameters in the feature parameter table, construct a three-dimensional model;
[0013] 5. Develop and record standard machining process plans, including tool selection, tool cutting parameters, and path planning.
[0014] 6. Based on the feature parameter table described in steps 4 and 5, and the formulated and recorded machining process plan, generate a CNC machining program, and have the CNC machine tool execute the specific machining process.
[0015] 7. Update the feature parameter table accordingly with the feature information of the blade to be processed, and call the corresponding processing scheme based on the blade type.
[0016] 8. Using the feature parameter table and machining process scheme described in step 7, generate a CNC machining program, and have the CNC machine tool execute the specific machining process.
[0017] The established machining process plan includes tool selection, tool cutting parameters, and path planning, and records these details, but it lacks organization and management of process parameters. In practical engineering applications, process specifications typically include process parameters such as machining method, spindle speed, feed rate, and part allowance, but do not include operational parameters for subsequent machining toolpaths. Existing technologies do not provide methods for determining operational parameters, and these parameters are not dependent on the process parameters in the process specifications. Furthermore, there is no automatic update of process parameters in the CNC machining process plan after changes to the process specifications, making it impossible to guarantee consistency between the version of process parameters in the process specifications and the version of operational parameters in the machining toolpaths, thus increasing the probability of errors. Summary of the Invention
[0018] To address the aforementioned technical problems, this invention proposes an automatic programming scheme for CNC machining of locking and unlocking spiral surfaces based on process parameter correlation mapping.
[0019] The first aspect of this invention proposes an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter correlation mapping, the method comprising:
[0020] Step S1: Obtain the process parameters required to create the toolpath program from the process model file;
[0021] Step S2: Analyze and process the process parameters to generate tool information, cutting method information, component material information, and further obtain machining data;
[0022] Step S3: Based on the tool information, cutting method information, and component material information, the toolpath program assigns the corresponding process parameters and generates a CNC machining program for the opening and closing of the helical surface.
[0023] In step S1, the process model file refers to the CNC process specification file; the process parameters include tool information, machining method, spindle speed, feed rate, and component allowance.
[0024] In step S2, the process parameters are analyzed and processed, and the process parameters are stored in the corresponding attributes of the three-dimensional process model in string format; wherein:
[0025] The tool information is processed as follows: the recommended tool material is obtained, the software tool material library file is read, and the tool material library number is obtained; the recommended tool library number is obtained, the software tool library file is read, and the tool diameter and length are obtained; the tool library number and tool material library number are stored in a tool information file in a fixed directory for retrieval of the tool information.
[0026] Processing the cutting method: Obtain the recommended machining method and part allowance; query the user-defined cutting method and machining method / part allowance correspondence table file according to the machining method name and part allowance value; deduce the cutting method; read the software cutting method library file; obtain the cutting method library number; and store the cutting method information in the fixed directory cutting method information file for retrieval.
[0027] Processing of component materials: Obtain component materials from the attribute parameters of the part model, read the software component material library file, obtain the component material library number, and use it as the component material information.
[0028] In step S2:
[0029] Based on tool information, cutting method information, and component material information, a candidate retrieval sample set H = {h1, h2, ..., hi, ..., hn} is constructed, where hi is defined as an attribute of set H, and the value corresponding to hi is defined as a feature value.
[0030] Check if the same data exists in the software processing database file of the processing sample set; if it exists, automatically assign processing data; if it does not exist, create recommended processing data in the last row of the processing database.
[0031] In step S3:
[0032] Read the tool information file containing the tool library number and tool material library number to obtain recommended information, select the recommended tool information, and write it into the opening and closing helical surface toolpath program properties;
[0033] Read the cutting method information file containing the cutting methods to obtain the recommended information, select the recommended cutting method, and write it into the toolpath program properties for the locking and unlocking helical surface;
[0034] Read the software component material library file and select the component material, then write it into the opening and closing helical surface toolpath program properties;
[0035] After obtaining the component material, tool information, and cutting method attributes, the toolpath program automatically reads the machining data from the software machining database file, writes it into the toolpath program attributes for the locking and unlocking spiral surface, and generates a CNC machining program for the locking and unlocking spiral surface based on the settings.
[0036] The method further includes: when design changes or process changes occur, the process parameters in the process model file change, the process parameters are re-acquired, the attribute information of the three-dimensional process model is updated, the mapping is associated with the machining database file, the machining toolpath program automatically updates the machining parameters, and a new version of the opening and closing locking spiral surface CNC machining program is regenerated.
[0037] A second aspect of this invention provides an automatic programming system for CNC machining of locking and unlocking spiral surfaces based on process parameter correlation mapping. The system includes a processing unit configured to:
[0038] Obtain the process parameters required to create the toolpath program from the process model file;
[0039] The process parameters are analyzed and processed to generate tool information, cutting method information, component material information, and further processing data.
[0040] Based on the tool information, cutting method information, and component material information, the toolpath program assigns the corresponding process parameters and generates a CNC machining program for the opening and closing of the helical surface.
[0041] A third aspect of this invention discloses an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping, as described in the first aspect of this disclosure.
[0042] A fourth aspect of this invention discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping, as described in the first aspect of this disclosure.
[0043] In summary, the technical solution of this invention utilizes the correlation mapping between process parameters and CNC process specifications and CNC programming templates, as well as the recommendation of operation parameters based on process parameters, to solve the problem of automatic programming for CNC machining of the opening and closing spiral surface of firearms, reduce the workload of process personnel, reduce time costs, and improve the rationality, standardization, and consistency of machining toolpath programs. Attached Figure Description
[0044] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping according to an embodiment of the present invention. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] The locking / unlocking helical surface refers to a set of complex geometric features in the automatic mechanism of a firearm, which guides the bolt head in the bolt carrier or the bolt in the bolt carrier to achieve the locking and unlocking action. It generally consists of a free-travel straight groove section before / after locking, a locking (working) helical surface, an unlocking (working) helical surface, and a recoil driving surface. The free-travel straight groove section before / after locking controls the timing of locking and unlocking, ensuring safety; the locking (working) helical surface achieves locking and locks the bolt head (or bolt) through the receiver, sealing the propellant gases and ensuring normal projectile firing; after the projectile leaves the muzzle, the unlocking (working) helical surface causes the bolt head (or bolt) to rotate, releasing the bolt head (or bolt) and completing the bolt carrier unlocking action; the recoil driving surface drives the bolt carrier to recoil, completing a series of actions such as extraction, ejection, and recoil to the final position. The locking and unlocking actions should be flexible and reliable, the structural strength should be sufficient, and the moving parts should have enough energy after unlocking to meet the requirements of reliability and radio frequency.
[0048] Process parameter association mapping refers to writing the machining parameter information in the CNC process of the helical surface feature into the machining parameter database in the CNC template background. When writing the machining program, the CNC template is called to automatically obtain the machining parameters corresponding to the opening and closing helical surface machining feature from the machining parameter database.
[0049] The machining method includes machining parameters such as part allowance, tolerance, feed rate, display color, and cutting method.
[0050] The cutting method includes data such as spindle speed and depth of cut, which are used in the software to calculate machining data.
[0051] This invention organizes and manages process parameters through a processing parameter database, and maps the process parameters in the CNC machining process of the locking and unlocking spiral surface to the process parameters in the machining template. This facilitates the quick acquisition of process parameters from the process specification file when creating the toolpath program, ensuring the consistency between the early process design and the later CNC machining data. Based on the machining method and component allowance in the process parameters, the cutting method is deduced.
[0052] The first aspect of this invention proposes an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter correlation mapping, the method comprising:
[0053] Step S1: Obtain the process parameters required to create the toolpath program from the process model file;
[0054] Step S2: Analyze and process the process parameters to generate tool information, cutting method information, component material information, and further obtain machining data;
[0055] Step S3: Based on the tool information, cutting method information, and component material information, the toolpath program assigns the corresponding process parameters and generates a CNC machining program for the opening and closing of the helical surface.
[0056] In step S1, the process model file refers to the CNC process specification file; the process parameters include tool information, machining method, spindle speed, feed rate, and component allowance.
[0057] In step S2, the process parameters are analyzed and processed, and the process parameters are stored in the corresponding attributes of the three-dimensional process model in string format; wherein:
[0058] The tool information is processed as follows: the recommended tool material is obtained, the software tool material library file is read, and the tool material library number is obtained; the recommended tool library number is obtained, the software tool library file is read, and the tool diameter and length are obtained; the tool library number and tool material library number are stored in a tool information file in a fixed directory for retrieval of the tool information.
[0059] Processing the cutting method: Obtain the recommended machining method and part allowance; query the user-defined cutting method and machining method / part allowance correspondence table file according to the machining method name and part allowance value; deduce the cutting method; read the software cutting method library file; obtain the cutting method library number; and store the cutting method information in the fixed directory cutting method information file for retrieval.
[0060] Processing of component materials: Obtain component materials from the attribute parameters of the part model, read the software component material library file, obtain the component material library number, and use it as the component material information.
[0061] In step S2:
[0062] Based on tool information, cutting method information, and component material information, a candidate retrieval sample set H = {h1, h2, ..., hi, ..., hn} is constructed, where hi is defined as an attribute of set H, and the value corresponding to hi is defined as a feature value.
[0063] Check if the same data exists in the software processing database file of the processing sample set; if it exists, automatically assign processing data; if it does not exist, create recommended processing data in the last row of the processing database.
[0064] In step S3:
[0065] Read the tool information file containing the tool library number and tool material library number to obtain recommended information, select the recommended tool information, and write it into the opening and closing helical surface toolpath program properties;
[0066] Read the cutting method information file containing the cutting methods to obtain the recommended information, select the recommended cutting method, and write it into the toolpath program properties for the locking and unlocking helical surface;
[0067] Read the software component material library file and select the component material, then write it into the opening and closing helical surface toolpath program properties;
[0068] After obtaining the component material, tool information, and cutting method attributes, the toolpath program automatically reads the machining data from the software machining database file, writes it into the toolpath program attributes for the locking and unlocking spiral surface, and generates a CNC machining program for the locking and unlocking spiral surface based on the settings.
[0069] The method further includes: when design changes or process changes occur, the process parameters in the process model file change, the process parameters are re-acquired, the attribute information of the three-dimensional process model is updated, the mapping is associated with the machining database file, the machining toolpath program automatically updates the machining parameters, and a new version of the opening and closing locking spiral surface CNC machining program is regenerated.
[0070] Specific examples (such as) Figure 1 (As shown)
[0071] 1. Process parameter acquisition: Obtain and parse the process parameters required for toolpath program creation from the process model file (i.e., CNC process specification file), including tool information (tool material, tool magazine number), machining method, spindle speed, feed rate, component allowance, etc.
[0072] 2. Process parameter information analysis and processing (process parameter correlation mapping).
[0073] The process information processing involves storing the acquired process parameters, such as machining method, tool magazine number, and feed rate, into the corresponding attributes of the 3D process model in string format.
[0074] The tool information processing involves obtaining the recommended tool material, reading the software tool material library file, and obtaining the tool material library number; obtaining the recommended tool library number, reading the software tool library file, and obtaining the tool diameter and length; and storing the tool library number and tool material library number in a fixed directory tool information file.
[0075] The cutting method processing involves obtaining recommended machining methods and part allowances. Based on the machining method name and the specific value of the part allowance, the system queries the user-defined cutting method and machining method / part allowance correspondence table file to deduce the cutting method. It then reads the software cutting method library file to obtain the cutting method library number and stores the cutting method information in a fixed directory cutting method information file.
[0076] Component material processing involves retrieving component materials from the attribute parameters of the part model, reading the software component material library file, and obtaining the component material library number.
[0077] In the machining data processing, from steps b, c, and d, a candidate retrieval sample set is constructed, H = {h1, h2, ..., hi, ..., hn}, where hi is defined as an attribute of set H, and the value corresponding to hi is defined as a feature value. For example, H = {cutting method library number | part material library number | tool material library number | tool diameter | tool length}, taking the cutting method library number as OPDO_CN002, the part material library number as MATO_D0001, the tool material library number as TMC0_JP001, the tool diameter as 8mm, and the tool length as 20mm, and querying the machining sample set software machining database file to see if there is any identical data. If not, recommended machining data is created in the last row of the machining database.
[0078] 3. Assign process parameters to the toolpath program.
[0079] The software reads the component material library file, the user selects the component material, and writes it into the opening and closing helical surface toolpath program properties.
[0080] The tool information file containing the tool library number and tool material library number is read to obtain recommended information. The user selects the recommended tool information, which is then written into the opening and closing helical surface toolpath program properties.
[0081] The program reads cutting method information containing cutting methods to obtain recommended information. The user selects a recommended cutting method, which is then written into the toolpath program properties for the locking / unlocking helical surface.
[0082] Once the program includes component material, tool information, and cutting method attributes, the toolpath program automatically reads the machining data from the software machining database file and writes it into the opening and closing helical surface toolpath program attributes.
[0083] Based on the above settings, a CNC machining program for the opening and closing locking spiral surface is generated.
[0084] 4. When design or process changes occur, the process parameters in the process model file change. The process parameters are re-acquired, the attribute information of the 3D process model is updated, and the mapping is mapped to the machining database file. The machining toolpath program automatically updates the machining parameters and regenerates a new version of the opening and closing locking spiral surface CNC machining program.
[0085] A second aspect of this invention provides an automatic programming system for CNC machining of locking and unlocking spiral surfaces based on process parameter correlation mapping. The system includes a processing unit configured to:
[0086] Obtain the process parameters required to create the toolpath program from the process model file;
[0087] The process parameters are analyzed and processed to generate tool information, cutting method information, component material information, and further processing data.
[0088] Based on the tool information, cutting method information, and component material information, the toolpath program assigns the corresponding process parameters and generates a CNC machining program for the opening and closing of the helical surface.
[0089] A third aspect of this invention discloses an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping, as described in the first aspect of this disclosure.
[0090] A fourth aspect of this invention discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements an automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping, as described in the first aspect of this disclosure.
[0091] In summary, the technical solution of this invention utilizes the correlation mapping between process parameters and CNC process specifications and CNC programming templates, as well as the recommendation of operation parameters based on process parameters, to solve the problem of automatic programming for CNC machining of the opening and closing spiral surface of firearms, reduce the workload of process personnel, reduce time costs, and improve the rationality, standardization, and consistency of machining toolpath programs.
[0092] This invention obtains the machining methods and component allowances from the process specification document, and deduces the cutting method routes such as the free travel straight groove section before unlocking / after locking, the unlocking (working) spiral surface, the locking (working) spiral surface, and the back seat driving surface, which involves drilling the bottom hole first and then rough milling, semi-finish milling, and finish milling, thus solving the problem of automatically assigning machining data in the toolpath program.
[0093] Furthermore, after the process parameters in the process specification document are changed, the process parameters are automatically mapped to the machining database file, and the machining toolpath program automatically updates the machining parameters, saving process personnel time, reducing errors, and ensuring that the content version in the process document is consistent with the data version in the machining toolpath program.
[0094] In addition, the process parameters in the process specification document are automatically mapped to the machining library. Simple commands such as assigning component materials, assigning recommended tools, and assigning recommended machining methods are used to solve the problem of difficult and time-consuming decision-making for machining operation parameters when CNC programmers set toolpath programs, thereby improving work efficiency and reducing labor costs.
[0095] Please note that the technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments have been described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be pointed out that for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. An automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter correlation mapping, characterized in that, The method includes: Step S1: Obtain the process parameters required to create the toolpath program from the process model file; Step S2: Analyze and process the process parameters to generate tool information, cutting method information, component material information, and further obtain machining data; Step S3: Based on the tool information, cutting method information, and component material information, the toolpath program assigns the corresponding process parameters and generates a CNC machining program for the opening and closing of the helical surface. In step S1, the process model file refers to the CNC process specification file; the process parameters include tool information, machining method, spindle speed, feed rate, and component allowance. In step S2, the process parameters are analyzed and processed, and stored in the corresponding attributes of the three-dimensional process model in string format; wherein: The tool information is processed as follows: the recommended tool material is obtained, the software tool material library file is read, and the tool material library number is obtained; the recommended tool library number is obtained, the software tool library file is read, and the tool diameter and length are obtained; the tool library number and tool material library number are stored in a tool information file in a fixed directory for retrieval of the tool information. Processing the cutting method: Obtain the recommended machining method and part allowance; query the user-defined cutting method and machining method / part allowance correspondence table file according to the machining method name and part allowance value; deduce the cutting method; read the software cutting method library file; obtain the cutting method library number; and store the cutting method information in the fixed directory cutting method information file for retrieval. Processing the component material: Obtain the component material from the attribute parameters of the part model, read the software component material library file, and obtain the component material library number as the component material information; In step S2: Based on tool information, cutting method information, and component material information, a candidate retrieval sample set H = {h1, h2, ..., hi, ..., hn} is constructed, where hi is defined as an attribute of set H, and the value corresponding to hi is defined as a feature value. Check if the same data exists in the software processing database file of the processing sample set; if it exists, automatically assign processing data; if it does not exist, create recommended processing data in the last row of the processing database.
2. The automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping according to claim 1, characterized in that, In step S3: Read the tool information file containing the tool library number and tool material library number to obtain recommended information, select the recommended tool information, and write it into the opening and closing helical surface toolpath program properties; Read the cutting method information file containing the cutting methods to obtain the recommended information, select the recommended cutting method, and write it into the toolpath program properties for the locking and unlocking helical surface; Read the software component material library file and select the component material, then write it into the opening and closing helical surface toolpath program properties; After obtaining the component material, tool information, and cutting method attributes, the toolpath program automatically reads the machining data from the software machining database file, writes it into the toolpath program attributes for the locking and unlocking spiral surface, and generates a CNC machining program for the locking and unlocking spiral surface based on the settings.
3. The automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping according to claim 2, characterized in that, The method further includes: when design changes or process changes occur, the process parameters in the process model file change, the process parameters are re-acquired, the attribute information of the three-dimensional process model is updated, the mapping is associated with the machining database file, the machining toolpath program automatically updates the machining parameters, and a new version of the opening and closing locking spiral surface CNC machining program is regenerated.
4. An automatic programming system for CNC machining of interlocking spiral surfaces with process parameter correlation mapping, characterized in that, The system includes a processing unit, which is configured to: Obtain the process parameters required to create the toolpath program from the process model file; The process parameters are analyzed and processed to generate tool information, cutting method information, component material information, and further processing data. Based on the tool information, cutting method information, and component material information, the toolpath program assigns the corresponding process parameters and generates a CNC machining program for the opening and closing of the helical surface. The process model file refers to the CNC process specification file; the process parameters include tool information, machining method, spindle speed, feed rate, and component allowance. Specifically, the process parameters are analyzed and processed, and then stored in the corresponding attributes of the 3D process model as strings; this includes: The tool information is processed as follows: the recommended tool material is obtained, the software tool material library file is read, and the tool material library number is obtained; the recommended tool library number is obtained, the software tool library file is read, and the tool diameter and length are obtained; the tool library number and tool material library number are stored in a tool information file in a fixed directory for retrieval of the tool information. Processing the cutting method: Obtain the recommended machining method and part allowance; query the user-defined cutting method and machining method / part allowance correspondence table file according to the machining method name and part allowance value; deduce the cutting method; read the software cutting method library file; obtain the cutting method library number; and store the cutting method information in the fixed directory cutting method information file for retrieval. Processing the component material: Obtain the component material from the attribute parameters of the part model, read the software component material library file, and obtain the component material library number as the component material information; Based on tool information, cutting method information, and component material information, a candidate retrieval sample set H = {h1, h2, ..., hi, ..., hn} is constructed, where hi is defined as an attribute of set H, and the value corresponding to hi is defined as a feature value. Check if the same data exists in the software processing database file of the processing sample set; if it exists, automatically assign processing data; if it does not exist, create recommended processing data in the last row of the processing database.
5. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the automatic programming method for CNC machining of locking and unlocking spiral surfaces with process parameter association mapping as described in any one of claims 1-3.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the automatic programming method for CNC machining of locking and unlocking spiral surfaces based on process parameter association mapping as described in any one of claims 1-3.