A numerical control machine tool processing level intelligent control method, device, equipment and storage medium
By automatically identifying the machining level and generating a motion control sequence based on the tool path parameters in CNC machine tools, the problem of errors easily occurring when manually selecting machining level parameters is solved, thus improving machining accuracy and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN TUOZHIZHE TECH CO LTD
- Filing Date
- 2026-04-01
- Publication Date
- 2026-06-26
AI Technical Summary
In the current CNC machine tool processing, manual selection of machining level parameters is prone to errors, resulting in loss of part accuracy, increased labor intensity for operators, and reduced production efficiency.
By determining the process identification label based on the machining parameters of the toolpath in the tool file, the level identification instruction is inserted into the NC code output process and parsed. The control parameter set is then called from the level parameter storage area of the CNC system to generate the motion control sequence corresponding to each machining level.
This technology enables CNC machine tools to automatically identify machining levels during the machining process, improving machining accuracy and efficiency while reducing human error and machining preparation time.
Smart Images

Figure CN122284514A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of CNC machine tool machining control technology, and in particular to a method, device, equipment and storage medium for intelligent control of CNC machine tool machining levels. Background Technology
[0002] Currently, CNC machine tools require operators to manually select preset machining level parameters according to different machining stages (such as roughing, semi-finishing, and finishing). This method heavily relies on the operator's experience and judgment, and has the following significant drawbacks: First, manual selection is prone to errors. If a roughing level is mistakenly selected during the finishing stage, it will lead to the scrapping of parts and economic losses. Second, frequent manual switching not only increases the operator's workload but also prolongs the overall machining preparation time and reduces production efficiency. Summary of the Invention
[0003] This application provides a method, device, equipment, and storage medium for intelligent control of machining levels in CNC machine tools, which solves the problem that manual selection of machining level parameters is prone to errors in related technologies.
[0004] The first aspect of this application provides a method for intelligent control of machining levels in CNC machine tools, the method comprising: The corresponding process identification label is determined based on the machining parameters of the toolpath in the tool file; Insert a grade identification instruction corresponding to the process identification label during the NC code output process; The grade identification instruction is parsed, and the control parameter set corresponding to the grade identification instruction is retrieved from the grade parameter storage area of the CNC system according to the parsing result; Based on the set of control parameters, the processing control module is scheduled across different processing sections to generate motion control sequences corresponding to each processing level.
[0005] Optionally, in the first implementation of the first aspect of this application, the step of determining the corresponding process identification label based on the machining parameters of the tool path in the tool file includes: Extract the geometric accuracy requirements and material removal features associated with the current toolpath from the toolpath file; The geometric accuracy requirements are matched with a preset accuracy threshold range to generate an accuracy level identifier; Based on the material removal characteristics, the material removal rate per unit time is calculated, and a cutting load identifier is generated. Based on the accuracy level identifier and the cutting load identifier, the corresponding process identification label is determined through a decision logic table.
[0006] Optionally, in the second implementation of the first aspect of this application, the step of inserting the grade identification instruction corresponding to the process identification label during the NC code output process includes: Based on the process identification label, a macro instruction template matching the process identification label is retrieved from the instruction template library; Based on the processing strategy associated with the process identification tag, control parameter values are assigned to the parameter placeholders in the macro instruction template to obtain executable level identification instructions. During the NC code output process, the level identification instruction is inserted before the start position of the NC program segment of the corresponding machining process, and an instruction header for identifying the instruction type is attached.
[0007] Optionally, in the third implementation of the first aspect of this application, the step of parsing the level identifier instruction and calling the control parameter set corresponding to the level identifier instruction from the level parameter storage area of the CNC system according to the parsing result includes: The macro program interpreter of the CNC system performs lexical analysis and syntax parsing on the grade identification instructions to extract the process grade code and parameter identifier. Access the preset level parameter mapping table in the CNC system memory according to the process level code, and locate the memory address of the target parameter set by matching the parameter identifier with the index key in the mapping table; The corresponding control parameter set is read from the level parameter storage area of the CNC system according to the memory address, and the control parameter set is loaded into the runtime parameter buffer of the CNC system.
[0008] Optionally, in the fourth implementation of the first aspect of this application, the step of scheduling the processing control module according to the control parameter set across different processing segments to generate a motion control sequence corresponding to each processing level includes: Based on the geometric features of the current processing section and the dynamic response parameters in the control parameter set, smooth transition points are inserted at the inflection points and curvature change regions of the processing path, and corresponding speed planning curves are generated based on the acceleration and deceleration parameters in the control parameter set. The speed planning curve is fed forward coupled with the servo loop parameters in the control parameter set to generate an enhanced command sequence; At the boundary of the processing segment switching, the processing control module is preloaded with parameters according to the control parameter set corresponding to the next processing segment, and the enhanced instruction sequence is activated after the parameter synchronization is completed.
[0009] Optionally, in the fifth implementation of the first aspect of this application, after the step of scheduling the processing control module according to the control parameter set among different processing segments to generate a motion control sequence corresponding to each processing level, it further includes: Real-time vibration data during the machining process is acquired, and the actual displacement data of each feed axis is read through the position feedback interface of the CNC system. The amplitude of the real-time vibration data is compared with a preset amplitude safety threshold. When the amplitude exceeds the amplitude safety threshold, a first correction command is generated. The first correction command is used to reduce the spindle speed and feed rate. The actual displacement data is compared with the theoretical displacement data in the motion control sequence to obtain the position deviation value, and the position deviation value is compared with the preset deviation tolerance. When the position deviation value continues to exceed the preset deviation tolerance, a second correction instruction is generated. The second correction instruction is used to adjust the position loop gain parameter of the servo drive unit and insert additional movement into the motion control sequence to compensate for the position deviation value.
[0010] Optionally, in a sixth implementation of the first aspect of this application, the method further includes: Obtain the workpiece material code and tool type code input by the user; The workpiece material code and the tool type code are combined and encoded to generate an extended index prefix; The extended index prefix is concatenated with the process grade code to obtain a composite query condition; Access the multi-dimensional parameter mapping table in the CNC system according to the composite query conditions. If a corresponding control parameter set is matched in the mapping table, the matched control parameter set is called. If the match fails, a parameter calibration prompt message is sent to the user interface, and the set of control parameters obtained only based on the process grade code is used.
[0011] A second aspect of this application provides an intelligent control device for CNC machine tool machining levels, the intelligent control device for CNC machine tool machining levels is used to implement an intelligent control method for CNC machine tool machining levels, the intelligent control device for CNC machine tool machining levels includes: The determination module is used to determine the corresponding process identification label based on the machining parameters of the toolpath in the tool file; An insertion module is used to insert a grade identification instruction corresponding to the process identification label during the NC code output process; The calling module is used to parse the level identifier instruction and, based on the parsing result, call the control parameter set corresponding to the level identifier instruction from the level parameter storage area of the CNC system; The control module is used to schedule the processing control module parameters between different processing sections according to the control parameter set, and generate motion control sequences corresponding to each processing level.
[0012] A third aspect of this application provides an electronic device, including a memory and a processor, wherein the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, it implements the steps of the intelligent control method for CNC machine tool machining levels provided in the first aspect of this application.
[0013] The fourth aspect of this application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the steps of the intelligent control method for CNC machine tool machining levels provided in the first aspect of this application.
[0014] In summary, the intelligent control method, device, equipment, and storage medium for CNC machine tool machining levels provided in this application determines the corresponding process identification label based on the machining parameters of the tool path in the tool file; inserts a level identification instruction corresponding to the process identification label during NC code output; parses the level identification instruction, and calls the control parameter set corresponding to the level identification instruction from the level parameter storage area of the CNC system based on the parsing result; schedules the machining control module parameters between different machining segments based on the control parameter set, generating motion control sequences corresponding to each machining level. Through the implementation of this application, after the user inputs the tool file, the CNC machine tool can identify the corresponding machining level based on the machining parameters in the tool file, and call the corresponding machining control parameters to machine the workpiece during the machining process, effectively improving machining efficiency while ensuring machining accuracy. Attached Figure Description
[0015] Figure 1 A flowchart illustrating the intelligent control method for machining levels of CNC machine tools provided in this application embodiment; Figure 2 A schematic diagram of the program modules of the intelligent control device for CNC machine tool machining level provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0016] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0017] To address the issue of errors easily arising from manual selection of machining level parameters in related technologies, this application provides an intelligent control method for machining levels in CNC machine tools, such as... Figure 1 This is a flowchart illustrating the intelligent control method for machining levels of CNC machine tools provided in this embodiment. The intelligent control method for machining levels of CNC machine tools includes the following steps: Step 110: Determine the corresponding process identification label based on the machining parameters of the tool path in the tool file.
[0018] Specifically, after the user edits the tool file using CAM software, the CNC machine tool analyzes and extracts the machining parameters using the toolpath information contained in the tool file. The toolpath, as a direct expression of the machining process, includes core data such as spindle speed, feed rate, tool radius compensation, depth of cut, and path curvature. By reading this data and combining it with pre-defined process classification standards, the speed range, machining allowance, and tool load of each machining segment are compared to determine the characteristics of the machining stage. If a high feed rate and large allowance are detected, it corresponds to roughing; if the feed rate and machining allowance are in the middle range, it is identified as semi-finishing; if the feed rate is low and the path is dense, it is classified as finishing. The analysis results are converted into process identification tags to mark the process type of different machining segments. Through this data parsing method, the system can extract process information with categorization significance from the toolpath and provide it to the calling modules in a tagged form.
[0019] In one optional implementation of this embodiment, the step of determining the corresponding process identification label based on the machining parameters of the toolpath in the toolpath file includes: extracting the geometric accuracy requirements and material removal features associated with the current toolpath from the toolpath file; matching the geometric accuracy requirements with a preset accuracy threshold range to generate an accuracy level identifier; calculating the material removal rate per unit time based on the material removal features to generate a cutting load identifier; and determining the corresponding process identification label through a decision logic table based on the accuracy level identifier and the cutting load identifier.
[0020] In this embodiment, when analyzing the toolpath file, the geometric accuracy information and material removal features related to the machining trajectory are identified by parsing the data structure of the toolpath. Each path segment in the toolpath file corresponds to a specific machining area, which has clear geometric tolerance requirements in the CAD model. The CNC system extracts key variables reflecting machining accuracy, such as path point spacing, tool depth of cut, path repetition coverage, and feed rate, by reading the coordinate point sequence, tool radius compensation value, and machining strategy parameters in the path instructions. Geometric accuracy requirements refer to the allowable error range that the surface shape and size of the part must reach after machining. The system obtains the design tolerance value corresponding to each machining segment by parsing the correspondence between the path and the model, and stores it as a geometric accuracy parameter, along with the motion characteristic data of the machining path, in a temporary analysis table. The system matches the extracted geometric accuracy parameters with preset accuracy threshold ranges. For example, 0.003~0.006 mm corresponds to finishing, 0.007~0.01 mm corresponds to semi-finishing, and greater than 0.01 mm corresponds to roughing. By comparing the target tolerance of each path segment with the threshold range, the system determines the required machining accuracy level for that path. When the tolerance requirement is small and the path coverage density is high, the system generates an accuracy level label of finishing; if the tolerance requirement is medium and the machining allowance is moderate, a semi-finishing label is generated; if the tolerance value is large and the removal amount is large, a roughing label is generated.
[0021] The system then calculates the material removal rate per unit time based on the material removal characteristics of the toolpath. The material removal rate is a crucial parameter for measuring machining load, defined as the volume of material removed from the workpiece by the tool per unit time. Its calculation depends on factors such as toolpath length, depth of cut, feed rate, and tool diameter. The system extracts these variables when reading the path data and calculates the material removal rate for each path segment through volume approximation. This calculation generates a numerical index reflecting the machining load intensity. The system compares this index with a preset load range and outputs a cutting load identifier. For example, if the volume removed per unit time exceeds a high load threshold, identifier C1 is generated, indicating a high cutting load state; if it is within a medium range, identifier C2 is generated; and low load corresponds to identifier C3. After both the accuracy level identifier and the cutting load identifier are generated, the system uses a preset decision logic table to determine the final process identification label. The decision logic table is an associative structure that defines the process types corresponding to different accuracy levels and cutting load combinations, as shown in Table 1 below. The table organizes the decision conditions in the form of a two-dimensional matrix, with the horizontal axis representing the accuracy level and the vertical axis representing the cutting load level. Each intersection unit defines a specific process label. The system indexes the two input identifiers to the corresponding cells in the decision table, reads the relevant process labels, and binds them to the current toolpath segment. If a cross-condition occurs that is not in the preset table, the system will make a compensation judgment based on the label trend of adjacent path segments. For example, in complex curved surface areas, a path segment may simultaneously have high precision requirements and medium load conditions. The system uses a logic table to determine that it is closer to the finishing condition, and thus outputs a finishing label. In this way, data parsing, precision matching, load calculation, and logical decision-making form a continuous process identification chain, enabling each toolpath segment to be automatically assigned an accurate process category, providing a clear basis for subsequent automatic calling of machining levels and control parameters.
[0022] Table 1. Decision Logic Table It should be noted that in the analysis of material removal rate, volume approximation calculation is an estimation method based on geometric deduction. Its core idea is to treat the movement of the tool on the workpiece surface as a continuous volume sweeping process. Using information such as tool geometry, path length, and depth of cut, the system calculates the volume of material removed from the workpiece within a certain time. The system first extracts parameters such as the toolpath coordinate sequence, tool diameter, depth of cut, step distance, and feed rate from the toolpath file. Then, it determines the geometric approximation model based on the tool type. For flat-end mills, the tool's trajectory can be simplified to a cuboid volume, with its length equal to the path length, width equal to the feed width, and thickness equal to the depth of cut. The volume of material removed is obtained by multiplying these three values. If a ball end mill or round nose end mill is used, the system calculates the effective cutting width and equivalent depth of cut based on the shape of the contact area between the tool and the workpiece surface, and estimates the cutting volume accordingly. In curved surface machining or complex areas, the toolpath often consists of numerous small line segments. The system divides the path into several discrete segments, calculates small volume units for each segment, and then sums the results to obtain the approximate removal volume of the entire path. When adjacent paths overlap, the system determines the overlap coefficient by calculating the ratio of path spacing to tool diameter, and adjusts the effective removal volume accordingly to avoid redundant calculations. This method allows for a relatively accurate determination of the volume of material removed without constructing a complete 3D model. Subsequently, the system uses the feed rate parameter to calculate the processing time for that path segment. The processing time equals the path length divided by the feed rate. In regions with acceleration / deceleration control, the system approximates the time by integrating the speed change curve to reflect the actual operating state of the machine tool during acceleration and deceleration. After obtaining both volume and time, the material removal rate per unit time is obtained by dividing the volume by the time.
[0023] Step 120: Insert the grade identification instruction corresponding to the process identification label during the NC code output process.
[0024] Specifically, during the CNC machining program generation stage, the system automatically inserts level identifier instructions corresponding to different process types during NC code output, based on the aforementioned process identification tags. This insertion process is completed by the post-processing module, which embeds the corresponding level identifiers into the code segments of specific machining operations using standardized syntax by matching the identification tags with macro instruction templates. Each identifier instruction corresponds to a machining level, such as roughing, semi-finishing, or finishing, carrying different calling parameters and instruction header information. The insertion operation is executed synchronously during NC program output, enabling the machine tool to accurately read and identify the machining level during operation. After the machining program is loaded into the CNC system, these embedded level identifiers serve as control logic trigger signals, guiding the machine tool to call the corresponding control parameters at different stages, thereby achieving automatic classification of machining modes and process management.
[0025] In one optional implementation of this embodiment, the step of inserting a level identification instruction corresponding to the process identification label during NC code output includes: calling a macro instruction template matching the process identification label from the instruction template library according to the process identification label; assigning control parameter values to the parameter placeholders in the macro instruction template based on the machining strategy associated with the process identification label to obtain an executable level identification instruction; and during NC code output, inserting the level identification instruction before the start position of the NC program segment of the corresponding machining operation, and attaching an instruction header for identifying the instruction type.
[0026] In this embodiment, the process identification tag is used as an index for matching and retrieval in the instruction template library. The instruction template library is a collection of macro instructions organized by machining level, tool type, and machine tool syntax. A macro instruction template refers to an instruction fragment containing fixed control statements and several parameter placeholders. The placeholders are used to be replaced by specific values or identifiers when the program is output. After a matching template is retrieved, the set of control parameters is read according to the machining strategy associated with the process identification tag. The machining strategy is a pre-defined parameter configuration scheme for different process types. The control parameters include, but are not limited to, level codes, target feed rates, acceleration / deceleration gears, interpolation accuracy identifiers, and servo parameter indexes. Then, the parameter placeholders in the macro instruction template are assigned values one by one. The assignment process is completed through a mapping table. The mapping table maps the semantic parameters in the machining strategy to specific parameter symbols that the CNC system can recognize. For example, "feed rate = 1.1" is mapped to F_MULT = 1.1, and "interpolation accuracy = high" is mapped to a specific interpolation flag bit, thereby generating a level identifier instruction instance that can be directly parsed. Subsequently, during the NC code output stream construction stage, the level identifier instruction instance is inserted before the start position of the corresponding machining operation's NC program segment. The insertion position is determined by parsing the program segment boundary identifiers in the toolpath file. The insertion action is accompanied by an instruction header to indicate the instruction type and version number. The instruction header is a comment with an identification code or a dedicated macro prefix, facilitating rapid positioning and safety verification by the CNC system's macro program interpreter. To avoid frequent switching, post-processing can also merge the insertion positions of adjacent segments with the same tag and record the insertion index. After insertion, metadata is written to the output file for the machine tool to verify matching during parsing. For example, when the process identification label is semi-finishing, the post-processor reads a macro template containing placeholders {LEVEL} and {FEED_MULT} from the template library, replaces {LEVEL} with P2 and {FEED_MULT} with 1.05, and generates a level identification instruction such as G8.1 Q1 P2; #FEED_MULT=1.05. Then, it adds an instruction header in the form of (LEVEL_ID:P2;TEMPLATE:v1) before the first line of the machining segment program and writes it to the NC file, thereby ensuring that the machine tool macro program can accurately parse and call the corresponding control parameter set when loaded.
[0027] Step 130: Parse the grade identifier instruction and, based on the parsing result, retrieve the control parameter set corresponding to the grade identifier instruction from the grade parameter storage area of the CNC system.
[0028] Specifically, when the CNC system starts running the machining program, the internal macro program interpreter parses the inserted level identifier instructions. The parsing process includes lexical analysis and syntax analysis. The interpreter extracts the process level code and related parameter identifiers from the instruction text, and then accesses a pre-set level parameter mapping table within the system based on the level code. This mapping table stores the set of control parameters corresponding to each process level, such as interpolation accuracy, servo gain, acceleration / deceleration response, and speed look-ahead coefficient. By comparing the identifiers with the mapping table index, the system can accurately locate the storage address of the required parameter set and read it into the runtime buffer. At this point, different machining sections possess the basic control parameters corresponding to their respective levels, enabling subsequent machining control to achieve automated parameter switching and dynamic response based on program instructions.
[0029] In one optional implementation of this embodiment, the step of parsing the level identifier instruction and retrieving the control parameter set corresponding to the level identifier instruction from the level parameter storage area of the CNC system based on the parsing result includes: performing lexical analysis and syntax parsing on the level identifier instruction through the macro program interpreter of the CNC system to extract the process level code and parameter identifier; accessing the preset level parameter mapping table in the memory of the CNC system according to the process level code, and locating the memory address of the target parameter set by matching the parameter identifier with the index key in the mapping table; reading the corresponding control parameter set from the level parameter storage area of the CNC system according to the memory address, and loading the control parameter set into the runtime parameter buffer of the CNC system.
[0030] In this embodiment, after the CNC system loads the machining program containing grade identifier instructions, its internal macro program interpreter initiates the instruction parsing process. The macro program interpreter is an instruction analysis module embedded in the CNC system kernel, used to decompose and translate instructions containing variables, expressions, and macro syntax structures, so that the system can read parameter information and perform logical judgments at the execution layer. The interpreter first performs lexical analysis on the grade identifier instructions, dividing the instruction string into several basic symbol units according to predefined lexical rules. Each symbol unit is called a token, such as an operator, grade code, parameter name, numerical constant, or identifier. After lexical analysis, the interpreter enters the syntax parsing stage, constructing a syntax tree from the token sequence according to the system's macro syntax grammar rules, and identifying the semantic components of the instruction according to the instruction structure, such as the process grade code and parameter identifier. During syntax parsing, the interpreter calls the instruction format description table to verify the completeness and legality of the instruction, ensuring that the number and type of parameters meet system requirements. When the process grade code is extracted, the system uses this code as an index to access the pre-set grade parameter mapping table in memory. The level parameter mapping table is a parameter index database loaded by the system during the initialization phase. It uses the level code as the primary key and the storage address or offset of the control parameter set as the value, enabling rapid association between the level code and the specific control parameter set. Each record in the mapping table also contains a set of parameter identifier index keys, used to match the corresponding control parameter items at different levels. The interpreter searches for the target parameter set in the mapping table based on the parameter identifier extracted from the instruction. When a match is successful, the system returns a reference pointer to that address and triggers a parameter access interrupt to ensure that subsequent reading is not interfered with by the main control program. After address location is complete, the system reads the corresponding control parameter set from the level parameter storage area through the memory access interface. The level parameter storage area is a high-priority memory area dedicated to the CNC system, used to store combinations of control parameters corresponding to different machining levels, including key data such as interpolation accuracy coefficients, servo gain coefficients, acceleration / deceleration curve parameters, speed look-ahead coefficients, and vibration suppression parameters. The read operation is performed in data blocks; the system loads all parameter values at once according to the target address and parameter set size, and then writes these data to the runtime parameter buffer. The runtime parameter buffer is a real-time accessible data area used to provide immediate parameter support to various control modules during processing. Once the control parameter set is loaded, the system updates the buffer's status flags to indicate that the new parameter set is active and available for use by the interpolation module, servo module, and speed control module.For example, when parsing instruction G8.1 Q1 P2, the interpreter recognizes the process level code "P2", finds the memory address 0xA020 corresponding to P2 in the mapping table, and locates the acceleration / deceleration and servo control data block contained therein by matching parameter identifier index. Then, it reads the control parameter set from that address into the runtime buffer, so that the machine tool immediately has the dynamic control parameters corresponding to the "semi-finishing" level, providing data support for the motion execution of subsequent machining stages.
[0031] In one optional embodiment, the workpiece material code and tool type code input by the user are obtained; the workpiece material code and tool type code are combined and encoded to generate an extended index prefix; the extended index prefix is concatenated with the process grade code to obtain a composite query condition; the multidimensional parameter mapping table in the CNC system is accessed according to the composite query condition; if a corresponding control parameter set is matched in the mapping table, the matched control parameter set is called; if the matching fails, a parameter calibration prompt message is sent to the user interface, and the control parameter set obtained only based on the process grade code is used.
[0032] In this embodiment, during CNC machine tool machining control, the user inputs the workpiece material code and tool type code through the operating interface. The workpiece material code identifies the physical and mechanical properties of the material to be machined, such as steel, stainless steel, or aluminum alloy. Different materials have different cutting hardness, thermal conductivity, and machining toughness. The tool type code characterizes the geometry, material, and coating properties of the tool used, such as carbide end mills, ball end mills, or coated high-speed steel tools. Its parameters affect cutting force, heat generation, and wear rate. After receiving the two types of codes, the system combines the workpiece material code and tool type code using predefined encoding rules to generate an extended index prefix. This prefix serves as the index basis for the multidimensional parameter mapping table. By using displacement concatenation or a hash algorithm, the two types of information are unified into a unique identifier. For example, if the workpiece material code is A1 (aluminum alloy) and the tool type code is T2 (ball end mill), the combined code generates the extended index prefix A1T2, ensuring that the mapping table retrieval can simultaneously consider material and tool characteristics. Subsequently, the system concatenates the extended index prefix with the process grade code to form a composite query condition. Process grade codes such as P1, P2, and P3 represent roughing, semi-finishing, and finishing, respectively. These are concatenated using strings or binary to form a complete query keyword, such as "A1T2P2," used to locate the corresponding control parameter set in the CNC system's multidimensional parameter mapping table. The multidimensional parameter mapping table is a highly efficient internal index database. Each record contains a control parameter set corresponding to a specific combination of material, tool, and process grade. This control parameter set includes interpolation accuracy, acceleration / deceleration curves, servo loop gain, and speed feedforward coefficients. Searching using composite query conditions can quickly return an accurate parameter set to meet the dynamic response and cutting condition requirements of different machining stages. If a record matching the query condition exists in the mapping table, the system directly calls that control parameter set and loads it into the runtime buffer for use by the machining control module. This ensures that the tool performs motion and cutting operations with optimized parameters under the current material and process grade. For example, when machining complex contours of aluminum alloys, the matched control parameter set may contain a higher feed rate and a lower servo gain to improve machining efficiency while avoiding vibration. If no matching record is found in the query, the system sends a parameter calibration prompt to the user interface, prompting the user to adjust the material or tool parameters or confirm the default machining strategy. At the same time, it calls the control parameter set obtained only based on the process level code. This fallback mechanism ensures that the machining program can continue to execute. Although the parameter matching is incomplete, the basic machining accuracy and safety are still maintained. For example, in the P3 finishing stage, if the extended index does not match the control set, the default finishing parameters corresponding to the P3 process level are used to ensure that the tool path follows the theoretical path and prevent workpiece damage or machine tool malfunction.Through the above mechanism, the CNC system can comprehensively consider the workpiece material, tool type and process level to achieve intelligent matching and dynamic calling of multi-dimensional parameters, making the machining control both targeted and adaptive, thereby maintaining machining accuracy and stability under different material and tool conditions, while improving overall machining efficiency.
[0033] Step 140: Based on the control parameter set, perform parameter scheduling of the machining control module between different machining sections to generate motion control sequences corresponding to each machining level.
[0034] Specifically, during the control execution phase, the CNC system dynamically schedules the machining control modules based on the analyzed control parameter set. The system selects appropriate dynamic response parameters from the control parameter set according to the geometric characteristics and path changes of the current machining segment, coordinating the settings of the interpolation module, servo module, and speed control module. When curvature changes or corner areas appear in the path, the system generates a speed planning curve based on acceleration / deceleration parameters and inserts transition nodes at inflection points to ensure smooth transitions in the motion trajectory. Subsequently, the planning curve is linked with the servo loop parameters to generate a complete motion control sequence. Whenever the program enters the next machining segment, the system pre-loads the corresponding parameter set according to the new segment's process level, completes synchronization, and activates new control commands, enabling the machine tool to operate with corresponding motion characteristics in different process areas, thus forming a continuous, stable, and controlled machining process.
[0035] In one optional implementation of this embodiment, the step of scheduling the machining control module according to the control parameter set between different machining segments to generate motion control sequences corresponding to each machining level includes: inserting smooth transition points at inflection points and curvature change regions of the machining path based on the geometric features of the current machining segment and the dynamic response parameters in the control parameter set, and generating corresponding speed planning curves based on the acceleration and deceleration parameters in the control parameter set; feeding forward coupling the speed planning curves with the servo loop parameters in the control parameter set to generate enhanced command sequences; at the machining segment switching boundary, preloading the parameters of the machining control module according to the control parameter set corresponding to the next machining segment, and activating the enhanced command sequences after completing parameter synchronization.
[0036] In this embodiment, the CNC system dynamically adjusts the tool path based on the geometric features of the current machining segment and the dynamic response parameters in the control parameter set. Geometric features refer to the geometric properties of the tool path in space, including path curvature, inflection point distribution, and the rate of change of cutting direction. The system first identifies curvature abrupt change points and direction reversal points in the path data. By calculating the radius of curvature and rate of change of curvature of continuous interpolation points, it determines sensitive areas on the path that may cause speed oscillations or displacement errors. Dynamic response parameters are machine tool dynamic performance indicators defined in the control parameter set, including the system acceleration upper limit, acceleration rate of change, servo response delay compensation value, and speed smoothing coefficient. Based on these features and parameters, the system automatically inserts smooth transition points in curvature change regions. The insertion position is determined by the second derivative of the path curvature, ensuring that the tool trajectory possesses speed continuity in addition to geometric continuity, thereby forming a smooth path sequence that satisfies dynamic constraints.
[0037] Once the geometric transition structure of the path is established, the system generates a corresponding speed planning curve based on the acceleration and deceleration parameters in the control parameter set. The speed planning curve is a function curve describing the change in tool speed along the path over time. By limiting acceleration, deceleration, and jerk, the system ensures continuous and controllable speed changes. The system constructs this curve using a piecewise polynomial, maintaining a constant feed rate in the uniform speed range and transitioning through a cubic polynomial in the acceleration and deceleration ranges to ensure continuous acceleration at the boundaries. The generated speed planning curve not only reflects the geometric characteristics of the path but also considers the responsiveness of the machine tool's actuators, automatically reducing the tool speed when passing through areas of abrupt curvature change and resuming high-speed operation in straight sections or areas with large curvature radii. For example, when a sharp angle appears in the machining path, the system analyzes the curvature radius and reduces the feed rate from 100% to 60% of the set value, inserting gradual transition zones on both sides based on acceleration and deceleration parameters to avoid mechanical shock caused by sudden speed drops.
[0038] The system then performs feedforward coupling between the speed planning curve and the servo loop parameters in the control parameter set. The servo loop parameters, including position loop gain, speed loop gain, and feedforward compensation coefficients, describe the dynamic characteristics of the machine tool in response to control commands. The purpose of feedforward coupling is to compensate for the machine tool's dynamic lag in advance during the command generation stage, making the motion execution closer to the theoretical trajectory. The system calculates the desired acceleration and speed feedforward signals based on the derivative information of the speed planning curve, and then weights and fuses these signals with the servo loop parameters to obtain an enhanced command sequence. The enhanced command sequence is a composite command set that adds dynamic compensation information to ordinary interpolation commands. It includes both tool position information and feedforward adjustment signals for the servo drive, thus achieving high-precision motion control without additional calculations during the execution stage.
[0039] When the machining path reaches the machining segment switching boundary, the system preloads the machining control module with parameters based on the control parameter set corresponding to the next machining segment. The preloading process begins at the end of the previous machining segment. The system reads the control parameter set for the next segment and writes the servo gain, acceleration / deceleration limits, and interpolation accuracy parameters into the switching register. The parameter synchronization mechanism is implemented through a double-buffering approach: while the current machining segment is still running, the system preloads the parameter set for the next segment into a spare buffer and executes a synchronization command upon detecting the path end marker. After synchronization, the system updates the buffer pointer and activates the enhanced instruction sequence corresponding to the next process level, enabling seamless parameter switching without dynamic abrupt changes during machining segment transitions. For example, when transitioning from the roughing segment to the finishing segment, the system completes the finishing parameter preloading within the last few millimeters of the roughing stage, ensuring that the machine tool immediately adopts a high-precision control mode upon entering the new segment. Through the coordinated control of geometric feature recognition, speed curve planning, servo feedforward coupling, and parameter preloading, the CNC system can maintain motion continuity and dynamic stability in complex path machining, thereby achieving a consistent control level between machining quality and machine tool response.
[0040] In one optional embodiment of this example, after the step of scheduling the machining control module parameters according to the control parameter set across different machining segments to generate motion control sequences corresponding to each machining level, the method further includes: acquiring real-time vibration data during the machining process and reading the actual displacement data of each feed axis through the position feedback interface of the CNC system; comparing the amplitude of the real-time vibration data with a preset amplitude safety threshold, and generating a first correction command when the amplitude exceeds the amplitude safety threshold, the first correction command is used to reduce the spindle speed and feed rate; performing differential calculation between the actual displacement data and the theoretical displacement data in the motion control sequence to obtain the position deviation value, and comparing the position deviation value with a preset deviation tolerance; generating a second correction command when the position deviation value continuously exceeds the preset deviation tolerance, the second correction command is used to adjust the position loop gain parameter of the servo drive unit and insert additional movement into the motion control sequence to compensate for the position deviation value.
[0041] In this embodiment, during CNC machine tool machining, the acquisition of real-time vibration data relies on vibration sensors installed on the machine tool spindle or tool end. These sensors can convert vibration signals under machine tool working conditions into voltage or digital signals, which are then transmitted to the CNC system for analysis via a high-speed sampling interface. Simultaneously, the actual displacement data of each feed axis is collected through a position feedback interface. The position feedback interface is a sensing path in the servo system used to provide feedback on the actual position of the actuator. Its data reflects the instantaneous displacement of the tool along the X, Y, and Z axes under the drive of the servo motor, and is compared with the theoretical path through a closed-loop control loop. After receiving a vibration signal, the system calculates the amplitude through a digital signal processing module. This amplitude represents the vibration amplitude of the machine tool structure and the tool relative to the workpiece during machining. When the calculation result exceeds the preset amplitude safety threshold, it indicates that the machining load is too large or the cutting conditions are not matched with the machine tool dynamics. To prevent surface defects or tool damage caused by vibration, the CNC system generates a first correction command. This command reduces the cutting force and vibration energy by adjusting the spindle speed and feed rate. For example, in the roughing stage, if the amplitude exceeds the threshold, the spindle speed can be reduced from 5000 rpm to 4000 rpm, and the feed rate can be reduced from 2000 mm / min to 1500 mm / min to reduce the instantaneous cutting load and stabilize the machining state. Based on this, the system uses the actual displacement data collected by the position feedback interface to perform point-by-point differential calculation with the theoretical displacement data in the motion control sequence. The differential result is the position deviation value, which reflects the degree of deviation of the tool from the theoretical trajectory when executing the path. If the deviation value continues to exceed the preset deviation tolerance, it indicates that the servo response is insufficient or the machine tool cannot accurately follow the planned trajectory under the current parameters. The CNC system then generates a second correction command. The second correction command enhances the system response capability by adjusting the position loop gain parameter of the servo drive unit and inserts a compensation movement amount into the motion control sequence to offset the cumulative position error. For example, in the semi-finishing of curved surface contour machining, if the deviation of the X-axis exceeds 0.02 mm for five consecutive sampling cycles, the system increases the position loop gain by 20% and adds a corresponding offset at subsequent interpolation points, so that the tool automatically returns to the theoretical path along the curved surface trajectory, thereby ensuring machining accuracy. Simultaneously, vibration correction and position compensation are coupled. Vibration control reduces cutting load and minimizes structural resonance, while position compensation ensures the continuity and geometric accuracy of the tool path. Under dynamic machining conditions, closed-loop adaptive control is achieved. The system can respond promptly to vibration and deviation signals in complex paths and areas with significant curvature changes, enabling a high-precision and high-stability machining process. Through this mechanism, the CNC machine tool can not only automatically detect abnormal machining conditions but also adjust machining parameters and motion control sequences in real time. This allows the tool to successfully complete the machining task under strict control of vibration amplitude and displacement deviation, thus balancing machining quality and efficiency.
[0042] In one optional implementation of this embodiment, the PMC of the CNC system monitors the end command of the machining program, and generates a system state reset request when the end command is captured; in response to the system state reset request, the preset default machine tool parameter configuration is read from the non-volatile memory of the CNC system; according to the default machine tool parameter configuration, a parameter recovery command sequence is generated, and the parameter recovery command sequence is sent to the machining control module through the PMC; the parameter recovery command sequence is executed to reset all dynamic parameters in the machining control module to the initial state defined by the default machine tool parameter configuration.
[0043] In this embodiment, within the CNC system's operating environment, the PMC (Programmable Machine Tool Controller) is a logic control module independent of the CNC main processing unit, used to monitor the machine tool's operating status, signal input / output, and auxiliary action logic. During machining program execution, the PMC continuously listens to the program instruction stream from the main control channel and identifies the program termination instruction through an interrupt detection mechanism. This instruction typically corresponds to the M30 or M02 code, representing the formal end of the machining cycle. When the PMC captures the termination instruction, it immediately generates a system state reset request. This request, as a logic trigger signal, is transmitted to the control kernel via the system bus, notifying the CNC system to enter the state recovery phase. In response to this reset request, the system accesses non-volatile memory to read the preset default machine tool parameter configuration. Non-volatile memory is a storage medium, such as EEPROM or Flash, that retains data even after power failure. It is used to store factory-defined or user-defined baseline parameters for the machine tool, including servo gain, speed look-ahead coefficient, acceleration / deceleration time constant, interpolation accuracy, and tool compensation coefficient. These parameters constitute the initial operating state baseline of the machine tool. After reading the complete default machine tool parameter configuration, the system parses the correspondence between parameter categories and control modules through the parameter mapping module, and generates a parameter recovery instruction sequence based on the parameter content. This instruction sequence is organized in the form of executable commands, with each instruction containing a parameter identifier and a target register address to clarify the reset target of the corresponding module. The generated instruction sequence is transmitted to the machining control module via the PMC communication interface. The PMC communication interface is a bidirectional bus channel that ensures synchronous and interference-free data transmission between the logic control layer and the motion control layer. After receiving the instruction sequence, the machining control module executes the parameter recovery operation item by item according to the instruction sequence, resetting various parameters dynamically adjusted during operation to the initial values defined in the default machine tool parameter configuration, achieving a complete return to the system state. For example, during machining, if the finishing section requires a temporary increase in servo gain and a decrease in acceleration time constant, after the end instruction is triggered, the recovery sequence will reset the servo gain to the default 0.8 times the nominal value and restore the acceleration time constant to the factory standard value to ensure that the machine tool has stable dynamic characteristics before entering standby or the next machining operation. The entire reset process is monitored in real time by the PMC. Once all parameter confirmation signals are returned, the PMC writes the "RESET_COMPLETE" flag to the system status register, indicating that the reset is complete. Through this mechanism, the CNC system can automatically clear the residual effects of dynamic parameter adjustments after each machining operation, preventing trajectory errors or increased vibrations caused by parameter drift in the next machining operation. This maintains consistent machine tool performance and stable control accuracy in continuous production environments. Simultaneously, this reset process requires no manual intervention, reducing operational risks and improving the automation level of equipment management, enabling the CNC system to possess self-repair and self-maintenance capabilities in complex production cycles.
[0044] According to the intelligent control method for machining levels of CNC machine tools provided in this application, the corresponding process identification label is determined based on the machining parameters of the tool path in the tool file; a level identification instruction corresponding to the process identification label is inserted during the NC code output process; the level identification instruction is parsed, and the control parameter set corresponding to the level identification instruction is called from the level parameter storage area of the CNC system based on the parsing result; the machining control module is parameter-scheduled between different machining segments according to the control parameter set to generate a motion control sequence corresponding to each machining level. Through the implementation of this application, after the user inputs the tool file, the CNC machine tool can identify the corresponding machining level based on the machining parameters in the tool file, and call the corresponding machining control parameters to machine the workpiece during the machining process, effectively improving machining efficiency while ensuring machining accuracy.
[0045] Figure 2 This application provides an intelligent control device for CNC machine tool machining levels, which can be used to implement the intelligent control method for CNC machine tool machining levels in the aforementioned embodiments. For example... Figure 2 As shown, the intelligent control device for machining level of this CNC machine tool mainly includes: The determination module 10 is used to determine the corresponding process identification label based on the machining parameters of the tool path in the tool file; Insertion module 20 is used to insert grade identification instructions corresponding to process identification labels during NC code output; Module 30 is called to parse the grade identifier instruction and, based on the parsing result, retrieve the control parameter set corresponding to the grade identifier instruction from the grade parameter storage area of the CNC system. The control module 40 is used to schedule the parameters of the machining control module between different machining sections according to the control parameter set, and generate motion control sequences corresponding to each machining level.
[0046] In one optional implementation of this embodiment, the determining module is specifically used to: extract the geometric accuracy requirements and material removal features associated with the current toolpath from the toolpath file; match the geometric accuracy requirements with a preset accuracy threshold range to generate an accuracy level identifier; calculate the material removal rate per unit time based on the material removal features to generate a cutting load identifier; and determine the corresponding process identification label through a decision logic table based on the accuracy level identifier and the cutting load identifier.
[0047] In one optional implementation of this embodiment, the insertion module is specifically used to: call a macro instruction template that matches the process identification tag from the instruction template library according to the process identification tag; assign control parameter values to the parameter placeholders in the macro instruction template based on the machining strategy associated with the process identification tag to obtain an executable level identification instruction; and insert the level identification instruction before the start position of the NC program segment of the corresponding machining process during the NC code output process, and attach an instruction header for identifying the instruction type.
[0048] In one optional implementation of this embodiment, the calling module is specifically used to: perform lexical analysis and syntax parsing on the level identifier instruction through the macro program interpreter of the CNC system to extract the process level code and parameter identifier; access the preset level parameter mapping table in the memory of the CNC system according to the process level code, and locate the memory address of the target parameter set by matching the parameter identifier with the index key in the mapping table; read the corresponding control parameter set from the level parameter storage area of the CNC system according to the memory address, and load the control parameter set into the runtime parameter buffer of the CNC system.
[0049] In one optional implementation of this embodiment, the control module is specifically used to: insert smooth transition points at inflection points and curvature change regions of the machining path based on the geometric features of the current machining segment and the dynamic response parameters in the control parameter set, and generate a corresponding speed planning curve based on the acceleration and deceleration parameters in the control parameter set; perform feedforward coupling between the speed planning curve and the servo loop parameters in the control parameter set to generate an enhanced instruction sequence; at the machining segment switching boundary, preload the machining control module with parameters according to the control parameter set corresponding to the next machining segment, and activate the enhanced instruction sequence after completing parameter synchronization.
[0050] In an optional embodiment of this example, the control module is further configured to: acquire real-time vibration data during the machining process, and read the actual displacement data of each feed axis through the position feedback interface of the CNC system; compare the amplitude of the real-time vibration data with a preset amplitude safety threshold, and when the amplitude exceeds the amplitude safety threshold, generate a first correction command, which is used to reduce the spindle speed and feed rate; perform differential calculation on the actual displacement data and the theoretical displacement data in the motion control sequence to obtain the position deviation value, and compare the position deviation value with a preset deviation tolerance; when the position deviation value continues to exceed the preset deviation tolerance, generate a second correction command, which is used to adjust the position loop gain parameter of the servo drive unit and insert additional movement into the motion control sequence to compensate for the position deviation value.
[0051] In an optional implementation of this embodiment, the calling module is further configured to: obtain the workpiece material code and tool type code input by the user; combine and encode the workpiece material code and tool type code to generate an extended index prefix; concatenate the extended index prefix with the process grade code to obtain a composite query condition; access the multidimensional parameter mapping table in the CNC system according to the composite query condition; if a corresponding control parameter set is matched in the mapping table, the matched control parameter set is called; if the matching fails, a parameter calibration prompt message is sent to the user interface, and the control parameter set obtained solely based on the process grade code is used.
[0052] According to the intelligent control device for machining levels of CNC machine tools provided in this application, the corresponding process identification label is determined based on the machining parameters of the tool path in the tool file; a level identification instruction corresponding to the process identification label is inserted during the NC code output process; the level identification instruction is parsed, and the control parameter set corresponding to the level identification instruction is called from the level parameter storage area of the CNC system based on the parsing result; the machining control module is parameter-scheduled between different machining segments according to the control parameter set to generate a motion control sequence corresponding to each machining level. Through the implementation of this application, after the user inputs the tool file, the CNC machine tool can identify the corresponding machining level based on the machining parameters in the tool file, and call the corresponding machining control parameters to machine the workpiece during the machining process, effectively improving machining efficiency while ensuring machining accuracy.
[0053] According to the scheme provided in this application Figure 3 An electronic device is provided as an embodiment of this application. This electronic device can be used to implement the intelligent control method for CNC machine tool machining levels in the foregoing embodiments, and mainly includes: The system includes a memory 301, a processor 302, and a computer program 303 stored in the memory 301 and executable on the processor 302. The memory 301 and the processor 302 are connected via communication. When the processor 302 executes the computer program 303, it implements the intelligent control method for CNC machine tool machining levels described in the foregoing embodiments. The number of processors can be one or more.
[0054] The memory 301 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 301 is used to store executable program code, and the processor 302 is coupled to the memory 301.
[0055] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the electronic device described in the above embodiments, and the computer-readable storage medium may be as described above. Figure 3 The memory in the illustrated embodiment.
[0056] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the intelligent control method for CNC machine tool machining levels described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be a USB flash drive, portable hard drive, read-only memory (ROM), RAM, magnetic disk, or optical disk, or any other medium capable of storing program code.
[0057] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0058] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or 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 methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0059] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application 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 the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such 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 the embodiments of this application.
Claims
1. A method for intelligent control of machining levels in CNC machine tools, characterized in that, include: The corresponding process identification label is determined based on the machining parameters of the toolpath in the tool file; Insert a grade identification instruction corresponding to the process identification label during the NC code output process; The grade identification instruction is parsed, and the control parameter set corresponding to the grade identification instruction is retrieved from the grade parameter storage area of the CNC system according to the parsing result; Based on the set of control parameters, the processing control module is scheduled across different processing sections to generate motion control sequences corresponding to each processing level.
2. The intelligent control method for machining levels of CNC machine tools according to claim 1, characterized in that, The step of determining the corresponding process identification label based on the machining parameters of the tool path in the tool file includes: Extract the geometric accuracy requirements and material removal features associated with the current toolpath from the toolpath file; The geometric accuracy requirements are matched with a preset accuracy threshold range to generate an accuracy level identifier; Based on the material removal characteristics, the material removal rate per unit time is calculated, and a cutting load identifier is generated. Based on the accuracy level identifier and the cutting load identifier, the corresponding process identification label is determined through a decision logic table.
3. The intelligent control method for CNC machine tool machining levels according to claim 1, characterized in that, The step of inserting the grade identification instruction corresponding to the process identification label during NC code output includes: Based on the process identification label, a macro instruction template matching the process identification label is retrieved from the instruction template library; Based on the processing strategy associated with the process identification tag, control parameter values are assigned to the parameter placeholders in the macro instruction template to obtain executable level identification instructions. During the NC code output process, the level identification instruction is inserted before the start position of the NC program segment of the corresponding machining process, and an instruction header for identifying the instruction type is attached.
4. The intelligent control method for CNC machine tool machining levels according to claim 1, characterized in that, The step of parsing the level identifier instruction and retrieving the control parameter set corresponding to the level identifier instruction from the level parameter storage area of the CNC system based on the parsing result includes: The macro program interpreter of the CNC system performs lexical analysis and syntax parsing on the grade identification instructions to extract the process grade code and parameter identifier. Access the preset level parameter mapping table in the CNC system memory according to the process level code, and locate the memory address of the target parameter set by matching the parameter identifier with the index key in the mapping table; The corresponding control parameter set is read from the level parameter storage area of the CNC system according to the memory address, and the control parameter set is loaded into the runtime parameter buffer of the CNC system.
5. The intelligent control method for machining levels of CNC machine tools according to claim 1, characterized in that, The step of scheduling the processing control module according to the control parameter set across different processing segments to generate motion control sequences corresponding to each processing level includes: Based on the geometric features of the current processing section and the dynamic response parameters in the control parameter set, smooth transition points are inserted at the inflection points and curvature change regions of the processing path, and corresponding speed planning curves are generated based on the acceleration and deceleration parameters in the control parameter set. The speed planning curve is fed forward coupled with the servo loop parameters in the control parameter set to generate an enhanced command sequence; At the boundary of the processing segment switching, the processing control module is preloaded with parameters according to the control parameter set corresponding to the next processing segment, and the enhanced instruction sequence is activated after the parameter synchronization is completed.
6. The intelligent control method for CNC machine tool machining levels according to claim 1, characterized in that, After the step of scheduling the processing control module according to the control parameter set across different processing segments to generate motion control sequences corresponding to each processing level, the method further includes: Real-time vibration data during the machining process is acquired, and the actual displacement data of each feed axis is read through the position feedback interface of the CNC system. The amplitude of the real-time vibration data is compared with a preset amplitude safety threshold. When the amplitude exceeds the amplitude safety threshold, a first correction command is generated. The first correction command is used to reduce the spindle speed and feed rate. The actual displacement data is compared with the theoretical displacement data in the motion control sequence to obtain the position deviation value, and the position deviation value is compared with the preset deviation tolerance. When the position deviation value continues to exceed the preset deviation tolerance, a second correction instruction is generated. The second correction instruction is used to adjust the position loop gain parameter of the servo drive unit and insert additional movement into the motion control sequence to compensate for the position deviation value.
7. The intelligent control method for CNC machine tool machining levels according to claim 4, characterized in that, The method further includes: Obtain the workpiece material code and tool type code input by the user; The workpiece material code and the tool type code are combined and encoded to generate an extended index prefix; The extended index prefix is concatenated with the process grade code to obtain a composite query condition; Access the multi-dimensional parameter mapping table in the CNC system according to the composite query conditions. If a corresponding control parameter set is matched in the mapping table, the matched control parameter set is called. If the match fails, a parameter calibration prompt message is sent to the user interface, and the set of control parameters obtained only based on the process grade code is used.
8. A CNC machine tool machining level intelligent control device, characterized in that, The intelligent control device for machining level of CNC machine tools is used to implement the intelligent control method for machining level of CNC machine tools as described in claim 1, and the intelligent control device for machining level of CNC machine tools includes: The determination module is used to determine the corresponding process identification label based on the machining parameters of the toolpath in the tool file; An insertion module is used to insert a grade identification instruction corresponding to the process identification label during the NC code output process; The calling module is used to parse the level identifier instruction and, based on the parsing result, call the control parameter set corresponding to the level identifier instruction from the level parameter storage area of the CNC system; The control module is used to schedule the processing control module parameters between different processing sections according to the control parameter set, and generate motion control sequences corresponding to each processing level.
9. An electronic device, characterized in that, Includes memory and processor, of which: The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps in the intelligent control method for machining levels of CNC machine tools according to any one of claims 1 to 7.
10. A 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 steps in the intelligent control method for machining levels of CNC machine tools according to any one of claims 1 to 7.