Cutter life prediction method and device of numerical control machine tool and numerical control machine tool
By obtaining and cumulating the cutting path length of the tool in the CNC tool, the problem of inaccurate tool life prediction in the prior art is solved, and more accurate life prediction and replacement time are achieved, ensuring processing quality.
Patent Information
- Application Number
- CN202411164204.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-12
AI Technical Summary
The accuracy of the tool residual life prediction in existing CNC tool machines is poor, mainly because it depends on the number of use or time, making it difficult to accurately predict the remaining life of the tool.
By obtaining the target movement amount when the tool is in the cutting state, determining the accumulated cutting path length, and predicting the remaining life of the tool based on this length, avoiding the empty running distance when executing the machining instruction being counted into the cutting path length.
Improve the accuracy and accuracy of tool life prediction, ensuring that the tool is replaced in time when the preset maximum cutting path length is reached, and ensuring cutting quality.
Smart Images

Figure CN118927023A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of CNC machine tools, and specifically relates to a tool life prediction method and device for a CNC machine tool, and a CNC machine tool. Background Art
[0002] CNC (Computer Numerical Control) machine tools such as CNC lathes, CNC milling machines, and CNC planers are widely used in mechanical processing, mold manufacturing, automobile manufacturing, aerospace, and other fields. CNC machine tools can be automatically controlled by computer numerical control systems. In order to ensure the processing quality, it is very important to predict the remaining life of the tool and replace the tool in time during the cutting process of the CNC tool tool that automatically controls the tool.
[0003] In the related art, the remaining life of a tool is generally predicted based on the number of times the tool is used. However, there is a problem in the related art of predicting the remaining life of a CNC machine tool tool with poor accuracy. For example, when predicting the remaining life of a tool based on the number of times the tool is used, the measurement accuracy is relatively rough. If a tool can actually be used between 5 and 6 times, but the generally set life is to be scrapped after 5 uses, the tool life limit is not fully used, and it is difficult to accurately predict the remaining life of the tool. Summary of the invention
[0004] The embodiments of the present application provide a method and device for predicting the tool life of a CNC machine tool, and a CNC machine tool, which can solve the problem of poor accuracy in predicting the remaining tool life of a CNC machine tool in the related art.
[0005] In a first aspect, an embodiment of the present application provides a method for predicting tool life of a CNC machine tool, comprising:
[0006] When a tool of a CNC machine tool is in a cutting state, a target movement amount of the tool is obtained;
[0007] Based on the target movement amount, the cumulative cutting path length of the tool is determined;
[0008] Based on the accumulated cutting path length, the remaining life of the tool is determined.
[0009] In a second aspect, an embodiment of the present application provides a tool life prediction device for a CNC machine tool, comprising:
[0010] A first acquisition module is used to acquire a target movement amount of the tool when the tool of the CNC machine tool is in a cutting state;
[0011] A first determination module is used to determine the cumulative cutting path length of the tool based on the target movement amount;
[0012] The second determination module is used to determine the remaining life of the tool based on the accumulated cutting path length.
[0013] In a third aspect, an embodiment of the present application provides a CNC machine tool, comprising: a controller, a spindle connected to the controller, and a tool connected to the spindle; the controller is used to implement the tool life prediction method for the CNC machine tool described in the first aspect.
[0014] In the embodiment of the present application, when the tool of the CNC machine tool is in a cutting state, the target movement amount of the tool is obtained; based on the target movement amount, the cumulative cutting path length of the tool is determined; based on the cumulative cutting path length, the remaining life of the tool is determined. In this way, compared with the prediction of the remaining life of the tool based on the number of times the tool is used in the related art, the embodiment of the present application can determine the remaining life of the tool based on the cumulative cutting path length of the tool, thereby improving the prediction accuracy and further improving the accuracy of predicting the tool life. In addition, since the cutting path length of the tool is accumulated when the tool of the CNC machine tool is in a cutting state, it can be avoided that the distance that the tool runs in vain when executing the processing instruction is included in the cutting path length for calculation, thereby improving the accuracy of the accumulated cutting path length and further improving the accuracy of predicting the tool life. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A schematic flow chart of a tool life prediction method for a CNC machine tool provided in an embodiment of the present application;
[0017] Figure 2 A schematic flow chart of another method for predicting tool life of a CNC machine tool provided in an embodiment of the present application;
[0018] Figure 3 A schematic flow chart of another method for predicting tool life of a CNC machine tool provided in an embodiment of the present application;
[0019] Figure 4 A schematic flow chart of another method for predicting tool life of a CNC machine tool provided in an embodiment of the present application;
[0020] Figure 5 A schematic structural diagram of a tool life prediction device for a CNC machine tool provided in an embodiment of the present application;
[0021] Figure 6 A schematic structural diagram of a CNC machine tool provided in an embodiment of the present application;
[0022] Figure 7 A schematic structural diagram of another CNC machine tool provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] As described in the background art, in the related art, the remaining life of a tool is predicted based on the number of times the tool is used or the time the tool is used, which has the problem of poor accuracy in predicting the remaining life of a CNC machine tool tool.
[0027] Based on this, the tool life prediction method for a CNC machine tool provided in the embodiment of the present application can predict the remaining life of the tool based on the total length of the workpiece actually cut by the tool (i.e., the cumulative cutting path length), thereby improving the accuracy of predicting the tool life.
[0028] Furthermore, the tool life prediction method for a CNC machine tool provided in an embodiment of the present application can accumulate the cutting path length of the tool when the tool of the CNC machine tool is in a cutting state, that is, when the tool actually contacts the workpiece for cutting, the cutting path length of the tool can be accumulated. This can avoid the distance of empty running when executing processing instructions from being included in the cutting path length calculation, thereby improving the accuracy of the accumulated cutting path length and further improving the accuracy of predicting the tool life.
[0029] In practical applications, the tool life prediction method for CNC machine tools provided in the embodiment of the present application can be used to predict the tool life of CNC machine tools. The CNC machine tool can be a CNC lathe, a CNC milling machine or a CNC planer according to the processing method. The number of control axes of the CNC machine tool can be two axes, three axes, four axes or five axes. The CNC machine tool can be applied to mechanical processing, mold manufacturing or automobile manufacturing and other fields. The present application does not limit the specific application scenarios of the CNC machine tool.
[0030] In the following, in combination with the accompanying drawings, the tool life prediction method and device of the CNC machine tool and the CNC machine tool provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0031] Figure 1 A schematic flowchart of a tool life prediction method for a CNC machine tool provided in an embodiment of the present application.
[0032] like Figure 1 As shown, a tool life prediction method for a CNC machine tool provided in an embodiment of the present application may include:
[0033] Step 110: When the tool of the CNC machine tool is in a cutting state, obtaining a target movement amount of the tool;
[0034] Step 120: Determine the cumulative cutting path length of the tool based on the target movement amount;
[0035] Step 130: Determine the remaining life of the tool based on the accumulated cutting path length.
[0036] The cutting state of the tool of the CNC machine tool can be understood as a state in which the tool actually contacts the workpiece for cutting, rather than a state in which the tool runs in vain without contacting the workpiece.
[0037] The target movement amount of the tool can be understood as the length of the cutting path when the tool moves under the control of the control axis of the CNC machine tool. The control axis of the CNC machine tool can include a spindle and at least one linear axis.
[0038] It should be pointed out that in actual applications, the path of the tool during processing can be linear movement or nonlinear movement. The cutting path of the tool during actual movement can be single-axis movement or multi-axis simultaneous movement. For example, helical cutting is arc movement combined with simultaneous movement of another axis, thread processing is simultaneous movement of the main axis with another linear axis, and so on. The embodiments of the present application do not limit the specific type of the tool's cutting path.
[0039] The linear axis may be a control axis of a CNC machine tool, and the tool may move along the linear axis. The present application does not impose any specific restrictions on the number and direction of the linear axes.
[0040] For example, the linear axis may include at least one of an X-axis, a Y-axis, or a Z-axis. The X-axis, the Y-axis, and the Z-axis are perpendicular to each other. The tool may move left and right along the X-axis, may move forward and backward along the Y-axis, or may move up and down along the Z-axis.
[0041] In step 110, when the tool of the CNC machine tool is in a cutting state, a target movement amount of the tool is obtained, and the target movement amount can be regarded as the current cutting path length of the tool.
[0042] In step 120, the cumulative cutting path length of the tool is determined based on the target movement amount, wherein the cumulative cutting path length of the tool can be obtained by accumulating multiple target movement amounts obtained by multiple movements of the tool. The cumulative cutting path length can be the total length of the workpiece actually cut by the tool.
[0043] In step 130, the present application can measure the service life of the tool by the cutting path length of the tool, rather than measuring the service life of the tool by the number of times the tool is used or the time the tool is used. Based on this, the present application can determine the remaining life of the tool based on the cumulative cutting path length of the tool.
[0044] For example, the present application may use a preset maximum cutting path length to represent the total life of a tool, and use the difference between the preset maximum cutting path length and the cumulative cutting path length of the tool as the remaining life of the tool.
[0045] It should be pointed out that in the related art, the remaining life of the tool is predicted based on the number of times the tool is used. However, the cutting path length of the tool when used once is relatively long, and the accuracy of predicting the remaining life of the tool based on the number of times the tool is used is relatively rough, resulting in poor accuracy in predicting the remaining life of the tool.
[0046] In the embodiment of the present application, the remaining life of the tool is determined based on the cumulative cutting path length of the tool, which is equivalent to predicting the remaining life of the tool based on the total length of the workpiece actually cut by the tool, thereby improving the prediction accuracy and further improving the accuracy of predicting the tool life.
[0047] Furthermore, in the embodiment of the present application, when the tool of the CNC machine tool is in a cutting state, the cutting path length of the tool is accumulated. When the tool actually contacts the workpiece for cutting, the cutting path length of the tool can be accumulated. This can avoid the distance of the tool running in vain (the tool is in a non-cutting state) when executing processing instructions from being included in the cutting path length for cumulative calculation, thereby improving the accuracy of the accumulated cutting path length and further improving the accuracy of predicting tool life.
[0048] According to the tool life prediction method for a CNC machine tool provided in an embodiment of the present application, when the tool of the CNC machine tool is in a cutting state, the target movement amount of the tool is obtained; based on the target movement amount, the cumulative cutting path length of the tool is determined; based on the cumulative cutting path length, the remaining life of the tool is determined. In this way, compared with the prediction of the remaining life of the tool based on the number of times the tool is used in the related art, the embodiment of the present application can determine the remaining life of the tool based on the cumulative cutting path length of the tool, thereby improving the prediction accuracy and further improving the accuracy of predicting the tool life. In addition, since the cutting path length of the tool is accumulated when the tool of the CNC machine tool is in a cutting state, it can be avoided that the distance that the tool runs in vain when executing the processing instruction is included in the cutting path length for calculation, thereby improving the accuracy of the accumulated cutting path length and further improving the accuracy of predicting the tool life.
[0049] In a specific embodiment, in order to accurately accumulate the cutting path length of the tool when the tool of the CNC machine tool is in a cutting state, the embodiment of the present application can first determine that the tool is in a cutting state, and then accumulate the cutting path length of the tool when the tool of the CNC machine tool is in the cutting state.
[0050] For example, Figure 2 As shown, the embodiment of the present application provides a method for predicting tool life of a CNC machine tool, which may include:
[0051] Step 210: When the CNC machine tool executes a cutting instruction, obtaining a spindle torque value of the CNC machine tool;
[0052] Step 220: when the spindle torque value is greater than the minimum torque threshold, determining that the tool of the CNC machine tool is in a cutting state;
[0053] Step 230: When the tool of the CNC machine tool is in a cutting state, obtaining a target movement amount of the tool;
[0054] Step 240: Determine the cumulative cutting path length of the tool based on the target movement amount;
[0055] Step 250: Determine the remaining life of the tool based on the accumulated cutting path length.
[0056] Among them, step 210 and step 220 can be performed before step 230.
[0057] Among them, the specific contents of steps 230 to 250 may refer to those of steps 110 to 130 .
[0058] Among them, CNC machine tools can execute a variety of processing instructions, and cutting instructions are processing instructions used to control the tool to perform cutting actions.
[0059] In step 210, the spindle torque value can be understood as the torque value provided by the spindle to the tool. When the CNC machine tool executes a cutting instruction, the spindle torque value of the CNC machine tool is obtained, which can be the force required by the tool to cut the workpiece when the CNC machine tool executes a cutting instruction.
[0060] In step 220 , when the spindle torque value is greater than the minimum torque threshold, it is determined that the tool of the CNC machine tool is in a cutting state.
[0061] The minimum torque threshold may be a preset threshold, which may be set by the user according to actual processing experience. The minimum torque threshold may be understood as the minimum torque value required for the tool to cut the workpiece when the CNC machine tool executes a cutting instruction.
[0062] When the spindle torque value is greater than the minimum torque threshold, it indicates that the tool of the CNC machine tool contacts the workpiece and cuts the workpiece, and it is determined that the tool of the CNC machine tool is in a cutting state.
[0063] Alternatively, when the spindle torque value is equal to the minimum torque threshold, it can also be indicated that the tool of the CNC machine tool has just contacted the workpiece and is cutting the workpiece, and it is determined that the tool of the CNC machine tool is in a cutting state.
[0064] In addition, when the spindle torque value is less than the minimum torque threshold, it means that the tool of the CNC machine tool does not touch the workpiece and is in an idle state. At this time, it can be determined that the tool of the CNC machine tool is in a non-cutting state. This situation may correspond to a scenario where there is no workpiece to be processed on the workbench of the CNC machine tool.
[0065] In this way, the embodiment of the present application determines that the tool of the CNC machine tool contacts the workpiece and cuts the workpiece by judging that the spindle torque value is greater than the minimum torque threshold, and the tool of the CNC machine tool is in a cutting state. Then, when the tool of the CNC machine tool is in the cutting state, the step of accumulating the cutting path length of the tool is triggered. This can avoid the distance that the tool runs in vain when executing the processing instruction from being included in the cutting path length calculation, thereby improving the accuracy of the accumulated cutting path length and further improving the accuracy of predicting the tool life.
[0066] Wherein, in step 210, the cutting instruction may include at least one of the following: a straight line cutting instruction, a clockwise arc cutting instruction, and a counterclockwise arc cutting instruction.
[0067] Among them, in the CNC system of the CNC machine tool, the straight line cutting instruction may be the G01 instruction, the clockwise arc cutting instruction may be the G02 instruction, and the counterclockwise arc cutting instruction may be the G03 instruction.
[0068] In the case where the CNC machine tool executes a straight line cutting instruction, a clockwise arc cutting instruction or a counterclockwise arc cutting instruction, the tool of the CNC machine tool can move according to the specific cutting instruction.
[0069] Among them, the cutting instruction executed by the CNC machine tool can be a single cutting instruction or a combination of at least two cutting instructions, so as to realize a variety of cutting processing methods such as straight line cutting, arc cutting, spiral cutting, thread cutting, etc.
[0070] For example, the cutting instruction executed by the CNC machine tool may be a straight line cutting instruction, or a combination of a straight line cutting instruction and a clockwise circular arc cutting instruction, or a combination of a straight line cutting instruction and a counterclockwise circular arc cutting instruction, etc. This application does not impose any specific restrictions on this.
[0071] In this way, the tool's cutting path length can be accumulated in various cutting processing scenarios such as single-axis or multi-axis linear cutting, arc cutting, spiral cutting, thread cutting, etc. Furthermore, in these cutting scenarios, the tool's remaining life can be determined based on the tool's accumulated cutting path length, thereby improving the accuracy of tool life prediction.
[0072] In a specific example, in order to determine the spindle torque value of a CNC machine tool, in the above step 210, obtaining the spindle torque value of the CNC machine tool may include:
[0073] Get the current value of the spindle drive of the CNC machine tool;
[0074] Obtain the torque constant of the spindle of the CNC machine tool;
[0075] The spindle torque value of the CNC machine tool is determined based on the current value of the spindle driver and the torque constant of the spindle.
[0076] The actual current value I of the spindle driver may be the actual current value of the spindle driver read by the upper controller through digital communication, and the torque constant of the spindle is a known value that can be obtained in advance in the work manual of the CNC machine tool.
[0077] For example, in the embodiment of the present application, the actual current value I (in A) of the spindle driver can be multiplied by the torque constant Kt (in Nm / A) of the spindle to obtain the current torque of the spindle (in Nm). Then, based on the current torque of the spindle, the spindle torque value of the CNC machine tool can be obtained.
[0078] In this way, the embodiment of the present application can first obtain the actual current value of the spindle driver, determine the spindle torque value of the CNC machine tool based on the actual current value of the spindle driver and the torque constant of the spindle, and then judge whether the tool of the CNC machine tool is in a cutting state based on the size of the spindle torque value.
[0079] Of course, in other embodiments of the present application, the present application can also determine that the tool of the CNC machine tool is in a cutting state by other means. For example, by photographing the workbench of the CNC machine tool, a target image of the tool when working is obtained, and by analyzing the target image, it is identified whether the tool of the CNC machine tool is in a cutting state. For another example, when the tool cuts a metal workpiece, the contact point between the tool and the metal workpiece may generate noise or heat. The present application can also monitor the contact point between the tool and the metal workpiece by an infrared sensor or a sound sensor to determine whether the tool of the CNC machine tool is in a cutting state. The present application does not limit the specific method of determining that the tool of the CNC machine tool is in a cutting state.
[0080] In practical applications, the linear axis may be a control axis of a CNC machine tool, and the tool may move along the linear axis. The present application does not impose any specific restrictions on the number of linear axes and the direction of the linear axes. For example, the linear axis may include at least one of an X-axis, a Y-axis, or a Z-axis. The following takes a CNC machine tool with three linear axes as an example to describe in detail the specific process of calculating the cumulative cutting path length of the tool.
[0081] In a specific embodiment, in order to calculate the cumulative cutting path length of the tool, the target movement amount may include the path length of the tool moving along the linear axis, and the linear axis may include a first linear axis, a second linear axis, and a third linear axis; the first linear axis, the second linear axis, and the third linear axis are perpendicular to each other;
[0082] In the above step 120, determining the cumulative cutting path length of the tool based on the target movement amount may include:
[0083] The cumulative cutting path length of the tool is determined based on a first target movement amount of the tool along the first linear axis, a second target movement amount of the tool along the second linear axis, a third target movement amount of the tool along the third linear axis, and a composite movement amount when at least two linear axes move together.
[0084] For example, the first linear axis may be an X-axis, the second linear axis may be a Y-axis, and the third linear axis may be a Z-axis, wherein the X-axis, the Y-axis, and the Z-axis are perpendicular to each other. The tool may move left and right along the X-axis, may move forward and backward along the Y-axis, and may move up and down along the Z-axis.
[0085] The embodiments of the present application can determine the cumulative cutting path length of the tool based on the target movement amount, which may include: determining the cumulative cutting path length of the tool based on a first target movement amount of the tool moving along the X-axis, a second target movement amount of the tool moving along the Y-axis, a third target movement amount of the tool moving along the Z-axis, and a composite movement amount when at least two linear axes move together.
[0086] Among them, at least one of the first target movement amount, the second target movement amount, the third target movement amount and the combined movement amount is not 0. The embodiment of the present application can sum up the first target movement amount, the second target movement amount, the third target movement amount and the combined movement amount to obtain the cumulative cutting path length of the tool.
[0087] Among them, the composite movement amount when at least two linear axes move simultaneously can be the composite movement amount when the tool moves simultaneously along the X-axis and the Y-axis, the composite movement amount when the tool moves simultaneously along the Y-axis and the Z-axis, the composite movement amount when the tool moves simultaneously along the X-axis and the Z-axis, or the composite movement amount when the tool moves simultaneously along the X-axis, the Y-axis and the Z-axis. The present application does not impose any specific restrictions on this.
[0088] For example, in the actual application scenario of the tool performing arc processing, the tool can move in an arc along the X-axis and the Y-axis to obtain the synthetic movement of the arc trajectory. For another example, in the actual application scenario of the tool performing spiral processing, the tool can move in an arc along the X-axis and the Y-axis while moving up and down along the Z-axis to obtain the synthetic movement of the spiral trajectory, etc. This application does not impose specific restrictions on this.
[0089] In this way, when the control axis of the CNC machine tool includes a first linear axis, a second linear axis and a third linear axis that are perpendicular to each other, the embodiment of the present application can determine the cumulative cutting path length of the tool based on the first target movement amount of the tool along the first linear axis, the second target movement amount of the tool along the second linear axis, and the third target movement amount of the tool along the third linear axis, and accurately calculate the cumulative cutting path length of the tool.
[0090] In addition, in practical applications, the cutting path of the tool can be single-axis movement or multi-axis simultaneous movement. During processing, the cutting path of the tool can be linear movement or nonlinear movement.
[0091] In other embodiments, the cumulative cutting path length of the tool may also be obtained based on the change trajectory of the coordinate values of the first linear axis, the second linear axis, and the third linear axis, and the present application does not impose any specific limitation on this.
[0092] For example, helical cutting is arc movement with the simultaneous movement of another axis, thread machining is the simultaneous movement of the spindle with another linear axis, etc. Based on this, the cumulative cutting path length of the tool can also be calculated based on the change trajectory of the coordinate values of the X-axis, Y-axis and Z-axis.
[0093] In another specific embodiment, in order to provide users with a method for timely replacing tools that have run out of life and ensure cutting quality, a tool life prediction method for a CNC machine tool provided in an embodiment of the present application may include:
[0094] Step 310: When the tool of the CNC machine tool is in a cutting state, obtaining a target movement amount of the tool;
[0095] Step 320: Determine the cumulative cutting path length of the tool based on the target movement amount;
[0096] Step 330: Determine the remaining life of the tool based on the accumulated cutting path length;
[0097] Step 340: When the accumulated cutting path length reaches a preset maximum cutting path length, a prompt message is displayed, where the prompt message is used to prompt that the tool has reached a preset tool life.
[0098] Among them, the specific contents of steps 310 to 330 may refer to those of steps 110 to 130 .
[0099] Among them, step 340 can be performed after step 330.
[0100] In step 330, the embodiment of the present application can obtain a preset maximum cutting path length, and take the difference between the maximum cutting path length and the cumulative cutting path length as the remaining life of the tool; when the cumulative cutting path length reaches the preset maximum cutting path length, the remaining life of the tool is determined to be 0.
[0101] The maximum cutting path length may be set by the user according to actual processing experience, and the preset maximum cutting path length may be understood as the allowable cutting path length of the tool (the total life of the tool).
[0102] In step 340, when the cumulative cutting path length reaches the preset maximum cutting path length, a prompt message is displayed, and the prompt message is used to prompt that the tool has reached the preset tool life, wherein the preset tool life refers to the total life of the tool, so as to facilitate the subsequent replacement of the tool whose life has been exhausted to ensure the cutting quality.
[0103] In this way, the embodiment of the present application can display a prompt message when the cumulative cutting path length reaches the preset maximum cutting path length to prompt that the tool has reached the preset tool life, thereby facilitating the subsequent replacement of the tool whose life has been exhausted and ensuring the cutting quality.
[0104] In another specific embodiment, after step 330, the tool life prediction method for a CNC machine tool provided in the embodiment of the present application may further include:
[0105] When the accumulated cutting path length is less than the preset maximum cutting path length, the numerical control machine tool is controlled to execute the cutting instruction.
[0106] It can be understood that when the cumulative cutting path length is less than the preset maximum cutting path length, it means that the tool has not reached the allowable cutting path length of the tool (the total life of the tool), that is, the tool can still be effectively used. At this time, the CNC machine tool can continue to be controlled to execute the cutting instruction. After executing the cutting instruction, the above steps 110 to 130 are executed in a loop until the cumulative cutting path length of the tool reaches the preset maximum cutting path length, so that the user can replace the tool that has exhausted its life in time.
[0107] In this way, when the accumulated cutting path length is less than the preset maximum cutting path length, the CNC machine tool can be controlled to continue to execute the cutting instruction and continue to use the tool effectively.
[0108] In practical applications, such as Figure 4 As shown, the tool life prediction method for a CNC machine tool provided in an embodiment of the present application may include the following process:
[0109] In a numerical control system (e.g., core software of a controller) of a numerical control machine tool, a minimum torque threshold and a maximum cutting path length are input;
[0110] Determine whether the CNC machine tool is in automatic mode;
[0111] If the CNC machine tool is in automatic mode, it is then determined whether the CNC machine tool executes a cutting instruction;
[0112] If the machining command executed by the CNC machine tool is a cutting command (such as G01 to G03 commands), it is then determined whether the spindle torque value is greater than the minimum torque threshold;
[0113] If the spindle torque value is greater than the minimum torque threshold, continue to determine whether the working coordinates of the three linear axes have changed;
[0114] If the working coordinates of the three linear axes change, the cutting path length of the tool can be accumulated according to the changes in the three-axis coordinate values (i.e., the target movement amount);
[0115] It is determined whether the cumulative cutting path length of the tool has reached the maximum cutting path length. When the cumulative cutting path length of the tool has reached the maximum cutting path length, the numerical control system issues a prompt message indicating that the tool life has been exhausted.
[0116] Among them, CNC machine tools mainly execute G01 (straight line cutting) or G02 (clockwise arc cutting), G03 (counterclockwise arc cutting) and other processing instructions during actual cutting. However, when executing these processing instructions, the tool may not touch the workpiece. Therefore, when calculating the remaining life of the tool, in addition to determining whether the current machine is executing the above G01~G03 instructions, it is also necessary to determine whether the tool is touching the workpiece for cutting according to the current spindle torque value. If the spindle torque value is greater than the minimum torque threshold, it means that the tool is actually touching the workpiece for cutting and the tool is in the cutting state.
[0117] In this way, compared with the related art of predicting the remaining life of a tool based on the number of times the tool has been used, the embodiment of the present application can determine the remaining life of a tool based on the cumulative cutting path length of the tool, thereby improving the prediction accuracy and further improving the accuracy of predicting the tool life.
[0118] Furthermore, when the tool of the CNC machine tool is in the cutting state, the cutting path length of the tool is accumulated, which can avoid the distance of the tool running in vain when executing the processing instruction from being included in the cutting path length calculation, thereby improving the accuracy of the accumulated cutting path length and the accuracy of predicting the tool life.
[0119] Also, when the cumulative cutting path length reaches the maximum cutting path length, a prompt message is displayed to remind the tool that the preset tool life has been reached, so as to facilitate the subsequent replacement of the tool whose life has been exhausted and ensure the cutting quality.
[0120] Based on the same concept as any of the above method embodiments, an embodiment of the present application also provides a tool life prediction device for a CNC machine tool, which can execute the tool life prediction method for a CNC machine tool provided in any of the above embodiments.
[0121] like Figure 5 As shown, the embodiment of the present application provides a tool life prediction device for a CNC machine tool, which may include:
[0122] The first acquisition module 501 is used to acquire the target movement amount of the tool when the tool of the CNC machine tool is in a cutting state;
[0123] A first determination module 502 is used to determine the cumulative cutting path length of the tool based on the target movement amount;
[0124] The second determination module 503 is used to determine the remaining life of the tool based on the accumulated cutting path length.
[0125] According to the tool life prediction device of the CNC machine tool provided by the embodiment of the present application, it includes a first acquisition module, which is used to obtain the target movement amount of the tool when the tool of the CNC machine tool is in a cutting state; a first determination module, which is used to determine the cumulative cutting path length of the tool based on the target movement amount; and a second determination module, which is used to determine the remaining life of the tool based on the cumulative cutting path length. In this way, compared with the prediction of the remaining life of the tool based on the number of times the tool is used in the related art, the embodiment of the present application can determine the remaining life of the tool based on the cumulative cutting path length of the tool, thereby improving the prediction accuracy and further improving the accuracy of predicting the tool life. In addition, since the cutting path length of the tool is accumulated when the tool of the CNC machine tool is in a cutting state, it can be avoided that the distance of the tool running in vain when executing the processing instruction is included in the cutting path length for calculation, thereby improving the accuracy of the accumulated cutting path length and further improving the accuracy of predicting the tool life.
[0126] Optionally, in a specific embodiment, the tool life prediction device for a CNC machine tool provided in the embodiment of the present application may further include:
[0127] A second acquisition module is used to acquire the spindle torque value of the CNC machine tool when the CNC machine tool executes a cutting instruction;
[0128] The third determination module is used to determine that the tool of the CNC machine tool is in a cutting state when the spindle torque value is greater than a minimum torque threshold.
[0129] In this way, the embodiment of the present application determines that the tool of the CNC machine tool contacts the workpiece and cuts the workpiece by judging that the spindle torque value is greater than the minimum torque threshold, and determines that the tool of the CNC machine tool is in a cutting state. Then, when the tool of the CNC machine tool is in the cutting state, the step of accumulating the cutting path length of the tool is triggered. This can avoid the distance that the tool runs in vain when executing the processing instruction from being included in the cutting path length calculation, thereby improving the accuracy of the accumulated cutting path length and further improving the accuracy of predicting the tool life.
[0130] Optionally, in a specific embodiment, in the tool life prediction device for a CNC machine tool provided in an embodiment of the present application, the second acquisition module is specifically used to:
[0131] Get the current value of the spindle drive of the CNC machine tool;
[0132] Obtain the torque constant of the spindle of the CNC machine tool;
[0133] The spindle torque value of the CNC machine tool is determined based on the current value of the spindle driver and the torque constant of the spindle.
[0134] In this way, the embodiment of the present application can first obtain the actual current value of the spindle driver, determine the spindle torque value of the CNC machine tool based on the actual current value of the spindle driver and the torque constant of the spindle, and then judge whether the tool of the CNC machine tool is in a cutting state based on the size of the spindle torque value.
[0135] Optionally, in a specific embodiment, in the tool life prediction device for a CNC machine tool provided in an embodiment of the present application, the cutting instruction includes at least one of the following: a straight line cutting instruction, a clockwise arc cutting instruction, and a counterclockwise arc cutting instruction.
[0136] In this way, the cutting path length of the tool can be accumulated in the scenarios of straight line cutting, clockwise arc cutting or counterclockwise arc cutting. Furthermore, the remaining life of the tool can be determined based on the accumulated cutting path length of the tool in these cutting scenarios, thereby improving the accuracy of predicting the tool life.
[0137] Optionally, in a specific embodiment, in the tool life prediction device of the CNC machine tool provided in the embodiment of the present application, the linear axis includes a first linear axis, a second linear axis and a third linear axis; the first linear axis, the second linear axis and the third linear axis are perpendicular to each other; the first determination module is specifically used to: determine the cumulative cutting path length of the tool based on a first target movement amount of the tool along the first linear axis, a second target movement amount along the second linear axis, and a third target movement amount along the third linear axis.
[0138] In this way, when the control axis of the CNC machine tool includes a first linear axis, a second linear axis and a third linear axis that are perpendicular to each other, the embodiment of the present application can determine the cumulative cutting path length of the tool based on the first target movement amount of the tool along the first linear axis, the second target movement amount of the tool along the second linear axis, and the third target movement amount of the tool along the third linear axis, and accurately calculate the cumulative cutting path length of the tool.
[0139] Optionally, in a specific embodiment, in the tool life prediction device for a CNC machine tool provided by the embodiment of the present application, the second determination module is specifically used to: determine that the remaining life of the tool is 0 when the accumulated cutting path length reaches a preset maximum cutting path length;
[0140] The tool life prediction device for CNC machine tools also includes:
[0141] The display module is used to display a prompt message when the cumulative cutting path length reaches a preset maximum cutting path length, and the prompt message is used to prompt that the tool reaches a preset tool life.
[0142] In this way, the embodiment of the present application can display a prompt message when the cumulative cutting path length reaches the preset maximum cutting path length to prompt that the tool has reached the preset tool life, thereby facilitating the subsequent replacement of the tool whose life has been exhausted and ensuring the cutting quality.
[0143] Optionally, in a specific embodiment, the tool life prediction device of the CNC machine tool provided in the embodiment of the present application also includes a control module, which is used to: after determining the cumulative cutting path length of the tool, when the cumulative cutting path length is less than a preset maximum cutting path length, control the CNC machine tool to execute a cutting instruction.
[0144] In this way, when the accumulated cutting path length is less than the preset maximum cutting path length, the CNC machine tool can be controlled to continue to execute the cutting instruction and continue to use the tool effectively.
[0145] It should be pointed out that the tool life prediction device for CNC machine tools provided in the embodiment of the present application can implement the various steps of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0146] The present application also provides a numerical control machine tool, such as Figure 6 As shown, the CNC machine tool 600 provided in the embodiment of the present application may include: a controller 601, a spindle 602 connected to the controller, and a tool 603 connected to the spindle;
[0147] The controller 601 is used to implement each process of the above method embodiment.
[0148] The main shaft 602 can be used to drive the tool 603 to move.
[0149] It should be pointed out that the CNC machine tool provided in the embodiment of the present application can implement each step of the above method embodiment and can achieve the same technical effect.
[0150] For example, in actual citations, Figure 7 As shown, the CNC machine tool provided by the embodiment of the present application may include: a liquid crystal panel, a keypad, an operation panel, a controller mainboard and an input / output (IO) baseboard, an X-axis driver, an X-axis motor, a Y-axis driver, a Y-axis motor, a Z-axis driver, a Z-axis motor, a spindle driver and a spindle motor;
[0151] Among them, Ethernet communication is carried out between the LCD panel and the keypad and the controller main board and the input / output baseboard, digital communication is carried out between the operation panel and the controller main board and the input / output baseboard, and digital communication is carried out between the controller main board and the input / output baseboard and the X-axis driver, Y-axis driver, Z-axis driver, and spindle driver.
[0152] The tool can move along the X-axis, Y-axis and Z-axis, and the spindle can provide the spindle torque required for the tool to cut the workpiece.
[0153] It should be pointed out that the CNC machine tool provided in the embodiment of the present application can implement each step of the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0154] The embodiment of the present application further provides an electronic device, which may include a processor and a memory. The memory stores a computer program, and when the computer program is executed, each process of the above method embodiment is implemented.
[0155] The memory is used to store programs or data. The memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), etc.
[0156] An embodiment of the present application also provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0157] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0158] An embodiment of the present application further provides a computer program product, which includes a computer program. The computer program is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0159] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0160] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware platforms, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0162] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for predicting tool life of a CNC machine tool, characterized in that: include: When the tool of the CNC machine tool is in a cutting state, obtaining a target movement amount of the tool; determining a cumulative cutting path length of the tool based on the target movement amount; Based on the accumulated cutting path length, a remaining life of the tool is determined.
2. The method according to claim 1, characterized in that Before obtaining the target movement amount of the tool, the method further includes: When the CNC machine tool executes a cutting instruction, obtaining a spindle torque value of the CNC machine tool; When the spindle torque value is greater than the minimum torque threshold, it is determined that the tool of the CNC machine tool is in a cutting state.
3. The method according to claim 2, characterized in that The obtaining of the spindle torque value of the CNC machine tool comprises: Acquiring a current value of a spindle driver of the CNC machine tool; Obtaining a torque constant of a spindle of the CNC machine tool; A spindle torque value of the numerically controlled machine tool is determined based on the current value of the spindle driver and the torque constant of the spindle.
4. The method according to claim 2, characterized in that: The cutting instruction includes at least one of the following: a straight line cutting instruction, a clockwise arc cutting instruction, and a counterclockwise arc cutting instruction.
5. The method according to any one of claims 1 to 4, characterized in that: The target movement amount includes the path length of the tool moving along the linear axis, the linear axis includes a first linear axis, a second linear axis and a third linear axis; the first linear axis, the second linear axis and the third linear axis are perpendicular to each other; The step of determining the cumulative cutting path length of the tool based on the target movement amount includes: The cumulative cutting path length of the tool is determined based on a first target movement amount of the tool along the first linear axis, a second target movement amount along the second linear axis, a third target movement amount along the third linear axis, and a composite movement amount when at least two linear axes move in combination.
6. The method according to any one of claims 1 to 4, characterized in that: After determining the remaining life of the tool based on the accumulated cutting path length, the method further comprises: When the accumulated cutting path length reaches a preset maximum cutting path length, a prompt message is displayed, wherein the prompt message is used to prompt that the tool has reached a preset tool life.
7. The method according to claim 6, characterized in that After determining the cumulative cutting path length of the tool, the method further comprises: When the accumulated cutting path length is less than a preset maximum cutting path length, the numerical control machine tool is controlled to execute a cutting instruction.
8. A tool life prediction device for a CNC machine tool, characterized in that: include: A first acquisition module, configured to acquire a target movement amount of the tool when the tool of the CNC machine tool is in a cutting state; A first determination module, configured to determine a cumulative cutting path length of the tool based on the target movement amount; The second determination module is used to determine the remaining life of the tool based on the accumulated cutting path length.
9. The device according to claim 8, characterized in that The device also includes: A second acquisition module, configured to acquire a spindle torque value of the CNC machine tool when the CNC machine tool executes a cutting instruction; The third determination module is used to determine that the tool of the CNC machine tool is in a cutting state when the spindle torque value is greater than a minimum torque threshold.
10. A CNC machine tool, characterized in that: include: A controller, a spindle connected to the controller, and a tool connected to the spindle; The controller is used to implement the tool life prediction method for a CNC machine tool as described in any one of claims 1-7.
Citation Information
Patent Citations
Cutter monitoring system and method
CN108897281A
Tool life estimation device and method
CN111215966A
Cutter service life prediction method based on cutter path moving trajectory
CN115167276A
Control method for tool life
JP1994155245A
NC data forming method, and NC machining method
JP2004034230A
