Cutter management and control method and system of numerical control machine tool, electronic equipment and medium

By obtaining the cutting parameters of CNC machine tool tools and calculating the wear status value, and combining the processing progress and remaining quantity, a reasonable tool replacement strategy is generated, which solves the problems of resource waste and frequent downtime caused by fixed-time replacement and improves tool management efficiency.

CN120704241APending Publication Date: 2025-09-26SHENZHEN A&E INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510879502.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

In the existing CNC machine tool tool management, the fixed time replacement method leads to waste or excessive use of tool resources, frequent shutdowns for replacement, and reduced tool management efficiency.

Method used

By obtaining parameters such as the tool's cutting force, temperature, and accumulated processing time, the wear status value is calculated. Combined with the remaining processing volume and processing progress, a reasonable tool replacement strategy is generated to avoid frequent downtime and improve tool management efficiency.

Benefits of technology

It realizes the reasonable planning of tool replacement time, avoids frequent shutdowns, improves replacement efficiency, and enhances the tool management and control efficiency of CNC machine tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704241A_ABST
    Figure CN120704241A_ABST
Patent Text Reader

Abstract

The invention discloses a cutter control method and system of a numerical control machine tool, electronic equipment and a medium, and relates to the technical field of data processing. The method comprises the steps that cutting parameters of a plurality of cutters in a target numerical control machine tool are obtained, wherein the cutting parameters comprise cutting force, temperature and accumulated machining duration; according to the cutting force, the temperature and the accumulated machining duration, the abrasion state value of each tool is calculated, and the tool with the abrasion state value larger than a preset threshold value is determined as a tool to be replaced; the current remaining machining amount is obtained, and estimated replacement time is calculated according to the abrasion state value and the remaining machining amount; the adjacent to-be-replaced tools with the predicted replacement time interval smaller than the preset duration are combined into the same tool replacement batch; and determining a corresponding optimal replacement time point in combination with the machining progress of the to-be-replaced cutter in each cutter replacement batch, and generating a cutter replacement strategy of the target numerical control machine tool based on each optimal replacement time point. By implementing the technical scheme provided by the invention, the tool control efficiency of the numerical control machine tool can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a tool control method, system, electronic equipment and medium for a CNC machine tool. Background Art

[0002] With the rapid development of the manufacturing industry, CNC machine tools are playing an increasingly important role in modern industrial production. As a key component of CNC machine tools, the state of tool usage directly impacts machining quality and production efficiency. Therefore, effective management of CNC machine tool tools has become a crucial step in improving production efficiency.

[0003] Currently, tool management for CNC machine tools primarily relies on a fixed-time replacement system for uniform tool replacement. However, in actual production, due to the varying working conditions of different tools, this fixed-time replacement system can easily lead to waste or overuse of tool resources. The lack of proper tool replacement scheduling often results in frequent machine downtime for tool replacement, reducing the overall tool management efficiency of the CNC machine tool. Summary of the Invention

[0004] The present application provides a tool control method, system, electronic equipment and medium for a CNC machine tool, which can improve the tool control efficiency of the CNC machine tool.

[0005] In a first aspect, the present application provides a tool control method for a CNC machine tool, comprising: Obtaining cutting parameters of multiple cutting tools in a target CNC machine tool, wherein the cutting parameters include cutting force, temperature, and cumulative machining time; Calculating a wear state value of each tool according to the cutting force, the temperature, and the accumulated machining time, and determining a tool having a wear state value greater than a preset threshold as a tool to be replaced; Obtaining the current remaining machining amount of the target CNC machine tool, and calculating an estimated replacement time of the tool to be replaced based on the wear state value of the tool to be replaced and the remaining machining amount; Combining adjacent tools to be replaced whose estimated replacement time interval is less than a preset time into the same tool replacement batch to obtain multiple tool replacement batches; Combined with the processing progress of the tools to be replaced in each tool replacement batch, the optimal replacement time point corresponding to each tool replacement batch is determined, and a tool replacement strategy for the target CNC machine tool is generated based on each optimal replacement time point.

[0006] By adopting the above technical solution, by obtaining cutting parameters such as cutting force, temperature and cumulative processing time of multiple tools in the target CNC machine tool, the actual usage status of the tools can be fully reflected; then, the wear status value of each tool is calculated based on these cutting parameters, and the tools that exceed the preset threshold are determined as tools to be replaced, so that the tools that need to be replaced can be accurately identified; at the same time, the estimated replacement time is calculated based on the remaining processing volume of the target CNC machine tool and the wear status value of the tools to be replaced, and adjacent tools to be replaced with a smaller estimated replacement time interval are combined into the same tool replacement batch, and finally, the optimal replacement time point is determined based on the processing progress of each tool to generate a tool replacement strategy, thereby realizing reasonable planning of tool replacement time, avoiding frequent shutdowns for tool replacement, and effectively improving the tool management and control efficiency of CNC machine tools.

[0007] In a second aspect of the present application, a tool control system for a CNC machine tool is provided, the system comprising: A parameter acquisition module is used to obtain cutting parameters of multiple cutting tools in a target CNC machine tool, wherein the cutting parameters include cutting force, temperature, and accumulated processing time; a replacement time determination module, configured to calculate a wear state value of each of the tools based on the cutting force, the temperature, and the accumulated machining time, and determine a tool having a wear state value greater than a preset threshold as a tool to be replaced; obtain a current remaining machining volume of the target CNC machine tool, and calculate an estimated replacement time of the tool to be replaced based on the wear state value of the tool to be replaced and the remaining machining volume; A replacement batch determination module is used to group adjacent to-be-replaced tools whose estimated replacement time interval is less than a preset time into the same tool replacement batch, thereby obtaining multiple tool replacement batches; The replacement strategy generation module is used to determine the optimal replacement time point corresponding to each tool replacement batch based on the processing progress of the tools to be replaced in each tool replacement batch, and generate the tool replacement strategy of the target CNC machine tool based on each optimal replacement time point.

[0008] In a third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program can implement a tool control method for a CNC machine tool when loaded and executed by the processor.

[0009] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements a tool control method for a CNC machine tool.

[0010] In summary, one or more technical solutions provided by this application have at least the following technical effects or advantages: By adopting the above technical solution, by obtaining cutting parameters such as cutting force, temperature and cumulative processing time of multiple tools in the target CNC machine tool, the actual usage status of the tools can be fully reflected; then, the wear status value of each tool is calculated based on these cutting parameters, and the tools that exceed the preset threshold are determined as tools to be replaced, so that the tools that need to be replaced can be accurately identified; at the same time, the estimated replacement time is calculated based on the remaining processing volume of the target CNC machine tool and the wear status value of the tools to be replaced, and adjacent tools to be replaced with a smaller estimated replacement time interval are combined into the same tool replacement batch, and finally, the optimal replacement time point is determined based on the processing progress of each tool to generate a tool replacement strategy, thereby realizing reasonable planning of tool replacement time, avoiding frequent shutdowns for tool replacement, and effectively improving the tool management and control efficiency of CNC machine tools. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 This is a flow chart of a tool control method for a CNC machine tool provided in an embodiment of the present application; Figure 2 This is a schematic structural diagram of a tool control system for a CNC machine tool provided in an embodiment of the present application; Figure 3 This is a structural diagram of an electronic device provided in an embodiment of the present application.

[0012] Description of reference numerals: 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION

[0013] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0014] In the description of the embodiments of this application, words such as "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "for example" or "for instance" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "for example" or "for instance" is intended to present the relevant concepts in a concrete manner.

[0015] In the description of the embodiments of the present application, the term "multiple" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0016] The present application embodiment provides a tool control method for a CNC machine tool. In one embodiment, please refer to Figure 1 , Figure 1 This is a flow chart of a tool control method for a CNC machine tool provided in an embodiment of the present application. This method can be implemented by a computer program, which can be integrated into an application or run as an independent tool application. This method can also be implemented by a single-chip microcomputer or run on a tool control system for a CNC machine tool based on a von Neumann architecture. Specifically, this method can include the following steps: Step 101: Obtain cutting parameters of multiple cutting tools in a target CNC machine tool, where the cutting parameters include cutting force, temperature, and cumulative machining time.

[0017] Cutting parameters refer to three key performance indicators that directly reflect the tool's usage status during machine tool processing: cutting force, temperature, and accumulated processing time. Cutting force refers to the force exerted by the tool on the workpiece during cutting. This can be measured by a force sensor and reflects the tool's stress status. Temperature refers to the temperature change caused by the heat generated by the tool during cutting. This can be measured by a temperature sensor and reflects the tool's thermal load. Accumulated processing time refers to the total actual cutting time of the tool from the start of use to the current moment. This can be obtained through the timing function of the CNC system and reflects the tool's usage time. These three cutting parameters together constitute the basic data for evaluating the tool's usage status.

[0018] The target CNC machine tool is a specific CNC machine tool that requires tool control. This CNC machine tool is equipped with a complete tool monitoring system, including a sensor system for collecting cutting parameters, a control system for storing and processing data, and a tool cabinet for changing tools.

[0019] Specifically, a sensor system installed on the CNC machine tool first collects the cutting parameters of each tool in real time during the machining process. Specifically, a force sensor and a temperature sensor are installed at the tool mounting location. The force sensor collects cutting force data during the cutting process, and the temperature sensor collects temperature data during the cutting process. Simultaneously, the CNC machine tool control system records the cumulative machining time of each tool. The frequency of collecting these cutting parameters can be set according to actual production needs, for example, collecting data every 1 second.

[0020] The collected cutting force data includes components in three directions: the main cutting force, the feed force, and the back force. This data can reflect the force conditions of the tool during the machining process. When the tool wears, the cutting force will gradually increase, especially the main cutting force. The temperature data reflects the thermal load on the tool during the cutting process. Tool wear will cause the cutting temperature to rise, and excessively high cutting temperatures will accelerate tool wear. The accumulated machining time is directly related to the tool life and is an important reference indicator for evaluating the tool wear status.

[0021] These cutting parameters are transmitted in real time to the CNC machine tool's control system via a data acquisition module for storage and processing. The system then creates a parameter database, storing each tool's cutting force, temperature, and accumulated machining time in a chronological order, creating a complete record of tool usage. This data provides the basis for subsequent calculations of tool wear, enabling accurate assessment and prediction of tool condition.

[0022] By acquiring these cutting parameters in real time, it is possible to timely understand the usage status of the tool and avoid the waste or overuse of tool resources caused by ignoring the actual usage status in the traditional fixed-time replacement method. It should be noted that the collected cutting parameter data needs to be preprocessed before use, including removing outliers, data smoothing and other operations to ensure the accuracy of subsequent analysis.

[0023] Step 102: Calculate the wear state value of each tool based on the cutting force, temperature, and accumulated processing time, and determine the tool with a wear state value greater than a preset threshold as a tool to be replaced.

[0024] The wear state value, as used in this application, is a quantitative indicator of the tool's current wear level. A larger value indicates more severe tool wear and less stable machining performance. The calculation of the wear state value comprehensively considers multiple key parameters during tool use and objectively reflects the tool's actual usage.

[0025] In this application, tools in need of replacement are those whose wear status exceeds a preset threshold. These tools have reached a point where replacement is necessary, as continued use could compromise machining quality or cause other production issues. The system automatically identifies and marks these tools as candidates for replacement strategies.

[0026] Specifically, the system first obtains the cutting force difference and temperature difference between the two adjacent sampling moments. The system then calculates a first rate of change corresponding to the cutting force difference and a second rate of change corresponding to the temperature difference. When these rates of change exceed a pre-set rate of change threshold, the system records this as an abnormal state. By accumulating the number of these abnormal states, an abnormality count is generated, reflecting the degree of abnormal tool usage. The system then uses the ratio of the abnormality count to the accumulated machining time as the tool wear state value, with a larger value indicating more severe tool wear.

[0027] When the calculated wear value exceeds a preset threshold, the system automatically marks the tool for replacement. This threshold is determined based on extensive historical data analysis and actual production experience. When the tool wear value exceeds this threshold, it indicates that the tool has reached the point where it needs to be replaced. Continued use may affect machining quality or cause other production problems.

[0028] This multi-parameter analysis method more accurately reflects the actual wear state of the tool. For example, when a tool wears, it not only increases cutting forces but also causes temperature to rise. These changes become more pronounced as the cumulative machining time increases. By comprehensively considering the changing trends of these parameters, the system can promptly detect abnormal changes in tool performance and avoid misjudgments that may result from single-parameter analysis.

[0029] Based on the above embodiment, as an optional embodiment, in step 102: calculating the wear state value of each tool based on the cutting force, temperature, and accumulated processing time, this step may also include the following steps: Step 201: For each tool, obtain the cutting force difference of the tool at two adjacent sampling moments and the temperature difference of the tool at two adjacent sampling moments.

[0030] Specifically, it is first necessary to calculate the changes in cutting parameters during tool use. Specifically, for each tool in the target CNC machine tool, the system continuously collects cutting force and temperature data at a preset sampling frequency (e.g., once per second). By calculating the parameter difference between two adjacent sampling moments, the cutting force difference and temperature difference can be obtained. For example, if the cutting force at the current sampling moment t is F(t) and the cutting force at the previous sampling moment is F(t-1), then the cutting force difference ΔF = F(t) - F(t-1); similarly, if the temperature at the current moment is T(t) and the temperature at the previous moment is T(t-1), then the temperature difference ΔT = T(t) - T(t-1). This difference calculation method can promptly reflect the dynamic changes in the tool's usage status and provide basic data for subsequent judgment of whether the tool is in an abnormal state.

[0031] Step 202: Calculate a first rate of change based on the cutting force difference, and calculate a second rate of change based on the temperature difference; accumulate the number of times the first rate of change and the second rate of change exceed a rate of change threshold to obtain an abnormality count.

[0032] Specifically, the system calculates the parameter change rate based on the acquired difference data and counts abnormal situations. Specifically, the cutting force difference ΔF is divided by the sampling time interval Δt to obtain the first change rate V1=ΔF / Δt, and the temperature difference ΔT is divided by the sampling time interval Δt to obtain the second change rate V2=ΔT / Δt. The system pre-sets the cutting force change rate threshold Vf and the temperature change rate threshold Vt. When the calculated first change rate V1 is greater than Vf or the second change rate V2 is greater than Vt, the system determines it as an abnormal state and records it. By continuously monitoring and accumulating the number of times these abnormal states occur, an abnormality count N reflecting the degree of abnormal tool use is obtained. This judgment method based on the rate of change can effectively identify abnormal situations during tool use and avoid being affected by instantaneous fluctuations.

[0033] Step 203: Determine the tool wear status value based on the ratio of the abnormality count to the accumulated machining time.

[0034] Specifically, the accumulated abnormal counts N are correlated with the accumulated processing time T of the tool to calculate the wear status value M=N / T of the tool. This calculation method takes into account the frequency of abnormalities and can more accurately reflect the actual degree of wear of the tool. For example, when the tool is worn, the abnormal changes in its cutting force and temperature will become more frequent, resulting in an increase in the abnormal count per unit time, thereby increasing the wear status value. Compared with directly using abnormal counts, this calculation method based on time normalization can eliminate the impact of different processing times and make the wear status of tools with different usage times comparable. The wear status value calculated in this way provides a reliable quantitative basis for subsequent judgment of whether the tool needs to be replaced.

[0035] Step 103: Obtain the current remaining machining volume of the target CNC machine tool, and calculate the estimated replacement time of the tool to be replaced based on the wear state value and the remaining machining volume of the tool to be replaced.

[0036] Among them, the remaining processing volume in this application refers to the total amount of processing tasks that are not currently completed by the target CNC machine tool. This indicator directly reflects the amount of processing work that the tool needs to perform before completing the current production task.

[0037] In this application, the estimated replacement time refers to the estimated time point when the tool to be replaced needs to be replaced. This estimated replacement time takes into account both the life limit of the tool and the needs of the production task, providing a time basis for the reasonable arrangement of tool replacement.

[0038] Specifically, after identifying the tool to be replaced, to optimally schedule tool replacement, the system first obtains the current remaining machining volume, including the number of workpieces to be machined and the machining process for each workpiece, from the target CNC machine tool's production task management system. The system then obtains the initial wear value of the tool to be replaced. The system calculates the wear increment by calculating the difference between the current wear state and the initial wear value. Based on this increment, the system calculates the wear rate of the tool to be replaced over a preset time period. Based on this wear rate and a preset wear limit, the system calculates the remaining service life. It also calculates the estimated machining time required to complete the remaining task based on the tool's baseline machining rate and the remaining machining volume. The smaller of these two time values ​​is selected as the estimated replacement time for the tool to be replaced. This calculation method, by comprehensively considering the tool's actual wear state and the specific machining task requirements, not only accurately predicts tool life but also avoids production interruptions caused by tool life exhaustion. It also provides a time benchmark for subsequent batch replacement strategies, effectively improving production efficiency. Furthermore, the system modifies the calculated wear rate based on workpiece type and machining process to further improve the accuracy of the prediction, thereby enabling more intelligent tool management.

[0039] Based on the above embodiment, as an optional embodiment, in step 103: calculating the estimated replacement time of the tool to be replaced based on the wear state value and the remaining machining amount of the tool to be replaced, this step may further include the following steps: Step 301: Obtain the initial wear value of the tool to be replaced, and calculate the wear state increment between the wear state value and the initial wear value.

[0040] Specifically, the system first retrieves the initial wear value of the tool to be replaced from the database. This initial wear value refers to the wear state value recorded when the tool was first installed and used. Next, the system obtains the current wear state value and calculates the difference between the current wear state value and the initial wear value to obtain the wear state increment, which reflects the change in the degree of wear during tool use. For example, if the current wear state value is M1 and the initial wear value is M0, the wear state increment ΔM = M1 - M0. This incremental calculation method eliminates the influence of the tool's initial state and can more accurately reflect the wear changes of the tool during actual use.

[0041] Step 302: Calculate the wear rate of the tool to be replaced within a preset period of time according to the wear state increment.

[0042] Specifically, the system calculates the wear rate of the tool to be replaced within a preset period (e.g., the last 24 hours) based on the acquired wear state increments. Specifically, the wear state increment within the preset period is divided by the corresponding time length to obtain the wear state change per unit time, namely, the wear rate V = ΔM / T, where T is the duration of the preset period. This wear rate calculation method based on recent data can timely reflect the current usage status of the tool, avoid interference from historical data in the prediction, and improve prediction accuracy.

[0043] Step 303: Calculate the remaining usage time of the tool to be replaced based on the wear rate, and determine the estimated processing time based on the baseline processing rate and the remaining processing volume of the tool to be replaced; select the smaller value between the remaining usage time and the estimated processing time as the estimated replacement time of the tool to be replaced.

[0044] Specifically, first, based on the calculated wear rate, the remaining usage time of the tool to be replaced is determined. Specifically, by calculating the difference between the preset wear limit and the current wear state value, and then dividing it by the wear rate, the remaining usage time TR=(ML-M1) / V is obtained, where ML is the preset wear limit. At the same time, the system calculates the estimated processing time TP required to complete the remaining tasks based on the baseline processing rate of the tool to be replaced (i.e., the processing efficiency under normal working conditions) and the current remaining processing volume. Finally, by comparing the remaining usage time TR and the estimated processing time TP, the system selects the smaller value of the two as the estimated replacement time T=min(TR, TP) for the tool to be replaced. This method takes into account the limitations of tool life and the needs of actual production tasks. It can effectively avoid production interruptions caused by excessive tool wear or exhaustion of tool life, and ensure the continuity and stability of production.

[0045] Based on the above embodiment, as an optional embodiment, in step 303: calculating the remaining usage time of the tool to be replaced based on the wear rate, this step may further include the following steps: Step 313: Obtain the type of workpiece and the machining process to be machined by the tool to be replaced; based on the type of workpiece and the machining process, determine the corresponding standard wear rate in a preset wear rate mapping table.

[0046] Specifically, the system obtains information about the type of workpiece (such as aluminum alloy, steel, etc.) and the specific processing procedure (such as roughing, finishing, etc.) currently being processed by the tool to be replaced through the production management system of the target CNC machine tool. The system pre-establishes a wear rate mapping table, which stores standard wear rate data corresponding to different combinations of workpiece types and processing procedures. These standard wear rate data are obtained based on statistical analysis of a large amount of historical production data and reflect the normal wear rate level of the tool under specific workpiece types and processing conditions. For example, the standard wear rate when processing steel is generally higher than the standard wear rate when processing aluminum alloy, and the standard wear rate of the finishing process is lower than that of the roughing process. The system searches for a matching standard wear rate value in the mapping table based on the current workpiece type and processing procedure, providing benchmark data for subsequent life corrections.

[0047] Step 323: Using the ratio of the wear rate to the standard wear rate as a correction coefficient; and calculating the initial remaining life span of the tool to be replaced, at which the wear state value reaches a preset wear limit, based on the wear rate.

[0048] Specifically, the ratio of the actual wear rate to the standard wear rate is first calculated, and the ratio is used as a correction coefficient. For example, if the actual wear rate currently calculated is V and the corresponding standard wear rate is Vs, the correction coefficient K=V / Vs. This correction coefficient reflects the degree of deviation of the actual wear rate from the standard state and can be used to adjust the accuracy of life prediction. At the same time, the system calculates the initial remaining life time T0=(ML-M1) / V required for the tool to reach the wear limit based on the current wear rate V and wear state value M1, combined with the preset wear limit ML. This initial remaining life time is an uncorrected theoretical prediction value and needs to be adjusted through the correction coefficient to adapt to the influence of actual working conditions.

[0049] Step 333: Correct the initial remaining life span based on the correction coefficient to obtain the remaining usage time of the tool to be replaced.

[0050] Specifically, the system uses the calculated correction coefficient K to correct the initial remaining life time T0 to obtain a more accurate remaining usage time TR=T0 / K. When the correction coefficient is greater than 1, it indicates that the actual wear rate is higher than the standard level, and the system will shorten the predicted remaining usage time accordingly; when the correction coefficient is less than 1, it indicates that the actual wear rate is lower than the standard level, and the system will extend the predicted remaining usage time accordingly. This life correction method based on working conditions takes into account the impact of different workpiece types and processing procedures on tool wear, and can more accurately predict the actual remaining usage time of the tool, effectively avoiding premature replacement or overuse due to prediction deviations, and improving the accuracy and reliability of tool management. The remaining usage time obtained in this way is more practical reference value and can provide a reliable basis for formulating reasonable tool replacement strategies.

[0051] Step 104: Adjacent tools to be replaced whose estimated replacement time interval is less than a preset time length are combined into the same tool replacement batch to obtain multiple tool replacement batches.

[0052] Among them, the tool replacement batch in this application refers to a combination of tools that are expected to be replaced at a similar time and need to be replaced together.

[0053] Specifically, after calculating the estimated replacement time for each tool to be replaced, tools with similar estimated replacement times are grouped together in batches to improve tool replacement efficiency and reduce machine downtime. In implementation, the system first sorts the tools to be replaced by their estimated replacement time. It then calculates the time interval between the estimated replacement times of adjacent tools to be replaced. If the estimated replacement time interval between two adjacent tools is less than a preset time threshold (e.g., two hours), the two tools are grouped into the same replacement batch. The system iterates this grouping process, ultimately grouping all tools to be replaced into multiple replacement batches. By centrally replacing tools with similar replacement times, this batched replacement solution reduces the time lost due to repeated machine downtime, improves the efficiency of replacement operations, and facilitates the unified coordination and management of replacement tasks. More importantly, this solution minimizes the impact of tool changes on production continuity while ensuring machining quality, achieving an optimal match between tool changes and production cycle time.

[0054] Step 105: Determine the optimal replacement time point corresponding to each tool replacement batch based on the processing progress of the tools to be replaced in each tool replacement batch, and generate a tool replacement strategy for the target CNC machine tool based on each optimal replacement time point.

[0055] Among them, the processing progress in this application refers to the completion status of the workpiece currently being processed by the tool to be replaced. This indicator directly reflects the current processing task status of the tool and is an important reference for determining the optimal replacement time point.

[0056] In this application, the optimal replacement time point refers to the tool replacement time point that has the least impact on production while ensuring processing quality. The selection of this time point ensures that workpiece processing will not be interrupted and avoids quality risks caused by excessive tool wear.

[0057] In this application, a tool change strategy refers to a specific implementation plan for tool changes on a target CNC machine tool. This strategy includes the schedule for tool change batches, the order in which tools are changed within a batch, and the specific requirements for tool change operations. This strategy, by comprehensively considering production plans and tool status, enables scientific management of tool changes and serves as an action plan to guide actual tool change operations.

[0058] Specifically, after obtaining multiple tool change batches, to optimize the replacement schedule, the system first obtains the current machining progress of all tools to be replaced in each batch, including the completion percentage of the currently processed workpiece and the remaining machining time. Based on this machining progress information, the system calculates an optimal replacement time for each tool change batch. During the calculation process, the system first uses the completion time of the current workpiece of each tool to be replaced as the lower bound of the time constraint, and the corresponding time of the tool in the batch that first reaches the wear limit as the upper bound of the constraint. Within this time window, the time point with the least impact on the production cycle is selected as the optimal replacement time for the batch. The system then generates a complete tool change strategy based on the optimal replacement time for each batch, combining it with the machine tool's production plan, that includes the specific replacement time, replacement sequence, and replacement operation requirements. This machining progress-based optimization method not only ensures that tools can be replaced at the appropriate time, avoiding interruptions in workpiece processing, but also minimizes the impact of replacement operations on normal production by coordinating the replacement times for each batch, thereby improving production efficiency and the scientific nature of tool management.

[0059] Based on the above embodiment, as an optional embodiment, in step 105: combining the processing progress of the tools to be replaced in each tool replacement batch to determine the optimal replacement time point corresponding to each tool replacement batch, this step may also include the following steps: Step 401: Determine a machining progress distribution sequence of a target CNC machine tool based on the machining progress of the tools to be replaced in each tool replacement batch.

[0060] Specifically, the system first obtains the current processing progress information for all tools to be replaced in each tool replacement batch, including the completion percentage of each tool's current workpiece. For example, tool A in a batch currently has a workpiece completion percentage of 65%, tool B has a completion percentage of 70%, and tool C has a completion percentage of 68%. The system sorts this processing progress data by completion percentage to form a processing progress distribution sequence that reflects the overall processing status of the target CNC machine tool. This distribution sequence construction method can intuitively display the processing progress status of all tools to be replaced, providing a data foundation for subsequently determining the optimal replacement time.

[0061] Based on the above embodiment, as an optional embodiment, in step 401: determining the processing progress distribution sequence of the target CNC machine tool based on the processing progress of the tools to be replaced in each tool replacement batch, this step may also include the following steps: Step 411: For the tools to be replaced in each tool replacement batch, obtain the total number of workpieces currently being processed and the number of workpieces that have been processed.

[0062] Specifically, the system obtains the current machining task information for each tool to be replaced from the target CNC machine tool's production management system. This includes the total number of workpieces N that the tool is required to process (e.g., a tool is scheduled to process 100 workpieces) and the number of workpieces currently processed, n (e.g., 65 workpieces). This workpiece-count-based statistical method is intuitive and accurate, accurately reflecting the actual usage of each tool and providing a reliable data foundation for subsequent progress calculations.

[0063] Step 421: Calculate the workpiece processing completion rate of the tool to be replaced based on the total number of workpieces currently being processed and the number of workpieces that have been processed, and use the workpiece processing completion rate as the processing progress of the tool to be replaced.

[0064] Specifically, based on the acquired workpiece quantity information, the system calculates the ratio of completed workpieces to the total number of workpieces to determine the workpiece completion rate for each tool to be replaced. The specific calculation formula is: Workpiece completion rate R = n / N × 100%. For example, if a tool is required to process a total of 100 workpieces and has currently completed 65 workpieces, its workpiece completion rate is 65%. The system uses the calculated workpiece completion rate as the processing progress of the tool to be replaced. This calculation method accurately reflects the tool's level of completion in the current processing task.

[0065] Step 431: Divide the machining progress of each tool to be replaced into intervals to obtain multiple progress intervals; count the number of tools to be replaced in each progress interval, and generate a machining progress distribution sequence for the target CNC machine tool.

[0066] Specifically, the system first divides the processing progress of all tools to be replaced into intervals. For example, the progress range of 0-100% can be divided into 10 intervals, namely 0-10%, 10-20%...90-100%. Then the number of tools to be replaced in each progress interval is counted to obtain a sequence reflecting the distribution of tools. For example, there are 5 tools in the 60-70% interval, 3 tools in the 70-80% interval, and so on. This statistical method can intuitively display the progress distribution of tools to be replaced on the target CNC machine tool. The generated processing progress distribution sequence can help the system quickly identify the progress interval with the most concentrated tool distribution, providing an important basis for determining the optimal replacement time point. This method based on interval statistics can not only reflect the overall processing progress status, but also reflect the tool distribution characteristics of different progress intervals, which is helpful to formulate a more reasonable batch replacement strategy.

[0067] Step 402: Identify the processing progress interval with the largest distribution density in the processing progress distribution sequence; and determine the median of the processing progress interval as the target processing progress.

[0068] Specifically, the system analyzes the constructed processing progress distribution sequence and identifies the processing progress interval with the highest distribution density. In specific implementation, the system can use a sliding window method to count the number of tools within each processing progress interval and identify the interval with the most concentrated tool distribution. For example, if the number of tools in the processing progress interval of 65%-70% is the largest, then this interval is determined to be the processing progress interval with the highest distribution density. The system then calculates the median of this interval (such as 67.5%) as the target processing progress. This method selects the most representative processing progress as the reference benchmark for the replacement time point, which can meet the replacement needs of most tools to the greatest extent.

[0069] Step 403: Obtain the time point at which the tool to be replaced in each tool replacement batch reaches the target processing progress; for each tool replacement batch, determine the maximum value of the time point at which the tool to be replaced in the tool replacement batch reaches the target processing progress as the optimal replacement time point corresponding to the tool replacement batch.

[0070] Specifically, first, based on the current processing rate of each tool to be replaced, the time required for each tool to reach the target processing progress from the current progress is calculated. For example, if the current progress of a tool is 60%, the target processing progress is 67.5%, and the processing rate is 1% / minute, it will take 7.5 minutes to reach the target progress. For each tool replacement batch, the system calculates the time points when all tools in the batch reach the target processing progress, and selects the maximum value as the optimal replacement time point for the batch. This method ensures that all tools in the batch can complete the processing of the current workpiece to the target progress, avoiding interruption of workpiece processing due to premature replacement. At the same time, by selecting the maximum time value as the replacement time point, buffer time is reserved for possible processing delays, thereby improving the reliability of the replacement strategy.

[0071] Based on the above embodiment, as an optional embodiment, in step 105: generating a tool replacement strategy for a target CNC machine tool based on each optimal replacement time point, this step may further include the following steps: Step 404: Obtain the inventory quantity of each type of tool in the tool cabinet of the target CNC machine tool; for each tool replacement batch, determine the model and quantity of spare tools required for the tools to be replaced in the tool replacement batch.

[0072] Specifically, the system first uses the tool management system to obtain inventory information on the various types of tools currently in the tool cabinet of the target CNC machine tool. Simultaneously, based on the specific information about the tools to be replaced in each tool replacement batch, the system determines the model and quantity of spare tools required for each batch. For example, if a batch contains three type A tools and two type B tools requiring replacement, the system will record that three type A and two type B spare tools are required for this batch. This inventory verification mechanism promptly determines whether tool reserves are sufficient, ensuring material support for the smooth implementation of tool replacements.

[0073] Step 405: If the inventory quantity of the spare tool type in the tool cabinet is less than the quantity required for the tool to be replaced, the optimal replacement time point is postponed to a time point after the spare tool type is added to the tool cabinet.

[0074] Specifically, the system compares the number of spare tools required for each tool replacement batch with the inventory quantity of the corresponding model in the tool cabinet. When it is found that the number of spare tools required for a batch exceeds the current inventory, the system will appropriately postpone the optimal replacement time point for the batch based on the tool replenishment cycle. During specific implementation, the system obtains the estimated time when the tool replenishment is in place, and adjusts the optimal replacement time point to an appropriate time point after the replenishment is completed. For example, if a batch was originally scheduled to be replaced at 10 am, but the required model A tool is out of stock and needs to wait until replenishment at 2 pm, the system will postpone the optimal replacement time point for the batch to after 2 pm. This dynamic adjustment mechanism ensures that there are sufficient spare tools available for each tool replacement, avoiding interruptions to replacement plans due to insufficient inventory.

[0075] Step 406: Generate a tool replacement strategy including replacement time, replacement tool, and replacement quantity based on the updated optimal replacement time points, the model and quantity information of the tools to be replaced in each tool replacement batch.

[0076] Specifically, the system generates a complete tool replacement strategy based on the adjusted optimal replacement times for each batch, combined with the specific model and quantity of tools to be replaced in each batch. This strategy details the specific replacement time, model, and quantity of tools required for each batch. For example, the strategy would clearly state specific operational requirements such as "Replace three model A tools and two model B tools at 2:30 PM on May 16th." This detailed replacement strategy not only provides clear execution guidance for on-site operators but also facilitates planning, coordination, and progress control for production managers. This systematic strategy generation approach ensures the timeliness and feasibility of tool replacement while improving the standardization and efficiency of tool replacement operations, thereby enabling intelligent management of the tool replacement process.

[0077] Reference Figure 2 , is a tool control system for a CNC machine tool provided in an embodiment of the present application, the system comprising: a parameter acquisition module, a replacement time determination module, a replacement batch determination module, and a replacement strategy generation module, wherein: The parameter acquisition module is used to obtain the cutting parameters of multiple tools in the target CNC machine tool, including cutting force, temperature and cumulative processing time; The replacement time determination module is used to calculate the wear state value of each tool based on the cutting force, temperature, and accumulated processing time, and determine the tools with a wear state value greater than a preset threshold as the tools to be replaced; obtain the current remaining processing volume of the target CNC machine tool, and calculate the estimated replacement time of the tool to be replaced based on the wear state value and remaining processing volume of the tool to be replaced; A replacement batch determination module is used to group adjacent tools to be replaced whose estimated replacement time interval is less than a preset time into the same tool replacement batch, thereby obtaining multiple tool replacement batches; The replacement strategy generation module is used to determine the optimal replacement time point corresponding to each tool replacement batch based on the processing progress of the tools to be replaced in each tool replacement batch, and generate the tool replacement strategy of the target CNC machine tool based on each optimal replacement time point.

[0078] Based on the above embodiment, the replacement time determination module is also used to obtain the cutting force difference of the tool at two adjacent sampling moments and the temperature difference at two adjacent sampling moments for each tool; calculate the first change rate based on the cutting force difference, and calculate the second change rate based on the temperature difference; accumulate the number of times the first change rate and the second change rate exceed the change rate threshold to obtain an abnormality count; determine the wear status value of the tool based on the ratio of the abnormality count to the accumulated processing time.

[0079] Based on the above embodiment, the replacement time determination module is also used to obtain the initial wear value of the tool to be replaced, and calculate the wear state value and the wear state increment of the initial wear value; calculate the wear rate of the tool to be replaced within a preset time period based on the wear state increment; calculate the remaining usage time of the tool to be replaced based on the wear rate, and determine the estimated processing time based on the baseline processing rate and the remaining processing amount of the tool to be replaced; select the smaller value between the remaining usage time and the estimated processing time as the estimated replacement time of the tool to be replaced.

[0080] Based on the above embodiment, the replacement time determination module is also used to obtain the workpiece type and processing procedure of the tool to be replaced; based on the workpiece type and processing procedure, the corresponding standard wear rate is determined in the preset wear rate mapping table; the ratio of the wear rate to the standard wear rate is used as a correction coefficient; according to the wear rate, the initial remaining life time of the tool to be replaced is calculated until the wear status value reaches the preset wear limit; the initial remaining life time is corrected based on the correction coefficient to obtain the remaining usage time of the tool to be replaced.

[0081] On the basis of the above embodiments, the replacement strategy generation module is also used to determine the processing progress distribution sequence of the target CNC machine tool based on the processing progress of the tools to be replaced in each tool replacement batch; identify the processing progress interval with the largest distribution density in the processing progress distribution sequence; determine the median of the processing progress interval as the target processing progress; obtain the time point when the tools to be replaced in each tool replacement batch reach the target processing progress; for each tool replacement batch, determine the maximum value of the time points when the tools to be replaced in the tool replacement batch reach the target processing progress as the optimal replacement time point corresponding to the tool replacement batch.

[0082] On the basis of the above embodiment, the replacement strategy generation module is also used to obtain the total number of workpieces currently being processed and the number of workpieces that have been processed for the tools to be replaced in each tool replacement batch; calculate the workpiece processing completion rate of the tools to be replaced based on the total number of workpieces currently being processed and the number of workpieces that have been processed, and use the workpiece processing completion rate as the processing progress of the tools to be replaced; divide the processing progress of each tool to be replaced into intervals to obtain multiple progress intervals; count the number of tools to be replaced in each progress interval, and generate a processing progress distribution sequence for the target CNC machine tool.

[0083] On the basis of the above embodiment, the replacement strategy generation module is also used to obtain the inventory quantity of each type of tool in the tool cabinet of the target CNC machine tool; for each tool replacement batch, determine the model and quantity of spare tools required for the tools to be replaced in the tool replacement batch; if the inventory quantity of the spare tool model in the tool cabinet is less than the quantity required for the tools to be replaced, the optimal replacement time point is postponed to the time point after the spare tool model is added to the tool cabinet; based on the updated optimal replacement time points, the model and quantity information of the tools to be replaced in each tool replacement batch, generate a tool replacement strategy including replacement time, replacement tool and replacement quantity.

[0084] It should be noted that the above embodiments provide devices that implement their functions using only the division of the above functional modules as examples. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0085] This application also discloses an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0086] The communication bus 302 is used to implement the connection and communication between these components.

[0087] The user interface 303 may include a display interface and a camera interface. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0088] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0089] The processor 301 may include one or more processing cores. Using various interfaces and circuits, the processor 301 connects to various components within the server. It executes instructions, programs, code sets, or instruction sets stored in the memory 305, as well as accesses data stored in the memory 305, to perform various server functions and process data. Optionally, the processor 301 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 301 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface graphics, and application programs; the GPU is responsible for rendering and drawing content displayed on the display screen; and the modem handles wireless communications. It is understood that the modem may also be implemented as a separate chip, rather than integrated into the processor 301.

[0090] Among them, the memory 305 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also optionally be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 The memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for a tool control method for a CNC machine tool.

[0091] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program stored in the memory 305 for a tool control method of a CNC machine tool. When executed by one or more processors 301, the electronic device 300 executes one or more methods such as those in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited to the described order of actions, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.

[0092] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0093] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely schematic, such as the division of units, which is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interface, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0094] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0095] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0096] 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 memory. Based on this understanding, the technical solution of this application, or the portion 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 memory and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of this application. The aforementioned memory includes various media that can store program code, such as USB flash drives, mobile hard drives, magnetic disks, or optical disks.

[0097] The above are merely exemplary embodiments of the present disclosure and are not intended to limit the scope of the present disclosure. In other words, any equivalent variations and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the disclosure in this specification and practice.

[0098] This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not described in this disclosure. The description and examples are to be considered as illustrative only.

Claims

1. A tool control method for a CNC machine tool, characterized in that: include: Obtaining cutting parameters of multiple cutting tools in a target CNC machine tool, wherein the cutting parameters include cutting force, temperature, and cumulative machining time; Calculating a wear state value of each tool according to the cutting force, the temperature, and the accumulated machining time, and determining a tool having a wear state value greater than a preset threshold as a tool to be replaced; Obtaining the current remaining machining amount of the target CNC machine tool, and calculating an estimated replacement time of the tool to be replaced based on the wear state value of the tool to be replaced and the remaining machining amount; Combining adjacent tools to be replaced whose estimated replacement time interval is less than a preset time into the same tool replacement batch to obtain multiple tool replacement batches; Combined with the processing progress of the tools to be replaced in each tool replacement batch, the optimal replacement time point corresponding to each tool replacement batch is determined, and a tool replacement strategy for the target CNC machine tool is generated based on each optimal replacement time point.

2. The tool control method for a CNC machine tool according to claim 1, wherein: Calculating the wear state value of each tool according to the cutting force and the temperature includes: For each of the cutting tools, obtaining a cutting force difference value of the cutting tool at two adjacent sampling moments and a temperature difference value of the cutting tool at two adjacent sampling moments; Calculating a first change rate according to the cutting force difference, and calculating a second change rate according to the temperature difference; Accumulating the number of times the first change rate and the second change rate exceed a change rate threshold to obtain an abnormality count; A wear state value of the tool is determined based on a ratio of the abnormality count to the accumulated machining time.

3. The tool control method for a CNC machine tool according to claim 1, wherein: The calculating the estimated replacement time of the tool to be replaced according to the wear state value of the tool to be replaced and the remaining machining amount includes: Obtaining an initial wear value of the tool to be replaced, and calculating a wear state increment between the wear state value and the initial wear value; Calculating the wear rate of the tool to be replaced within a preset period of time according to the wear state increment; Calculating the remaining usage time of the tool to be replaced based on the wear rate, and determining the estimated machining time based on the baseline machining rate and the remaining machining volume of the tool to be replaced; The smaller value between the remaining usage time and the estimated processing time is selected as the estimated replacement time of the tool to be replaced.

4. The tool control method for a CNC machine tool according to claim 3, wherein: The calculating the remaining usage time of the tool to be replaced based on the wear rate includes: Obtaining the type and processing procedure of the workpiece to be processed by the tool to be replaced; Determining a corresponding standard wear rate in a preset wear rate mapping table based on the workpiece type and the machining process; using the ratio of the wear rate to the standard wear rate as a correction factor; Calculating the initial remaining life span of the tool to be replaced until the wear state value reaches a preset wear limit value based on the wear rate; The initial remaining life span is corrected based on the correction coefficient to obtain the remaining usage time of the tool to be replaced.

5. The tool control method for a CNC machine tool according to claim 1, wherein: Determining the optimal replacement time point corresponding to each tool replacement batch in combination with the processing progress of the tools to be replaced in each tool replacement batch includes: Determining a processing progress distribution sequence of the target CNC machine tool based on the processing progress of the tools to be replaced in each tool replacement batch; Identifying a processing progress interval with the largest distribution density in the processing progress distribution sequence; determining the median of the processing progress interval as the target processing progress; Obtaining the time point at which the tool to be replaced in each tool replacement batch reaches the target processing progress; For each tool replacement batch, the maximum value of the time points at which the tools to be replaced in the tool replacement batch reach the target processing progress is determined as the optimal replacement time point corresponding to the tool replacement batch.

6. The tool control method for a CNC machine tool according to claim 5, wherein: The step of determining the processing progress distribution sequence of the target CNC machine tool based on the processing progress of the tools to be replaced in each tool replacement batch includes: For each tool to be replaced in the tool replacement batch, the total number of workpieces currently being processed and the number of workpieces that have been processed are obtained; Calculating a workpiece processing completion rate of the tool to be replaced based on the total number of workpieces currently being processed and the number of workpieces that have been processed, and using the workpiece processing completion rate as the processing progress of the tool to be replaced; Dividing the processing progress of each tool to be replaced into intervals to obtain a plurality of progress intervals; The number of tools to be replaced in each progress interval is counted, and a processing progress distribution sequence of the target CNC machine tool is generated.

7. The tool control method for a CNC machine tool according to claim 1, wherein: Generating a tool replacement strategy for the target CNC machine tool based on each of the optimal replacement time points includes: Obtaining the inventory quantity of each type of tool in the tool cabinet of the target CNC machine tool; For each tool replacement batch, determining the model and quantity of spare tools required for the tools to be replaced in the tool replacement batch; If the inventory quantity of the tools of the spare tool model in the tool cabinet is less than the quantity required for the tools to be replaced, the optimal replacement time point is postponed to a time point after the tools of the spare tool model are replenished in the tool cabinet; According to the updated optimal replacement time points and the model and quantity information of the tools to be replaced in each tool replacement batch, a tool replacement strategy including the replacement time, replacement tool and replacement quantity is generated.

8. A tool control system for a CNC machine tool, characterized in that: The system comprises: A parameter acquisition module is used to obtain cutting parameters of multiple cutting tools in a target CNC machine tool, wherein the cutting parameters include cutting force, temperature, and accumulated processing time; a replacement time determination module, configured to calculate a wear state value of each of the tools based on the cutting force, the temperature, and the accumulated machining time, and determine a tool having a wear state value greater than a preset threshold as a tool to be replaced; obtain a current remaining machining volume of the target CNC machine tool, and calculate an estimated replacement time of the tool to be replaced based on the wear state value of the tool to be replaced and the remaining machining volume; A replacement batch determination module is used to group adjacent to-be-replaced tools whose estimated replacement time interval is less than a preset time into the same tool replacement batch, thereby obtaining multiple tool replacement batches; The replacement strategy generation module is used to determine the optimal replacement time point corresponding to each tool replacement batch based on the processing progress of the tools to be replaced in each tool replacement batch, and generate the tool replacement strategy of the target CNC machine tool based on each optimal replacement time point.

9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the tool control method for a CNC machine tool as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the tool control method for a CNC machine tool according to any one of claims 1 to 7 is executed.