Tool offset parameter determination method, controller, device and storage medium
By acquiring tool model and geometric characteristic data, the tool type is determined and dimensional offset parameters are corrected, thus solving the problem of insufficient tool measurement accuracy and improving measurement data accuracy and machining efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2026-03-24
AI Technical Summary
Existing tool measurement methods suffer from insufficient measurement accuracy, leading to a decrease in machining accuracy.
By acquiring the tool model and geometric characteristics data of the target tool, the tool type is determined, and the tool measurement data is corrected according to the dimensional offset parameters, including automatic correction of diameter and length offset parameters.
It improves the accuracy of tool measurement data and machining accuracy, simplifies the measurement process, reduces manual intervention, and improves machining efficiency.
Smart Images

Figure CN119566974B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of machining technology, and specifically to a method, controller, device, and storage medium for determining tool offset parameters. Background Technology
[0002] Currently, CNC machine tools require the use of cutting tools for machining, and the cutting tools need to be measured during the machining process to achieve precision machining. Therefore, accurate tool measurement is crucial for ensuring machining quality and improving production efficiency. Existing tool measurement methods, after obtaining the tool measurement data, contain errors. This insufficient measurement accuracy will negatively impact machining precision. Summary of the Invention
[0003] To address the problem of insufficient measurement accuracy of cutting tools in existing technologies, embodiments of the present invention provide a method, controller, device, and storage medium for determining cutting tool offset parameters.
[0004] This invention provides a method for determining tool offset parameters, including:
[0005] Obtain the tool model of the target tool;
[0006] Based on the tool model, retrieve the tool geometry data corresponding to the target tool from the preset tool database;
[0007] The tool type is determined based on the tool model, and the size offset parameter of the target tool is determined based on the geometric characteristic data and the tool type, so as to correct the tool measurement data according to the size offset parameter; wherein, the tool measurement data refers to the tool size obtained by performing a tool measurement operation on the target tool.
[0008] Furthermore, obtaining the tool model of the target tool includes:
[0009] Obtain the unique identification data corresponding to the target tool, extract the model keyword from the field corresponding to the tool model in the identification data, and determine the tool model of the target tool based on the model keyword.
[0010] Furthermore, the size offset parameters include diameter offset parameters;
[0011] The step of determining the tool type based on the tool model and determining the dimensional offset parameter of the target tool based on the geometric characteristic data and the tool type further includes:
[0012] Obtain the tool type associated with the tool model;
[0013] When the R-angle of the target tool, which is characterized by the tool type, is 0, the diameter offset parameter of the target tool is determined as a first preset diameter offset value;
[0014] When the R-angle of the target tool is greater than 0, the R-angle of the target tool is obtained from the tool geometric feature data, and the diameter offset parameter of the target tool is determined as the sum of the second preset diameter offset value and the R-angle; wherein the second preset diameter offset value is less than the first preset diameter offset value.
[0015] Furthermore, the dimensional offset parameters include length offset parameters; the geometric characteristic data includes the diameter value of the target tool;
[0016] The step of determining the tool type based on the tool model and determining the dimensional offset parameter of the target tool based on the geometric characteristic data and the tool type further includes:
[0017] Obtain the tool type associated with the tool model;
[0018] When the target tool is determined to meet the first offset condition based on the geometric characteristic data and the tool type, the length offset parameter of the target tool is determined as the first length offset value; the first length offset value is equal to half of the diameter value minus the preset length offset value; wherein, the first offset condition includes: the tool type indicates that the R angle of the target tool is 0, and the diameter value is greater than the preset diameter threshold.
[0019] Furthermore, the geometric characteristic data also includes the radius (R) of the target tool;
[0020] After obtaining the tool type associated with the tool model, the method further includes:
[0021] When the target tool is determined to meet the second offset condition based on the geometric characteristic data and the tool type, the length offset parameter of the target tool is set to 0; wherein, the second offset condition includes: the tool type indicates that the R angle of the target tool is greater than 0, and the R angle is equal to half of the diameter value, and the diameter value is less than the preset diameter threshold.
[0022] Furthermore, after obtaining the tool type associated with the tool model, the method further includes:
[0023] When it is determined, based on the geometric characteristic data and the tool type, that the target tool does not meet the first offset condition and the second offset condition, the length offset parameter of the target tool is determined as the second length offset value, which is equal to the first length offset value minus the R angle.
[0024] Furthermore, after determining the dimensional offset parameters of the target tool based on the geometric characteristic data and the tool type, the method further includes:
[0025] The actual tool image of the target tool is captured by a preset shooting device, and the actual tool image is image recognized by a preset tool size recognition model to obtain the actual geometric characteristic data corresponding to the actual tool image.
[0026] When the actual geometric characteristic data and the tool geometric characteristic data are inconsistent, the size offset parameter of the target tool is updated according to the actual geometric characteristic data and the tool type.
[0027] This invention also provides a controller, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the tool offset parameter determination method when executing the computer-readable instructions.
[0028] This invention also provides a processing device, including the aforementioned controller.
[0029] This invention also provides a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the tool offset parameter determination method.
[0030] The present invention provides a tool offset parameter determination method, controller, device, and storage medium. The method includes: obtaining the tool model of a target tool; obtaining tool geometric characteristic data corresponding to the target tool from a preset tool database according to the tool model; determining the tool type according to the tool model; and determining the size offset parameter of the target tool according to the geometric characteristic data and the tool type, so as to correct the tool measurement data according to the size offset parameter; wherein, the tool measurement data refers to the tool size obtained by performing a tool measurement operation on the target tool.
[0031] In this invention, the tool geometry data of the target tool is first determined based on the tool model. Then, a dimensional offset parameter is determined based on the tool geometry data and the tool type. This dimensional offset parameter can be used to automatically correct tool measurement data with certain deviations during tool measurement operations, thereby improving the accuracy of the tool measurement data. In this invention, since the dimensional offset parameter is determined not only based on the geometric data corresponding to the target tool model but also considering the tool type, the dimensional offset parameter can be accurately determined for different tool types and models. This makes the dimensional offset parameter adaptable to different tool types and models, further improving the accuracy of the tool measurement data after correction based on the dimensional offset parameter, thus enhancing the accuracy of the final corrected tool measurement data. Furthermore, the tool offset parameter of this invention can be determined automatically by the controller, eliminating the need for manual intervention in the tool measurement and correction process, thereby obtaining accurate tool measurement data, simplifying the measurement process, reducing labor costs, and improving processing efficiency. Attached Figure Description
[0032] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention 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 these drawings without creative effort.
[0033] Figure 1 This is a flowchart of a method for determining tool offset parameters in one embodiment of the present invention;
[0034] Figure 2 This is a flowchart of step S30 of the tool offset parameter determination method in one embodiment of the present invention;
[0035] Figure 3 This is a flowchart of step S30 of the tool offset parameter determination method in another embodiment of the present invention;
[0036] Figure 4 This is a schematic diagram of a controller in one embodiment of the present invention. Detailed Implementation
[0037] 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 some, not all, of the embodiments of the present invention. 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.
[0038] In one embodiment, such as Figure 1 As shown, a method for determining tool offset parameters is provided, including the following steps S10-S30:
[0039] S10, Obtain the tool model number of the target tool. The tool model number refers to data that can be used to characterize a specific tool type.
[0040] In some embodiments, step S10, i.e., obtaining the tool model of the target tool, includes:
[0041] The process involves obtaining unique identification data corresponding to the target tool, extracting model keywords from the fields corresponding to the tool model in the identification data, and determining the tool model of the target tool based on the model keywords. In other words, in this embodiment, the tool model of the target tool can be determined based on identification data used to uniquely identify the target tool. This identification data may include multiple fields, each corresponding to a different type of data, such as tool number, model keywords indicating the tool model, tool length, etc. Here, the data type corresponding to each field in the identification data is not limited, as long as it is related to the target tool.
[0042] In one embodiment, step S10, namely obtaining the tool model of the target tool, includes:
[0043] An initial image of the target tool is captured by a preset shooting device, and a standard tool image matching the initial tool image is queried in a preset tool database. The standard model associated with the queried standard tool image is determined as the tool model of the target tool. Each standard tool image in the preset tool database is associated with a standard tool of the standard model.
[0044] That is, in this embodiment, the tool model of the target tool can also be identified through image recognition and matching. Specifically, the preset shooting device can be a camera installed on the processing equipment and communicating with the controller of the processing equipment; the preset shooting device can also be a camera not installed on the processing equipment, but communicating with the controller, which can transmit the captured initial tool image to the controller. The shooting device can directly capture the tool image corresponding to the target tool. This tool image can be the initial tool image when the tool is used for the first time, or it can be an actual tool image captured at any time during subsequent use (or when not in use).
[0045] In this embodiment, after the preset imaging device captures an initial tool image, the controller can receive the initial tool image sent by the preset imaging device in real time and compare it with standard tool images in a preset tool database to find a standard tool image that matches the initial tool image. The specific matching process can be as follows: image recognition is performed on the initial tool image to identify the tool's first dimensional structural features (such as length, diameter, and radius). Simultaneously, the standard tool image is also associated with a second dimensional structural feature (such as length, diameter, and radius) that characterizes the tool in the standard tool image. Therefore, the first dimensional structural feature can be compared one by one with each of the second dimensional structural features to determine the standard tool image that matches the initial tool image. For example, among all second dimensional structural features with a similarity exceeding a preset threshold to the first dimensional structural feature, the standard tool image corresponding to the second dimensional structural feature with the highest similarity can be determined as the standard tool image that matches the initial tool image. When comparing the first-dimensional structural features with each of the second-dimensional structural features one by one, if the similarity of all the second-dimensional structural features is less than the preset threshold, a matching failure can be directly indicated. At this time, it is necessary to confirm whether the target tool has been entered into the preset tool database for subsequent information supplementation or manual confirmation, or to perform matching again, etc. There are no restrictions on this.
[0046] Understandably, since each standard tool image in the preset tool database is associated with a standard tool of a certain standard model, the standard model associated with the queried standard tool image can be directly determined as the tool model of the target tool.
[0047] S20. Obtain the tool geometry data corresponding to the target tool from the preset tool database according to the tool model. That is, based on the tool model, the specific tool geometry data of the target tool can be found in the preset tool database. This geometry data represents the specific geometric dimensions of the target tool, including, but not limited to, the length, diameter, and radius (R) of the target tool. The preset tool database stores the tool geometry data corresponding to all tools. This tool geometry data can be the standard dimensions of the target tool at the time of manufacture, or it can be data obtained after actual and precise measurement of different tool models. The aforementioned tool geometry data can be pre-stored in the preset tool database, and the tool geometry data in the preset tool database can be deleted, added, or modified as needed.
[0048] S30, determine the tool type based on the tool model, and determine the dimensional offset parameter of the target tool based on the geometric characteristic data and the tool type, so as to correct the tool measurement data according to the dimensional offset parameter; wherein, the tool measurement data refers to the tool size obtained by performing a tool measurement operation on the target tool. That is, each target tool uniquely corresponds to a tool model, and this tool model also corresponds to a tool type. A single tool type can correspond to multiple tool models. For example, tool types include, but are not limited to, flat end mills, ball end mills, or round nose end mills. If the tool type is a ball end mill, the corresponding tool model can be ball end mill No. 1, ball end mill No. 2... ball end mill No. N, etc.
[0049] In this embodiment, different dimensional offset parameters will be obtained for different types of cutting tools and the geometric characteristic data corresponding to different tool models. Therefore, the final dimensional offset parameters will have a higher compatibility with the target tool, resulting in more accurate dimensional offset parameters and thus more precise correction of the tool measurement data. Understandably, because the target tool may experience wear or collisions during use, potentially causing changes in its dimensions, tool measurement is necessary during machining (especially precision machining). Specifically, tool measurement refers to measuring the current actual dimensions of the target tool before machining with the target tool or after machining a certain process with the target tool. The tool measurement data is the current actual dimension data of the target tool.
[0050] In the above embodiments of the present invention, the tool geometry data of the target tool is first determined based on the tool model. Then, a dimensional offset parameter is determined based on the tool geometry data and the tool type. This dimensional offset parameter can be used to automatically correct tool measurement data with certain deviations during tool measurement operations, thereby improving the accuracy of the tool measurement data. In the present invention, since the dimensional offset parameter is determined not only based on the geometric data corresponding to the target tool model but also considering the tool type, the dimensional offset parameter can be accurately determined for target tools of different types and models. This makes the dimensional offset parameter adaptable to different tool types and models, further improving the accuracy of the tool measurement data after correction based on the dimensional offset parameter, thus improving the accuracy of the final corrected tool measurement data. Furthermore, the tool offset parameter of the present invention can be determined automatically by the controller, eliminating the need for manual intervention in the tool measurement and correction process, thereby obtaining accurate tool measurement data, simplifying the measurement process, reducing labor costs, and improving processing efficiency.
[0051] In one embodiment, the size offset parameter includes a diameter offset parameter; wherein, the diameter offset parameter is used to characterize the amount by which the diameter data in the tool measurement data of the target tool needs to be corrected. Specifically, when correcting the tool measurement data according to the size offset parameter, the diameter data in the tool measurement data can be added to the diameter offset parameter to obtain the corrected diameter data.
[0052] Furthermore, such as Figure 2 As shown, in step S30, determining the tool type based on the tool model and determining the size offset parameter of the target tool based on the geometric characteristic data and the tool type further includes:
[0053] S301, Obtain the tool type associated with the tool model; that is, each target tool uniquely corresponds to a tool model, but the tool model also corresponds to a tool type. A single tool type can correspond to multiple tool models. For example, tool types include, but are not limited to, flat end mills, ball end mills, or round nose end mills. If the tool type is a ball end mill, the corresponding tool model can be ball end mill #1, ball end mill #2...ball end mill #N, etc.
[0054] S302, when the radius (R) of the target tool, which indicates the tool type, is 0, the diameter offset parameter of the target tool is determined as a first preset diameter offset value; wherein, a radius of 0 indicates that the tool type is a flat tool. In this case, the diameter offset parameter of the target tool in this embodiment is independent of the radius, and the diameter offset parameter of the target tool can be directly determined as the first preset diameter offset value. The first preset diameter offset value can be set according to requirements, for example, set to 0.5mm.
[0055] S303, when the radius (R) of the target tool, as indicated by the tool type, is greater than 0, the radius of the target tool is obtained from the tool geometric feature data, and the diameter offset parameter of the target tool is determined as the sum of a second preset diameter offset value and the radius of the target tool; wherein, the second preset diameter offset value is less than the first preset diameter offset value. Wherein, the radius of the target tool, as indicated by the tool type, is greater than 0, suggesting that the tool type is a ball end mill or a round nose end mill, etc. In this embodiment, the diameter offset parameter of the target tool is related to the radius of the target tool. The diameter offset parameter of the target tool can be determined as the sum of the second preset diameter offset value and the radius of the target tool, thus using the radius of the target tool as one of the determining criteria for the diameter offset parameter, thereby making the diameter offset parameter more accurate. The second preset diameter offset value can be set according to requirements (e.g., set to 0.2mm). It should be noted that since the radius of the target tool has already been considered when calculating the diameter offset parameter, setting the second preset diameter offset value to be less than the first preset diameter offset value makes the final diameter offset parameter closer to reality and more accurate.
[0056] In one embodiment, the dimensional offset parameter includes a length offset parameter; the geometric characteristic data includes the diameter value of the target tool; wherein, the length offset parameter is used to characterize the amount by which the length data in the tool measurement data of the target tool needs to be corrected. Specifically, when correcting the tool measurement data according to the dimensional offset parameter, the length data in the tool measurement data can be added to the length offset parameter to obtain the corrected length data.
[0057] Furthermore, such as Figure 3 As shown, in step S30, determining the tool type based on the tool model and determining the size offset parameter of the target tool based on the geometric characteristic data and the tool type further includes:
[0058] S301, Obtain the tool type associated with the tool model; that is, each target tool uniquely corresponds to a tool model, but the tool model also corresponds to a tool type. A single tool type can correspond to multiple tool models. For example, tool types include, but are not limited to, flat end mills, ball end mills, or round nose end mills. If the tool type is a ball end mill, the corresponding tool model can be ball end mill #1, ball end mill #2...ball end mill #N, etc.
[0059] S304, when it is determined that the target tool meets the first offset condition based on the geometric characteristic data and the tool type, the length offset parameter of the target tool is determined as the first length offset value; the first length offset value is equal to half of the diameter value minus a preset length offset value; wherein, the first offset condition includes: the tool type indicates that the radius (R) of the target tool is 0, and the diameter value is greater than a preset diameter threshold. The preset diameter threshold and the preset length offset value can be set according to requirements, for example, the preset diameter threshold can be set to 0.5mm, and the preset length offset value to 0.2mm. In this embodiment, the tool type indicates that the radius (R) of the target tool is 0, indicating that the tool type is a flat tool. If the diameter value in the geometric characteristic data of the target tool is greater than the preset diameter threshold, then the length offset parameter of the target tool is the first length offset value. That is, when the target tool meets the first offset condition, the length data in the tool measurement data needs to be corrected according to the first length offset value, resulting in a more accurate length offset parameter.
[0060] In another embodiment, the geometric characteristic data also includes the radius of curvature (R-angle) of the target tool; the R-angle refers to the radius of curvature of the arc at the cutting edge of the target tool, and the specific value of the R-angle is determined according to the design and usage requirements of the target tool to ensure the best cutting effect and workpiece quality.
[0061] Furthermore, such as Figure 3As shown, after step S301, that is, after obtaining the tool type associated with the tool model, the method further includes:
[0062] S305, when it is determined that the target tool meets the second offset condition based on the geometric characteristic data and the tool type, the length offset parameter of the target tool is set to 0; wherein, the second offset condition includes: the tool type indicates that the radius (R) of the target tool is greater than 0, and the radius (R) is equal to half of the diameter value, and the diameter value is less than the preset diameter threshold. In this embodiment, when the tool type indicates that the radius (R) of the target tool is greater than 0, it means that the tool type is a ball end mill or a round nose end mill. At this time, if the radius (R) in the geometric characteristic data of the target tool is equal to half of the diameter value, and the diameter value is less than the preset diameter threshold (that is, if the radius (R) in the geometric characteristic data is less than half of the preset diameter threshold), then the length offset parameter of the target tool is 0. That is, when the target tool meets the above-mentioned second offset condition, there is no need to correct the length data in the tool measurement data, and the tool data is already accurate enough.
[0063] Furthermore, such as Figure 3 As shown, after step S301, that is, after obtaining the tool type associated with the tool model, the method further includes:
[0064] S306, when it is determined, based on the geometric characteristic data and the tool type, that the target tool does not meet the first offset condition and the second offset condition, the length offset parameter of the target tool is determined as a second length offset value, which is equal to the first length offset value minus the R angle. In this embodiment, when the target tool does not meet either the first offset condition or the second offset condition, the length offset parameter of the target tool is the second length offset value. In this case, the length data in the tool measurement data needs to be corrected according to the second length offset value, resulting in a more accurate length offset parameter. Understandably, the situation where neither the first offset condition nor the second offset condition is met includes, but is not limited to, the following:
[0065] The tool type indicates that the radius (R) of the target tool is 0, and the diameter value is less than or equal to the preset diameter threshold.
[0066] The tool type indicates that the radius (R) of the target tool is greater than 0, and the radius (R) is not equal to half of the diameter value; the diameter value is less than the preset diameter threshold.
[0067] The tool type indicates that the radius (R) of the target tool is greater than 0, and the radius (R) is equal to half of the diameter value, and the diameter value is greater than or equal to the preset diameter threshold.
[0068] The tool type indicates that the radius (R) of the target tool is greater than 0, and the radius (R) is not equal to half of the diameter value, and the diameter value is greater than or equal to the preset diameter threshold.
[0069] In one embodiment, after determining the size offset parameter of the target tool based on the geometric characteristic data and the tool type in step S30, the method further includes:
[0070] An actual tool image of the target tool is captured by a preset imaging device, and the actual tool image is then recognized using a preset tool size recognition model to obtain the corresponding actual geometric characteristic data. The actual tool image refers to a real-time tool image captured by the preset imaging device, which indicates the current actual state of the target tool, such as its size and wear condition. Understandably, the preset tool size recognition model can perform image recognition on the actual tool image to determine the current actual geometric characteristic data of the target tool. The preset tool size recognition model can be constructed based on a neural network model, etc. Specifically, an initial neural network model can be iteratively trained using a tool image sample set. After iteration, the completed initial neural network model is determined as the preset tool size recognition model. The tool image sample set can include multiple tool image samples, each associated with a sample geometric characteristic. The iterative process of the initial neural network refers to inputting tool image samples into the initial neural network model to obtain the predicted geometric characteristics output by the initial neural network model; then, matching the sample geometric characteristics with the predicted geometric characteristics; if the error between the two reaches the expected value, the iteration is considered complete and a preset tool size recognition model is obtained; if the expected value is not reached, the initial parameters of the initial network model are updated, and the initial network model with updated initial parameters is used for another iteration until the iteration is completed and the preset tool size recognition model is obtained.
[0071] When the actual geometric characteristic data and the tool geometric characteristic data are inconsistent, the size offset parameter of the target tool is updated according to the actual geometric characteristic data and the tool type. That is, in this embodiment, when the actual geometric characteristic data and the tool geometric characteristic data are inconsistent, it indicates that the tool geometric characteristic data has changed during the use of the target tool. At this time, if the previous size offset parameter is used to correct the tool measurement data of the tool measurement operation, it may no longer be accurate, leading to a large error in the corrected tool measurement data. Therefore, it is necessary to update the size offset parameter of the target tool according to the current actual geometric characteristic data and the tool type to obtain the updated size offset parameter. Then, the tool measurement data of the tool measurement operation is corrected according to the updated size offset parameter to maintain the continuous accuracy of the corrected tool measurement data. The specific update method for updating the size offset parameter of the target tool according to the actual geometric characteristic data and the tool type can be determined by referring to the process of determining the size offset parameter of the target tool according to the geometric characteristic data and the tool type in step S30 above, and will not be repeated here. Understandably, during the process of updating the size offset parameters, some or all of the preset data such as the first preset diameter offset value, the second preset diameter offset value, the preset length offset value, or the preset diameter threshold value can be modified or not modified according to the actual situation, as long as the accuracy of the size offset parameters can be guaranteed.
[0072] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0073] In one embodiment, a controller is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4 As shown, the controller includes a processor, memory, network interface, and database connected via a system bus. The processor provides computational and control capabilities. The memory includes a readable storage medium and internal memory. The readable storage medium stores an operating system, computer-readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. When the computer-readable instructions are executed by the processor, they implement a tool bias parameter determination method. The readable storage medium provided in this embodiment includes both non-volatile and volatile readable storage media.
[0074] In one embodiment, a controller is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, it implements the steps of the tool offset parameter determination method described above. This controller corresponds one-to-one with the tool offset parameter determination method described in the above embodiment. Specific limitations of the controller can be found in the limitations of the tool offset parameter determination method described above, and will not be repeated here. Each module in the controller can be implemented entirely or partially through software, hardware, or a combination thereof. Each module can be embedded in hardware or independently of the processor in the controller, or stored in software in the memory of the controller, so that the processor can call and execute the operations corresponding to each module.
[0075] The controller in the above embodiments of the present invention first determines the tool geometry data of the target tool based on the tool model, and then determines the dimensional offset parameter based on the tool geometry data and tool type. This dimensional offset parameter can be used to automatically correct tool measurement data with certain deviations during tool measurement operations, thereby improving the accuracy of the tool measurement data. In this invention, since the dimensional offset parameter is determined not only based on the geometry data corresponding to the target tool model but also considering the tool type, the dimensional offset parameter can be accurately determined for different tool types and models. This makes the dimensional offset parameter adaptable to different tool types and models, further improving the accuracy of the tool measurement data corrected based on the dimensional offset parameter, thus enhancing the accuracy of the final corrected tool measurement data. Furthermore, the tool offset parameter of the present invention can be determined automatically by the controller, eliminating the need for manual intervention in the tool measurement and correction process, thereby obtaining accurate tool measurement data, simplifying the measurement process, reducing labor costs, and improving processing efficiency.
[0076] This invention also provides a processing device, including the aforementioned controller. Specific limitations regarding the controller in the processing device can be found in the above-described limitations on the method for determining tool offset parameters, and will not be repeated here. The processing device can be any type of machining device that can use cutting tools, such as a CNC machine tool, and is not limited thereto.
[0077] In the processing equipment of the above embodiments of the present invention, the controller first determines the tool geometry data of the target tool based on the tool model, and then determines the dimensional offset parameter based on the tool geometry data and the tool type. This dimensional offset parameter can be used to automatically correct tool measurement data with certain deviations during tool measurement operations, thereby improving the accuracy of the tool measurement data. In this invention, since the dimensional offset parameter is determined not only based on the geometry data corresponding to the target tool model, but also considering the tool type corresponding to the target tool, the dimensional offset parameter can be accurately determined for target tools of different types and models. This makes the dimensional offset parameter adaptable to different tool types and models, further improving the accuracy of the tool measurement data after correction based on the dimensional offset parameter, thus improving the accuracy of the final corrected tool measurement data. Furthermore, the tool offset parameter of the present invention can be determined automatically by the controller, eliminating the need for manual intervention in the tool measurement and correction process, thereby obtaining accurate tool measurement data, simplifying the measurement process, reducing labor costs, and improving processing efficiency.
[0078] In one embodiment, a computer-readable storage medium is provided that stores computer-readable instructions thereon, which, when executed by a processor, implement the steps of the tool offset parameter determination method described above.
[0079] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware with computer-readable instructions. These computer-readable instructions can be stored in a readable storage medium, including non-volatile readable storage media and volatile readable storage media. When executed, the computer-readable instructions can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), direct memory bus RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0080] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units or modules is used as an example. In practical applications, the above functions can be assigned to different functional units or modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0081] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for determining tool offset parameters, characterized in that, include: Obtain the tool model of the target tool; Based on the tool model, retrieve the tool geometry data corresponding to the target tool from the preset tool database; The tool type is determined based on the tool model, and the size offset parameter of the target tool is determined based on the geometric characteristic data and the tool type, so as to correct the tool measurement data according to the size offset parameter; wherein, the tool measurement data refers to the tool size obtained by performing a tool measurement operation on the target tool; The dimensional offset parameters include diameter offset parameters; the step of determining the tool type based on the tool model and determining the dimensional offset parameters of the target tool based on the geometric characteristic data and the tool type further includes: Obtain the tool type associated with the tool model; When the R-angle of the target tool, which is characterized by the tool type, is 0, the diameter offset parameter of the target tool is determined as a first preset diameter offset value; When the R-angle of the target tool is greater than 0, as indicated by the tool type, the R-angle of the target tool is obtained from the tool geometric feature data, and the diameter offset parameter of the target tool is determined as the sum of a second preset diameter offset value and the R-angle; wherein, the second preset diameter offset value is less than the first preset diameter offset value; The dimensional offset parameters include length offset parameters; the geometric characteristic data includes the diameter value of the target tool; the step of determining the tool type based on the tool model and determining the dimensional offset parameters of the target tool based on the geometric characteristic data and the tool type further includes: Obtain the tool type associated with the tool model; When it is determined that the target tool meets the first offset condition based on the geometric characteristic data and the tool type, the length offset parameter of the target tool is determined as the first length offset value; the first length offset value is equal to half of the diameter value minus the preset length offset value; wherein, the first offset condition includes: the tool type indicates that the R angle of the target tool is 0, and the diameter value is greater than the preset diameter threshold; The geometric characteristic data also includes the radius (R) of the target tool; after obtaining the tool type associated with the tool model, the process further includes: When it is determined that the target tool meets the second offset condition based on the geometric characteristic data and the tool type, the length offset parameter of the target tool is set to 0; wherein, the second offset condition includes: the tool type indicates that the R angle of the target tool is greater than 0, and the R angle is equal to half of the diameter value, and the diameter value is less than the preset diameter threshold; When it is determined, based on the geometric characteristic data and the tool type, that the target tool does not meet the first offset condition and the second offset condition, the length offset parameter of the target tool is determined as the second length offset value, which is equal to the first length offset value minus the R angle.
2. The method for determining tool offset parameters as described in claim 1, characterized in that, The tool model of the target tool is obtained, including: Obtain the unique identification data corresponding to the target tool, extract the model keyword from the field corresponding to the tool model in the identification data, and determine the tool model of the target tool based on the model keyword.
3. The method for determining tool offset parameters as described in claim 1, characterized in that, After determining the size offset parameters of the target tool based on the geometric characteristic data and the tool type, the method further includes: The actual tool image of the target tool is captured by a preset shooting device, and the actual tool image is image recognized by a preset tool size recognition model to obtain the actual geometric characteristic data corresponding to the actual tool image. When the actual geometric characteristic data and the tool geometric characteristic data are inconsistent, the size offset parameter of the target tool is updated according to the actual geometric characteristic data and the tool type.
4. A controller, characterized in that, It includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor, when executing the computer-readable instructions, implements the tool offset parameter determination method as described in any one of claims 1 to 3.
5. A processing equipment, characterized in that, Includes the controller as described in claim 4.
6. A computer-readable storage medium storing computer-readable instructions, characterized in that, When the computer-readable instructions are executed by the processor, they implement the tool offset parameter determination method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Numerical control machine tool and cutter parameter verification method and system thereof
CN108227624A
Numerical control machine tool cutter length compensation system and method
CN109623485A