Intelligent control method and system for precision numerical control machine tool
通过构建三维坐标系和实时监测加工轨迹偏差,调整加工参数和动态补偿误差,解决了现有技术中加工精度不足的问题,实现了机床在不同条件下的高精度加工。
Patent Information
- Application Number
- CN202411368066.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-02-14
AI Technical Summary
The prior art lacks optimization of processing accuracy, insufficient control accuracy, and untimely update of compensation amounts, resulting in low accuracy confirmation.
By constructing a three-dimensional coordinate system, the deviation between the actual processing trajectory and the ideal processing trajectory is monitored in real time, the processing parameters are adjusted to reduce errors, and the errors are dynamically compensated, so that the machine tool maintains high accuracy under different workpieces or conditions.
It significantly improves processing accuracy, dynamically adjusts processing parameters, and compensates according to actual errors to ensure that the machine tool maintains high accuracy under different conditions, optimizes processing parameters, reduces errors, and adapts to diversified production needs.
Smart Images

Figure CN119439877A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent control, and in particular to an intelligent control method and system for a precision numerically controlled machine tool. Background Art
[0002] In recent years, modern CNC machine tools have increasingly integrated machine learning algorithms and data analysis technologies, which can optimize processing parameters and improve processing accuracy, and adjust processing parameters in real time to cope with changes in material properties and fluctuations in environmental conditions, thereby improving processing quality and efficiency to meet the modern manufacturing industry's needs for precision, efficiency and flexibility.
[0003] At present, a Chinese invention patent with publication number CN 114995291 B discloses a CNC machine tool control system, which uses a control terminal to issue an execution command, inputs a system machine tool processing part specification parameter value through an input module, obtains the processing part specification parameter value obtained by running the input module through a verification module, builds a processing part three-dimensional model with reference to the processing part specification parameter value, obtains the processing part three-dimensional model through a design module, and designs a machine tool running program command with reference to the processing part three-dimensional model. However, the related technology does not optimize the processing accuracy, lacks control accuracy, does not update the compensation amount, and lacks accuracy confirmation. Summary of the invention
[0004] The technical problem solved by the present invention is that the related art does not optimize the processing accuracy, lacks control precision, does not update the compensation amount, and lacks accuracy confirmation.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: In the first aspect, an intelligent control method for a precision CNC machine tool comprises the following steps:
[0006] Step S100, constructing a three-dimensional coordinate system, setting the first time period as the processing cycle, predetermining an ideal processing trajectory of the midpoint of the object to be measured within the processing cycle, marking key time points within the processing cycle, obtaining coordinates of key time points corresponding to the ideal processing trajectory according to the first finished product model, recording them as first coordinates, operating the machine tool, monitoring the coordinates of the position of the midpoint of the object to be measured within the processing cycle, connecting the coordinates of the position of the midpoint of the object to be measured, obtaining the actual processing trajectory, obtaining the coordinates of the key time points corresponding to the actual processing trajectory, recording them as second coordinates;
[0007] Step S200, calculating the distance between the first coordinate and the corresponding second coordinate, recording the distance as a first error distance, obtaining an actual processing parameter corresponding to the first error distance, setting one of the actual processing parameters as a variable, setting the remaining actual processing parameters as a quantitative, setting a first value as a compensation amount base, setting a compensation amount according to the compensation amount base, regulating each variable according to the compensation amount, obtaining a first parameter, and calculating a second error distance after regulation;
[0008] Step S300, traversing the second error distances after adjustment, sorting the second error distances after adjustment in ascending order, selecting the second error distance after adjustment with the smallest value, obtaining the compensation amount corresponding to the second error distance after adjustment with the smallest value, and calculating the average of the compensation amounts corresponding to the variables, which is recorded as the average compensation amount;
[0009] Step S400, obtain the second finished product model, match the ideal processing parameters corresponding to the second finished product model, perform weighted calculation on the ideal processing parameters corresponding to the second finished product model and the average compensation amount to obtain the second parameter, operate the machine tool, and test the error distance corresponding to the second parameter.
[0010] As a preferred solution of the intelligent control method of a precision CNC machine tool described in the present invention, step S100 includes the following sub-steps:
[0011] Step S101, constructing a three-dimensional coordinate system, with the center of the machine tool as the origin, the direction of the horizontal line as the x-axis, the direction in the same horizontal plane as the horizontal line and perpendicular to the horizontal line as the y-axis, and the direction perpendicular to the horizontal plane where the horizontal line is located as the z-axis, and the center of the machine tool is represented as the geometric center point of the machine tool;
[0012] Step S102, setting the first time period as a processing cycle, dividing the processing cycle into sub-time periods, the length of the sub-time period being the second time period, defining the end of each sub-time period as a key time point, calling a finished product database, the finished product database including finished product models, finished product processing trajectories and ideal processing parameters, the finished product processing trajectories being obtained by simulation software and stored in the finished product database corresponding to the finished product models, inputting a first finished product model into the finished product database, obtaining a finished product processing trajectory corresponding to the finished product model, intercepting a portion of the first time period in the finished product processing trajectory corresponding to the finished product model, setting it as an ideal processing trajectory, and representing it as a path of the midpoint of the object to be measured moving within the processing cycle;
[0013] Step S103, obtain the coordinates of the key time point corresponding to the ideal processing trajectory, record it as the first coordinate, run the machine tool, monitor the coordinates of the midpoint of the object to be measured during the processing cycle, connect the coordinates of the midpoint of the object to be measured to obtain the actual processing trajectory, and obtain the coordinates of the key time point corresponding to the actual processing trajectory, record it as the second coordinate.
[0014] As a preferred solution of the intelligent control method of a precision CNC machine tool described in the present invention, the construction logic of the actual processing trajectory includes:
[0015] The coordinates of the midpoint of the object to be measured are continuously acquired through various position sensors, the midpoint of the object to be measured is represented as the geometric midpoint of the object to be measured, and the coordinates of the midpoint of the object to be measured are connected by the point drawing method to obtain the actual processing trajectory.
[0016] As a preferred solution of the intelligent control method of a precision CNC machine tool described in the present invention, step S200 includes the following sub-steps:
[0017] Step S201, calculating the distance between the first coordinate and the corresponding second coordinate, and recording the distance as a first error distance;
[0018] Step S202, obtaining actual processing parameters corresponding to the first error distance, wherein the actual processing parameters include cutting speed, feed speed and cutting depth;
[0019] Step S203, setting one of the actual processing parameters as a variable, the variable including a cutting speed variable, a feed speed variable or a cutting depth variable, setting the remaining actual processing parameters as a quantitative value, setting the first value as a compensation amount base, and the calculation logic of the compensation amount base includes:
[0020] Matching the ideal processing parameters corresponding to the first finished product model, calculating the difference between the ideal processing parameters and the actual processing parameters, dividing the difference between the ideal processing parameters and the actual processing parameters corresponding to the first finished product model into Q sub-values, and setting a single sub-value as a compensation amount base;
[0021] Step S203, the compensation amount base and the multiple of the compensation amount base are used as the increment or decrease of the actual processing parameter, each variable is adjusted according to the compensation amount to obtain the first parameter, step S103 is repeated, and the second error distance after adjustment is calculated.
[0022] As a preferred solution of the intelligent control method of a precision CNC machine tool described in the present invention, the calculation expression of the error distance is:
[0023]
[0024] Among them, D m is the first error distance or the second error distance of the mth key point, A m1 , B m1 and C m1 are the x-axis coordinate, y-axis coordinate and z-axis coordinate of the mth key point in the ideal machining trajectory, A m2 , B m2 and C m2 are the x-axis coordinate, y-axis coordinate and z-axis coordinate of the mth key point in the actual processing trajectory.
[0025] As a preferred solution of the intelligent control method of a precision CNC machine tool described in the present invention, step S300 includes the following sub-steps:
[0026] Step S301, traversing the adjusted second error distances, and sorting the adjusted second error distances in ascending order;
[0027] Step S302, select the second error distance after adjustment with the smallest value, obtain the compensation amount corresponding to the second error distance after adjustment with the smallest value, calculate the average of the compensation amounts corresponding to each variable, and record it as the average compensation amount. The compensation amount corresponding to each variable includes the cutting speed compensation amount, the feed speed compensation amount or the cutting depth compensation amount.
[0028] As a preferred solution of the intelligent control method of a precision CNC machine tool described in the present invention, step S400 includes the following sub-steps:
[0029] Step S401, obtaining a second finished product model, calling a finished product database, inputting the second finished product model into the finished product database, matching an ideal processing parameter corresponding to the second finished product model, performing weighted calculation on the ideal processing parameter corresponding to the second finished product model and an average compensation amount to obtain a second parameter;
[0030] Step S402, set the second value as the upper limit of the error distance, run the machine tool, calculate the error distance corresponding to the second parameter, compare the error distance corresponding to the second parameter with the second value, and when the error distance corresponding to the second parameter is less than or equal to the second value, stop the calculation iteration, otherwise loop step S200 to step S300, wherein the difference between the ideal processing parameter and the actual processing parameter corresponding to the first finished product model is divided into Q+1 sub-values.
[0031] In a second aspect, an intelligent control system for a precision CNC machine tool includes a construction module, an analysis module, and a test module;
[0032] The construction module constructs a three-dimensional coordinate system, sets the first time period as a processing cycle, predetermines an ideal processing trajectory of the midpoint of the object to be measured within the processing cycle, marks key time points within the processing cycle, obtains coordinates of key time points corresponding to the ideal processing trajectory according to the first finished product model, records them as first coordinates, runs the machine tool, monitors the coordinates of the position of the midpoint of the object to be measured within the processing cycle, connects the coordinates of the position of the midpoint of the object to be measured, obtains the actual processing trajectory, obtains the coordinates of the key time points corresponding to the actual processing trajectory, records them as second coordinates;
[0033] The analysis module calculates the distance between the first coordinate and the corresponding second coordinate, records the distance as the first error distance, obtains the actual processing parameter corresponding to the first error distance, sets one of the actual processing parameters as a variable, sets the remaining actual processing parameters as a quantitative, sets the first value as a compensation amount base, sets the compensation amount according to the compensation amount base, regulates each variable according to the compensation amount, obtains the first parameter, and calculates the regulated second error distance, traverses the regulated second error distances, sorts the regulated second error distances in ascending order, selects the regulated second error distance with the smallest value, obtains the compensation amount corresponding to the regulated second error distance with the smallest value, calculates the average of the compensation amounts corresponding to each variable, and records it as the average compensation amount;
[0034] The test module obtains a second finished product model, matches the ideal processing parameters corresponding to the second finished product model, performs weighted calculation on the ideal processing parameters corresponding to the second finished product model and the average compensation amount to obtain a second parameter, runs the machine tool, and tests the error distance corresponding to the second parameter.
[0035] In a third aspect, the present invention provides an electronic device comprising a memory, a processor and storage in the memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in any one of the methods described above are executed.
[0036] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps in any one of the methods described above are executed.
[0037] The beneficial effects of the present invention are as follows: by real-time monitoring of the deviation between the actual processing trajectory and the ideal processing trajectory, adjusting the processing parameters to reduce the error, the processing accuracy can be significantly improved, the processing parameters can be dynamically adjusted, and compensation can be performed according to the actual processing error, so that the machine tool can maintain high precision under different workpieces or different processing conditions. By calculating and sorting the error distance, the optimal compensation amount is selected, the processing parameters are effectively optimized, the processing error is reduced, and the processing parameters are adjusted according to different finished product models to meet diversified production needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A basic flow chart of an intelligent control method for a precision CNC machine tool provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings. It is obvious that the described embodiments are only part of the embodiments of the present invention, but not all of the embodiments.
[0040] Example 1, reference Figure 1 , as an embodiment of the present invention, provides an intelligent control method for a precision CNC machine tool, comprising the following steps:
[0041] Step S100, constructing a three-dimensional coordinate system, setting the first time period as the processing cycle, predetermining an ideal processing trajectory of the midpoint of the object to be measured within the processing cycle, marking key time points within the processing cycle, obtaining coordinates of key time points corresponding to the ideal processing trajectory according to the first finished product model, recording them as first coordinates, operating the machine tool, monitoring the coordinates of the position of the midpoint of the object to be measured within the processing cycle, connecting the coordinates of the position of the midpoint of the object to be measured, obtaining the actual processing trajectory, obtaining the coordinates of the key time points corresponding to the actual processing trajectory, recording them as second coordinates;
[0042] Step S200, calculating the distance between the first coordinate and the corresponding second coordinate, recording the distance as a first error distance, obtaining an actual processing parameter corresponding to the first error distance, setting one of the actual processing parameters as a variable, setting the remaining actual processing parameters as a quantitative, setting a first value as a compensation amount base, setting a compensation amount according to the compensation amount base, regulating each variable according to the compensation amount, obtaining a first parameter, and calculating a second error distance after regulation;
[0043] Step S300, traversing the second error distances after adjustment, sorting the second error distances after adjustment in ascending order, selecting the second error distance after adjustment with the smallest value, obtaining the compensation amount corresponding to the second error distance after adjustment with the smallest value, and calculating the average of the compensation amounts corresponding to the variables, which is recorded as the average compensation amount;
[0044] Step S400, obtain the second finished product model, match the ideal processing parameters corresponding to the second finished product model, perform weighted calculation on the ideal processing parameters corresponding to the second finished product model and the average compensation amount to obtain the second parameter, operate the machine tool, and test the error distance corresponding to the second parameter.
[0045] The present invention can significantly improve machining accuracy by real-time monitoring of the deviation between the actual machining trajectory and the ideal machining trajectory and adjusting the machining parameters to reduce the error. The machining parameters are dynamically adjusted to compensate according to the actual machining error, so that the machine tool can maintain high precision under different workpieces or different machining conditions. The optimal compensation amount is selected by calculating and sorting the error distance, effectively optimizing the machining parameters and reducing the machining error. The machining parameters are adjusted according to different finished product models to meet diversified production needs.
[0046] The step S100 includes the following sub-steps:
[0047] Step S101, constructing a three-dimensional coordinate system, with the center of the machine tool as the origin, the direction of the horizontal line as the x-axis, the direction in the same horizontal plane as the horizontal line and perpendicular to the horizontal line as the y-axis, and the direction perpendicular to the horizontal plane where the horizontal line is located as the z-axis, and the center of the machine tool is represented as the geometric center point of the machine tool;
[0048] Step S102, setting the first time period as a processing cycle, dividing the processing cycle into sub-time periods, the length of the sub-time period being the second time period, defining the end of each sub-time period as a key time point, calling a finished product database, the finished product database including finished product models, finished product processing trajectories and ideal processing parameters, the finished product processing trajectories being obtained by simulation software and stored in the finished product database corresponding to the finished product models, inputting a first finished product model into the finished product database, obtaining a finished product processing trajectory corresponding to the finished product model, intercepting a portion of the first time period in the finished product processing trajectory corresponding to the finished product model, setting it as an ideal processing trajectory, and representing it as a path of the midpoint of the object to be measured moving within the processing cycle;
[0049] Step S103, obtain the coordinates of the key time point corresponding to the ideal processing trajectory, record it as the first coordinate, run the machine tool, monitor the coordinates of the midpoint of the object to be measured during the processing cycle, connect the coordinates of the midpoint of the object to be measured to obtain the actual processing trajectory, and obtain the coordinates of the key time point corresponding to the actual processing trajectory, record it as the second coordinate.
[0050] The construction logic of the actual processing trajectory includes:
[0051] The coordinates of the midpoint of the object to be measured are continuously acquired through various position sensors, the midpoint of the object to be measured is represented as the geometric midpoint of the object to be measured, and the coordinates of the midpoint of the object to be measured are connected by the point drawing method to obtain the actual processing trajectory.
[0052] In specific implementation, by defining the center of the machine tool as the coordinate origin and clearly specifying the directions of the x-axis, y-axis, and z-axis, it is ensured that all movements and measurements during the processing are based on a unified reference system, thereby reducing the errors caused by different coordinate system definitions, dividing the processing cycle into multiple sub-time periods and defining key time points, which helps to track each step of the processing process in detail, thereby more accurately controlling and optimizing the processing trajectory.
[0053] The step S200 includes the following sub-steps:
[0054] Step S201, calculating the distance between the first coordinate and the corresponding second coordinate, and recording the distance as a first error distance;
[0055] Step S202, obtaining actual processing parameters corresponding to the first error distance, wherein the actual processing parameters include cutting speed, feed speed and cutting depth;
[0056] Step S203, setting one of the actual processing parameters as a variable, the variable including a cutting speed variable, a feed speed variable or a cutting depth variable, setting the remaining actual processing parameters as a quantitative value, setting the first value as a compensation amount base, and the calculation logic of the compensation amount base includes:
[0057] Matching the ideal processing parameters corresponding to the first finished product model, calculating the difference between the ideal processing parameters and the actual processing parameters, dividing the difference between the ideal processing parameters and the actual processing parameters corresponding to the first finished product model into Q sub-values, and setting a single sub-value as a compensation amount base;
[0058] Step S203, the compensation amount base and the multiple of the compensation amount base are used as the increment or decrease of the actual processing parameter, each variable is adjusted according to the compensation amount to obtain the first parameter, step S103 is repeated, and the second error distance after adjustment is calculated.
[0059] The calculation expression of the error distance is:
[0060]
[0061] Among them, D m is the first error distance or the second error distance of the mth key point, A m1 , B m1 and C m1 are the x-axis coordinate, y-axis coordinate and z-axis coordinate of the mth key point in the ideal machining trajectory, A m2 , B m2 and C m2 are the x-axis coordinate, y-axis coordinate and z-axis coordinate of the mth key point in the actual processing trajectory.
[0062] In a specific implementation, the distance between the first coordinate and the second coordinate is calculated, which provides an accurate deviation between the actual processing and the ideal processing, and helps to identify the specific error range. One of the actual processing parameters is set as a variable and adjusted to compensate for the error. This allows for flexible response to different processing conditions and error sources. The difference between the actual processing parameters and the ideal parameters is calculated and divided into sub-values to form a compensation base, so that the calculation of the compensation has a scientific basis and improves the accuracy of the compensation. The processing parameters are optimized by adjusting the variable parameters and calculating the second error distance after adjustment, so that the actual processing trajectory is closer to the ideal trajectory and the processing accuracy is improved.
[0063] The step S300 includes the following sub-steps:
[0064] Step S301, traversing the adjusted second error distances, and sorting the adjusted second error distances in ascending order;
[0065] Step S302, select the second error distance after adjustment with the smallest value, obtain the compensation amount corresponding to the second error distance after adjustment with the smallest value, calculate the average of the compensation amounts corresponding to each variable, and record it as the average compensation amount. The compensation amount corresponding to each variable includes the cutting speed compensation amount, the feed speed compensation amount or the cutting depth compensation amount.
[0066] In specific implementation, by sorting the second error distances after adjustment in ascending order, the situation with the smallest error is systematically found, so as to select the optimal compensation amount to ensure the maximization of machining accuracy. Selecting the compensation amount with the smallest error as a reference can ensure that the selected compensation amount is the most effective for correcting the actual machining error, thereby improving the accuracy of compensation. Calculating the average of the compensation amounts of various variables can comprehensively consider the influence of various machining parameters, improve the overall effectiveness and balance of the compensation measures, and thus optimize the entire machining process.
[0067] The step S400 includes the following sub-steps:
[0068] Step S401, obtaining a second finished product model, calling a finished product database, inputting the second finished product model into the finished product database, matching an ideal processing parameter corresponding to the second finished product model, performing weighted calculation on the ideal processing parameter corresponding to the second finished product model and an average compensation amount to obtain a second parameter;
[0069] Step S402, set the second value as the upper limit of the error distance, run the machine tool, calculate the error distance corresponding to the second parameter, compare the error distance corresponding to the second parameter with the second value, and when the error distance corresponding to the second parameter is less than or equal to the second value, stop the calculation iteration, otherwise loop step S200 to step S300, wherein the difference between the ideal processing parameter and the actual processing parameter corresponding to the first finished product model is divided into Q+1 sub-values.
[0070] In the specific implementation, the ideal processing parameters and the average compensation amount are weightedly calculated to obtain the second parameter, so that the parameter adjustment is more in line with the actual processing needs and the processing quality is improved. The upper limit value of the error distance is set and compared with the actual error distance to ensure that the processing result meets the preset accuracy standard. When the error distance does not meet the standard, the parameters are adjusted in a loop for further optimization, which enhances the adaptability and accuracy of the processing process. When the error distance exceeds the set value, steps S200 to S300 are looped to optimize the processing parameters through continuous iteration and gradually reduce the error to achieve higher processing accuracy, thereby ensuring continuous improvement and precise control of the processing process. By dividing the error calculation into Q+1 sub-values and dividing the compensation range more finely, the compensation measures can be made more precise and flexible to adapt to different processing conditions and needs.
[0071] The present invention can significantly improve machining accuracy by real-time monitoring of the deviation between the actual machining trajectory and the ideal machining trajectory and adjusting the machining parameters to reduce the error. The machining parameters are dynamically adjusted to compensate according to the actual machining error, so that the machine tool can maintain high precision under different workpieces or different machining conditions. The optimal compensation amount is selected by calculating and sorting the error distance, effectively optimizing the machining parameters and reducing the machining error. The machining parameters are adjusted according to different finished product models to meet diversified production needs.
[0072] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Wherein, the storage medium is implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0073] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions of the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention should be included in the scope of the claims of the present invention.
Claims
1. An intelligent control method for a precision CNC machine tool, characterized in that: The following steps are involved: Step S100, constructing a three-dimensional coordinate system, setting the first time period as the processing cycle, predetermining an ideal processing trajectory of the midpoint of the object to be measured within the processing cycle, marking key time points within the processing cycle, obtaining coordinates of key time points corresponding to the ideal processing trajectory according to the first finished product model, recording them as first coordinates, operating the machine tool, monitoring the coordinates of the position of the midpoint of the object to be measured within the processing cycle, connecting the coordinates of the position of the midpoint of the object to be measured, obtaining the actual processing trajectory, obtaining the coordinates of the key time points corresponding to the actual processing trajectory, recording them as second coordinates; Step S200, calculating the distance between the first coordinate and the corresponding second coordinate, recording the distance as a first error distance, obtaining an actual processing parameter corresponding to the first error distance, setting one of the actual processing parameters as a variable, setting the remaining actual processing parameters as a quantitative, setting a first value as a compensation amount base, setting a compensation amount according to the compensation amount base, regulating each variable according to the compensation amount, obtaining a first parameter, and calculating a second error distance after regulation; Step S300, traversing the second error distances after adjustment, sorting the second error distances after adjustment in ascending order, selecting the second error distance after adjustment with the smallest value, obtaining the compensation amount corresponding to the second error distance after adjustment with the smallest value, and calculating the average of the compensation amounts corresponding to the variables, which is recorded as the average compensation amount; Step S400, obtain the second finished product model, match the ideal processing parameters corresponding to the second finished product model, perform weighted calculation on the ideal processing parameters corresponding to the second finished product model and the average compensation amount to obtain the second parameter, operate the machine tool, and test the error distance corresponding to the second parameter.
2. The intelligent control method for a precision CNC machine tool according to claim 1, characterized in that: The step S100 includes the following sub-steps: Step S101, constructing a three-dimensional coordinate system, with the center of the machine tool as the origin, the direction of the horizontal line as the x-axis, the direction in the same horizontal plane as the horizontal line and perpendicular to the horizontal line as the y-axis, and the direction perpendicular to the horizontal plane where the horizontal line is located as the z-axis, and the center of the machine tool is represented as the geometric center point of the machine tool; Step S102, setting the first time period as a processing cycle, dividing the processing cycle into sub-time periods, the length of the sub-time period being the second time period, defining the end of each sub-time period as a key time point, calling a finished product database, the finished product database including finished product models, finished product processing trajectories and ideal processing parameters, the finished product processing trajectories being obtained by simulation software and stored in the finished product database corresponding to the finished product models, inputting a first finished product model into the finished product database, obtaining a finished product processing trajectory corresponding to the finished product model, intercepting a portion of the first time period in the finished product processing trajectory corresponding to the finished product model, setting it as an ideal processing trajectory, and representing it as a path of the midpoint of the object to be measured moving within the processing cycle; Step S103, obtain the coordinates of the key time point corresponding to the ideal processing trajectory, record it as the first coordinate, run the machine tool, monitor the coordinates of the midpoint of the object to be measured during the processing cycle, connect the coordinates of the midpoint of the object to be measured to obtain the actual processing trajectory, and obtain the coordinates of the key time point corresponding to the actual processing trajectory, record it as the second coordinate.
3. The intelligent control method for a precision CNC machine tool according to claim 2, characterized in that: The construction logic of the actual processing trajectory includes: The coordinates of the midpoint of the object to be measured are continuously acquired through various position sensors, the midpoint of the object to be measured is represented as the geometric midpoint of the object to be measured, and the coordinates of the midpoint of the object to be measured are connected by the point drawing method to obtain the actual processing trajectory.
4. The intelligent control method for a precision CNC machine tool according to claim 1, characterized in that: The step S200 includes the following sub-steps: Step S201, calculating the distance between the first coordinate and the corresponding second coordinate, and recording the distance as a first error distance; Step S202, obtaining actual processing parameters corresponding to the first error distance, wherein the actual processing parameters include cutting speed, feed speed and cutting depth; Step S203, setting one of the actual processing parameters as a variable, the variable including a cutting speed variable, a feed speed variable or a cutting depth variable, setting the remaining actual processing parameters as a quantitative value, setting the first value as a compensation amount base, and the calculation logic of the compensation amount base includes: Matching the ideal processing parameters corresponding to the first finished product model, calculating the difference between the ideal processing parameters and the actual processing parameters, dividing the difference between the ideal processing parameters and the actual processing parameters corresponding to the first finished product model into Q sub-values, and setting a single sub-value as a compensation amount base; Step S203, the compensation amount base and the multiple of the compensation amount base are used as the increment or decrease of the actual processing parameter, each variable is adjusted according to the compensation amount to obtain the first parameter, step S103 is repeated, and the second error distance after adjustment is calculated.
5. The intelligent control method for a precision CNC machine tool according to claim 4, characterized in that: The calculation expression of the error distance is: Among them, D m is the first error distance or the second error distance of the mth key point, A m1 , B m1 and C m1 are the x-axis coordinate, y-axis coordinate and z-axis coordinate of the mth key point in the ideal machining trajectory, A m2 , B m2 and C m2 are the x-axis coordinate, y-axis coordinate and z-axis coordinate of the mth key point in the actual processing trajectory.
6. The intelligent control method for a precision CNC machine tool according to claim 1, characterized in that: The step S300 includes the following sub-steps: Step S301, traversing the adjusted second error distances, and sorting the adjusted second error distances in ascending order; Step S302, select the second error distance after adjustment with the smallest value, obtain the compensation amount corresponding to the second error distance after adjustment with the smallest value, calculate the average of the compensation amounts corresponding to each variable, and record it as the average compensation amount. The compensation amount corresponding to each variable includes the cutting speed compensation amount, the feed speed compensation amount or the cutting depth compensation amount.
7. The intelligent control method for a precision CNC machine tool according to claim 1, characterized in that: The step S400 includes the following sub-steps: Step S401, obtaining a second finished product model, calling a finished product database, inputting the second finished product model into the finished product database, matching an ideal processing parameter corresponding to the second finished product model, performing weighted calculation on the ideal processing parameter corresponding to the second finished product model and an average compensation amount to obtain a second parameter; Step S402, set the second value as the upper limit of the error distance, run the machine tool, calculate the error distance corresponding to the second parameter, compare the error distance corresponding to the second parameter with the second value, and when the error distance corresponding to the second parameter is less than or equal to the second value, stop the calculation iteration, otherwise loop step S200 to step S300, wherein the difference between the ideal processing parameter and the actual processing parameter corresponding to the first finished product model is divided into Q+1 sub-values.
8. An intelligent control system for a precision CNC machine tool, characterized in that: Includes construction module, analysis module and testing module; The construction module constructs a three-dimensional coordinate system, sets the first time period as a processing cycle, predetermines an ideal processing trajectory of the midpoint of the object to be measured within the processing cycle, marks key time points within the processing cycle, obtains coordinates of key time points corresponding to the ideal processing trajectory according to the first finished product model, records them as first coordinates, runs the machine tool, monitors the coordinates of the position of the midpoint of the object to be measured within the processing cycle, connects the coordinates of the position of the midpoint of the object to be measured, obtains the actual processing trajectory, obtains the coordinates of the key time points corresponding to the actual processing trajectory, records them as second coordinates; The analysis module calculates the distance between the first coordinate and the corresponding second coordinate, records the distance as the first error distance, obtains the actual processing parameter corresponding to the first error distance, sets one of the actual processing parameters as a variable, sets the remaining actual processing parameters as a quantitative, sets the first value as a compensation amount base, sets the compensation amount according to the compensation amount base, regulates each variable according to the compensation amount, obtains the first parameter, and calculates the regulated second error distance, traverses the regulated second error distances, sorts the regulated second error distances in ascending order, selects the regulated second error distance with the smallest value, obtains the compensation amount corresponding to the regulated second error distance with the smallest value, calculates the average of the compensation amounts corresponding to each variable, and records it as the average compensation amount; The test module obtains a second finished product model, matches the ideal processing parameters corresponding to the second finished product model, performs weighted calculation on the ideal processing parameters corresponding to the second finished product model and the average compensation amount to obtain a second parameter, runs the machine tool, and tests the error distance corresponding to the second parameter.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the intelligent control method for a precision CNC machine tool described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the intelligent control method for a precision CNC machine tool according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A CNC machine tool control system
CN114995291B
Self-learning error correction system and method for numerically-controlled machine tool
CN106527347A
Multi-axis system contour error estimation and iterative control method based on Newton method
CN107748540A
Error compensation method based on adaptive iterative learning and numerical control system
CN110989495A
Control method for nonlinear error between five-axis machining tool nose point and tool axis direction
CN111913438A
Cited By
Micro-vibration platform damping control method and system
CN120742993A