A method for controlling a cutting tool and a lathe

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

CN120755719BActive Publication Date: 2026-04-03广州台茂精密机械有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Wear of the cutting tool during machining causes vibration, which leads to displacement of the machining position and affects machining accuracy.

Method used

The tool offset is measured in real time by a 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 and replace the tool.

Benefits of technology

This technology helps avoid drastic changes in the tool position during machining, ensuring machining accuracy and allowing for timely tool replacement, thereby improving machining efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120755719B_ABST
    Figure CN120755719B_ABST
Patent Text Reader

Abstract

This invention discloses a lathe tool control method and a lathe, applied to a lathe equipped with a cutting tool and a probe. The cutting tool is used to machine an object, and the probe is used to detect the machining accuracy of the object. During the machining process, the probe measures the tool's offset in real time. The offsets measured within a target time are then accumulated to calculate the cumulative offset. During this accumulation, a second offset is determined at time N+K based on a first offset at time N-K. The cutting tool is then adjusted to its current machining position at time N+K based on this second offset, which is determined by smoothing the first offset. Finally, when the cumulative offset exceeds a threshold, a warning is issued, prompting the user to replace the cutting tool. This method enables precise control of the cutting tool to adjust its machining position, avoiding drastic changes in adjustment amplitude while maintaining machining accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a tool control method and a lathe. Background Technology

[0002] Lathe machining requires a positioning device and a cutting tool. The positioning device can be a fixture, which can fix the position of the object to be machined. The cutting tool can then cut the object on the fixture by means of a probe for calibration and a preset cutting program.

[0003] In related technologies, tool wear during machining can cause tool vibration, which in turn causes a shift in the machining position, resulting in a deviation in the machining position of the object to be machined, and thus affecting the machining accuracy of the object.

[0004] Based on the shortcomings of the aforementioned technologies, there is an urgent need for a method that can control the machining position of the lathe tool during the machining process to avoid drastic changes in the adjustment range, while ensuring machining accuracy. Summary of the Invention

[0005] The main objective of this invention is to provide a lathe tool control method and a lathe, which aims to control the lathe tool to adjust its machining position during the machining process to avoid drastic changes in the adjustment range, while ensuring machining accuracy.

[0006] To achieve the above objectives, the present invention proposes a cutting tool control method applied to a lathe, wherein the lathe is equipped with a cutting tool and a probe, the cutting tool is used to machine an object to be machined, and the probe is used to detect the machining accuracy of the object to be machined. The method includes:

[0007] During the process of controlling the cutting tool to process the workpiece, the probe is used to measure the offset of the cutting tool in real time. The offset is used to indicate the difference between the current processing position of the cutting tool and the target processing position of the workpiece.

[0008] The offsets measured within the target time are accumulated to calculate the cumulative offset.

[0009] During the accumulation process, the second offset at time N+K is determined based on the first offset at time NK, and the cutting tool is controlled to adjust the current machining position at time N+K based on the second offset. The second offset is determined based on the first offset after smoothing, where N>K and K>0.

[0010] When the cumulative offset exceeds the threshold, an early warning is issued and a prompt is made to replace the cutting tool.

[0011] Optionally, determining the second offset at time N+K based on the first offset at time NK, and controlling the cutting tool to adjust the current machining position at time N+K based on the second offset, includes:

[0012] Obtain the offset at time NK-1 and the offset at time N-K+1, where NK>1;

[0013] The offsets at time NK-1 and N-K+1 are smoothed to obtain the first offset at time NK.

[0014] The second offset at time N+K is determined based on the first offset at time NK, and the cutting tool is controlled to adjust the current machining position at time N+K based on the second offset.

[0015] 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:

[0016] Based on the offset at time NK-1 and the offset at time N-K+1, linear interpolation is performed to obtain the first offset at time NK;

[0017] The linear interpolation includes:

[0018] Determine the interpolation weights;

[0019] The first offset at time NK is obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1.

[0020] Optionally, determining the interpolation weights includes:

[0021] Obtain the offset at time NK-1 and the offset at time N-K+1;

[0022] Calculate the sum of the offset at time NK-1 and the offset at time N-K+1;

[0023] The interpolation weight is determined based on the ratio of the offset at time N-K+1 to the sum.

[0024] Optionally, before determining the second offset at time N+K based on the first offset at time NK, and controlling the cutting tool to adjust the current machining position at time N+K based on the second offset, the method further includes:

[0025] The offset of the first target time period is smoothed to obtain the first offset set. The first target time period includes N time periods, and there is a corresponding relationship between the time periods and the offsets.

[0026] The second offset set corresponding to the second target time period is determined based on the first offset set.

[0027] Optionally, obtaining the first offset at time NK based on the interpolation weights, the offset at time NK-1, and the offset at time N-K+1 includes:

[0028] The greater the difference between the offset at time NK-1 and the offset at time N-K+1, the closer the first offset at time NK, obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1, is to the offset at time N-K+1.

[0029] Optionally, before using the probe to measure the offset of the cutting tool in real time, the method further includes:

[0030] During the process of controlling the cutting tool to process the object to be processed, temperature information is detected in real time;

[0031] The offset of the cutting tool is determined based on the temperature information.

[0032] The present invention also proposes a cutting tool control device for use on a lathe, the lathe being equipped with a cutting tool and a probe, the cutting tool being used to machine an object to be machined, and the probe being used to detect the machining accuracy of the object to be machined. The device includes: a measurement module, a calculation module, an adjustment module, and an early warning module.

[0033] The measurement module is used to measure the offset of the cutting tool in real time using the probe during the process of controlling the cutting tool to process the object to be processed. The offset is used to indicate the difference between the current processing position of the cutting tool and the target processing position of the object to be processed.

[0034] The calculation module is used to accumulate the offset measured within the target time and calculate the cumulative offset.

[0035] The adjustment module is used to determine the second offset at time N+K based on the first offset at time NK during the accumulation process, and control the cutting tool to adjust the machining position based on the second offset. The second offset is determined based on the first offset after smoothing, where N>K.

[0036] The early warning module is used to issue an early warning and prompt the replacement of the cutting tool when the cumulative offset is greater than a threshold.

[0037] The present invention also proposes a lathe, the lathe comprising a memory, a tool control device, a tool, a probe, and a temperature detection module; the tool control device is connected to the memory, the tool, the probe, and the temperature detection module respectively;

[0038] The memory stores a cutting tool control program, which, when executed by the cutting tool control device, implements the steps of the above method.

[0039] This invention relates to a lathe equipped with a cutting tool and a probe. The cutting tool is used to machine the workpiece, and the probe is used to detect the machining accuracy of the workpiece. During the machining process, the probe measures the cutting tool's offset in real time. This offset indicates the difference between the cutting tool's current machining position and the target machining position of the workpiece. The offsets measured within a target time period are accumulated to calculate the cumulative offset. During this accumulation, a second offset is determined based on the first offset at time NK, and the cutting tool is adjusted at time N+K based on this second offset. The second offset is determined from the smoothed first offset, where N>K. Finally, when the cumulative offset exceeds a threshold, a warning is issued, prompting the tool to be replaced. Thus, by using a probe to measure the cutting tool's offset in real time during the machining process, the deviation of the cutting tool's machining position can be determined. The measured offsets are accumulated within the target time period. During this accumulation process, the 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, controls the adjustment of the cutting tool's machining position. Since the second offset is determined after smoothing the first offset, it ensures that the determined second offset does not differ significantly from the offsets at adjacent times. This allows for a gentle adjustment of the cutting tool's machining position, preventing drastic changes in the tool's position between adjacent times, which could lead to large discrepancies in the machining of the workpiece and affect machining accuracy. Furthermore, by calculating the accumulated offset, an early warning is issued when the accumulated offset exceeds a threshold, prompting a tool replacement. This allows operators to promptly replace the tool based on the warning, improving machining efficiency. The entire process is automated and does not rely on manual methods. It can achieve real-time measurement of the tool offset and smooth the offset so that the offset for adjusting the tool position between adjacent time points is a gradual process. This avoids using offsets with excessively large differences to adjust the tool position, which would affect the machining accuracy of the workpiece. Furthermore, by accumulating the offset and issuing warnings, the operator can be informed of the tool's status in a timely manner and make timely adjustments, which helps to improve machining efficiency. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0041] Figure 1 A flowchart of a cutting tool control method provided in an embodiment of the present invention;

[0042] Figure 2 This is a schematic diagram of a cutting tool control device provided in an embodiment of the present invention;

[0043] Figure 3 This is a schematic diagram of a lathe provided in an embodiment of the present invention.

[0044] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.

[0047] Research on related technologies has revealed that during the machining process of an object on a lathe, due to factors such as tool wear or deviations during installation, a difference may occur between the current machining position of the tool and the target machining position of the object. In order to ensure the machining accuracy of the object, it is necessary to adjust the machining position of the tool in a timely manner.

[0048] Based on this, the present invention proposes a cutting tool control method. This method automates the process without relying on manual intervention. It measures the cutting tool offset in real time during machining, and after smoothing based on historical offset values, determines a second offset. The machining position of the cutting tool is then adjusted according to this second offset. This approach ensures machining accuracy while avoiding drastic changes in the adjustment range.

[0049] Reference Figures 1 to 3 , Figure 1 A flowchart of a cutting tool control method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a cutting tool control device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a lathe provided in an embodiment of the present invention.

[0050] In this embodiment of the invention, the tool control method provides a way to control the tool to adjust the machining position while ensuring machining accuracy, avoiding drastic changes in the adjustment range. This method is applied to a lathe, which is equipped with a tool and a probe. The tool is used to machine the object to be machined, and the probe is used to detect the machining accuracy of the object. Figure 1 As shown

[0051] The technical solution of this invention includes:

[0052] S11: During the process of controlling the cutting tool to process the object to be processed, the offset of the cutting tool is measured in real time using the probe.

[0053] This invention relates to lathe machining. During lathe machining, tool wear causes tool vibration, which in turn leads to a shift in the tool's machining position. This shift indicates the difference between the tool's current machining position and the target machining position of the workpiece. The target machining position refers to a pre-set position where the workpiece needs to be machined. This position can be achieved through a preset cutting program or other methods that can preset the machining position; no limitation is made here.

[0054] The probe is a tool used to measure the length and diameter of the cutting tool and to confirm whether the cutting tool is excessively worn. The probe can be calibrated before the machine tool starts working. Based on the calibrated probe, the length, diameter, thickness and other geometric dimensions of the object to be processed can be accurately measured during and after the cutting tool is 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.

[0055] It's important to note that probes have different triggering methods. Contact probes are the most common; a signal is generated when the probe contacts the surface of the workpiece and reaches a certain triggering force. The magnitude of the triggering force is a crucial parameter; excessive force may damage the workpiece surface or cause probe wear, while insufficient force may lead to an unstable triggering signal. There are also non-contact probes, such as optical probes and capacitive probes. These probes avoid damage caused by contact with the workpiece surface and are suitable for measuring soft materials or high-precision surfaces. In related technologies, probes cannot smoothly compensate for tool deviation, and the probe's compensation is passive, lagging behind the machining process.

[0056] By using a probe to measure the offset of the cutting tool in real time during the machining process, the real-time offset of the cutting tool during the machining process can be obtained in a timely manner. This allows for timely adjustment of the cutting tool's machining position based on the real-time offset, thereby improving the machining efficiency of the workpiece.

[0057] S12: Accumulate the offset measured within the target time and calculate the cumulative offset.

[0058] As mentioned above, the probe is used to measure the offset of the cutting tool in real time. During the measurement process, the probe can accumulate the offset of the cutting tool detected during the process and calculate the cumulative offset.

[0059] In one possible implementation, when the calculated cumulative offset reaches a certain critical value, it can be confirmed that the cutting tool has deviated. At this point, the offset determined during the accumulation process can be used to adjust the machining position of the cutting tool in the opposite direction of the offset. Setting a critical value allows for the disregard for extremely small offsets (offsets that have not reached the critical value) when determining the current machining position of the cutting tool. This is because such offsets generally do not affect the machining accuracy of the workpiece. Adjusting for any extremely small offset would greatly increase the workload of cutting tool adjustment and unnecessarily affect the machining efficiency of the lathe. It should be noted that the specific value of the aforementioned critical value can be determined by those skilled in the art based on the actual situation and application scenario, and is not limited here.

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

[0061] As mentioned in S12 above, "the offset measured within the target time is accumulated." During the 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 the current time is the Nth second, the second offset at time N+1 can be adjusted based on the first offset detected at time N-1. If the first offset determined at time N-1 is a leftward offset of 0.2mm, the corresponding adjustment for the second offset at time N+1 is a rightward offset of 0.2mm.

[0062] The second offset is determined based on the first offset after smoothing. The purpose of smoothing is to ensure that the movement trajectory of the cutting tool is smooth during the adjustment of the tool's current machining position according to the offset, avoiding sudden and drastic adjustments to the offset at a certain moment, which could lead to large changes in the tool's position and unevenness on the machined surface. Smoothing refers to determining the first offset at the current moment by performing low-pass filtering and linear interpolation based on a comprehensive evaluation of the offsets at the previous and next moments.

[0063] Based on the first offset obtained from the smoothing process at time NK, a second offset at time N+K can be determined. The direction of the second offset is opposite to that of the first offset, and the value of the second offset is the same as that of the first offset. The current processing position at time N+K can be adjusted using the determined second offset.

[0064] In this embodiment of the application, the position of the cutting tool needs to be adjusted to the target machining position of the object to be machined. Therefore, the adjustment process needs to be adjusted gradually and specifically according to the different changes at each moment. At the same time, in order to avoid sudden and drastic changes in the current machining position of the cutting tool, the offset needs to be determined by a smoothing process to avoid unevenness on the surface of the object to be machined.

[0065] S14: When the cumulative offset is greater than the threshold, issue an early warning and prompt the user to replace the cutting tool.

[0066] As mentioned above, the offset measured by the probe within the target time is accumulated and calculated. When the accumulated offset exceeds a threshold, it can be determined that the cutting tool is excessively worn. At this point, an early warning is issued, prompting the replacement of the cutting tool. This allows staff to promptly obtain information on the tool's wear and replace it in a timely manner. It should be noted that the threshold here refers to the critical value of the offset that indicates the cutting tool has reached a point of wear and cannot be used (compared to the aforementioned critical value where "when the calculated accumulated offset reaches a certain critical value, it can be confirmed that the cutting tool has an offset," the threshold here is larger). This threshold can be determined by those skilled in the art based on the actual situation and application scenario, and is not limited here.

[0067] This embodiment proposes a tool control method applied to a lathe. The lathe is equipped with a cutting tool and a probe. The cutting tool is used to machine an object, and the probe is used to detect the machining accuracy of the object. During the machining process, the probe measures the tool's offset in real time. This offset indicates the difference between the tool's current machining position and the target machining position of the object. The offsets measured within a target time period are accumulated to calculate the cumulative offset. During this accumulation, a second offset is determined at time N+K based on the first offset at time NK. The tool is then adjusted to its current machining position at time N+K based on this second offset, which is determined by smoothing the first offset, where N>K. Finally, when the cumulative offset exceeds a threshold, a warning is issued, prompting the tool to be replaced. Thus, by using a probe to measure the tool's offset in real time during the machining process, the deviation of the tool's machining position can be determined. The measured offsets are accumulated within the target time period. During this accumulation process, the 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, controls the adjustment of the cutting tool's machining position. Since the second offset is determined after smoothing the first offset, it ensures that the determined second offset does not differ significantly from the offsets at adjacent times. This allows for a gentle adjustment of the cutting tool's machining position, preventing drastic changes in the tool's position between adjacent times, which could lead to large discrepancies in the machining of the workpiece and affect machining accuracy. Furthermore, by calculating the accumulated offset, an early warning is issued when the accumulated offset exceeds a threshold, prompting a tool replacement. This allows operators to promptly replace the tool based on the warning, improving machining efficiency. The entire process is automated and does not rely on manual methods. It can achieve real-time measurement of the tool offset and smooth the offset so that the offset for adjusting the tool position between adjacent time points is a gradual process. This avoids using offsets with excessively large differences to adjust the tool position, which would affect the machining accuracy of the workpiece. Furthermore, by accumulating the offset and issuing warnings, the operator can be informed of the tool's status in a timely manner and make timely adjustments, which helps to improve machining efficiency.

[0068] Optionally, S13 mentioned above, "determine the second offset at time N+K based on the first offset at time NK, and control the cutting tool to adjust the current machining position at time 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, a smoothed first offset needs to be obtained. The specific method is as follows: First, obtain the offset at time NK-1 and the offset at time N-K+1, where NK>1. Then, smooth the offset at time NK-1 and the offset at time N-K+1 to obtain the first offset at time NK. Finally, determine the second offset at time N+K based on the first offset at time NK, and control the cutting tool to adjust the current machining position at time N+K based on the second offset.

[0069] In this embodiment, the second offset is determined based on the first offset, which is obtained after smoothing. When determining the first offset at time NK, the offsets at time NK-1 and N-K+1 need to be obtained. Smoothing the offsets at time NK-1 and N-K+1 yields the first offset at time NK. The difference between the smoothed first offset and the offsets at time NK-1 and N-K+1 is small, which helps ensure minimal difference in offset between adjacent times when adjusting the processing position based on the corresponding second offset. This allows for a smooth and gradual adjustment process, preventing drastic shifts in offset at any given time from causing unevenness on the surface of the object being processed.

[0070] For example, suppose we need to determine the first offset at time N-1. Then we need to obtain the offsets at time N-2 and time N, perform smoothing on these offsets, and 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 the second offset, we control the cutting tool to adjust its current machining position at time N+K.

[0071] As mentioned earlier, the first offset and the second offset are related in that they have opposite directions but the same value. Therefore, once the first offset is determined, the corresponding second offset can be determined. Based on the determined second offset, the cutting tool can be controlled to adjust its current machining position at the corresponding moment.

[0072] The method for determining the second offset provided above obtains the offsets corresponding to the previous and next moments, smooths the two offsets to obtain the first offset corresponding to the current moment, determines the second offset corresponding to the current moment based on the first offset, and adjusts the current processing position based on the second offset. This ensures that the difference between the corresponding second offsets at each moment is small, which helps to make the processing position adjustment process more gentle and avoids the situation of uneven surface of the object to be processed caused by a sudden change in the offset at a certain moment.

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

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

[0075] The linear interpolation can be implemented as follows: first, determine the interpolation weights, and then obtain the first offset at time NK based on the interpolation weights, the offset at time NK-1, and the offset at time N-K+1.

[0076] The first offset is correlated with the offsets at time NK-1 and N-K+1. The interpolation weights are used to determine the degree of influence of the offsets at time NK-1 and N-K+1 on the determination of the first offset. Finally, the first offset at time NK can be determined based on the determined interpolation weights, the offset at time NK-1, and the offset at time N-K+1.

[0077] By using linear interpolation, the first offset at time NK can contain information about the offsets at times NK-1 and N-K+1, ensuring that the first offset is correlated with the offsets at times NK-1 and N-K+1. The specific degree of correlation is determined by the interpolation weights. This ensures that the determined first offset will not have drastic differences with the offsets at adjacent times.

[0078] The smoothing method described above uses linear interpolation based on the offsets at time NK-1 and N-K+1 to obtain the first offset at time NK. This ensures that the determined first offset is strongly correlated with both the offsets at time NK-1 and N-K+1. Therefore, this first offset can reduce the difference between the offsets at adjacent times and reflect the offset situation at the corresponding time, which is beneficial to ensuring the smoothness of the tool adjustment process.

[0079] As mentioned above, it is necessary to determine the interpolation weights during the linear interpolation process so that the first offset at time NK can be obtained subsequently based on the interpolation weights, the offset at time NK-1, and the offset at time N-K+1. In the technical solution of this invention, the method for determining the interpolation weights can be as follows: first, obtain the offsets at time NK-1 and time N-K+1; then, calculate the sum of the offsets at time NK-1 and time N-K+1; finally, determine the interpolation weights based on the ratio of the offset at time N-K+1 to the sum.

[0080] Therefore, the interpolation weights are correlated with both the offsets at time NK-1 and N-K+1, and are determined based on these two offsets. When determining the interpolation weights at time NK, the following formula can be used:

[0081] The interpolation weight at time NK = the offset at time N-K+1 / (the offset at time NK-1 + the offset at time N-K+1).

[0082] For example, suppose we need to determine the interpolation weight at time N. The offset at time N-1 is 0.5mm to the left, and the offset at time N+1 is 0.1mm to the right. The sum of the two offsets is 0.6mm. Therefore, the interpolation weight at time N is 0.1 / (0.1+0.5) = 0.166.

[0083] As can be seen from the above, the interpolation weight at time NK is the proportion of the offset at time N-K+1 to the total offset at time NK-1 and time N-K+1. In other words, the interpolation weight at time NK has a stronger correlation with the offset at time N-K+1 than the offset at time NK-1. The purpose of this is to make the adjustment of the machining position of the cutting tool more responsive, so that the determined first offset is closer to the offset at the next time, thus achieving a smooth and gentle adjustment of the machining position.

[0084] By using the method for determining interpolation weights provided above, the offsets at time NK-1 and N-K+1 are obtained. The interpolation weights are 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 by the interpolation weights has a strong correlation with the next time step (i.e., time N-K+1), and that the first offset has a following effect with the offset at the next time step, thus ensuring that the trend of change between the offsets is relatively stable.

[0085] As mentioned in S13 above, "the second offset at time N+K is determined based on the first offset at time NK, and the cutting tool is controlled to adjust the current machining position at time N+K based on the second offset." In the technical solution of this invention, a first offset set can be determined for the offset within a time period, and then the corresponding second offset is determined based on the first offset at each time in the first offset set. This method can be as follows: first, the offsets of the first target time period are smoothed to obtain the first offset set, and then the second offset set corresponding to the second target time period is determined based on the first offset set.

[0086] The first target time period includes N moments, with a corresponding relationship between each moment and its offset. The target time period is determined with the current moment as a reference. This first target time period refers to a period before the current moment, and it can include multiple moments. The offsets corresponding to different moments may differ.

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

[0088] For example, assuming the current time is N, and the first target time period is (NL), the corresponding second target time period is (N+L). Each of the first and second target time periods contains L time points. The process can begin by smoothing the offsets of the L time points in the (NL) time period before time N using low-pass filtering, ensuring that the changes between the various first offsets in the resulting first offset set are smooth. Then, using the determined first offset set for the first target time period, the second offset set for the L time points in the (N+L) time period after time N can be determined. This second offset set contains the second offsets for the L time points.

[0089] The method for determining the second offset set described above involves smoothing the offsets of the first target time period to obtain the first offset set, and then determining the corresponding second offset set based on the first offset set. By determining the first and second offset sets as sets, the time period can be used as the unit for offset determination. This ensures that the changes in offsets between multiple moments within the first target time period are smooth, avoiding abrupt changes in offsets at a single moment that could lead to unevenness on the surface of the object being processed.

[0090] The aforementioned description of linear interpolation mentions that "the first offset at time NK is obtained based on the interpolation weights, the offset at time NK-1, and the offset at time N-K+1". It can be seen that there are correlations between the first offset at time NK and the offset at time NK-1, as well as between the first offset at time NK and the offset at time N-K+1. In the technical solution of this invention, for the aforementioned two correlations, it can be said that: when the difference between the offset at time NK-1 and the offset at time N-K+1 is larger, the first offset at time NK obtained based on the interpolation weights, the offset at time NK-1, and the offset at time N-K+1 is closer to the offset at time N-K+1.

[0091] That is, when the first offset at a certain moment (NK moment) is determined, the offsets corresponding to the previous moment (NK-1 moment) and the next moment (N-K+1 moment) are obtained. If the difference between the offset of the previous moment and the next moment is larger, the first offset obtained will be closer to the offset corresponding to the next moment (N-K+1 moment).

[0092] The calculation method for the first offset determined by the smoothing process based on linear interpolation can be found in the following formula: First offset = (1-a)x + ay;

[0093] Here, 'a' refers to the interpolation weight. When calculating the first offset at time NK, 'x' refers to the offset at time NK-1, and 'y' refers to the offset at time N-K+1. The larger the value of 'a', the greater the proportion of the offset at time N-K+1 in the first offset, and thus the determined first offset is closer to the offset at time N-K+1.

[0094] As mentioned in the previous introduction, the interpolation weight is related to the offset at time NK-1 and time N-K+1. When the calculation result of the interpolation weight at time NK = offset at time N-K+1 / (offset at time NK-1 + offset at time N-K+1) is greater than 0.5, taking 0.6 as an example, the interpolation weight at time NK can be 0.6 offset at time N-K+1 + 0.4 offset at time NK-1.

[0095] As can be seen from the above method for determining the first offset, when the difference between the offsets of the previous moment and the next moment is large, the determined first offset should be closer to the offset corresponding to the next moment. This can achieve the effect of following the offset, so that the trend of the change between the offsets remains in a relatively stable state, which is conducive to the processing effect of the object to be processed being smoother even during the adjustment process.

[0096] As mentioned in S11 above, "during the process of controlling the cutting tool to process the workpiece, the offset of the cutting tool is measured in real time using the probe." In the technical solution of this invention, in addition to using the probe to measure the offset of the cutting tool, the offset can also be determined based on temperature information. This method can be as follows: first, during the process of controlling the cutting tool to process the workpiece, temperature information is detected in real time, and then the offset of the cutting tool is determined based on the temperature information.

[0097] In essence, during the machining process of the workpiece, temperature information is monitored in real time. Based on this temperature information, the offset of the cutting tool can be determined, and the offset can be actively compensated and adjusted. Then, a probe can be used to check whether the machining process of the adjusted cutting tool meets the machining accuracy requirements of the workpiece. If it does not meet the requirements, offset compensation can be performed again based on the probe's detection results.

[0098] It should be noted that temperature information detection is introduced because the measurement accuracy of the machine tool probe is affected by the temperature of the measurement environment. Temperature changes may cause thermal expansion of the machine tool and the workpiece, thereby altering the measured offset and leading to measurement errors. Therefore, incorporating temperature information detection allows it to be used as a reference along with the probe's measurement results, reducing the impact of measurement errors.

[0099] The method for determining the offset of a lathe tool provided above obtains temperature information during the machining process before using a probe to detect the offset of the lathe tool in real time. Based on this temperature information, the current offset of the lathe tool is determined. Combining this method with the measurement of the probe can, to a certain extent, avoid the decrease in the measurement accuracy of the probe due to temperature changes, reduce measurement errors, and improve the efficiency of adjusting the offset of the lathe tool.

[0100] The present invention also proposes a cutting tool control device. Figure 2 This is a schematic diagram of a lathe tool control device provided in an embodiment of the present invention. The lathe tool control device is applied to a lathe, which is equipped with a lathe tool and a probe. The lathe 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 100, a calculation module 200, an adjustment module 300, and an early warning module 400.

[0101] The measurement module 100 is used to measure the offset of the cutting tool in real time using the probe during the process of controlling the cutting tool to process the object to be processed. The offset is used to indicate the difference between the current processing position of the cutting tool and the target processing position of the object to be processed.

[0102] The calculation module 200 is used to accumulate the offset measured within the target time and calculate the cumulative offset.

[0103] The adjustment module 300 is used to determine the second offset at time N+K based on the first offset at time NK during the accumulation process, and control the cutting tool to adjust the machining position based on the second offset. The second offset is determined based on the first offset after smoothing, where N>K.

[0104] The early warning module 400 is used to issue an early warning and prompt the replacement of the cutting tool when the cumulative offset is greater than a threshold.

[0105] In one possible implementation, the adjustment module 300 is used to:

[0106] Obtain the offset at time NK-1 and the offset at time N-K+1, where NK>1;

[0107] The offsets at time NK-1 and N-K+1 are smoothed to obtain the first offset at time NK.

[0108] The second offset at time N+K is determined based on the first offset at time NK, and the cutting tool is controlled to adjust the current machining position at time N+K based on the second offset.

[0109] In one possible implementation, the apparatus further includes a smoothing module, the smoothing module being used for:

[0110] Based on the offset at time NK-1 and the offset at time N-K+1, linear interpolation is performed to obtain the first offset at time NK;

[0111] The linear interpolation includes:

[0112] Determine the interpolation weights;

[0113] The first offset at time NK is obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1.

[0114] In one possible implementation, the smoothing module is used to:

[0115] Obtain the offset at time NK-1 and the offset at time N-K+1;

[0116] Calculate the sum of the offset at time NK-1 and the offset at time N-K+1;

[0117] The interpolation weight is determined based on the ratio of the offset at time N-K+1 to the sum.

[0118] In one possible implementation, the apparatus further includes a set determination module, the set determination module being configured to:

[0119] The offset of the first target time period is smoothed to obtain the first offset set. The first target time period includes N time periods, and there is a corresponding relationship between the time periods and the offsets.

[0120] The second offset set corresponding to the second target time period is determined based on the first offset set.

[0121] In one possible implementation, the smoothing module is used to:

[0122] The greater the difference between the offset at time NK-1 and the offset at time N-K+1, the closer the first offset at time NK, obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1, is to the offset at time N-K+1.

[0123] In one possible implementation, the device further includes a temperature detection module, the temperature detection module being used for:

[0124] During the process of controlling the cutting tool to process the object to be processed, temperature information is detected in real time;

[0125] The offset of the cutting tool is determined based on the temperature information.

[0126] This invention proposes a lathe tool control device applied to a lathe. The lathe is equipped with a lathe tool and a probe. The lathe tool is used to machine an object, and the probe is used to detect the machining accuracy of the object. The device includes a measurement module, a calculation module, an adjustment module, and an early warning module. The measurement module measures the offset of the lathe tool in real time using the probe during the machining process. The offset indicates the difference between the current machining position of the lathe tool and the target machining position of the object. The calculation module accumulates the offsets measured within a target time period to calculate the cumulative offset. The adjustment module determines a second offset at time N+K based on a first offset at time NK during the accumulation process, and adjusts the machining position of the lathe tool based on the second offset, which is determined by smoothing the first offset, where N>K. The early warning module issues an early warning and prompts the user to replace the lathe tool when the cumulative offset exceeds a threshold. Thus, by using the probe to measure the offset of the lathe tool in real time during the machining process, the deviation of the machining position of the lathe tool can be determined. The measured offsets are accumulated within the target time period. During this accumulation process, the 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, controls the adjustment of the cutting tool's machining position. Since the second offset is determined after smoothing the first offset, it ensures that the determined second offset does not differ significantly from the offsets at adjacent times. This allows for a gentle adjustment of the cutting tool's machining position, preventing drastic changes in the tool's position between adjacent times, which could lead to large discrepancies in the machining of the workpiece and affect machining accuracy. Furthermore, by calculating the accumulated offset, an early warning is issued when the accumulated offset exceeds a threshold, prompting a tool replacement. This allows operators to promptly replace the tool based on the warning, improving machining efficiency. The entire process is automated and does not rely on manual methods. It can achieve real-time measurement of the tool offset and smooth the offset so that the offset for adjusting the tool position between adjacent time points is a gradual process. This avoids using offsets with excessively large differences to adjust the tool position, which would affect the machining accuracy of the workpiece. Furthermore, by accumulating the offset and issuing warnings, the operator can be informed of the tool's status in a timely manner and make timely adjustments, which helps to improve machining efficiency.

[0127] This invention also provides a lathe. Figure 3This is a schematic diagram of a lathe according to an embodiment of the present invention. The lathe includes a tool control device 10, a cutting tool 20, a probe 30, and a temperature detection module 40. The tool control device 10 has been described in detail above and will not be repeated here. The cutting tool 20 is used for cutting the workpiece. The probe 30 is used to detect the machining accuracy of the workpiece, measuring the difference between the current machining position of the cutting tool and the target machining position of the workpiece in real time. The temperature detection module 40 assists the probe; when the ambient temperature changes, it determines the offset of the cutting tool based on the detected temperature information, ensuring the accuracy of the determined machining accuracy of the current cutting tool in conjunction with the probe. This lathe enables real-time measurement and smoothing of the tool offset, ensuring that the tool position adjustment between adjacent moments is a gradual process. This avoids using excessively large offset values ​​to adjust the tool position, which could affect the machining accuracy of the workpiece. Furthermore, by accumulating offsets and issuing warnings, operators can promptly obtain information about the tool's status and make timely adjustments, thereby improving machining efficiency.

[0128] This application also provides corresponding devices and computer-readable storage media for implementing the solutions provided in this application.

[0129] The device includes a memory and a processor. The memory is used to store instructions or code, and the processor is used to execute the instructions or code to enable the device to perform a cutting tool control method according to any embodiment of this application.

[0130] In practical applications, the computer-readable storage medium can be 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. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0131] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0132] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0133] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0134] The above description is merely an optional embodiment of the present invention and does not limit the patent scope of the present invention. All equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. A method for controlling a lathe tool, characterized in that, The method is applied to a lathe, which is equipped with a cutting tool and a probe. The cutting tool is used to machine an object, and the probe is used to detect the machining accuracy of the object. The method includes: During the process of controlling the cutting tool to process the workpiece, the probe is used to measure the offset of the cutting tool in real time. The offset is used to indicate the difference between the current processing position of the cutting tool and the target processing position of the workpiece. The offsets measured within the target time are accumulated to calculate the cumulative offset. During the accumulation process, the second offset at time N+K is determined by inverting the first offset at time NK. Based on the second offset, the cutting tool is controlled to adjust the current machining position at time N+K. The second offset is determined based on the first offset after smoothing, where N>K and K>0. When the cumulative offset exceeds the threshold, an early warning is issued and a prompt is made to replace the cutting tool. The step of determining the second offset at time N+K by inverting the first offset at time NK, and controlling the cutting tool to adjust the current machining position at time N+K based on the second offset, includes: Obtain the offset at time NK-1 and the offset at time N-K+1, where NK>1; The offsets at time NK-1 and N-K+1 are smoothed to obtain the first offset at time NK. The second offset at time N+K is determined by inverting the first offset at time NK, and the cutting tool is controlled to adjust the current machining position at time N+K based on the second offset. The smoothing process includes: Based on the offset at time NK-1 and the offset at time N-K+1, linear interpolation is performed to obtain the first offset at time NK; The linear interpolation includes: Determine the interpolation weights; The first offset at time NK is obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1.

2. The cutting tool control method as described in claim 1, characterized in that, The determination of interpolation weights includes: Obtain the offset at time NK-1 and the offset at time N-K+1; 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 the ratio of the offset at time N-K+1 to the sum.

3. The cutting tool control method as described in claim 1, characterized in that, Before determining the second offset at time N+K by inverting the first offset at time NK, and controlling the cutting tool to adjust the current machining position at time N+K based on the second offset, the method further includes: The offset of the first target time period is smoothed to obtain the first offset set. The first target time period includes N time periods, and there is a corresponding relationship between the time periods and the offsets. The second offset set corresponding to the second target time period is determined based on the first offset set.

4. The cutting tool control method as described in claim 2, characterized in that, The step of obtaining the first offset at time NK based on the interpolation weights, the offset at time NK-1, and the offset at time N-K+1 includes: The greater the difference between the offset at time NK-1 and the offset at time N-K+1, the closer the first offset at time NK, obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1, is to the offset at time N-K+1.

5. The cutting tool control method as described in claim 1, characterized in that, Before using the probe to measure the offset of the cutting tool in real time, the method further includes: During the process of controlling the cutting tool to process the object to be processed, temperature information is detected in real time; The offset of the cutting tool is determined based on the temperature information.

6. A cutting tool control device, characterized in that, The device is applied to a lathe, which is equipped with a cutting tool and a probe. The cutting tool is used to machine an object, and the probe is used to detect the machining accuracy of the object. The device includes: a measurement module, a calculation module, an adjustment module, and an early warning module. The measurement module is used to measure the offset of the cutting tool in real time using the probe during the process of controlling the cutting tool to process the object to be processed. The offset is used to indicate the difference between the current processing position of the cutting tool and the target processing position of the object to be processed. The calculation module is used to accumulate the offset measured within the target time and calculate the cumulative offset. The adjustment module is used to determine the second offset at time N+K by inverting the first offset at time NK during the accumulation process, and control the cutting tool to adjust the machining position based on the second offset. The second offset is determined based on the first offset after smoothing, where N>K. The early warning module is used to issue an early warning and prompt the replacement of the cutting tool when the cumulative offset is greater than a threshold. The adjustment module is used for: Obtain the offset at time NK-1 and the offset at time N-K+1, where NK>1; The offsets at time NK-1 and N-K+1 are smoothed to obtain the first offset at time NK. The second offset at time N+K is determined by inverting the first offset at time NK, and the cutting tool is controlled to adjust the current machining position at time N+K based on the second offset. The device further includes a smoothing module, the smoothing module being used for: Based on the offset at time NK-1 and the offset at time N-K+1, linear interpolation is performed to obtain the first offset at time NK; The linear interpolation includes: Determine the interpolation weights; The first offset at time NK is obtained based on the interpolation weight, the offset at time NK-1, and the offset at time N-K+1.

7. A lathe, characterized in that, The lathe includes a memory, a tool control device, a tool, a probe, and a temperature detection module; the tool control device is connected to the memory, the tool, the probe, and the temperature detection module respectively. The memory stores a cutting tool control program, which, when executed by the cutting tool control device, implements the steps of the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an implementation program for the tool control method, which, when executed by a processor, implements the steps of the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Displacement correction device and displacement correction method for machine tool

    CN116765930A

  • Method for monitoring and identifying wear degree of turning tool

    CN117415676A

  • Metal machining drilling high-precision positioning method

    CN117911501A