Tool replacement detection method and detection equipment
By obtaining tool type and workpiece information, determining the trial cutting method and area, and automatically determining the replacement detection result using trial cutting judgment rules, the problem of low tool replacement detection accuracy in the prior art is solved, and higher detection accuracy and reliability are achieved.
Patent Information
- Application Number
- CN202510386533.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-06-24
AI Technical Summary
In the prior art, the accuracy of tool replacement detection is low, mainly due to the inaccuracy of manual confirmation.
By obtaining the information about the replaced tool type and preset workpiece, determine the trial cutting method and the area to be cut, and use the tool to perform trial cutting in the area to be cut, and automatically determine the replacement test result in combination with the preset trial cutting judgment rules.
Improve the accuracy of tool replacement detection, avoid human judgment errors, and ensure the reliability of replacement detection.
Smart Images

Figure CN120190675A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of intelligent manufacturing, and particularly relates to a tool replacement detection method and a detection device. Background Art
[0002] In the process of manufacturing molds by numerically controlled machine tools, the problem of tool replacement often occurs, and the accuracy of tool replacement directly affects the quality of products or molds.
[0003] In related technologies, usually, manual confirmation is carried out on the shape accuracy of the replaced tool, the tool shank accuracy, etc., and the accuracy of tool replacement detection is low. Summary of the Invention
[0004] Embodiments of this application provide a tool replacement detection method and a detection device to solve the problem of low accuracy of tool replacement detection.
[0005] In a first aspect, embodiments of this application provide a tool replacement detection method, and the method includes: obtaining the tool type corresponding to the replaced tool and the workpiece information of a preset workpiece; determining a trial cutting method according to the tool type, and determining a to-be-trial-cut area corresponding to the preset workpiece according to the workpiece information and the tool type; performing trial cutting on the to-be-trial-cut area by using the tool according to the trial cutting method; and detecting the workpiece after trial cutting according to a preset trial cutting determination rule to determine the tool replacement detection result.
[0006] In some embodiments, the determining a trial cutting method according to the tool type includes: determining the trial cutting method corresponding to the tool type according to the corresponding relationship between the preset tool type and the trial cutting method.
[0007] In some embodiments, the obtaining the tool type corresponding to the replaced tool and the workpiece information of the preset workpiece includes: obtaining a tool image corresponding to the tool; determining the tool type corresponding to the tool by using a preset type recognition model according to the tool image; and the obtaining the workpiece information includes: the workpiece position, workpiece size, number of times of trial cutting, and area of the to-be-trial-cut area of the preset workpiece.
[0008] In some embodiments, the determining the to-be-trial-cut area corresponding to the preset workpiece according to the workpiece information and the tool type includes: if the number of times of trial cutting is greater than or equal to a threshold number of times, performing a layer reduction process on the preset workpiece, and determining the to-be-trial-cut area corresponding to the preset workpiece after the layer reduction process according to the tool type, the workpiece position, and the workpiece size; if the number of times of trial cutting is less than the threshold number of times, determining the to-be-trial-cut area corresponding to the preset workpiece according to the tool type, the workpiece position, the workpiece size, and the area of the to-be-trial-cut area.
[0009] In some embodiments, determining a to-be-tested cutting area corresponding to a preset workpiece after layer reduction processing according to the tool type, the workpiece position, and the workpiece size includes: determining an initial area of the preset workpiece after layer reduction processing according to the workpiece position and the workpiece size; determining a test cutting size corresponding to the tool type; and selecting an initial area adapted to the test cutting size as the to-be-tested cutting area.
[0010] In some embodiments, determining a to-be-tested cutting area corresponding to the preset workpiece according to the tool type, the workpiece position, the workpiece size, and the tested cutting area includes: determining an initial area of the preset workpiece according to the workpiece position and the workpiece size, where the initial area does not include the tested cutting area; determining a test cutting size corresponding to the tool type; and selecting an initial area adapted to the test cutting size as the to-be-tested cutting area corresponding to the preset workpiece.
[0011] In some embodiments, detecting a workpiece after test cutting according to a preset test cutting determination rule and determining a replacement detection result for the tool includes: determining real test cutting information corresponding to the workpiece after test cutting; analyzing the test cutting determination rule to obtain expected test cutting information; if the real test cutting information is the same as the expected test cutting information, determining that the replacement detection result is normal tool replacement; and if the real test cutting information is different from the expected test cutting information, determining that the replacement detection result is abnormal tool replacement.
[0012] In some embodiments, determining the real test cutting information corresponding to the workpiece after test cutting includes: determining the real test cutting information based on the residual material form corresponding to the workpiece after test cutting; or determining the depth of a test cutting hole corresponding to the workpiece after test cutting; determining a chamfer angle corresponding to the depth of the test cutting hole according to a preset correspondence between the depth of the test cutting hole and the chamfer angle, and determining the real test cutting information according to the chamfer angle; or determining a first length of the preset workpiece and a second length of the workpiece after test cutting; determining a test cutting length according to the first length and the second length, and determining the real test cutting information according to the test cutting length.
[0013] In some embodiments, if the real test cutting information includes the residual material form, the method further includes: if it is determined based on the residual material form that there is excess residual material in the workpiece after test cutting, determining that the tool replacement is abnormal and the thickness of the tool is less than a preset thickness; and if it is determined based on the residual material form that the workpiece after test cutting is over-tested, determining that the tool replacement is abnormal and the thickness of the tool is greater than the preset thickness.
[0014] Second aspect, an embodiment of the present application provides a tool replacement detection device, which includes: an information acquisition module for acquiring the tool type corresponding to the replaced tool and the workpiece information of a preset workpiece; a trial cutting determination module for determining a trial cutting method according to the tool type, and determining a to-be-trial-cut area corresponding to the preset workpiece according to the workpiece information and the tool type; a trial cutting processing module for performing trial cutting on the to-be-trial-cut area by using the tool according to the trial cutting method; a replacement detection module for detecting the workpiece after trial cutting according to a preset trial cutting determination rule to determine a tool replacement detection result for the tool.
[0015] Third aspect, an embodiment of the present application provides a detection device, which includes a processor and a memory. When the processor executes a computer program stored in the memory, it implements the tool replacement detection method as described in any one of the above.
[0016] Fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the above tool replacement detection method.
[0017] The tool replacement detection method provided by the embodiment of the present application includes: determining the tool type corresponding to the replaced tool and the workpiece information of a preset workpiece; determining a trial cutting method according to the tool type, and determining a to-be-trial-cut area corresponding to the preset workpiece according to the workpiece information and the tool type; performing trial cutting on the to-be-trial-cut area by using the tool according to the trial cutting method to obtain a workpiece after trial cutting; determining a tool replacement result corresponding to the tool according to a preset trial cutting determination rule and the workpiece after trial cutting. The above method determines the trial cutting method according to the tool type, avoids the mismatch between the trial cutting method and the tool type, and improves the accuracy of tool replacement detection; moreover, the present application determines the to-be-trial-cut area of the preset workpiece according to the workpiece information and the tool type, so that the to-be-trial-cut area meets the trial cutting requirements of the tool, and improves the accuracy of tool replacement detection; in addition, the present application uses a preset trial cutting determination rule to automatically determine whether the workpiece after trial cutting is correct, avoids manual determination, and can improve the accuracy of tool replacement detection. Description of the Drawings
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings.
[0019] Figure 1 It is a device diagram of a tool replacement detection method provided by an embodiment of the present application.
[0020] Figure 2 is a flowchart of a tool replacement detection method provided by an embodiment of the present application.
[0021] Figure 3 is a schematic diagram of tool cutting provided by an embodiment of the present application.
[0022] Figure 4 is a schematic diagram of an expected workpiece provided by an embodiment of the present application.
[0023] Figure 5 is a schematic diagram of the workpiece after trial cutting provided by an embodiment of the present application.
[0024] Figure 6 is a schematic structural diagram of a tool replacement detection device provided by an embodiment of the present application. Detailed implementation manners
[0025] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0026] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that unless otherwise stated in this application, "at least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b, or c can represent seven cases: a, b, c, a and b, a and c, b and c, a, b, and c.
[0028] In combination with Figure 1The figure shows a device for a tool replacement detection method provided by an embodiment of the present application. The tool replacement detection method can be applied to a detection device 10. As Figure 1 shown, the detection device 10 includes a camera module 101, a detection module 102, a communication module 103, a memory 104, a processor 105, an input / output (I / O) interface 106, and a bus 107. The processor 105 is respectively coupled to the camera module 101, the detection module 102, the communication module 103, the memory 104, and the input / output interface 106 through the bus 107.
[0029] In some embodiments, the camera module 101 can be used to collect a tool image corresponding to the replaced tool. The camera module 101 can include a camera, a camera, etc.
[0030] In some embodiments, the detection module 102 can be used to detect the position of a preset workpiece and the shape before and after trial cutting. The detection module 102 can include a probe, an infrared sensor, a ultrasonic sensor, etc.
[0031] In some embodiments, the communication module 103 can include a wired communication module and / or a wireless communication module.
[0032] In some embodiments, the memory 104 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 105. The one or more computer programs include a plurality of instructions. When the plurality of instructions are executed by the processor 105, a tool replacement detection method executed on the detection device 10 can be implemented.
[0033] In some embodiments, the processor 105 provides computing and control capabilities. For example, the processor 105 is used to execute the computer program stored in the memory 104 to implement the above tool replacement detection method.
[0034] In some embodiments, the input / output interface 106 is used to provide a channel for user input or output. For example, the input / output interface 106 can be used to connect various input / output devices, such as a mouse, a keyboard, a touch device, a display screen, etc., so that the user can input information or make the information visual.
[0035] In some embodiments, the bus 107 is at least used to provide a communication channel between the communication module 103, the memory 104, the processor 105, and the input / output interface 106 in the detection device 10.
[0036] In some embodiments, in a tool replacement detection scenario, the detection device 10 uses the imaging module 101 to obtain the tool type corresponding to the replaced tool, and uses the detection module 102 to obtain the workpiece information of a preset workpiece. The detection device 10 uses the processor 105 to analyze the tool type and the workpiece information, obtains the trial cutting method and the area to be trial cut corresponding to the preset workpiece, and uses the replaced tool to perform trial cutting in the area to be trial cut. The detection device 10 uses the detection module 102 to detect information such as the residual material form of the workpiece after trial cutting, the depth of the trial cutting hole, and the trial cutting length, and uses the processor 105 to detect the workpiece after trial cutting according to a preset trial cutting determination rule to determine the tool replacement detection result, where the replacement detection result may include normal tool replacement and abnormal tool replacement.
[0037] In the detection device 10 provided in the embodiments of the present application, the trial cutting method is determined according to the tool type, which avoids the mismatch between the trial cutting method and the tool type and improves the accuracy of tool replacement detection; and the detection device 10 determines the area to be trial cut of the preset workpiece according to the workpiece information and the tool type, so that the area to be trial cut meets the trial cutting requirements of the tool, improving the accuracy of tool replacement detection; in addition, the detection device 10 uses a preset trial cutting determination rule to automatically determine whether the workpiece after trial cutting is correct, avoiding manual determination and improving the accuracy of tool replacement detection.
[0038] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the detection device 10. In other embodiments of the present application, the detection device 10 may include more or fewer components than shown in the figure, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0039] Figure 2 is a flowchart of a tool replacement detection method provided by an embodiment of the present application. This tool replacement detection method is applied to a detection device (for example, Figure 1 the detection device 10 in Figure 2 ). As
[0040] shown, the tool replacement detection method includes the following steps. According to different requirements, the order of the steps in this flowchart can be changed, and some can be omitted.
[0041] In at least one embodiment of the present application, the tool type can be set according to the production requirements of the numerical control machine tool, and no limitation is made here. For example, the tool type can include round nose cutters, chamfer cutters, forming cutters, flat bottom cutters, etc. Among them, there are multiple models for tools of different tool types. For example, the round nose cutter includes D1 end mills, D1R0.1 round nose cutters, and D1R0.2 round nose cutters. Among them, D1 represents the diameter dimension of the tool, and R represents the fillet radius of the tool. The chamfer cutter includes 120-degree chamfer cutters and 90-degree chamfer cutters. The forming cutter includes T-shaped forming cutters, etc.
[0042] In some embodiments, the preset workpiece can represent a workpiece that is pre-set for trial cutting by a replaceable tool. The shape, size, and material of the preset workpiece can be set according to actual requirements, and no limitation is made here. The workpiece information is used to indicate information such as the position, size, number of trial cuts, and trial cut area of the workpiece.
[0043] In some embodiments, obtaining the tool type corresponding to the replaced tool and the workpiece information of the preset workpiece includes: obtaining a tool image corresponding to the tool; based on the tool image, using a preset type recognition model to determine the tool type corresponding to the tool; and obtaining the workpiece information, including: the workpiece position, workpiece size, number of trial cuts, and trial cut area of the preset workpiece. In the embodiment of the present application, the tool type is determined by the tool image and the type recognition model, which can improve the accuracy of tool type determination, and then improve the accuracy of tool replacement detection; and in the present application, the workpiece position, workpiece size, number of trial cuts, and trial cut area are used as workpiece information, and the workpiece information is determined in multiple dimensions, which can improve the comprehensiveness of the workpiece information, and then improve the accuracy of subsequent tool replacement detection.
[0044] Among them, the tool image can be collected by using the camera module in the detection device. For example, the replaced tool is placed within the field of view of the detection device, and the camera module collects the tool image of the tool. The type recognition model is used to identify the tool type. The input data of the category recognition model is the tool image, and the output image is the tool type corresponding to the tool. The type recognition model can be a Convolutional Neural Networks (CNNs) model, a Recurrent Neural Networks (RNNs) model, a Generative Adversarial Networks (GANs) model, etc., and no limitation is made here. The training method of the type recognition model can include supervised training methods and unsupervised training methods. The training process of the model can refer to related technologies and will not be elaborated here.
[0045] Among them, the workpiece position can represent the placement position of a preset workpiece in the detection device, the workpiece size can represent the shape and size information of the preset workpiece, the number of trial cuts can represent the number of times the preset workpiece has been trial cut, and the trial cut area can represent the area of the preset workpiece that has been trial cut.
[0046] S12. Determine the trial cut method according to the tool type, and determine the area to be trial cut corresponding to the preset workpiece according to the workpiece information and the tool type.
[0047] In at least one embodiment of the present application, the trial cut method is used to indicate the movement trajectory of the tool. Different tool types result in different movement trajectories of the tool. For example, when the tool type is a flat-end mill, the trial cut method includes linear cutting. When the tool type is a ball nose end mill, the trial cut method includes rotating and moving the tool in a specified direction, and cutting is performed through the rotation and movement of the tool. During the machining process, the tip part of the ball nose end mill rotates, contacts the surface of the preset workpiece, and removes the material. When the tool type is a chamfering tool, the trial cut method includes rotating the tool. During cutting, the cutting edge of the chamfering tool contacts the edge or corner of the preset workpiece, and the material is cut into the required chamfer shape through rotation. When the tool type is a form tool, the trial cut method can include rotary cutting, linear cutting, or other specific trajectory cutting, depending on the shape of the form tool and the machining requirements, which are not limited herein.
[0048] In some embodiments, the determining the trial cut method according to the tool type includes: determining the trial cut method corresponding to the tool type according to the preset correspondence between the tool type and the trial cut method. In the embodiments of the present application, the correspondence between the tool type and the trial cut method is preset. By querying the correspondence, the trial cut method corresponding to the tool type can be determined quickly and accurately.
[0049] In some embodiments, the preset workpiece can be subjected to multiple trial cutting processes. When the number of trial cutting times on the corresponding surface of the preset workpiece is less than the number threshold, the trial cutting process can continue on the preset workpiece until the number of trial cutting times is greater than or equal to the number threshold, and then the preset workpiece is subjected to a layer reduction process to obtain a new surface, so that the trial cutting process is carried out on the new surface of the preset workpiece. Among them, the number threshold can be set according to actual needs and is not limited here. For example, the number threshold can include 400 times, 500 times, etc. In some embodiments, determining the area to be trial cut corresponding to the preset workpiece according to the workpiece information and the tool type includes: if the number of trial cutting times is greater than or equal to the number threshold, then the preset workpiece is subjected to a layer reduction process, and according to the tool type, the workpiece position and the workpiece size, the area to be trial cut corresponding to the preset workpiece after the layer reduction process is determined; if the number of trial cutting times is less than the number threshold, then according to the tool type, the workpiece position, the workpiece size and the area that has been trial cut, the area to be trial cut corresponding to the preset workpiece is determined.
[0050] Among them, if the number of trial cutting times is greater than or equal to the number threshold, it indicates that more trial cutting cannot be performed on the current surface of the preset workpiece, so the preset workpiece is subjected to a layer reduction process to obtain a new surface. Then, according to the tool type, the workpiece position and the workpiece size, the area to be trial cut of the preset workpiece is determined on the new surface. If the number of trial cutting times is less than the number threshold, it indicates that more trial cutting can be performed on the current surface of the preset workpiece, so according to the tool type, the workpiece position, the workpiece size and the area that has been trial cut, the area to be trial cut of the preset workpiece is determined. In the embodiments of the present application, whether to perform a layer reduction process on the preset workpiece is determined according to the number of trial cutting times of the preset workpiece, avoiding the problem of poor trial cutting effect caused by the inability to perform trial cutting on the current surface of the preset workpiece, and improving the accuracy of tool replacement detection.
[0051] In some embodiments, taking the number of trial cuts being greater than or equal to the threshold number of cuts as an example: determining the area to be trial cut corresponding to the preset workpiece after layer reduction processing according to the tool type, the workpiece position, and the workpiece size includes: determining the initial area of the preset workpiece after layer reduction processing according to the workpiece position and the workpiece size; determining the trial cut size corresponding to the tool type; and selecting an initial area adapted to the trial cut size as the area to be trial cut. Among them, the layer reduction processing may include performing cutting processing on the preset workpiece, and the cutting direction may be set according to actual needs and is not limited herein. For example, the cutting direction is parallel to the surface of the preset workpiece that has been trial cut. After the layer reduction processing, the surface of the preset workpiece is a new surface, that is, the trial cut processing has not been performed. At this time, the trial cut size can be determined according to the tool type, and an initial area adapted to the trial cut size is selected on the new surface as the area to be trial cut. There is a corresponding relationship between the tool type and the trial cut size. By querying the corresponding relationship, the trial cut size corresponding to the tool type can be determined. The initial area on the new surface that is greater than or equal to the trial cut size is used as the adapted initial area. In the embodiments of the present application, when the number of trial cuts is greater than or equal to the threshold number of cuts, the trial cut size is determined using the workpiece position and the workpiece size, and the initial area adapted to the trial cut size is used as the area to be trial cut, which can improve the accuracy of determining the area to be trial cut.
[0052] In some embodiments, taking the number of trial cuts being less than the threshold number of cuts as an example, determining the area to be trial cut corresponding to the preset workpiece according to the tool type, the workpiece position, the workpiece size, and the area that has been trial cut includes: determining the initial area of the preset workpiece according to the workpiece position and the workpiece size, where the initial area does not include the area that has been trial cut; determining the trial cut size corresponding to the tool type; and selecting an initial area adapted to the trial cut size as the area to be trial cut corresponding to the preset workpiece. Among them, when the number of trial cuts is less than the threshold number of cuts, it means that at least one trial cut has been performed on the surface of the preset workpiece. At this time, the area of the preset workpiece excluding the area that has been trial cut can be used as the initial area, and an initial area adapted to the trial cut size is selected within the initial area as the area to be trial cut. In the embodiments of the present application, when the number of trial cuts is less than the threshold number of cuts, the initial area of the preset workpiece is determined using the area that has been trial cut, and the initial area adapted to the trial cut size is used as the area to be trial cut, avoiding performing multiple trial cuts in the area that has been trial cut, which can improve the accuracy of determining the area to be trial cut.
[0053] S13, perform a trial cut in the area to be trial cut using the tool according to the trial cut method.
[0054] In at least one embodiment of the present application, the tool is controlled to perform a trial cut on the preset workpiece in the area to be trial cut using the determined trial cut method.
[0055] S14. Detect the workpiece after trial cutting according to a preset trial cutting determination rule to determine the replacement detection result of the tool.
[0056] In at least one embodiment of the present application, the replacement detection result of the tool is used to indicate whether the tool replacement is normal. The replacement detection result may include that the tool replacement is normal and the tool replacement is abnormal. If the tool replacement is normal, the replaced tool can be used for the manufacturing process of the product; if the tool replacement is abnormal, the tool needs to be replaced until the tool replacement is normal.
[0057] In some embodiments, detecting the workpiece after trial cutting according to a preset trial cutting determination rule to determine the replacement detection result of the tool includes: determining the actual trial cutting information corresponding to the workpiece after trial cutting; analyzing the trial cutting determination rule to obtain the expected trial cutting information; if the actual trial cutting information is the same as the expected trial cutting information, determining that the replacement detection result is that the tool replacement is normal; if the actual trial cutting information is different from the expected trial cutting information, determining that the replacement detection result is that the tool replacement is abnormal. By comparing the actual trial cutting information of the tool after trial cutting with the expected trial cutting information, the replacement detection result of the tool is determined in the embodiments of the present application, which can improve the accuracy of tool replacement detection.
[0058] Among them, the actual trial cutting information is used to indicate the relevant trial cutting information of the workpiece after trial cutting. For example, the actual trial cutting information may include information such as the residual material shape, chamfer angle, and trial cutting length corresponding to the workpiece after trial cutting. There is a corresponding relationship between the expected trial cutting information and the expected tool model. By querying the corresponding relationship, the expected trial cutting information corresponding to the expected tool model can be determined. Exemplarily, taking the tool type as a round nose tool, if the tool is a D1 end mill, it is expected that there is no residual material on the workpiece after trial cutting. If the tool is a D1R0.1 round nose tool, the expected residual material shape of the workpiece after trial cutting includes a residual material height of 0.1 mm. If the tool is a D1R0.2 round nose tool, the expected residual material shape of the workpiece after trial cutting includes a residual material height of 0.2 mm.
[0059] The tool replacement detection method provided by the embodiments of the present application determines the trial cutting method according to the tool type, avoids the mismatch between the trial cutting method and the tool type, and improves the accuracy of tool replacement detection; moreover, the present application determines the area to be trial cut of the preset workpiece according to the workpiece information and the tool type, so that the area to be trial cut meets the trial cutting requirements of the tool, and improves the accuracy of tool replacement detection; in addition, the present application uses a preset trial cutting determination rule to automatically determine whether the workpiece after trial cutting is correct, avoiding manual determination, and can improve the accuracy of tool replacement detection.
[0060] In at least one embodiment of the present application, the real trial cutting information is used to indicate the relevant trial cutting information of the workpiece after trial cutting. For example, the real trial cutting information may include information such as the residual material form, chamfer angle, and trial cutting length corresponding to the workpiece after trial cutting. In some embodiments, determining the real trial cutting information corresponding to the workpiece after trial cutting includes: determining the real trial cutting information based on the residual material form corresponding to the workpiece after trial cutting; or determining the depth of the trial cutting hole corresponding to the workpiece after trial cutting; determining the chamfer angle corresponding to the depth of the trial cutting hole according to the preset correspondence between the depth of the trial cutting hole and the chamfer angle, and determining the real trial cutting information according to the chamfer angle; or determining the first length of the preset workpiece and the second length of the workpiece after trial cutting; determining the trial cutting length based on the first length and the second length, and determining the real trial cutting information according to the trial cutting length.
[0061] Among them, when the tool type is a forming tool or a round nose tool, the real trial cutting information may include the residual material form corresponding to the workpiece after trial cutting. When the tool type is a chamfering tool, the real trial cutting information may include the chamfer angle. When the tool type is a flat end mill, the real trial cutting information may include the trial cutting length.
[0062] The embodiment of the present application determines the real trial cutting information according to the tool type and uses the real trial cutting information to detect whether the tool change is normal, which can improve the accuracy of tool change detection.
[0063] In at least one embodiment of the present application, taking the forming tool as an example of the tool type, if the real trial cutting information includes the residual material form, the method further includes: if it is determined based on the residual material form that there is excess residual material in the workpiece after trial cutting, it is determined that the tool change is abnormal and the thickness of the tool is less than the preset thickness; if it is determined based on the residual material form that the workpiece after trial cutting is over-trial cut, it is determined that the tool change is abnormal and the thickness of the tool is greater than the preset thickness. Wherein, the preset thickness is the thickness of the tool expected to be replaced, and the preset thickness can be set according to actual needs and is not limited here.
[0064] Figure 3 is a schematic diagram of tool cutting provided by an embodiment of the present application, Figure 4 is a schematic diagram of the expected workpiece provided by an embodiment of the present application. As Figure 3 shown, the forming tool is a T-shaped tool, and the number of T-shaped tools is two. The preset workpiece is cut by using the two T-shaped tools to obtain the expected workpiece. Refer to Figure 4 . For the expected workpiece, there is residual material with a thickness of 0.05 mm on the right side and no residual material on the left side. If the real trial cutting information of the workpiece after trial cutting is that there is residual material on the left side, it means that the tool thickness of the left T-shaped tool is too thin; if the real trial cutting information of the workpiece after trial cutting is that there is no residual material on the right side, it means that the tool thickness of the right T-shaped tool is too thick.
[0065] In the embodiment of the present application, it is determined whether there is excess residue in the workpiece after trial cutting by the residue form. When there is excess residue, it is determined that the thickness of the tool is less than the preset thickness. And after it is determined that the tool after trial cutting has been over-trial cut, it is determined that the thickness of the tool is greater than the preset thickness. According to the thickness information of the tool, it is possible to guide the replacement of the tool, improving the accuracy and efficiency of tool replacement.
[0066] Figure 5 It is a schematic diagram of the workpiece after trial cutting provided by the second embodiment of the present application. As Figure 5 shown, the workpiece after trial cutting contains two trial cutting holes. The depth of one trial cutting hole is 0.711 millimeters, and the depth of the other trial cutting hole is 0.5 millimeters. According to the corresponding relationship between the depth of the preset trial cutting hole and the chamfer angle, it can be determined that the chamfer angle corresponding to the trial cutting hole with a depth of 0.711 millimeters is 120 degrees, and the chamfer angle corresponding to the trial cutting hole with a depth of 0.5 millimeters is 90 degrees.
[0067] Please refer to Figure 6 , Figure 6 It is a schematic structural diagram of a tool replacement detection device provided by an embodiment of the present application. In some embodiments, the tool replacement detection device 20 may include a plurality of functional modules composed of computer program segments. The computer programs of each program segment in the tool replacement detection device 20 can be stored in the memory of the detection device 10 and executed by at least one processor to perform the function of tool replacement detection (see details in Figure 2 description).
[0068] In some embodiments, the tool replacement detection device 20 can be divided into a plurality of functional modules according to the functions it performs. The functional modules may include: an information acquisition module 201, a trial cutting determination module 202, a trial cutting processing module 203, and a replacement detection module 204. The module referred to in the present application means a series of computer program segments that can be executed by at least one processor and can complete a fixed function, and is stored in the memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0069] The information acquisition module 201 can be used to acquire the tool type corresponding to the replaced tool and the workpiece information of the preset workpiece.
[0070] The trial cutting determination module 202 can be used to determine the trial cutting method according to the tool type, and determine the area to be trial cut corresponding to the preset workpiece according to the workpiece information and the tool type.
[0071] The trial cutting processing module 203 can be used to perform trial cutting on the area to be trial cut with the tool according to the trial cutting method.
[0072] The replacement detection module 204 can be used to detect the workpiece after trial cutting according to a preset trial cutting determination rule, and determine the replacement detection result of the tool.
[0073] It can be understood that the tool replacement detection device 20 and the tool replacement detection method in the above embodiment belong to the same inventive concept. The specific implementation manners of the modules of the tool replacement detection device 20 correspond to the steps of the tool replacement detection method in the above embodiment, and are not elaborated herein.
[0074] The above-described module division is a logical function division, and there may be other division manners in actual implementation. In addition, in each embodiment of the present application, the functional modules can be integrated in the same processing unit, or each module can exist physically alone, or two or more modules can be integrated in the same unit. The above integrated modules can be implemented in the form of hardware, or in the form of a combination of hardware and software functional modules.
[0075] Next Figure 1 Regarding the description of the detection device, the communication module 103 can include a wired communication module and / or a wireless communication module. The wired communication module can provide one or more of the solutions for wired communication such as universal serial bus (USB), Controller Area Network (CAN), etc. The wireless communication module can provide one or more of the solutions for wireless communication such as wireless fidelity (Wi-Fi), Bluetooth (BT), mobile communication network, frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.
[0076] In some embodiments, the memory 104 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 105 and can be used to store executable programs (such as machine instructions) of other running programs, and can also be used to store user and application data, etc. The random access memory may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), etc.
[0077] In some embodiments, the non-volatile memory can also store executable programs and store user and application data, etc., and can be pre-loaded into the random access memory for direct reading and writing by the processor 105. The non-volatile memory may include disk storage devices and flash memory.
[0078] In other embodiments, the detection device 10 further includes an external memory interface for connecting to an external memory to expand the storage capacity of the detection device 10.
[0079] In some embodiments, the processor 105 may include one or more processing units. For example, the processor 105 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0080] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the detection device 10. In other embodiments of the present application, the detection device 10 may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0081] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions, and the method implemented when the program instructions are executed may refer to the methods in the above various embodiments of the present application.
[0082] Among them, the computer-readable storage medium may be the internal memory of the detection device described in the above embodiments, such as the hard disk or memory of the detection device. The computer-readable storage medium may also be an external storage device of the detection device, such as a plug-in hard disk equipped on the detection device, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc.
[0083] In some embodiments, the computer-readable storage medium may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, application programs required for at least one function, etc.; the data storage area may store data created according to the use of the detection device, etc.
[0084] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0085] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0086] In addition, each functional module in the various embodiments of the present application may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit may be implemented in the form of hardware, or in the form of a combination of hardware and software functional modules.
[0087] Therefore, in any case, the embodiments should be regarded as exemplary and non-limiting. The scope of this application is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be encompassed by this application. Any reference signs in the claims should not be construed as limiting the claims concerned.
[0088] In addition, it is obvious that the term "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of elements or devices described in this application can also be implemented by one element or device through software or hardware. The terms "first", "second", etc. are used to denote names and do not denote any particular order.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and not to limit them. Although this application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of this application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of this application.
Claims
1. A tool replacement detection method, characterized in that: The method comprises: Obtain the tool type corresponding to the replaced tool and the workpiece information of the preset workpiece; Determining a trial cutting method according to the tool type, and determining a to-be-trial-cutting area corresponding to the preset workpiece according to the workpiece information and the tool type; According to the trial cutting method, using the tool to perform trial cutting in the area to be trial cut; The workpiece after the test cutting is inspected according to the preset test cutting judgment rules, and the replacement inspection result of the tool is determined.
2. The tool replacement detection method according to claim 1, characterized in that: Determining the trial cutting method according to the tool type includes: According to the preset correspondence between the tool type and the trial cutting method, the trial cutting method corresponding to the tool type is determined.
3. The tool replacement detection method according to claim 1, characterized in that: The step of obtaining the tool type corresponding to the replaced tool and the workpiece information of the preset workpiece includes: Acquire a tool image corresponding to the tool; Determining the tool type corresponding to the tool by using a preset type recognition model according to the tool image; and The workpiece information is obtained, including: the workpiece position, workpiece size, number of trial cuts and trial cut area of the preset workpiece.
4. The tool replacement detection method according to claim 3, characterized in that: The step of determining the area to be trial-cut corresponding to the preset workpiece according to the workpiece information and the tool type includes: If the number of trial cuts is greater than or equal to the number threshold, the preset workpiece is subjected to layer reduction processing, and a region to be trial cut corresponding to the preset workpiece after the layer reduction processing is determined according to the tool type, the workpiece position and the workpiece size; If the number of trial cuts is less than the number threshold, the area to be trial cut corresponding to the preset workpiece is determined according to the tool type, the workpiece position, the workpiece size and the trial cut area.
5. The tool replacement detection method according to claim 4, characterized in that: The step of determining the area to be trial-cut corresponding to the preset workpiece after the layer reduction treatment according to the tool type, the workpiece position and the workpiece size includes: Determining an initial area of a preset workpiece after layer reduction processing according to the workpiece position and the workpiece size; Determine the trial cutting size corresponding to the tool type; An initial area that matches the trial cutting size is selected as the area to be trial cut.
6. The tool replacement detection method according to claim 4, characterized in that: The step of determining the area to be trial-cut corresponding to the preset workpiece according to the tool type, the workpiece position, the workpiece size and the trial-cut area comprises: Determining an initial area of the preset workpiece according to the workpiece position and the workpiece size, wherein the initial area does not include the trial-cut area; Determine the trial cutting size corresponding to the tool type; An initial area adapted to the trial cutting size is selected as the area to be trial cut corresponding to the preset workpiece.
7. The tool replacement detection method according to claim 1, characterized in that: The test cutting workpiece is tested according to a preset test cutting judgment rule to determine the replacement test result of the tool, including: Determining the actual test cutting information corresponding to the workpiece after the test cutting; Analyzing the trial cutting judgment rule to obtain expected trial cutting information; If the actual test cutting information is the same as the expected test cutting information, determining that the replacement detection result is that the tool replacement is normal; If the actual test cutting information is different from the expected test cutting information, it is determined that the replacement detection result is a tool replacement abnormality.
8. The tool replacement detection method according to claim 7, characterized in that: The determining of the real test cutting information corresponding to the workpiece after the test cutting includes: Determining the actual test cutting information based on the residual material shape corresponding to the workpiece after the test cutting; or Determine the depth of the test cutting hole corresponding to the workpiece after the test cutting; determine the chamfer angle corresponding to the depth of the test cutting hole according to the preset correspondence between the depth of the test cutting hole and the chamfer angle, and determine the real test cutting information according to the chamfer angle; or Determine a first length of the preset workpiece and a second length of the workpiece after the trial cutting; determine the trial cutting length according to the first length and the second length, and determine the actual trial cutting information according to the trial cutting length.
9. The tool replacement detection method according to claim 8, characterized in that: If the actual trial cutting information includes the residual material shape, the method further includes: If it is determined based on the residual material shape that there is excess residual material in the workpiece after the trial cutting, it is determined that the tool replacement is abnormal, and the thickness of the tool is less than the preset thickness; If it is determined based on the residual material shape that the workpiece after the trial cutting is over-trial cut, it is determined that the tool replacement is abnormal and the thickness of the tool is greater than the preset thickness.
10. A detection device, characterized in that: The detection device comprises a processor and a memory, and the processor is used to implement the tool replacement detection method according to any one of claims 1 to 9 when executing a computer program stored in the memory.
Citation Information
Cited By
Wafer trimming trial cutting platform and trial cutting method
CN120716046A