Processing data processing method, device and electronic equipment of tap tool

By acquiring the machining data segments and state sets of tapping tools, determining the target data segment, and using the spindle speed of 0 and the minimum data to eliminate interfering data, the problem of low accuracy in tapping tool detection is solved, and efficient and accurate detection results are achieved.

CN115858516BActive Publication Date: 2026-05-19BEIJING FANUC MECHATRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING FANUC MECHATRONICS CO LTD
Filing Date
2022-12-12
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing tap tool machining data detection technologies have low accuracy, especially in small-scale tapping with light cutting amounts, where the accuracy in detecting cutting edge breakage and tap wear is low.

Method used

By acquiring machining data segments and corresponding tool state sets, the target data segments that meet the preset tool state are determined, interference data from non-tapping processes are eliminated, and the effective data segments are determined using the starting and minimum data when the spindle speed is 0, thus achieving efficient detection of tap tools.

Benefits of technology

It improves the accuracy of tap tool machining data detection, eliminates the influence of interfering data, and improves the reliability and efficiency of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115858516B_ABST
    Figure CN115858516B_ABST
Patent Text Reader

Abstract

The application discloses a processing data processing method and device of a tap cutter and electronic equipment, and belongs to the technical field of cutter detection. The method comprises the following steps: in the tapping process of a tap cutter, the processing data segment of the cutter and the cutter state set corresponding to the processing data segment are acquired; the target cutter state set meeting a preset cutter state in the cutter state set is acquired, and a first data segment is determined from the processing data segment based on the target cutter state set; a starting data is determined from the first data segment, the starting data being the processing data corresponding to the position of the tap cutter reaching the hole bottom of a hole; a target data segment is determined from the first data segment based on a first preset data length and the starting data; and an effective data segment is determined from the target data segment based on a second preset data length and the minimum data in the target data segment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of cutting tool inspection technology, specifically relating to a method, apparatus and electronic equipment for processing machining data of tapping tools. Background Technology

[0002] In the metal cutting process, tapping is more difficult than other processes and is also the most likely to cause product quality defects. Therefore, it is necessary to inspect the machining data of the tap tool, which is generally done by contact inspection devices and manual sampling.

[0003] During tapping, taps are prone to three main problems: overall breakage, cutting edge chipping, and tap wear. Contact-type inspection devices can only detect overall breakage, which is not comprehensive. Manual sampling inspection relies on manual use of go / no-go gauges or visual inspection to determine if the thread meets requirements, which is inefficient and, in cases of small-diameter, light-cut tapping, the accuracy of detecting cutting edge chipping and excessive tap wear is low. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, and electronic device for processing machining data of tapping tools, which can solve the problem of low accuracy of detection results in existing machining data detection technologies for tapping tools.

[0005] In a first aspect, embodiments of this application provide a method for processing machining data of tapping tools, the method comprising:

[0006] During the tapping process, the machining data segment of the tool and the tool state set corresponding to the machining data segment are acquired;

[0007] Obtain a target tool state set that conforms to a preset tool state from the tool state set, and determine a first data segment from the machining data segment based on the target tool state set;

[0008] Determine the starting data from the first data segment. The starting data is the machining data corresponding to when the tap tool reaches the bottom position of the wire hole.

[0009] Based on the first preset data length and the starting data, a target data segment is determined from the first data segment;

[0010] Based on the second preset data length and the minimum data in the target data segment, a valid data segment is determined from the target data segment.

[0011] Optionally, determining the starting data from the first data segment includes:

[0012] Obtain the first index sequence corresponding to the first data segment;

[0013] Obtain the second data segment corresponding to the spindle speed of the tap tool being 0 from the first data segment, and obtain the second index sequence corresponding to the second data segment from the first index sequence;

[0014] A starting index is determined from the second index sequence, wherein the starting index is the index of the machining data corresponding to the bottom position of the tap tool when it reaches the hole bottom position;

[0015] Based on the starting index, the starting data is determined in the first data segment.

[0016] Optionally, determining the starting index from the second index sequence includes:

[0017] The second index sequence is subjected to first-order differencing to obtain a difference sequence, wherein each value in the difference sequence corresponds to a different index in the second index sequence;

[0018] A starting sequence is determined from the difference sequence, wherein each value in the starting sequence is greater than 1;

[0019] The index in the second index sequence that corresponds to the value in the starting sequence is determined as the starting index.

[0020] Optionally, the tool state includes spindle state, cutting feed state, tapping state, and tool downward feed state; the spindle state, cutting feed state, tapping state, and tool downward feed state corresponding to each data in the first data segment all satisfy the preset tool state.

[0021] Secondly, embodiments of this application provide a machining data processing device for tapping tools, the device comprising:

[0022] The acquisition module is used to acquire the machining data segment of the tool and the tool state set corresponding to the machining data segment during the tapping process;

[0023] The first determining module is used to obtain a target tool state set that conforms to a preset tool state from the tool state set, and to determine a first data segment from the machining data segment based on the target tool state set;

[0024] The second determining module determines the starting data from the first data segment. The starting data is the processing data corresponding to when the tap tool reaches the bottom position of the wire hole.

[0025] The third determining module is used to determine the target data segment from the first data segment based on the first preset data length and the starting data;

[0026] The fourth determining module is used to determine a valid data segment from the target data segment based on the second preset data length and the minimum data in the target data segment.

[0027] Optionally, the second determining module includes:

[0028] The first acquisition submodule is used to acquire the first index sequence corresponding to the first data segment;

[0029] The second acquisition submodule is used to acquire the second data segment corresponding to the spindle speed of the tap tool being 0 from the first data segment, and to acquire the second index sequence corresponding to the second data segment from the first index sequence;

[0030] The first determining submodule is used to determine the starting index from the second index sequence, wherein the starting index is the index of the machining data corresponding to the bottom position of the tap tool when it reaches the hole bottom position;

[0031] The second determining submodule is used to determine the starting data in the first data segment based on the starting index.

[0032] Optionally, the first determining submodule is further configured to:

[0033] The second index sequence is subjected to first-order differencing to obtain a difference sequence, wherein each value in the difference sequence corresponds to a different index in the second index sequence;

[0034] A starting sequence is determined from the difference sequence, wherein each value in the starting sequence is greater than 1;

[0035] The index in the second index sequence that corresponds to the value in the starting sequence is determined as the starting index.

[0036] Optionally, the tool state includes spindle state, cutting feed state, tapping state, and tool downward feed state; the spindle state, cutting feed state, tapping state, and tool downward feed state corresponding to each data in the first data segment all satisfy the preset tool state.

[0037] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor. When the program or instructions are executed by the processor, they implement the steps of the machining data processing method for tapping tools as described in the first aspect.

[0038] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the machining data processing method for tapping tools as described in the first aspect.

[0039] In this embodiment, based on a preset tool state, a first data segment is determined from the machining data segment obtained during the tapping process of the tapping tool. By determining the starting data, a target data segment is determined from the first data segment. Finally, based on the minimum data of the target data segment, a valid data segment is obtained from the target data segment. This process involves multiple elimination of interfering data, thereby improving the accuracy of the machining data detection results. Attached Figure Description

[0040] Figure 1 A flowchart illustrating the machining data processing method for tap tools provided in this application embodiment;

[0041] Figure 2 This is a schematic diagram of the machining data for the tapping process of a certain tap tool;

[0042] Figure 3 for Figure 2 The schematic diagram shown is a schematic diagram of the machining data obtained after performing the machining data processing method for the tap tool provided in the embodiments of this application;

[0043] Figure 4 A flowchart illustrating the process of determining starting data from the first data segment in the machining data processing method for tap tools provided in this application embodiment;

[0044] Figure 5 A flowchart illustrating the process of determining the starting index from the second index sequence in the machining data processing method for tap tools provided in this application embodiment;

[0045] Figure 6 A flowchart illustrating the process of determining a first data segment from the machining data segment based on the target tool state set in the machining data method provided in this application embodiment;

[0046] Figure 7 A schematic diagram of the machining data processing device for tap tools provided in the embodiments of this application;

[0047] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0048] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0049] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0050] The processing data processing method for tap tools provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0051] like Figure 1 As shown in the embodiments of this application, the machining data processing method for tap tools includes the following steps:

[0052] Step S1: During the tapping process, acquire the machining data segment of the tool and the tool state set corresponding to the machining data segment.

[0053] During the tapping process of a workpiece, the machining data and tool status of the tap are sampled at preset time intervals until the tapping operation is completed. All the acquired machining data are arranged in chronological order to form a machining data segment. Similarly, there is a one-to-one correspondence between the machining data at a certain moment and the tool status at that moment. All the acquired tool statuses are arranged in chronological order to form a tool status set.

[0054] In the machining data segment, each data point includes a corresponding index, a corresponding time point, and spindle load power. The time point is plotted on the horizontal axis, and the corresponding spindle load power is plotted on the vertical axis, forming a structure like this: Figure 2 The diagram shows machining data for a tapping process using a tapping tool. The tool status can include the spindle speed, position, and direction of movement.

[0055] Step S2: Obtain the target tool state set that conforms to the preset tool state from the tool state set; based on the target tool state set, determine the first data segment from the machining data segment.

[0056] Understandably, each data point in the machining data segment corresponds to a tool state. For example, a complete tapping process can be divided into a preparation stage, a downward tapping stage, an upward retraction stage, and a stop stage. Most problems such as overall tool breakage, cutting edge chipping, and tap wear occur during the downward tapping and upward retraction stages. Therefore, when analyzing the tool's machining data, it is only necessary to focus on analyzing the machining data during the downward tapping and upward retraction stages.

[0057] When the tool state matches the preset tool state, it indicates that the tool is in the downward tapping stage or the upward retraction stage. A target tool state set matching the preset tool state is obtained from the tool state set. The first data segment corresponding to the target tool state set represents the machining data when the tool is in the downward tapping stage or the upward retraction stage. Through the above steps, machining data when the tool is in the preparation or stopping stage can be filtered out. Data analysis is then performed to achieve the purpose of detecting the tap tool. This not only eliminates interfering data and ensures the accuracy of the data analysis results but also improves the efficiency of the data analysis process.

[0058] It should be noted that when a tool performs a complete tapping process on a workpiece, it often taps multiple holes. Furthermore, there may be multiple tapping steps for tapping a single hole. That is, during a single tapping process, there may be multiple downward tapping stages and multiple upward retraction stages. The machining data processing method for tap tools provided in this application is mainly applied to situations involving multiple drilling processes.

[0059] Step S3: Determine the starting data from the first data segment. The starting data is the machining data corresponding to when the tap tool reaches the bottom position of the wire hole.

[0060] It should be noted that when performing a single tapping process with a tapping tool, it is necessary to perform comparative analysis of data from multiple drilling processes. However, since the lengths and tapping speeds of different holes are not consistent, the amount of machining data collected by the tool will also be different when tapping different holes, which will cause inconvenience to data comparison and analysis.

[0061] When the cutting tool taps each hole, although the tapping speed and time vary, there will always be a bottom position in the hole. The starting data is the data in the machining data segment corresponding to the moment the tool just reaches the bottom position of the hole. Understandably, there are multiple starting data points. Based on these multiple starting data points, data from multiple drilling processes can be compared and analyzed in the same location, further reducing interference from other data and enhancing the accuracy of the data analysis results.

[0062] Step S4: Based on the first preset data length and the starting data, determine the target data segment from the first data segment.

[0063] Understandably, in the first data segment, starting from the initial data, multiple target data points that satisfy the first preset data length are selected along the direction of increasing index. The target data segment includes the initial data and the multiple target data points. It should be noted that the target data selected along the direction of increasing index corresponds to the data from the point where the tapping tool completes the downward tapping stage to the upward retraction stage. Since there are multiple initial data points, multiple target data segments corresponding to the multiple initial data points are obtained from the first data segment.

[0064] For example, the first preset data length is 30. Starting from the initial data, 29 target data are selected along the direction of increasing index. The initial data and the 29 target data constitute a target data segment.

[0065] Step S5: Based on the second preset data length and the minimum data in the target data segment, determine the valid data segment from the target data segment.

[0066] The target data segment represents the data corresponding to the tap tool after reaching the bottom of the tap hole. During actual tool operation, after reaching the bottom of the hole, the spindle speed of the tap becomes 0, but the machining force on the spindle still exists. Therefore, the spindle load needs to be reduced to a minimum through a reduction process, during which multiple machining data points can be collected. Similarly, since the length of each tap hole, the rotation speed of the tap spindle, and the machining force on the tap spindle are all different, the number of machining data points collected during the reduction process for each tap hole is also different. This comparison analysis is based on multiple target data segments and does not achieve a completely identical comparison.

[0067] Therefore, the minimum data is selected from the target data segment, and multiple valid data that satisfy the second preset data length are selected starting from the minimum data. The minimum data and the multiple valid data form the valid data segment. For example, the second preset data length includes lengths in two directions, 15 and 5 respectively. In the target data segment, starting from the minimum data, 15 data points are selected forward and 5 data points are selected backward. The valid data segment includes the minimum data, the 15 data points, and the 5 data points.

[0068] The minimum data in each target data segment corresponds to the state of minimum load on the tool spindle during the tapping process. Therefore, by comparing and analyzing multiple effective data segments, complete in-situ comparison can be achieved, further eliminating interfering data and improving the accuracy of the tapping tool's data analysis results, i.e., the detection results. Figure 3As shown, Figure 3 For the Figure 2 The schematic diagram shown is a schematic diagram after the machining data processing method of the tap tool provided in the embodiments of this application is applied.

[0069] The machining data processing method for tapping tools provided in this application embodiment determines a first data segment from the machining data segments obtained during the tapping process based on a preset tool state. By determining the starting data, a target data segment is then determined from the first data segment. Finally, based on the minimum data of the target data segment, a valid data segment is obtained from the target data segment. The valid data segment is the data segment most correlated with problems such as overall tool breakage, cutting edge chipping, and tap wear. Multiple interference data elimination processes are performed, thereby improving the accuracy of machining data detection results.

[0070] Optionally, such as Figure 4 As shown, step S3, determining the starting data from the first data segment, includes the following steps:

[0071] Step S31: Obtain the first index sequence corresponding to the first data segment.

[0072] Each data point in the processed data segment has a corresponding index. The indices corresponding to each data point in the first data segment are arranged in order to form the first index sequence.

[0073] Step S32: Obtain the second data segment corresponding to the spindle speed of the tap tool being 0 from the first data segment, and obtain the second index sequence corresponding to the second data segment from the first index sequence.

[0074] Based on the preset tool state requirements, machining data in the tool preparation and stop states are excluded from the machining data segment to obtain the first data segment. When the tool spindle speed is 0, it indicates that the tool has completed the downward tapping stage and is at the bottom of the hole. Therefore, the second data segment corresponds to the state where the tool is at the bottom of the hole. The indices corresponding to each data in the second data segment are arranged in ascending order to obtain the second index sequence.

[0075] Step S33: Determine the starting index from the second index sequence. The starting index is the index of the machining data corresponding to when the tap tool reaches the bottom position of the wire hole.

[0076] The second data segment corresponding to the second index sequence represents the state of the tool at the bottom of the wire hole. The machining data corresponding to the starting index is the index of the machining data when the tool just reaches the bottom of the hole. It can be understood that the state at the bottom of the wire hole represents a period of time, during which multiple machining data can be collected. Reaching the bottom of the hole represents a single moment, corresponding to only one machining data point.

[0077] Step S34: Determine the starting data in the first data segment based on the starting index.

[0078] Each index in the second index sequence corresponds to a processed data in a second data segment. The processed data corresponding to the starting index is the starting data. After determining the starting data, the target data segment can be determined from the first data segment according to the first preset data length.

[0079] In steps S31 to S34 above, the second data segment describing the tool's position at the bottom of the wire hole is determined from the first data segment based on the characteristic that the tool spindle speed is 0. Then, the index of the second data segment is analyzed to find the starting index and then the starting data. The index represents a sequential value. Therefore, the method of analyzing the index is more convenient and faster than the method of analyzing the spindle load power corresponding to each data in the second data segment to determine whether it is the starting data, while ensuring that the starting data is accurate.

[0080] Optionally, such as Figure 5 As shown, step S33, determining the starting index from the second index sequence, includes the following steps:

[0081] Step S331: Perform first-order differencing on the second index sequence to obtain a difference sequence, where each value in the difference sequence corresponds to a different index in the second index sequence.

[0082] The second index sequence is subjected to first-order difference processing. For example, assuming a second index sequence is (1, 2, 3, 5, 6, 7, 9), the first-order difference processing results in a difference sequence of (1, 1, 2, 1, 1, 2). The first 1 in the difference sequence corresponds to index 2 in the second index sequence, the second 1 corresponds to index 3, the first 2 corresponds to index 5, and so on. Each value in the difference sequence corresponds to a different index in the second index sequence.

[0083] Step S332: Determine a starting sequence from the difference sequence, wherein each value in the starting sequence is greater than 1.

[0084] It should be noted that, taking the second index sequence (1, 2, 3, 5, 6, 7, 9) as an example, in the second index sequence, indices 1, 2, and 3 are consecutive. This means that the three processing data corresponding to indices 1, 2, and 3 are consecutive. Since the processing data is collected at preset time intervals, the three processing data corresponding to indices 1, 2, and 3 indicate that the spindle speed is 0 for the tool within a continuous time period. Therefore, it means that the tool is in the same wire hole within the continuous time period.

[0085] Furthermore, in the second index sequence, the difference between index 5 and index 3 is greater than 1, indicating that after the spindle speed was 0 for a continuous time period, a sampling moment was skipped (the spindle speed of the tool at that sampling moment was not 0). Only at the moment represented by index 5 did the spindle speed return to 0. This can be understood as the tool retracting from one wire hole until it reaches the bottom of the next wire hole, at which point the spindle speed returns to 0. Therefore, the machining data corresponding to index 5 is the machining data when the tool is at the bottom of the next wire hole. Similarly, the machining data corresponding to index 9 is the machining data when the tool is at the bottom of the next wire hole. Therefore, in the difference sequence (1, 1, 2, 1, 1, 2), the first 2 and the second 2 are the starting sequences, corresponding to index 5 and index 9 respectively.

[0086] Step S333: Determine the index in the second index sequence that corresponds to the value of the starting sequence as the starting index.

[0087] Since there is a one-to-one correspondence between the starting sequence and the second index sequence, and a one-to-one correspondence between the second index sequence and the first data segment, the starting data can be determined through the starting index. It should be noted that the first index in the second index sequence is always the starting index, and the processed data corresponding to the first index in the second index sequence is the starting data.

[0088] For example, in the case where the second index sequence is (1, 2, 3, 5, 6, 7, 9) and the difference sequence is (1, 1, 2, 1, 1, 2), in addition to the index value corresponding to the starting sequence, the first index in the second index sequence, i.e., index 1, represents the machining data when the first spindle speed is 0 when the tool taps the first thread hole.

[0089] By performing differential processing on the second index sequence through steps S331 to S333, it is only necessary to find the starting sequence with a value greater than 1 in the differential sequence. The starting sequence can be obtained through the correspondence between the differential sequence and the second index sequence, thereby obtaining the starting data. There is no need to analyze and compare each sequence in the second index sequence, which further simplifies the processing.

[0090] Optionally, the tool state includes spindle state, cutting feed state, tapping state, and tool downward feed state; the spindle state, cutting feed state, tapping state, and tool downward feed state corresponding to each data in the first data segment all satisfy the preset tool state.

[0091] like Figure 6 As shown, the entity executing step S2 above can be as follows: Figure 6 The state filter is shown. The tool state corresponding to each machining data point in the machining data segment is input into the state filter. When the spindle state, cutting feed state, tapping state, and tool down feed state corresponding to the target machining data all meet the preset states, the machining data can be output. Machining data that does not meet the preset tool states is filtered out. The output target machining data indicates that the tool is in the tapping process, eliminating the influence of non-tapping process data on the detection results.

[0092] The machining data processing method for tapping tools provided in this application embodiment can be executed by a machining data processing device for tapping tools. This application embodiment uses the machining data processing device for tapping tools executing the machining data processing method for tapping tools as an example, and combines it with the appendix... Figure 7 This application describes a machining data processing device 700 for tapping tools. The device includes:

[0093] The acquisition module 701 is used to acquire the machining data segment of the tool and the tool state set corresponding to the machining data segment during the tapping process.

[0094] The first determining module 702 is used to obtain a target tool state set that conforms to a preset tool state from the tool state set, and to determine a first data segment from the machining data segment based on the target tool state set;

[0095] The second determining module 703 determines the starting data from the first data segment. The starting data is the processing data corresponding to when the tap tool reaches the bottom position of the wire hole.

[0096] The third determining module 704 is used to determine a target data segment from the first data segment based on the first preset data length and the starting data;

[0097] The fourth determining module 705 is used to determine a valid data segment from the target data segment based on the second preset data length and the minimum data in the target data segment.

[0098] Optionally, the second determining module includes:

[0099] The first acquisition submodule is used to acquire the first index sequence corresponding to the first data segment;

[0100] The second acquisition submodule is used to acquire the second data segment corresponding to the spindle speed of the tap tool being 0 from the first data segment, and to acquire the second index sequence corresponding to the second data segment from the first index sequence;

[0101] The first determining submodule is used to determine the starting index from the second index sequence, wherein the starting index is the index of the machining data corresponding to the bottom position of the tap tool when it reaches the hole bottom position;

[0102] The second determining submodule is used to determine the starting data in the first data segment based on the starting index.

[0103] Optionally, the first determining submodule is further configured to:

[0104] The second index sequence is subjected to first-order differencing to obtain a difference sequence, wherein each value in the difference sequence corresponds to a different index in the second index sequence;

[0105] A starting sequence is determined from the difference sequence, wherein each value in the starting sequence is greater than 1;

[0106] The index in the second index sequence that corresponds to the value in the starting sequence is determined as the starting index.

[0107] Optionally, the tool state includes spindle state, cutting feed state, tapping state, and tool downward feed state; the spindle state, cutting feed state, tapping state, and tool downward feed state corresponding to each data in the first data segment all satisfy the preset tool state.

[0108] The machining data processing device for tapping tools provided in this application embodiment can process the machining data collected during the tapping process of the tapping tool, obtain the effective data segment with the greatest correlation to the abnormality of the tapping tool, and eliminate the influence of other data.

[0109] It should be noted that the machining data processing device for taps provided in this application embodiment can realize all the technical processes of the above-mentioned machining data processing method for taps and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0110] The device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. Non-mobile electronic devices can also be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not specifically limit the scope of the device.

[0111] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores a program or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the above-described tap tool machining data processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0112] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0113] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described tap tool machining data processing method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0114] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0115] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0116] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0117] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for processing machining data of tapping tools, characterized in that, The method includes: During the tapping process, the machining data segment of the tool and the tool state set corresponding to the machining data segment are acquired. The machining data segment is formed by arranging all the machining data acquired during the tapping process in chronological order. The tool state set is formed by arranging all the tool states acquired during the tapping process in chronological order. Obtain a target tool state set that conforms to a preset tool state from the tool state set. Based on the target tool state set, determine a first data segment from the machining data segment. The first data segment includes machining data in the machining data segment that corresponds to the target tool state set. The first data segment is the machining data corresponding to when the tool is in the downward tapping stage or the upward retraction stage. Determine the starting data from the first data segment. The starting data is the machining data corresponding to when the tap tool reaches the bottom position of the wire hole. Based on the first preset data length and the starting data, a target data segment is determined from the first data segment, wherein the target data segment includes the starting data and multiple target data, and the multiple target data are: in the first data segment, starting from the starting data, multiple data that satisfy the first preset data length are selected along the direction of increasing index; Based on the second preset data length and the minimum data in the target data segment, a valid data segment is determined from the target data segment. The valid data segment includes the minimum data and multiple valid data. The multiple valid data are: the minimum data is selected from the target data segment, and multiple data that satisfy the second preset data length are selected starting from the minimum data.

2. The machining data processing method for tap tools as described in claim 1, characterized in that, Determining the starting data from the first data segment includes: Obtain the first index sequence corresponding to the first data segment; Obtain the second data segment corresponding to the spindle speed of the tap tool being 0 from the first data segment, and obtain the second index sequence corresponding to the second data segment from the first index sequence; A starting index is determined from the second index sequence, wherein the starting index is the index of the machining data corresponding to the bottom position of the tap tool when it reaches the hole bottom position; Based on the starting index, the starting data is determined in the first data segment.

3. The machining data processing method for tap tools as described in claim 2, characterized in that, Determining the starting index from the second index sequence includes: The second index sequence is subjected to first-order differencing to obtain a difference sequence, wherein each value in the difference sequence corresponds to a different index in the second index sequence; A starting sequence is determined from the difference sequence, wherein each value in the starting sequence is greater than 1; The index in the second index sequence that corresponds to the value in the starting sequence is determined as the starting index.

4. The machining data processing method for taps as described in any one of claims 1 to 3, characterized in that, The tool states include spindle state, cutting feed state, tapping state, and tool downward feed state; the spindle state, cutting feed state, tapping state, and tool downward feed state corresponding to each data in the first data segment all satisfy the preset tool states.

5. A machining data processing device for tapping tools, characterized in that, The device includes: The acquisition module is used to acquire a machining data segment of the tapping tool and a set of tool states corresponding to the machining data segment during the tapping process. The machining data segment is formed by arranging all the machining data acquired during the tapping process in chronological order. The set of tool states is formed by arranging all the tool states acquired during the tapping process in chronological order. The first determining module is used to obtain a target tool state set that conforms to a preset tool state from the tool state set, and to determine a first data segment from the machining data segment based on the target tool state set. The first data segment includes machining data in the machining data segment that corresponds to the target tool state set. The first data segment is machining data corresponding to when the tool is in the downward tapping stage or the upward retraction stage. The second determining module determines the starting data from the first data segment. The starting data is the processing data corresponding to when the tap tool reaches the bottom position of the wire hole. The third determining module is used to determine a target data segment from the first data segment based on the first preset data length and the starting data, wherein the target data segment includes the starting data and multiple target data, and the multiple target data are: in the first data segment, starting from the starting data, multiple data that satisfy the first preset data length are selected along the direction of increasing index; The fourth determining module is used to determine a valid data segment from the target data segment based on the second preset data length and the minimum data in the target data segment. The valid data segment includes the minimum data and multiple valid data, wherein the multiple valid data are: the minimum data selected from the target data segment, and multiple data that satisfy the second preset data length starting from the minimum data.

6. The machining data processing device for taps as described in claim 5, characterized in that, The second determining module includes: The first acquisition submodule is used to acquire the first index sequence corresponding to the first data segment; The second acquisition submodule is used to acquire the second data segment corresponding to the spindle speed of the tap tool being 0 from the first data segment, and to acquire the second index sequence corresponding to the second data segment from the first index sequence; The first determining submodule is used to determine the starting index from the second index sequence, wherein the starting index is the index of the machining data corresponding to the bottom position of the tap tool when it reaches the hole bottom position; The second determining submodule is used to determine the starting data in the first data segment based on the starting index.

7. The machining data processing device for taps as described in claim 6, characterized in that, The first determining submodule is also used for: The second index sequence is subjected to first-order differencing to obtain a difference sequence, wherein each value in the difference sequence corresponds to a different index in the second index sequence; A starting sequence is determined from the difference sequence, wherein each value in the starting sequence is greater than 1; The index in the second index sequence that corresponds to the value in the starting sequence is determined as the starting index.

8. The machining data processing device for taps as described in any one of claims 5 to 7, characterized in that, The tool states include spindle state, cutting feed state, tapping state, and tool downward feed state; the spindle state, cutting feed state, tapping state, and tool downward feed state corresponding to each data in the first data segment all satisfy the preset tool states.

9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the machining data processing method for the tap tool as described in any one of claims 1 to 4.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the machining data processing method for tapping tools as described in any one of claims 1 to 4.