Turning tool control method and lathe

By measuring and smoothing the tool offset in real time, the problem of machining position offset caused by tool wear is solved, ensuring machining accuracy and improving efficiency.

CN120755719AActive Publication Date: 2025-10-10广州台茂精密机械有限公司
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202510891118.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-10
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

The wear of the turning tool during the machining process causes vibration, which causes the machining position to shift and affects the machining accuracy.

Method used

The tool offset is measured in real time by the probe, the offset is accumulated and smoothed, the tool position is adjusted according to the smoothed offset, and a threshold is set to issue an early warning to replace the tool.

Benefits of technology

It can avoid drastic changes in the turning tool position during the processing, ensure processing accuracy, and replace the turning tool in time to improve processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120755719A_ABST
    Figure CN120755719A_ABST
Patent Text Reader

Abstract

The turning tool control method and the lathe are applied to the lathe, the lathe is provided with a turning tool and a measuring head, the turning tool is used for machining an object to be machined, the measuring head is used for detecting the machining precision of the object to be machined, and in the process of controlling the turning tool to machine the object to be machined, the measuring head is used for measuring the offset of the turning tool in real time. Accumulating the offset measured in the target time, and calculating the accumulated offset; in the accumulation process, a second offset at the N + K moment is determined according to the first offset at the N-K moment, the turning tool is controlled to adjust the current machining position at the N + K moment based on the second offset, and the second offset is determined according to the first offset subjected to smoothing processing. And finally, when the accumulated offset is larger than a threshold value, early warning is conducted, and turning tool replacement is prompted. The turning tool can be controlled to adjust the machining position so as to avoid amplitude adjustment dramatic change, and meanwhile the machining precision is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a turning tool control method and a lathe. Background Art

[0002] Lathe processing requires the use of a positioning device and a turning tool. The positioning device can be a fixture, which can fix the position of the object to be processed. The turning tool can cut the object to be processed on the fixture through calibration of the probe and a preset cutting program.

[0003] In the related art, the wear of the turning tool during the machining process causes the turning tool to vibrate, and the machining position is shifted, resulting in deviation in the machining position of the object to be machined, thereby affecting the machining accuracy of the object to be machined.

[0004] Based on the defects of the above-mentioned related technologies, there is an urgent need for a method that can control the turning tool to adjust the processing position during the turning tool processing to avoid drastic changes in the adjustment amplitude while ensuring the processing accuracy. Summary of the Invention

[0005] The main purpose of the present invention is to provide a turning tool control method and a lathe, which aims to control the turning tool to adjust the processing position during the turning tool processing to avoid drastic changes in the amplitude adjustment while ensuring the processing accuracy.

[0006] To achieve the above-mentioned object, the present invention proposes a turning tool control method, which is applied to a lathe. The lathe is provided with a turning tool and a probe. The turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed. The method comprises: In the process of controlling the turning tool to process the object to be processed, using the probe to measure the offset of the turning tool in real time, the offset being used to indicate the difference between the current processing position of the turning tool and the target processing position of the object to be processed; Accumulate the offsets measured within the target time to calculate a cumulative offset; During the accumulation process, a second offset at time N+K is determined based on the first offset at time NK, and the turning tool is controlled to adjust the current machining position at time N+K based on the second offset, wherein the second offset is determined based on the smoothed first offset, N>K, K>0; When the accumulated offset is greater than a threshold, an early warning is issued and a prompt is given to replace the turning tool.

[0007] Optionally, determining the second offset at time N+K according to the first offset at time NK, and controlling the turning tool to adjust the current machining position at time N+K based on the second offset, includes: Get the offset at time NK-1 and time N-K+1, where NK>1; Smoothing the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK; The second offset at the time N+K is determined according to the first offset at the time NK, and the turning tool is controlled based on the second offset to adjust the current machining position at the time N+K.

[0008] Optionally, in the process of smoothing the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK, the smoothing method includes: Performing linear interpolation based on the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK; The linear interpolation includes: Determine interpolation weights; The first offset at the time NK is obtained based on the interpolation weight, the offset at the time NK-1, and the offset at the time N-K+1.

[0009] Optionally, determining the interpolation weight includes: Obtaining the offset of the NK-1 time and the offset of the N-K+1 time; Calculate the sum of the offset at time NK-1 and the offset at time N-K+1; The interpolation weight is determined based on a ratio of the offset at the N-K+1 time to the sum.

[0010] Optionally, before determining the second offset at time N+K based on the first offset at time NK, and controlling the turning tool to adjust the current machining position at time N+K based on the second offset, the method further includes: Smoothing the offsets of a first target period to obtain a first offset set, where the first target period includes N moments, and there is a correspondence between the moments and the offsets; A second offset set corresponding to a second target period is determined based on the first offset set.

[0011] Optionally, obtaining the first offset at time NK based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1 includes: When the difference between the offset at the NK-1 moment and the offset at the N-K+1 moment is larger, the first offset at the NK moment obtained based on the interpolation weight, the offset at the NK-1 moment and the offset at the N-K+1 moment is closer to the offset at the N-K+1 moment.

[0012] Optionally, before using the probe to measure the offset of the turning tool in real time, the method further includes: In the process of controlling the turning tool to process the object to be processed, detecting temperature information in real time; An offset of the turning tool is determined based on the temperature information.

[0013] The present invention also provides a turning tool control device, which is applied to a lathe. The lathe is provided with a turning tool and a probe. The turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed. The device includes: a measuring module, a calculating module, an adjusting module, and an early warning module; The measuring module is configured to measure the offset of the turning tool in real time using the probe while controlling the turning tool to process the object to be processed, wherein the offset indicates the difference between the current processing position of the turning tool and the target processing position of the object to be processed; The calculation module is used to accumulate the offsets measured within the target time and calculate the accumulated offsets; The adjustment module is configured to determine, during the accumulation process, a second offset at time N+K based on the first offset at time NK, and control the turning tool to adjust the machining position based on the second offset, wherein the second offset is determined based on the smoothed first offset, where N>K; The early warning module is used to issue an early warning and prompt the user to replace the turning tool when the accumulated offset is greater than a threshold.

[0014] The present invention further provides a lathe, comprising a memory, a turning tool control device, a turning tool, a probe, and a temperature detection module; the turning tool control device is connected to the memory, the turning tool, the probe, and the temperature detection module respectively; The memory stores a turning tool control program, and when the turning tool control program is executed by the turning tool control device, the steps of the above method are implemented.

[0015] The technical solution of the present invention is applied to a lathe. The lathe is equipped with a turning tool and a probe. The turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed. The probe measures the turning tool's offset in real time while controlling the turning tool to process the object to be processed. The offset indicates the difference between the turning tool's current processing position and the target processing position of the object to be processed. The offsets measured within the target time are then accumulated to calculate a cumulative offset. During this accumulation process, a second offset at time N+K is determined based on the first offset at time NK. Based on the second offset, the turning tool is controlled to adjust its current processing position at time N+K. The second offset is determined based on the smoothed first offset, where N>K. Finally, when the cumulative offset exceeds a threshold, an alert is issued and a prompt to replace the turning tool is prompted. In this way, by using the probe to measure the turning tool's offset in real time while controlling the turning tool to process the object to be processed, deviations in the turning tool's processing position during the processing process can be determined. The measured offsets are accumulated within a target time. During this accumulation process, a second offset at time N+K is determined based on the first offset at time NK. The second offset, obtained by smoothing the first offset, is used to control the adjustment of the tool's machining position. Because the second offset is determined after smoothing the first offset, it is ensured that the determined second offset will not significantly differ from the offsets corresponding to adjacent moments. This allows for a relatively gentle adjustment of the tool's machining position, preventing drastic changes in the tool's machining position between adjacent moments, which could result in significant differences in machining accuracy of the object being machined. Furthermore, when the calculated cumulative offset exceeds a threshold, an alert can be issued, prompting a tool replacement prompt. This facilitates timely tool replacement based on the alert, improving machining efficiency. The entire process is automated, eliminating the need for manual intervention. It can realize real-time measurement of the offset of the turning tool and smooth the offset so that the offset of adjusting the turning tool position between adjacent moments is a gradual process, avoiding using an offset with too large a difference value to adjust the turning tool position, which affects the processing accuracy of the object to be processed. In addition, by accumulating the offset and issuing an early warning, the staff can promptly know the status of the turning tool and make timely adjustments, which is conducive to improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0017] Figure 1 A flowchart of a turning tool control method provided by an embodiment of the present invention; Figure 2 A schematic structural diagram of a turning tool control device provided by an embodiment of the present invention; Figure 3 A structural schematic diagram of a lathe provided in an embodiment of the present invention.

[0018] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0020] In addition, in the present invention, descriptions such as "first" and "second" are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0021] In the research on related technologies, it was found that in the process of processing the object to be processed based on a lathe, due to the wear of the turning tool or deviation in the installation process, there will be a difference between the current processing position of the turning tool and the target processing position of the object to be processed. In order to ensure the processing accuracy of the object to be processed, the processing position of the turning tool needs to be adjusted in time.

[0022] Based on this, the present invention proposes a turning tool control method. This method can be automated, eliminating the need for manual control. The method measures the tool's offset in real time during machining, and smoothes the offset at a historical moment to determine a second offset. The tool's machining position is then adjusted based on the second offset. This method allows the tool to adjust its machining position while ensuring machining accuracy while avoiding drastic adjustments.

[0023] Reference Figures 1 to 3 , Figure 1A flowchart of a turning tool control method provided by an embodiment of the present invention; Figure 2 A schematic structural diagram of a turning tool control device provided by an embodiment of the present invention; Figure 3 A structural schematic diagram of a lathe provided in an embodiment of the present invention.

[0024] In an embodiment of the present invention, the turning tool control method provides a method for controlling the turning tool to adjust the processing position while ensuring the processing accuracy while avoiding drastic changes in the amplitude adjustment; the method is applied to a lathe, which is provided with a turning tool and a probe, the turning tool is used to process the object to be processed, and the probe is used to detect the processing accuracy of the object to be processed, such as Figure 1 shown The technical solution of the present invention includes: S11: in the process of controlling the turning tool to process the object to be processed, using the probe to measure the offset of the turning tool in real time.

[0025] The technical solution of the present invention involves lathe machining. During the lathe machining process, wear of the turning tool causes the turning tool to vibrate, which in turn causes the turning tool's machining position to shift. The aforementioned shift indicates the difference between the turning tool's current machining position and the target machining position of the object to be machined. The target machining position refers to a predetermined position at which the object to be machined is to be machined. This position can be achieved through a preset cutting program or other methods capable of presetting the machining position, and is not limited here.

[0026] The probe is a tool used to measure the length and diameter of the tool and to confirm whether the turning tool is excessively worn. The probe can be calibrated before the machine tool is operated. Based on the calibrated probe, during and after the turning tool processing, it can also accurately measure the length, diameter, thickness and other geometric dimensions of the object to be processed. The data fed back by the measurement system can be used to determine whether the object to be processed meets the processing accuracy requirements.

[0027] It should be noted that the probe has different triggering methods. The contact probe is the most common, and a signal will be generated when the probe contacts the surface of the object to be processed and reaches a certain trigger force. The size of the trigger force is an important parameter. Too large a trigger force may damage the surface of the object to be processed or cause the probe to wear, while too small a trigger force may cause the trigger signal to be unstable. There are also non-contact probes, such as optical probes and capacitive probes. These probes can avoid damage caused by contact with the surface of the object to be processed and are suitable for measuring some soft materials or high-precision surfaces. In related technologies, the probe cannot smoothly compensate for the tool offset, and the compensation of the probe is passive and lags behind the processing process.

[0028] By using a probe to measure the offset of the turning tool in real time while controlling the turning tool to process the object to be processed, the real-time offset of the turning tool during the processing of the object to be processed can be obtained in a timely manner, which facilitates the subsequent timely adjustment of the turning tool's processing position according to the real-time determined offset, thereby improving the processing efficiency of the object to be processed.

[0029] S12: Accumulate the offsets measured within the target time to calculate the accumulated offset.

[0030] As mentioned above, the offset of the turning tool is measured in real time using a probe. During the measurement process, the probe can accumulate the offset of the turning tool detected during the process and calculate the accumulated offset.

[0031] In one possible implementation, when the calculated cumulative offset reaches a certain critical value, it can be confirmed that the turning tool has an offset. At this time, the offset determined in the accumulation process can be used to adjust the processing position of the turning tool in the opposite direction of the offset direction. The setting of the critical value can make it possible to ignore extremely small offsets (offsets that do not reach the critical value) when determining the adjustment of the current processing position of the turning tool, because such offsets generally do not affect the processing accuracy of the object to be processed. If adjustments are made for any extremely small offsets, the workload of adjusting the turning tool will be greatly increased, and the processing efficiency of the lathe will also be unnecessarily affected. It should be noted that the specific numerical value of the critical value mentioned above can be determined by those skilled in the art according to actual conditions and application scenarios, and is not limited here.

[0032] S13: During the accumulation process, a second offset at time N+K is determined according to the first offset at time NK, and the turning tool is controlled based on the second offset to adjust the current machining position at time N+K.

[0033] The aforementioned S12 mentions "accumulating the offset measured within the target time." During this accumulation process, the second offset at time N+K is determined based on the first offset at time NK. For example, the second offset at time N+1 is determined based on the first offset at time N-1, where N>K and K>0. Assuming that the current time is the Nth second, the second offset at N+1 can be adjusted based on the first offset detected at N-1 seconds. If the first offset determined at N-1 seconds is 0.2mm to the left, the corresponding second offset at N+1 seconds is adjusted to 0.2mm to the right.

[0034] The second offset is determined based on the smoothed first offset. The goal of smoothing is to ensure a smooth trajectory of the tool's motion as it adjusts its current machining position based on the offset. This prevents sudden, drastic adjustments to the offset at a specific moment, which could cause significant changes in the tool's position and, consequently, uneven surfaces. Smoothing involves performing low-pass filtering based on a comprehensive assessment of the offsets at the previous and next moments, followed by linear interpolation to determine the first offset at the current moment.

[0035] The first offset at time NK obtained through smoothing can be used to determine a second offset at time N+K. The second offset is offset in the opposite direction of the first offset and has the same offset value as the first offset. The current machining position at time N+K can be adjusted using this second offset.

[0036] In an embodiment of the present application, the position of the turning tool needs to be adjusted to the target processing position of the object to be processed, so the adjustment process needs to be gradually adjusted in a targeted manner according to the different changes at each moment. At the same time, in order to avoid sudden and drastic changes in the adjustment of the current processing position of the turning tool, it is necessary to determine the offset through a smoothing method to avoid unevenness on the surface of the object to be processed.

[0037] S14: When the accumulated offset is greater than a threshold, an early warning is issued and a prompt is given to replace the turning tool.

[0038] As mentioned above, the offsets obtained by measuring the probe within the target time are accumulated and the cumulative offset is calculated. When the cumulative offset is greater than a threshold, it can be determined that the turning tool has been excessively worn. At this time, an early warning is issued and a prompt is given to replace the turning tool. This allows the staff to obtain the wear status of the turning tool in a timely manner and replace it in a timely manner. It should be noted that the threshold here refers to the critical value of the offset generated when the turning tool is judged to be worn and cannot be used (compared with the critical value mentioned above, "when the calculated cumulative offset reaches a certain critical value, it can be confirmed that the turning tool has an offset", the threshold here is larger). The threshold can be determined by those skilled in the art based on actual conditions and application scenarios, and is not limited here.

[0039] In this embodiment, a turning tool control method is proposed for use on a lathe. The lathe is equipped with a turning tool and a probe. The turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed. The probe measures the tool offset in real time while the turning tool is controlling the object to be processed. The offset indicates the difference between the tool's current processing position and the target processing position of the object to be processed. The offsets measured within a target time are then accumulated to calculate a cumulative offset. During this accumulation process, a second offset at time N+K is determined based on the first offset at time NK. Based on this second offset, the turning tool is controlled to adjust its current processing position at time N+K. The second offset is determined based on the smoothed first offset, where N>K. Finally, when the cumulative offset exceeds a threshold, an alert is issued, prompting a tool replacement request. In this manner, by using the probe to measure the tool offset in real time while the turning tool is controlling the object to be processed, deviations in the tool's processing position during the machining process can be determined. The measured offsets are accumulated within a target time. During this accumulation process, a second offset at time N+K is determined based on the first offset at time NK. The second offset, obtained by smoothing the first offset, is used to control the adjustment of the tool's machining position. Because the second offset is determined after smoothing the first offset, it is ensured that the determined second offset will not significantly differ from the offsets corresponding to adjacent moments. This allows for a relatively gentle adjustment of the tool's machining position, preventing drastic changes in the tool's machining position between adjacent moments, which could result in significant differences in machining accuracy of the object being machined. Furthermore, when the calculated cumulative offset exceeds a threshold, an alert can be issued, prompting a tool replacement prompt. This facilitates timely tool replacement based on the alert, improving machining efficiency. The entire process is automated, eliminating the need for manual intervention. It can realize real-time measurement of the offset of the turning tool and smooth the offset so that the offset of adjusting the turning tool position between adjacent moments is a gradual process, avoiding using an offset with too large a difference value to adjust the turning tool position, which affects the processing accuracy of the object to be processed. In addition, by accumulating the offset and issuing an early warning, the staff can promptly know the status of the turning tool and make timely adjustments, which is conducive to improving processing efficiency.

[0040] Optionally, the aforementioned S13 mentions "determining the second offset at moment N+K based on the first offset at moment NK, and controlling the turning tool to adjust the current processing position at moment N+K based on the second offset". In an embodiment of the present invention, a method for determining the second offset is provided. Before determining the second offset, it is necessary to obtain the first offset obtained through smoothing. The specific determination method is: first obtain the offset at moment NK-1 and the offset at moment N-K+1, where NK>1. Then, the offset at moment NK-1 and the offset at moment N-K+1 are smoothed to obtain the first offset at moment NK. Finally, the second offset at moment N+K is determined based on the first offset at moment NK, and the turning tool is controlled to adjust the current processing position at moment N+K based on the second offset.

[0041] In an embodiment of the present application, the second offset is determined based on the first offset, and the first offset is obtained through smoothing. When it is necessary to determine the first offset at moment NK, it is necessary to obtain the offset at moment NK-1 and the offset at moment N-K+1. The offset at moment NK-1 and the offset at moment N-K+1 are smoothed to obtain the first offset at moment NK. The difference between the first offset obtained after smoothing and the offset at moment NK-1 and the offset at moment N-K+1 is small, which is beneficial for ensuring that the difference in offsets between adjacent moments is small when adjusting the processing position based on the corresponding second offset, so that the adjustment process is smooth and gradual, and avoids the situation where the surface of the object to be processed becomes uneven due to a sudden change in the offset at a certain moment.

[0042] For example, if we need to determine the first offset at time N-1, we need to obtain the offsets at time N-2 and time N, and then perform smoothing on these offsets to obtain the first offset at time N-1. Then, based on the first offset at time N-1, we can determine the second offset at time N+K. Based on this second offset, we control the turning tool to adjust the current machining position at time N+K.

[0043] As previously mentioned, the relationship between the first and second offsets is that the offsets are in opposite directions but have the same value. Therefore, once the first offset is determined, the corresponding second offset can be determined. Based on the determined second offset, the turning tool can be controlled to adjust its current machining position at the corresponding moment.

[0044] By using the method for determining the second offset provided above, the offsets corresponding to the previous moment and the next moment are obtained, and the two offsets are smoothed to obtain the first offset corresponding to the current moment. The second offset corresponding to the current moment is determined based on the first offset, and the current processing position is adjusted based on the second offset. This can ensure that the difference in the second offsets corresponding to each moment is small, which is conducive to making the processing position adjustment process more gentle and avoiding the situation where the surface of the object to be processed is uneven due to a sudden change in the offset at a certain moment.

[0045] The aforementioned "smoothing of the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK" involves smoothing the offsets at the previous and next moments. This process can be implemented by performing linear interpolation based on the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK.

[0046] In the embodiment of the present application, the offset at time NK-1 and the offset at time N-K+1 are smoothed, and the smoothing process in the process of obtaining the first offset at time NK is achieved by linear interpolation.

[0047] The linear interpolation may be implemented by first determining an interpolation weight, and then obtaining a first offset at time NK based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1.

[0048] The first offset is correlated with the offset at time NK-1 and the offset at time N-K+1. The interpolation weight is used to determine the influence of the offset at time NK-1 and the offset at time N-K+1 on the determination of the first offset. Finally, the first offset at time NK is determined based on the determined interpolation weight, the offset at time NK-1, and the offset at time N-K+1.

[0049] The linear interpolation method can be used to ensure that the first offset determined at time NK includes relevant information about the offset at time NK-1 and the offset at time N-K+1, ensuring that the first offset is correlated with the offset at time NK-1 and the offset at time N-K+1. The specific degree of correlation is determined by the interpolation weight, so that the determined first offset does not differ drastically from the offsets at adjacent times.

[0050] By using the smoothing method provided above, linear interpolation is performed based on the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK. This ensures that the determined first offset has a strong correlation with the offset at time NK-1 and the offset at time N-K+1. Therefore, the first offset can ensure that the difference with the offset at adjacent moments is reduced, while reflecting the offset at the corresponding moment, which is beneficial to ensuring the smoothness of the turning tool adjustment process.

[0051] As mentioned above, it is necessary to determine the interpolation weight in the process of linear interpolation so that the first offset at time NK can be obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1. In the technical solution of the present invention, the method for determining the interpolation weight can be: first obtain the offset at time NK-1 and the offset at time N-K+1, and then calculate the sum of the offset at time NK-1 and the offset at time N-K+1; finally, determine the interpolation weight based on the ratio of the offset at time N-K+1 to the total.

[0052] Therefore, the interpolation weight is correlated with the offset at time NK-1 and the offset at time N-K+1. The interpolation weight is determined based on the above two offsets. When the interpolation weight at time NK needs to be determined, it can be implemented based on the following formula: Interpolation weight at time NK = offset at time N-K+1 / (offset at time NK-1 + offset at time N-K+1); For example, suppose you need to determine the interpolation weight corresponding to time N. The offset at time N-1 is 0.5 mm to the left, and the offset at time N+1 is 0.1 mm to the right. The sum of the two offsets is 0.6 mm. The interpolation weight corresponding to time N is 0.1 / (0.1+0.5)=0.166.

[0053] From the above, it can be seen that the interpolation weight at moment NK is the ratio of the offset at moment N-K+1 to the total offset of the offset at moment NK-1 and the offset at moment N-K+1, that is, the interpolation weight at moment NK is more closely related to the offset at moment N-K+1 than the offset at moment NK-1. The purpose of this is to make the adjustment of the machining position of the turning tool followable, that is, to make the determined first offset closer to the offset corresponding to the next moment, so as to achieve the purpose of smooth and gentle adjustment of the machining position.

[0054] By using the above-provided method for determining the interpolation weight, the offset at time NK-1 and the offset at time N-K+1 are obtained, and the interpolation weight is determined based on the ratio of the offset at time N-K+1 to the sum of the two offsets. This ensures that the first offset determined based on the interpolation weight has a strong correlation with the subsequent moment (i.e., time N-K+1), so that the determined first offset has a follow-up effect with the offset at the next moment, ensuring that the changing trend between the offsets is relatively stable.

[0055] The aforementioned S13 mentions "determining a second offset at time N+K based on the first offset at time NK, and controlling the turning tool to adjust the current machining position at time N+K based on the second offset." In the technical solution of the present invention, a first offset set corresponding to the offset within a time period can be determined, with each time period as the unit, and then the corresponding second offset can be determined based on the first offset at each moment in the first offset set. The method can be: first, smoothing the offsets of the first target time period to obtain a first offset set, and then determining a second offset set corresponding to the second target time period based on the first offset set.

[0056] The first target period includes N moments, and there is a corresponding relationship between the moments and the offsets. The target period is determined with the current moment as a reference. The first target period refers to the period before the current moment. The target period can include multiple moments, and the offsets corresponding to different moments may vary.

[0057] A first offset set can be obtained by smoothing the offsets involved in the first target period. The specific smoothing method has been described in detail above and will not be repeated here. Based on the determined first offset set, a second offset set corresponding to the second target period can be determined. The second target period is also determined with the current time as a reference and is a period after the current time.

[0058] For example, assuming the current time is N, and the first target period is (NL), the corresponding second target period is (N+L). There are L corresponding time points in each of the first and second target periods. During this process, the offsets for the L time points in the (NL) period before time N can be low-pass filtered to ensure smooth variations between the first offsets in the resulting first offset set. This first offset set for the first target period can then be used to determine a second offset set for the L time points in the (N+L) period after time N. This second offset set includes the second offsets for these L time points.

[0059] The method for determining the second offset set can smooth the offset of the first target time period to obtain a first offset set, and the corresponding second offset set is determined according to the first offset set. By determining the first offset set and the second offset set in the form of a set, the determination of the offset can be realized by taking the time period as a unit. In this way, it can be ensured that the change of the offset between the multiple time points involved in the first target time period is smooth, and the situation that the machining surface of the object to be machined is uneven due to the sudden change of the offset of a single time point is avoided.

[0060] As mentioned in the foregoing description of linear interpolation, the first offset of the N-K time point is obtained based on the interpolation weight, the offset of the N-K-1 time point and the offset of the N-K+1 time point. It can be known that there is a correlation between the first offset of the N-K time point and the offset of the N-K-1 time point, and there is also a correlation between the first offset of the N-K time point and the offset of the N-K+1 time point. In the technical solution of the application, for the two correlations, it can be that the greater the difference between the offset of the N-K-1 time point and the offset of the N-K+1 time point, the closer the first offset of the N-K time point obtained based on the interpolation weight, the offset of the N-K-1 time point and the offset of the N-K+1 time point to the offset of the N-K+1 time point.

[0061] That is, when determining the first offset of a certain time point (N-K time point), the offsets corresponding to the previous time point (N-K-1 time point) and the next time point (N-K+1 time point) of the time point are obtained. If the greater the difference between the offset of the previous time point and the offset of the next time point, the closer the first offset obtained to the offset corresponding to the next time point (N-K+1 time point).

[0062] The calculation method of the first offset determined by the linear interpolation smoothing processing can be seen from the following formula: first offset=(1-a)x+ay. Where a refers to the interpolation weight, when calculating the first offset of the N-K time point, x refers to the offset corresponding to the N-K-1 time point, and y refers to the offset corresponding to the N-K+1 time point. When the value of a is greater, the proportion of the offset corresponding to the N-K+1 time point in the first offset is greater, and the first offset determined is closer to the offset corresponding to the N-K+1 time point.

[0063] It is mentioned in the foregoing introduction that the interpolation weight has a correlation with the offset at the N-K-1 moment and the offset at the N-K+1 moment, and when the interpolation weight at the N-K moment is greater than 0.5, the interpolation weight at the N-K moment can be 0.6 N-K+1 offset + 0.4 N-K-1 offset, taking 0.6 as an example.

[0064] From the above method for determining the first offset, it can be seen that when the offset difference between the previous moment and the next moment is large, the determined first offset should be closer to the offset corresponding to the next moment, so as to achieve the effect of following the offset, so that the change trend between the offsets is kept in a relatively stable state, which is beneficial to the machining effect of the object to be machined even in the process of adjustment.

[0065] It is mentioned in the foregoing S11 that "during the process of controlling the turning tool to machine the object to be machined, the offset of the turning tool is measured in real time by the measuring head", and in the technical solution of the present application, in addition to measuring the offset of the turning tool by the measuring head, the offset can also be measured and determined based on temperature information. The method can be: first, during the process of controlling the turning tool to machine the object to be machined, the temperature information is detected in real time, and then the offset of the turning tool is determined based on the temperature information.

[0066] That is, during the process of machining the object to be machined by the turning tool, the temperature information is detected in real time, and the offset of the turning tool can be determined according to the temperature information, and then the offset of the turning tool is actively compensated and adjusted, and then whether the machining process of the adjusted turning tool detected by the measuring head meets the machining precision requirements of the object to be machined can be determined. If not, the offset can be compensated based on the detection result of the measuring head.

[0067] It should be noted that the temperature information is introduced because the measurement accuracy of the machine tool measuring head is affected by the temperature of the measurement environment, and temperature changes can cause thermal expansion of the machine tool and the object to be machined, thereby changing the measured offset and causing measurement errors. Therefore, the detection of temperature information can be used as a reference together with the measurement result of the measuring head to reduce the influence of measurement errors.

[0068] Through the above-mentioned method for determining the offset of the turning tool, the temperature information in the machining process is obtained before the offset of the turning tool is detected in real time by the measuring head, and the offset of the turning tool is determined based on the temperature information. Combined with the measurement of the measuring head, the measurement accuracy of the measuring head can be improved to a certain extent due to temperature changes, measurement errors can be reduced, and the efficiency of adjusting the offset of the turning tool can be improved.

[0069] The present invention also provides a turning tool control device, Figure 2 This is a schematic structural diagram of a turning tool control device provided in an embodiment of the present invention. The turning tool control device is applied to a lathe. The lathe is provided with a turning tool and a probe. The turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed. The device includes: a measuring module 100, a calculating module 200, an adjusting module 300, and an early warning module 400; The measuring module 100 is configured to measure the offset of the turning tool in real time using the probe while controlling the turning tool to process the object to be processed, wherein the offset indicates the difference between the current processing position of the turning tool and the target processing position of the object to be processed; The calculation module 200 is configured to accumulate the offsets measured within the target time and calculate a cumulative offset; The adjustment module 300 is configured to determine, during the accumulation process, a second offset at time N+K based on the first offset at time NK, and control the turning tool to adjust the machining position based on the second offset, wherein the second offset is determined based on the smoothed first offset, where N>K; The warning module 400 is configured to issue a warning and prompt the user to replace the turning tool when the accumulated offset is greater than a threshold.

[0070] In a possible implementation, the adjustment module 300 is configured to: Get the offset at time NK-1 and time N-K+1, where NK>1; Smoothing the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK; The second offset at the time N+K is determined according to the first offset at the time NK, and the turning tool is controlled based on the second offset to adjust the current machining position at the time N+K.

[0071] In a possible implementation, the apparatus further includes a smoothing processing module, and the smoothing processing module is configured to: Performing linear interpolation based on the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK; The linear interpolation includes: Determine interpolation weights; The first offset at the time NK is obtained based on the interpolation weight, the offset at the time NK-1, and the offset at the time N-K+1.

[0072] In a possible implementation, the smoothing processing module is configured to: Obtaining the offset of the NK-1 time and the offset of the N-K+1 time; Calculate the sum of the offset at time NK-1 and the offset at time N-K+1; The interpolation weight is determined based on a ratio of the offset at the N-K+1 time to the sum.

[0073] In a possible implementation, the apparatus further includes a set determining module, wherein the set determining module is configured to: Smoothing the offsets of a first target period to obtain a first offset set, where the first target period includes N moments, and there is a correspondence between the moments and the offsets; A second offset set corresponding to a second target period is determined based on the first offset set.

[0074] In a possible implementation, the smoothing processing module is configured to: When the difference between the offset at the NK-1 moment and the offset at the N-K+1 moment is larger, the first offset at the NK moment obtained based on the interpolation weight, the offset at the NK-1 moment and the offset at the N-K+1 moment is closer to the offset at the N-K+1 moment.

[0075] In a possible implementation, the device further includes a temperature detection module, wherein the temperature detection module is configured to: In the process of controlling the turning tool to process the object to be processed, detecting temperature information in real time; An offset of the turning tool is determined based on the temperature information.

[0076] In an embodiment of the present invention, a turning tool control device is provided for use on a lathe. The lathe is equipped with a turning tool and a probe. The turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed. The device includes a measurement module, a calculation module, an adjustment module, and an early warning module. The measurement module is used to use the probe to measure the turning tool's offset in real time while controlling the turning tool to process the object to be processed. The offset indicates the difference between the turning tool's current processing position and the target processing position of the object to be processed. The calculation module is used to accumulate the offsets measured within a target time to calculate a cumulative offset. The adjustment module is used to determine a second offset at time N+K based on the first offset at time NK during the accumulation process, and control the turning tool to adjust its processing position based on the second offset. The second offset is determined based on the smoothed first offset, where N>K. The early warning module is used to issue an early warning and prompt the user to replace the turning tool when the cumulative offset exceeds a threshold. In this way, by using the probe to measure the turning tool's offset in real time while controlling the turning tool to process the object to be processed, deviations in the turning tool's processing position during the processing process can be determined. The measured offsets are accumulated within a target time. During this accumulation process, a second offset at time N+K is determined based on the first offset at time NK. The second offset, obtained by smoothing the first offset, is used to control the adjustment of the tool's machining position. Because the second offset is determined after smoothing the first offset, it is ensured that the determined second offset will not significantly differ from the offsets corresponding to adjacent moments. This allows for a relatively gentle adjustment of the tool's machining position, preventing drastic changes in the tool's machining position between adjacent moments, which could result in significant differences in machining accuracy of the object being machined. Furthermore, when the calculated cumulative offset exceeds a threshold, an alert can be issued, prompting a tool replacement prompt. This facilitates timely tool replacement based on the alert, improving machining efficiency. The entire process is automated, eliminating the need for manual intervention. It can realize real-time measurement of the offset of the turning tool and smooth the offset so that the offset of adjusting the turning tool position between adjacent moments is a gradual process, avoiding using an offset with too large a difference value to adjust the turning tool position, which affects the processing accuracy of the object to be processed. In addition, by accumulating the offset and issuing an early warning, the staff can promptly know the status of the turning tool and make timely adjustments, which is conducive to improving processing efficiency.

[0077] The embodiment of the present invention further provides a lathe, Figure 3The present invention provides a structural schematic diagram of a lathe, which includes a turning tool control device 10, a turning tool 20, a probe 30, and a temperature detection module 40. The turning tool control device 10 has been described in detail in the above introduction and will not be repeated here. The turning tool 20 is used to cut the object to be processed, and the probe 30 is suitable for detecting the processing accuracy of the object to be processed. During the detection process, the difference between the current processing position of the turning tool and the target processing position of the object to be processed is measured in real time. The temperature detection module 40 is used to assist the probe. When the ambient temperature changes, the offset of the turning tool is determined by the detected temperature information. In combination with the probe, the accuracy of the current processing accuracy of the turning tool is ensured. The lathe can realize real-time measurement of the offset of the turning tool and smooth processing of the offset so that the offset of adjusting the turning tool position between adjacent moments is a gradual process, avoiding the use of offsets with too large difference values ​​to adjust the turning tool position, which affects the processing accuracy of the object to be processed. In addition, by accumulating the offset and issuing early warnings, the staff can promptly know the status of the turning tool and make timely adjustments, which is conducive to improving processing efficiency.

[0078] The embodiments of the present application also provide corresponding devices and computer-readable storage media for implementing the solutions provided by the embodiments of the present application.

[0079] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes, so that the device executes a turning tool control method described in any embodiment of the present application.

[0080] In practical applications, the computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an 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 the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0081] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0082] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0083] Computer program code for performing the operations of the present invention 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 cases involving a remote computer, the remote computer may be connected to the user's computer through 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., through the Internet using an Internet service provider).

[0084] The above descriptions are merely optional embodiments of the present invention and do not limit the patent scope of the present invention. All equivalent structural transformations made using the contents of the present description and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A turning tool control method, characterized in that: Applied to a lathe, the lathe is provided with a turning tool and a probe, the turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed, the method includes: In the process of controlling the turning tool to process the object to be processed, using the probe to measure the offset of the turning tool in real time, the offset being used to indicate the difference between the current processing position of the turning tool and the target processing position of the object to be processed; Accumulate the offsets measured within the target time to calculate a cumulative offset; During the accumulation process, a second offset at time N+K is determined based on the first offset at time NK, and the turning tool is controlled to adjust the current machining position at time N+K based on the second offset, wherein the second offset is determined based on the smoothed first offset, N>K, K>0; When the accumulated offset is greater than a threshold, an early warning is issued and a prompt is given to replace the turning tool.

2. The turning tool control method according to claim 1, characterized in that: Determining the second offset at time N+K according to the first offset at time NK, and controlling the turning tool to adjust the current machining position at time N+K based on the second offset, includes: Get the offset at time NK-1 and time N-K+1, where NK>1; Smoothing the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK; The second offset at the time N+K is determined according to the first offset at the time NK, and the turning tool is controlled based on the second offset to adjust the current machining position at the time N+K.

3. The turning tool control method according to claim 2, wherein: In the process of smoothing the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK, the smoothing method includes: Performing linear interpolation based on the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK; The linear interpolation includes: Determine interpolation weights; The first offset at the time NK is obtained based on the interpolation weight, the offset at the time NK-1, and the offset at the time N-K+1.

4. The turning tool control method according to claim 3, wherein: The determining of the interpolation weight comprises: Obtaining the offset of the NK-1 time and the offset of the N-K+1 time; Calculate the sum of the offset at time NK-1 and the offset at time N-K+1; The interpolation weight is determined based on a ratio of the offset at the N-K+1 time to the sum.

5. The turning tool control method according to claim 1, wherein: Before determining the second offset at time N+K according to the first offset at time NK, and controlling the turning tool to adjust the current machining position at time N+K based on the second offset, the method further includes: Smoothing the offsets of a first target period to obtain a first offset set, where the first target period includes N moments, and there is a correspondence between the moments and the offsets; A second offset set corresponding to a second target period is determined based on the first offset set.

6. The turning tool control method according to claim 4, characterized in that: The obtaining the first offset at time NK based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1 includes: When the difference between the offset at the NK-1 moment and the offset at the N-K+1 moment is larger, the first offset at the NK moment obtained based on the interpolation weight, the offset at the NK-1 moment and the offset at the N-K+1 moment is closer to the offset at the N-K+1 moment.

7. The turning tool control method according to claim 1, wherein: Before using the probe to measure the offset of the turning tool in real time, the method further includes: In the process of controlling the turning tool to process the object to be processed, detecting temperature information in real time; An offset of the turning tool is determined based on the temperature information.

8. A turning tool control device, characterized in that: Applied to a lathe, the lathe is provided with a turning tool and a probe, the turning tool is used to process an object to be processed, and the probe is used to detect the processing accuracy of the object to be processed. The device includes: a measuring module, a calculating module, an adjusting module and an early warning module; The measuring module is configured to measure the offset of the turning tool in real time using the probe while controlling the turning tool to process the object to be processed, wherein the offset indicates the difference between the current processing position of the turning tool and the target processing position of the object to be processed; The calculation module is used to accumulate the offsets measured within the target time and calculate the accumulated offsets; The adjustment module is configured to determine, during the accumulation process, a second offset at time N+K based on the first offset at time NK, and control the turning tool to adjust the machining position based on the second offset, wherein the second offset is determined based on the smoothed first offset, where N>K; The early warning module is used to issue an early warning and prompt the user to replace the turning tool when the accumulated offset is greater than a threshold.

9. A lathe, characterized in that: The lathe comprises a memory, a turning tool control device, a turning tool, a probe and a temperature detection module; the turning tool control device is connected to the memory, the turning tool, the probe and the temperature detection module respectively; The memory stores a turning tool control program, and when the turning tool control program is executed by the turning tool control device, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores an implementation program for implementing the turning tool control method. When the implementation program for implementing the turning tool control method is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Machine tool and method of correcting displacement of machine tool

    CN101151122A

  • Method for generating CNC machine offset based on thermal model

    CN109085797A

  • Correction system, machine tool, and correction method

    CN110968035A

  • Robot trajectory tracking control method based on visual guidance

    CN111590594A

  • Apparatus for adjusting a knife edge offset in a cutter toolhead

    CN113784820A