Z-axis adjusting method, device and equipment during machining, storage medium and product

Through the CAM embedded trial cutting program and dynamic Z-axis adjustment method, the problem of low efficiency of tool Z-axis adjustment in CNC machining is solved, efficient and accurate Z-axis compensation is achieved, and machining consistency and accuracy are improved.

CN120606289AActive Publication Date: 2025-09-09GOERTEK INC
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202511113816.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-11
Publication Date
2025-09-09
Estimated Expiration
2045-08-11

AI Technical Summary

Technical Problem

In CNC machining, the adjustment efficiency of the tool Z-axis is low, mainly due to reliance on workers' experience in programming and inconsistent adjustment standards, which leads to repeated trial cutting and debugging.

Method used

The CAM-embedded trial cutting program is used to determine the ideal Z-axis compensation based on the current machine status data. By dynamically adjusting the tool Z-axis, combined with real-time data and predicted trajectory optimization, precise adjustment of the Z-axis is achieved.

Benefits of technology

Improves the efficiency and accuracy of Z-axis adjustment, reduces manual intervention, ensures processing consistency and accuracy, and avoids repeated debugging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120606289A_ABST
    Figure CN120606289A_ABST
Patent Text Reader

Abstract

The invention discloses a Z-axis adjusting method and device during machining, equipment, a storage medium and a product, and relates to the technical field of CNC machining, the method is applied to a machine tool, and the method comprises the steps that when a trial cutting point of a to-be-machined workpiece is machined, trial cutting is conducted on the to-be-machined workpiece based on a trial cutting program embedded in a CAM, and the actually-measured actual trial cutting height value of the machine tool is obtained; and based on the ideal Z-axis compensation amount and the actual trial cutting height value, the Z-axis of the cutter used during trial cutting of the to-be-machined workpiece is dynamically adjusted, and the ideal Z-axis compensation amount is determined by the CAM according to the current state data of the machine tool. Namely, the trial cutting program embedded by the CAM is utilized, repeated adjustment on the trial cutting program is avoided, the Z-axis is dynamically adjusted according to the rational Z-axis compensation amount and the actual trial cutting height, and the Z-axis compensation amount can better meet the actual situation, so that the machining error is reduced, the machining error is prevented from exceeding the allowable error range, and the machining precision is improved. The optimization efficiency of the trial cutting program is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of CNC machining technology, and in particular to a method, device, equipment, storage medium and product for adjusting the Z-axis during machining. Background Art

[0002] CNC (Computer Numerical Control) machining is an automated machining method that uses computer programs to control machine tool motion and machining operations, thereby achieving high-precision machining of various materials.

[0003] In CNC machining, to verify the feasibility of the machining program and ensure machining accuracy, a trial cut is performed on the workpiece before formal machining to ensure accuracy during formal machining. Currently, the programming and optimization of trial cut programs often rely on the worker's experience. Since there is no set standard for worker experience, trial cut programs programmed by different workers may require different adjustments to the Z-axis of the machine tool. When workers adjust the Z-axis of the tool, they usually adjust it based on their own experience. In other words, different workers have different adjustment standards, and repeated trial cuts and adjustments are required, resulting in inefficient Z-axis adjustment of the tool.

[0004] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention

[0005] The main purpose of this application is to provide a method, device, equipment, storage medium and product for adjusting the Z axis during machining, aiming to solve the technical problem of low efficiency in adjusting the Z axis of the tool.

[0006] To achieve the above objectives, the present application proposes a method for adjusting the Z-axis during machining, which is applied to a machine tool. The method comprises: When the workpiece to be processed reaches the trial cutting point, the workpiece to be processed is trial cut based on the trial cutting program embedded in the CAM to obtain the actual trial cutting height value measured by the machine tool; Based on the ideal Z-axis compensation amount and the actual trial cutting height value, the Z-axis of the tool used in the trial cutting of the workpiece to be processed is dynamically adjusted. The ideal Z-axis compensation amount is determined by CAM according to the current status data of the machine tool.

[0007] In one embodiment, the step of dynamically adjusting the Z axis of the tool used in the test cutting of the workpiece to be machined based on the ideal Z axis compensation amount and the actual test cutting height value includes: When dynamically adjusting the current trial cutting Z axis based on the ideal Z axis compensation amount and the actual trial cutting height value, the operation data of the machine tool is obtained in real time; Sending the operation data to a CAM, so that the CAM pre-tests a cutting trajectory of a tool used when pre-testing and cutting the workpiece to be machined based on the operation data; After dynamically adjusting the current trial cutting Z axis, obtaining the actual trial cutting trajectory of the tool used after the Z axis adjustment; Determining a trajectory offset of the tool used based on the pre-test cutting trajectory and the actual test cutting trajectory; Based on the offset, the Z axis is adjusted until the offset meets the predicted offset requirement, thereby completing the adjustment of the Z axis.

[0008] In one embodiment, after the step of dynamically adjusting the Z-axis of the tool used in the test cutting of the workpiece to be machined based on the ideal Z-axis compensation amount and the actual test cutting height value, the method further includes: After completing the adjustment of the Z axis, obtain the tool path used in the trial cutting; Based on a preset spline curve smooth transition method, a smooth transition optimization is performed on the connection between the tool path and the main machining trajectory, where the main machining trajectory is the machining trajectory during normal machining of the workpiece.

[0009] In addition, to achieve the above-mentioned purpose, the present application also proposes a method for adjusting the Z-axis during machining, which is applied to the CAM end, and the method includes: When the machine tool reaches a trial cutting point of a workpiece to be machined, determining, based on the acquired current state data of the machine tool, an ideal Z-axis compensation amount required for a tool used by the machine tool when performing the trial cutting on the workpiece to be machined; The ideal Z-axis compensation amount is sent to the machine tool so that the machine tool can obtain the actual trial cutting height value measured by the machine tool when trial cutting the workpiece to be processed based on the trial cutting program locally embedded in the machine tool, and dynamically adjust the Z axis of the tool used when trial cutting the workpiece to be processed based on the ideal Z-axis compensation amount and the actual trial cutting height value.

[0010] In one embodiment, before the step of machining the workpiece on a machine tool, the process includes: Obtaining a digital model corresponding to the workpiece to be processed; Performing equal-area meshing on processed surfaces in the digital model that are adjacent to a region to be processed, and determining a change in surface curvature of each mesh surface, wherein the region to be processed is a mapping of a region to be processed in the workpiece to be processed in the digital model; Identifying, from each grid, a key grid whose surface curvature change satisfies a preset compensation condition; The key grid is determined as a trial cutting point that needs to be trial cut.

[0011] In one embodiment, the step of determining, based on the acquired current state data of the machine tool, an ideal Z-axis compensation amount required for a tool used by the machine tool when performing a trial cutting on the workpiece to be machined, includes: Filter tool wear coefficient, machine thermal deformation and material springback from the current status data of the machine tool; Obtain the weighted values ​​of the impact of tool wear coefficient, machine tool thermal deformation, and material springback on test cutting; An ideal Z-axis compensation amount of a tool used in trial cutting the workpiece to be machined is determined based on the weight value, the tool wear coefficient, the thermal deformation of the machine tool, and the material springback.

[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a Z-axis adjustment device during machining, wherein the Z-axis adjustment device during machining comprises: The trial cutting module is used to perform a trial cutting on the workpiece to be processed based on the trial cutting program embedded in the CAM when the workpiece is processed to the trial cutting point, and obtain the actual trial cutting height value measured by the machine tool; The adjustment module is used to dynamically adjust the Z axis of the tool used when trial cutting the workpiece to be processed based on the ideal Z axis compensation amount and the actual trial cutting height value. The ideal Z axis compensation amount is determined by CAM according to the current status data of the machine tool.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a device for adjusting the Z-axis during machining, which includes: a memory, a processor, and a computer program stored on the memory and runnable on the processor, and the computer program is configured to implement the steps of the method for adjusting the Z-axis during machining as described above.

[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the Z-axis adjustment method during machining as described above are implemented.

[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the method for adjusting the Z axis during machining as described above.

[0016] One or more technical solutions proposed in this application have at least the following technical effects: When machining to the test cutting point of the workpiece to be machined, a test cutting program embedded in a CAM (Computer-Aided Manufacturing) is used to test cut the workpiece to obtain the actual test cutting height value. Since CAM can intelligently generate the optimized test cutting path and cutting parameters, the use of the CAM-embedded test cutting program can avoid repeated adjustments to the test cutting program. CAM can also determine the ideal Z-axis compensation required for the current test cutting stage based on the current state of the machine tool. Based on the ideal Z-axis compensation and the actual test cutting height value, the Z-axis of the tool used in the test cutting of the workpiece to be machined is dynamically adjusted, avoiding manual adjustments by the user and thus preventing inconsistent adjustment standards. Since the test cutting simulation is an ideal situation, directly applying the ideal Z-axis compensation to the actual test cutting will result in large test cutting errors. Therefore, dynamic adjustment of the Z-axis based on the ideal Z-axis compensation and the actual test cutting height can also make the Z-axis compensation more consistent with the actual situation, so that the adjusted Z-axis can accurately meet the requirements, avoiding repeated debugging of the Z-axis, and thus improving the efficiency of tool Z-axis adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0019] Figure 1 A flow chart illustrating a method for adjusting the Z axis during machining according to the present application; Figure 2 A flow chart illustrating a second embodiment of the method for adjusting the Z axis during machining of the present application; Figure 3 A flow chart illustrating a second embodiment of the method for adjusting the Z axis during machining of the present application; Figure 4 This is a schematic diagram of the module structure of the Z-axis adjustment device during machining according to an embodiment of the present application; Figure 5 Schematic diagram of the equipment structure of the hardware operating environment involved in the Z-axis adjustment method during machining in the embodiment of the present application.

[0020] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.

[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0023] The main solution of the embodiment of the present application is: when processing to the trial cutting point of the workpiece to be processed, the machine tool performs a trial cutting on the workpiece to be processed based on the trial cutting program embedded in the CAM, and obtains the actual trial cutting height value measured by the machine tool; based on the ideal Z-axis compensation amount and the actual trial cutting height value, the Z-axis of the tool used when trial cutting the workpiece to be processed is dynamically adjusted, and the ideal Z-axis compensation amount is determined by the CAM according to the current status data of the machine tool.

[0024] In this embodiment, for ease of description, the following description is made with the machine tool as the execution subject.

[0025] Since the programming and optimization of trial cutting programs in the existing technology usually rely on the workers' experience, and since there is no definite standard for workers' experience, trial cutting programs programmed by different workers may require different adjustments to the Z-axis of the tool in the machine tool, and workers usually adjust the Z-axis of the tool based on their own experience. That is, different workers have different adjustment standards, and repeated trial cutting and debugging are required, resulting in inefficient adjustment of the Z-axis of the tool.

[0026] The present application provides a solution. When machining to the trial cutting point of the workpiece to be machined, a trial cutting program embedded in the CAM is used to perform a trial cutting on the workpiece to be machined to obtain the actual trial cutting height value. Since the CAM can intelligently generate the optimized trial cutting path and cutting parameters, the trial cutting program embedded in the CAM can be used to avoid repeated adjustments to the trial cutting program. The CAM can also determine the ideal compensation amount for the Z-axis required in the current trial cutting stage according to the current state of the machine tool, so as to dynamically adjust the Z-axis of the tool used when trial cutting the workpiece to be machined according to the ideal Z-axis compensation amount and the actual trial cutting height value, so as to avoid manual adjustment by the user, thereby avoiding inconsistent adjustment standards. Since the trial cutting simulation is an ideal situation, directly applying the ideal Z-axis compensation amount to the actual trial cutting will result in a large trial cutting error. Therefore, the Z-axis is dynamically adjusted according to the ideal Z-axis compensation amount and the actual trial cutting height, and the Z-axis compensation amount can be more in line with the actual situation, so that the adjusted Z-axis can accurately meet the requirements, avoiding repeated debugging of the Z-axis, thereby improving the adjustment efficiency of the Z-axis of the tool.

[0027] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device or machine tool capable of implementing the above functions. The following uses a machine tool as an example to illustrate this embodiment and the following embodiments.

[0028] Based on this, the embodiment of the present application provides a method for adjusting the Z axis during machining, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the Z-axis adjustment method during machining according to the present application.

[0029] In this embodiment, the Z-axis adjustment method during machining includes steps S10 to S20: Step S10, when the workpiece to be processed reaches the trial cutting point, the workpiece to be processed is trial cut based on the trial cutting program embedded in the CAM to obtain an actual trial cutting height value measured by the machine tool; It should be noted that the trial cutting point is a specific processing position that is pre-set during the processing to calibrate and adjust the processing parameters of the machine tool. Performing a trial cutting operation at this point can ensure the processing accuracy during formal processing. CAM is a technology that uses computer software to plan processing paths, generate tool trajectories, and set processing parameters. The trial cutting program is a program generated by CAM for performing trial cutting operations at the trial cutting point, which contains at least tool paths and processing parameters, and is used to obtain the actual trial cutting height value. The actual trial cutting height value is the actual processing height value of the workpiece at the trial cutting point obtained by the machine tool after the machine tool performs a trial cutting operation at the trial cutting point.

[0030] It is understandable that since the trial cutting program embedded in CAM is generated through computer-aided manufacturing technology, it can accurately control the tool path and processing parameters. Compared with manually written trial cutting programs, the program generated by CAM is more accurate and can effectively reduce the trial cutting errors caused by programming errors or human negligence. It also optimizes the trial cutting path and parameters to ensure the reliability and repeatability of the trial cutting operation, thereby improving the trial cutting accuracy.

[0031] It is understandable that because CAM can automatically generate and optimize test cutting programs, eliminating the need for tedious manual programming and debugging, test cutting programs can be quickly generated before machining and embedded into the machining process. This can shorten test cutting preparation time and reduce the time required for test cutting program writing and debugging, thereby improving production efficiency.

[0032] Step S20, based on the ideal Z-axis compensation amount and the actual trial cutting height value, dynamically adjust the Z-axis of the tool used when trial cutting the workpiece to be processed. The ideal Z-axis compensation amount is determined by CAM according to the current status data of the machine tool.

[0033] It should be noted that dynamic adjustment involves real-time adjustment of the Z axis during the test cutting process based on real-time data (such as the actual test cutting height and operating data) to ensure test cutting accuracy. The current machine status data includes at least tool wear coefficient, machine thermal deformation, and workpiece material springback.

[0034] It is understandable that since the ideal Z-axis compensation amount is a theoretical value calculated based on the current state data of the machine tool, and the actual trial cutting height value is the actual processing height measured by the machine tool at the trial cutting point, and since the actual trial cutting environment cannot achieve the ideal trial cutting environment, the actual deviation of the Z-axis can be determined by comparing these two values, and dynamic adjustments can be made accordingly to make the height of the Z-axis more in line with the actual situation.

[0035] It is understandable that since the process of dynamically adjusting the Z-axis is based on real-time data and can respond promptly to changes in the machine tool status, it can ensure the consistency of the accuracy of each workpiece during the processing process and reduce dimensional fluctuations caused by changes in the machine tool status.

[0036] It can be understood that by obtaining the actual trial cutting height value through trial cutting operations and dynamically adjusting it in combination with the ideal Z-axis compensation amount, it can also effectively compensate for machining errors caused by factors such as tool wear, thermal deformation of the machine tool, and material rebound during machine tool processing, thereby improving machining accuracy.

[0037] It is understandable that the CAM-embedded trial cutting program and automated Z-axis adjustment reduce reliance on manual experience, lower the frequency and difficulty of manual intervention, and thus improve processing efficiency and quality consistency.

[0038] This embodiment provides a method for adjusting the Z-axis during machining. When machining to the test cutting point of a workpiece to be machined, a test cutting program embedded in a CAM is used to perform a test cutting on the workpiece to be machined to obtain an actual test cutting height value. Since the CAM can intelligently generate an optimized test cutting path and cutting parameters, repeated adjustment of the test cutting program can be avoided by using the test cutting program embedded in the CAM. The CAM can also determine the ideal Z-axis compensation amount required for the current test cutting stage based on the current state of the machine tool. The Z-axis of the tool used in the test cutting of the workpiece to be machined is dynamically adjusted based on the ideal Z-axis compensation amount and the actual test cutting height value, thereby avoiding manual adjustment by the user and thus avoiding inconsistent adjustment standards. Since the test cutting simulation is an ideal situation, directly applying the ideal Z-axis compensation amount to the actual test cutting will result in a large test cutting error. Therefore, dynamic adjustment of the Z-axis based on the ideal Z-axis compensation amount and the actual test cutting height can also make the Z-axis compensation amount more consistent with the actual situation, so that the adjusted Z-axis can accurately meet the requirements, avoiding repeated debugging of the Z-axis, thereby improving the efficiency of tool Z-axis adjustment.

[0039] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 2 Step S20 includes steps S01 to S05: Step S01, when dynamically adjusting the current trial cutting Z axis based on the ideal Z axis compensation amount and the actual trial cutting height value, obtaining the operation data of the machine tool in real time; Step S02, sending the operation data to the CAM, so that the CAM pre-tests and cuts the workpiece to be processed based on the operation data; Step S03, after dynamically adjusting the current trial cutting Z axis, obtaining the actual trial cutting trajectory of the tool used after the Z axis adjustment; Step S04, determining the trajectory offset of the tool used based on the pre-test cutting trajectory and the actual test cutting trajectory; Step S05: Based on the offset, the Z axis is adjusted until the offset meets the predicted offset requirement, thereby completing the adjustment of the Z axis.

[0040] It should be noted that the operating data of the machine tool is the real-time data generated by the machine tool during operation, including at least the vibration, temperature, current and other data of the machine tool. The pre-test cutting trajectory is the motion trajectory of the tool during the trial cutting process, which is pre-simulated by CAM based on the operating data of the machine tool. The actual trial cutting trajectory is the trajectory actually traveled by the tool during the trial cutting process after the Z-axis is dynamically adjusted, reflecting the actual processing path of the tool. The trajectory offset is the deviation between the pre-test cutting trajectory and the actual trial cutting trajectory, which is used to evaluate the difference between the actual processing path of the tool and the predicted path. The predicted offset requirement is the maximum value of the allowable trajectory offset set according to the processing accuracy requirements, which is used to determine whether the Z-axis adjustment has achieved the expected effect.

[0041] It can be understood that by acquiring operation data in real time and comparing the pre-test cutting trajectory with the actual test cutting trajectory, the Z axis can be accurately adjusted to reduce machining errors and thus improve machining accuracy.

[0042] It can be understood that by comparing the CAM's pre-test cutting trajectory with the actual test cutting trajectory, the adjustment direction and amplitude can be quickly determined, the adjustment time can be reduced, and the processing efficiency can be improved.

[0043] It can be understood that since the trajectory offset is the deviation between the pre-test cutting trajectory and the actual test cutting trajectory, it reflects the difference between the adjusted processing path and the expected path. Therefore, by calculating the trajectory offset, it is possible to evaluate whether the adjustment effect meets expectations, thereby ensuring that the test cutting program and the Z-axis height value meet actual needs.

[0044] Optionally, since the tool will wear after machining multiple workpieces, to ensure the quality of the final workpiece, the Z-axis can be adjusted again after a preset number of workpieces. For example, after machining every 10 workpieces, the tool wear compensation library is automatically updated to ensure dimensional repeatability accuracy of ≥99.8% between different batches.

[0045] Furthermore, step S20 further includes: After completing the adjustment of the Z axis, obtain the tool path used in the trial cutting; Based on a preset spline curve smooth transition method, a smooth transition optimization is performed on the connection between the tool path and the main machining trajectory, where the main machining trajectory is the machining trajectory during normal machining of the workpiece.

[0046] It should be noted that the tool path is the actual path the tool travels during machining and is a record of tool movement, reflecting tool position changes during machining, including the path during trial cutting. The spline smoothing method is used to generate a smooth curve to achieve a smooth transition between the trial cutting trajectory and the main machining trajectory. The main machining trajectory is the trajectory formed during normal machining when the tool follows the preset machining path.

[0047] It is understandable that since there may be discontinuities or mutations between the tool path and the main machining trajectory during the machining process, which may lead to unevenness of the machined surface or machining errors, smooth transition optimization can reduce this discontinuity and make the tool more stable when transitioning from the trial cutting trajectory to the main machining trajectory, thereby improving the quality of the machined surface, reducing tool wear, and extending the tool life.

[0048] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and no further details will be given later. On this basis, the adjustment method of the Z axis during machining is applied to the CAM end, please refer to Figure 3 The Z-axis adjustment method during machining further includes steps S1 to S4: Step S1, when a machine tool processes a test cutting point of a workpiece to be machined, determining an ideal Z-axis compensation amount required for a tool used by the machine tool when the machine tool performs a test cutting on the workpiece to be machined based on the acquired current state data of the machine tool; Step S2, sending the ideal Z-axis compensation amount to the machine tool so that the machine tool can obtain the actual test cutting height value measured by the machine tool when test cutting the workpiece to be processed based on the test cutting program locally embedded in the machine tool, and dynamically adjust the Z axis of the tool used when test cutting the workpiece to be processed based on the ideal Z-axis compensation amount and the actual test cutting height value.

[0049] It should be noted that the digital model is a three-dimensional computer-aided design (CAD) model of the workpiece to be processed, which contains information such as the geometric shape, size and surface features of the workpiece, and in this embodiment also includes the area to be processed. The current state data of the machine tool is a series of data of the machine tool in the current processing state, including tool wear, thermal deformation of the machine tool, material springback, cutting parameters, etc., to reflect the actual operating state of the machine tool. The tangent angle deviation is the angular deviation between the tangent direction of the tool path at the trial cutting point and the tangent direction of the main machining trajectory, which is used to evaluate the smooth transition between the trial cutting path and the main machining trajectory. The preset transition deviation is the maximum value of the allowable tangent angle deviation set according to the machining accuracy requirements, which is used to ensure a smooth transition between the trial cutting path and the main machining trajectory.

[0050] It is understandable that since the selection of trial cutting points needs to take into account the geometric characteristics and processing requirements of the workpiece, key positions or complex shape areas of the workpiece are usually selected as trial cutting points in order to more accurately evaluate the processing accuracy and adjust the machine tool parameters. Therefore, by determining the trial cutting points in the digital model, the pertinence and effectiveness of the trial cutting operation can be ensured, the number of unnecessary trial cutting times can be reduced, and the processing efficiency can be improved.

[0051] It can be understood that by embedding the trial cutting program and controlling the tangent angle deviation, the discontinuity between the trial cutting path and the main machining trajectory can be reduced, the quality of the machined surface can be improved, and the wear of the tool and the vibration during the machining process can be reduced.

[0052] It is understandable that the calculation of the ideal Z-axis compensation requires comprehensive consideration of factors such as tool wear, thermal deformation, and material springback. By accurately calculating the ideal Z-axis compensation, machining errors can be effectively compensated, improving machining accuracy and ensuring the accuracy and reliability of test cutting operations.

[0053] Specifically, the calculation formula for the ideal Z-axis compensation is: ΔZ = α×(tool wear coefficient) + β×(machine tool thermal deformation) + γ×(material springback); Among them, α is the weight of the tool wear coefficient; β is the weight of the machine tool thermal deformation; γ is the weight of the material springback.

[0054] Furthermore, before step S1, the method further includes: Obtaining a digital model corresponding to the workpiece to be processed; Performing equal-area mesh division on the processed surface adjacent to the area to be processed in the digital model, and determining a change in the surface curvature of each mesh surface; Identifying, from each grid, a key grid whose surface curvature change satisfies a preset compensation condition; The key grid is determined as a trial cutting point that needs to be trial cut.

[0055] It should be noted that the "area to be processed" is the mapping of the area of ​​the workpiece that requires machining in the digital model. The "area to be machined" is the portion of the workpiece that has been pre-processed but not yet machined, requiring machining on a machine tool to meet design requirements. A processed surface is a surface that has undergone pre-processing and is ready for direct machining. Equal-area meshing divides the processed surface into multiple virtual small meshes of equal area for analyzing and evaluating the surface's geometric characteristics. Surface curvature variation refers to the change in curvature of the meshed surface. Curvature is a geometric parameter that describes the degree of curvature of the surface; the change in curvature reflects the complexity of the surface. Preset compensation conditions are conditions set based on machining accuracy requirements. For example, when the deviation tangent angle is greater than 0.5°, the surface is considered too complex and requires trial cutting. Key meshes are meshes that meet the preset compensation conditions and are typically located in areas with large curvature variations or high machining accuracy requirements.

[0056] It is understandable that since equal-area meshing is a commonly used geometric analysis method that can decompose complex surfaces into multiple small areas for easy analysis and processing, equal-area meshing and curvature analysis can accurately identify complex areas of the surface, thereby ensuring that the selection of trial cutting points is more reasonable and scientific, and improving processing accuracy and reliability.

[0057] In the specific implementation, the processed surface adjacent to the area to be processed can be divided into equal areas of 2mm×2mm grids with an area error of <0.1%, and 3 to 5 key compensation points can be automatically identified. Specifically, areas with surface curvature changes of >15% are given priority.

[0058] Furthermore, step S4 further includes: screening tool wear coefficient, machine tool thermal deformation and material springback from the current state data; Obtain the weighted values ​​of the impact of tool wear coefficient, machine tool thermal deformation, and material springback on test cutting; An ideal Z-axis compensation amount of a tool used in trial cutting the workpiece to be machined is determined based on the weight value, the tool wear coefficient, the thermal deformation of the machine tool, and the material springback.

[0059] It should be noted that the tool wear coefficient is a quantitative parameter that measures the degree of tool wear and is used to assess machining errors caused by tool wear during the machining process. Machine tool thermal deformation refers to the geometric deformation of the machine tool caused by thermal effects during machining, which generally affects machining accuracy and quality. Material springback refers to the dimensional change caused by elastic recovery after machining, which generally affects the actual dimensional accuracy after machining.

[0060] It can be understood that by combining the weight values ​​of various factors with the corresponding basic data, an ideal Z-axis compensation amount that comprehensively considers multiple error sources can be calculated, which can more accurately compensate for machining errors and improve machining accuracy and stability.

[0061] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the adjustment method of the Z-axis during machining of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0062] This application also provides a Z-axis adjustment device for machining, which is applied to machine tools. Please refer to Figure 4 , the Z-axis adjustment device during machining includes: The trial cutting module 10 is used to perform a trial cutting on the workpiece to be processed based on the trial cutting program embedded in the CAM when the workpiece is processed to the trial cutting point, and obtain the actual trial cutting height value measured by the machine tool; The adjustment module 20 is used to dynamically adjust the Z axis of the tool used when trial cutting the workpiece to be processed based on the ideal Z axis compensation amount and the actual trial cutting height value. The ideal Z axis compensation amount is determined by CAM according to the current status data of the machine tool.

[0063] Optionally, the adjustment module 20 is also used to obtain the operation data of the machine tool in real time when the current trial cutting Z axis is dynamically adjusted based on the ideal Z axis compensation amount and the actual trial cutting height value; send the operation data to the CAM, so that the CAM pre-tests the pre-cutting trajectory of the tool used when cutting the workpiece to be processed based on the operation data; after dynamically adjusting the current trial cutting Z axis, obtain the actual trial cutting trajectory of the tool used after the Z axis adjustment; determine the trajectory offset of the tool used based on the pre-test cutting trajectory and the actual trial cutting trajectory; adjust the Z axis based on the offset until the offset meets the predicted offset requirement to complete the adjustment of the Z axis.

[0064] Optionally, the adjustment module 20 is also used to obtain the tool trajectory of the tool used during the trial cutting after completing the adjustment of the Z axis; based on the preset spline curve smooth transition method, the connection between the tool trajectory and the main processing trajectory is smoothly transition optimized, and the main processing trajectory is the processing trajectory during normal processing of the workpiece to be processed.

[0065] Optionally, the Z-axis adjustment device during machining is applied to the CAM end, referring to Figure 4 , the device further comprises: The simulation module 30 is used to determine, when the machine tool processes to the trial cutting point of the workpiece to be processed, based on the current state data of the machine tool obtained, the ideal Z-axis compensation required for the tool used by the machine tool when the machine tool performs the trial cutting on the workpiece to be processed; the ideal Z-axis compensation is sent to the machine tool so that the machine tool can obtain the actual trial cutting height value measured by the machine tool when the machine tool performs the trial cutting on the workpiece to be processed based on the trial cutting program locally embedded in the machine tool, and dynamically adjust the Z axis of the tool used when trial cutting the workpiece to be processed based on the ideal Z-axis compensation and the actual trial cutting height value.

[0066] Optionally, the simulation module 30 is also used to obtain a digital model corresponding to the workpiece to be processed; perform equal-area grid division on the processed surface adjacent to the area to be processed in the digital model, and determine the surface curvature change of each grid surface, where the area to be processed is a mapping of the area to be processed in the workpiece to be processed in the digital model; identify from each grid the key grid whose surface curvature change meets the preset compensation condition; and determine the key grid as the trial cutting point that needs to be trial cut.

[0067] Optionally, the simulation module 30 is also used to filter the tool wear coefficient, machine thermal deformation and material springback from the current state data; obtain the weight value of the impact of the tool wear coefficient, machine thermal deformation and material springback on the trial cutting; and determine the ideal Z-axis compensation amount of the tool used in the trial cutting of the workpiece to be processed based on the weight value and the tool wear coefficient, the machine thermal deformation and the material springback.

[0068] The Z-axis adjustment device for machining provided by this application utilizes the Z-axis adjustment method for machining provided by the aforementioned embodiment, thereby resolving the technical problem of inefficient Z-axis adjustment of a tool. Compared to the prior art, the beneficial effects of the Z-axis adjustment device for machining provided by this application are the same as those of the Z-axis adjustment method for machining provided by the aforementioned embodiment, and the other technical features of the Z-axis adjustment device for machining are the same as those disclosed in the aforementioned embodiment, and are not further described here.

[0069] The present application provides a device for adjusting the Z-axis during machining, and the device for adjusting the Z-axis during machining includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for adjusting the Z-axis during machining in the above-mentioned embodiment one.

[0070] Reference below Figure 5, which shows a schematic structural diagram of a device suitable for implementing an embodiment of the present application for adjusting the Z-axis during machining. The device for adjusting the Z-axis during machining in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The Z-axis adjustment device during machining shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present application.

[0071] like Figure 5 As shown, the Z-axis adjustment device for machining can include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for operating the Z-axis adjustment device for machining. Processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, hard disk, etc.; and communication devices 1009. Communication devices 1009 can allow the Z-axis adjustment device for machining to communicate with other devices wirelessly or wired to exchange data. While the figure shows a Z-axis adjustment device for machining with various systems, it should be understood that implementation or presence of all the illustrated systems is not required. More or fewer systems may alternatively be implemented or present.

[0072] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0073] The Z-axis adjustment device for machining provided by this application utilizes the Z-axis adjustment method for machining provided by the aforementioned embodiment, thereby resolving the technical problem of inefficient Z-axis adjustment of a tool. Compared to the prior art, the beneficial effects of the Z-axis adjustment device for machining provided by this application are the same as those of the Z-axis adjustment method for machining provided by the aforementioned embodiment. Other technical features of the Z-axis adjustment device for machining are the same as those disclosed in the aforementioned embodiment, and are not further detailed here.

[0074] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0075] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0076] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the Z-axis adjustment method during machining in the above-mentioned embodiment.

[0077] The computer-readable storage medium provided herein may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including, but not limited to, wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0078] The computer-readable storage medium may be included in the Z-axis adjustment device during machining; or may exist independently without being assembled into the Z-axis adjustment device during machining.

[0079] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the Z-axis adjustment device during machining, the Z-axis adjustment device during machining: when machining to the trial cutting point of the workpiece to be machined, based on the trial cutting program embedded in the CAM, the workpiece to be machined is trial cut to obtain the actual trial cutting height value measured by the machine tool; based on the ideal Z-axis compensation amount and the actual trial cutting height value, the Z-axis of the tool used when trial cutting the workpiece to be machined is dynamically adjusted, and the ideal Z-axis compensation amount is determined by the CAM according to the current status data of the machine tool.

[0080] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0081] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0082] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0083] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned Z-axis adjustment method for machining, thereby resolving the technical issue of inefficient Z-axis adjustment of a tool. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are similar to those of the Z-axis adjustment method for machining provided in the aforementioned embodiments, and are not further elaborated here.

[0084] The present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for adjusting the Z-axis during machining.

[0085] The computer program product provided in this application can solve the technical problem of inefficient Z-axis adjustment of a tool. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the Z-axis adjustment method during machining provided in the above-mentioned embodiment, and will not be elaborated here.

[0086] The above description is only part of the embodiments of the present application and does not limit the scope of protection of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the scope of protection of the present application.

Claims

1. A method for adjusting the Z axis during machining, characterized in that: Applied to a machine tool, the method comprises: When the workpiece to be processed reaches the trial cutting point, the workpiece to be processed is trial cut based on the trial cutting program embedded in the CAM to obtain the actual trial cutting height value measured by the machine tool; Based on the ideal Z-axis compensation amount and the actual trial cutting height value, the Z-axis of the tool used in the trial cutting of the workpiece to be processed is dynamically adjusted. The ideal Z-axis compensation amount is determined by CAM according to the current status data of the machine tool.

2. The method for adjusting the Z axis during machining according to claim 1, wherein: The step of dynamically adjusting the Z axis of the tool used in the trial cutting of the workpiece to be processed based on the ideal Z axis compensation amount and the actual trial cutting height value includes: When dynamically adjusting the current trial cutting Z axis based on the ideal Z axis compensation amount and the actual trial cutting height value, the operation data of the machine tool is obtained in real time; Sending the operation data to a CAM, so that the CAM pre-tests a cutting trajectory of a tool used when pre-testing and cutting the workpiece to be machined based on the operation data; After dynamically adjusting the current trial cutting Z axis, obtaining the actual trial cutting trajectory of the tool used after the Z axis adjustment; Determining a trajectory offset of the tool used based on the pre-test cutting trajectory and the actual test cutting trajectory; Based on the offset, the Z axis is adjusted until the offset meets the predicted offset requirement, thereby completing the adjustment of the Z axis.

3. The method for adjusting the Z axis during machining according to claim 1, wherein: After the step of dynamically adjusting the Z axis of the tool used in the trial cutting of the workpiece to be processed based on the ideal Z axis compensation amount and the actual trial cutting height value, the method further includes: After completing the adjustment of the Z axis, obtain the tool path used in the test cutting; Based on a preset spline curve smooth transition method, a smooth transition optimization is performed on the connection between the tool path and the main machining trajectory, where the main machining trajectory is the machining trajectory during normal machining of the workpiece.

4. A method for adjusting the Z axis during machining, characterized in that: Applied to the CAM end, the method includes: When the machine tool reaches a trial cutting point of a workpiece to be machined, determining, based on the acquired current state data of the machine tool, an ideal Z-axis compensation amount required for a tool used by the machine tool when performing the trial cutting on the workpiece to be machined; The ideal Z-axis compensation amount is sent to the machine tool so that the machine tool can obtain the actual trial cutting height value measured by the machine tool when trial cutting the workpiece to be processed based on the trial cutting program locally embedded in the machine tool, and dynamically adjust the Z axis of the tool used when trial cutting the workpiece to be processed based on the ideal Z-axis compensation amount and the actual trial cutting height value.

5. The method for adjusting the Z axis during machining according to claim 4, wherein: Before the step of machining the workpiece on the machine tool, the method includes: Obtaining a digital model corresponding to the workpiece to be processed; Performing equal-area meshing on processed surfaces in the digital model that are adjacent to a region to be processed, and determining a change in surface curvature of each mesh surface, wherein the region to be processed is a mapping of a region to be processed in the workpiece to be processed in the digital model; Identifying, from each grid, a key grid whose surface curvature change satisfies a preset compensation condition; The key grid is determined as a trial cutting point that needs to be trial cut.

6. The method for adjusting the Z axis during machining according to claim 4, wherein: The step of determining, based on the acquired current state data of the machine tool, an ideal Z-axis compensation amount required by a tool used by the machine tool when performing a trial cutting on the workpiece to be machined, comprises: Filter tool wear coefficient, machine thermal deformation and material springback from the current status data of the machine tool; Obtain the weighted values ​​of the impact of tool wear coefficient, machine tool thermal deformation, and material springback on test cutting; An ideal Z-axis compensation amount of a tool used in trial cutting the workpiece to be machined is determined based on the weight value, the tool wear coefficient, the thermal deformation of the machine tool, and the material springback.

7. A Z-axis adjustment device for machining, characterized in that: Applied to a machine tool, the device comprises: The trial cutting module is used to perform a trial cutting on the workpiece to be processed based on the trial cutting program embedded in the CAM when the workpiece is processed to the trial cutting point, and obtain the actual trial cutting height value measured by the machine tool; The adjustment module is used to dynamically adjust the Z axis of the tool used when trial cutting the workpiece to be processed based on the ideal Z axis compensation amount and the actual trial cutting height value. The ideal Z axis compensation amount is determined by CAM according to the current status data of the machine tool.

8. A Z-axis adjustment device for machining, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for adjusting the Z axis during machining according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for adjusting the Z axis during machining according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method for adjusting the Z axis during machining according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Hybrid robot milling error prediction and compensation method based on GRNN

    CN112733296A

  • Numerical control machining method for blade self-adaptive compensation plane position degree

    CN114147536A

  • Method for predicting milling stability of mechanical arm

    CN115859515A

  • Tool changing automatic compensation machining method and system, computer equipment and storage medium

    CN117921439A

  • Control method and system of vertical multi-axis numerical control mortise broaching machine and storage medium

    CN119882600A