Machine tool cutter processing method and device, electronic equipment and readable storage medium

The CNC machine tool system automatically detects and replaces damaged tools with spares of the same shape, ensuring continuous production and enhanced efficiency by eliminating manual tool change downtime.

CN119238176AActive Publication Date: 2025-01-03DONGGUAN SINYA PRECISION MACHINERY CO LTD

Patent Information

Application Number
CN202411383760.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-03
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

CNC machining processes are hindered by tool damage, requiring machine shutdown and lengthy tool replacement, leading to production suspension and reduced efficiency.

Method used

A method and device for CNC machine tools that automatically detect tool damage and replace it with a spare tool of the same shape by controlling the spindle and disc tool magazine to align and clamp the spare tool without manual intervention.

Benefits of technology

Enables continuous production without prolonged suspension, improving efficiency by allowing automatic tool replacement and maintaining production flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119238176A_ABST
    Figure CN119238176A_ABST
Patent Text Reader

Abstract

The invention discloses a machine tool cutter processing method and device, electronic equipment and a readable storage medium, and relates to the technical field of numerical control machine tools, when it is detected that the current descending distance is larger than the initial descending distance, it can be indicated that the current cutter is damaged and cannot continue machining, and the machining efficiency is improved. Therefore, the target standby tool corresponding to the current tool and the target angle corresponding to the target standby tool are determined from the preset mapping relation based on the current angle, the second driving assembly is controlled to control the disc tool magazine to rotate to the target angle so that the target standby tool can be located under the main shaft, and the main shaft is controlled to clamp the target standby tool. When it is detected that the current cutter is damaged, the target standby cutter can be automatically replaced and used for machining, in this way, a machine tool can continue production without stopping production for a long time, the production efficiency is improved, and manual cutter replacement is not needed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of numerically controlled machine tools, and in particular to a method, device, electronic device and readable storage medium for processing machine tool tools. Background Art

[0002] CNC (Computerised Numerical Control) machining, also known as CNC machining, refers to a mechanical machining method that uses digital information to control the displacement of parts and tools on CNC machine tools. Because CNC machining is controlled by a computer after programming, CNC machining has the advantages of stable machining quality, high machining accuracy, high repeatability, ability to process complex surfaces, and high machining efficiency. When CNC machine tools are processing, it is inevitable that the tool will be damaged or broken. In related technologies, when the tool is damaged, the machine needs to be shut down and replaced with a new tool. The production needs to be suspended during the replacement process, and the tool replacement time is very long, resulting in long-term suspension of production and low production efficiency. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a machine tool tool processing method, device, electronic device and readable storage medium, which can enable the machine tool to continue production without suspending production for a long time when tool damage is detected, thereby improving production efficiency.

[0004] In a first aspect, an embodiment of the present application provides a machine tool tool processing method, which is applied to a CNC machine tool. The CNC machine tool includes a probe, a spindle, a first drive assembly, a second drive assembly, and a disc tool magazine. The first drive assembly is used to drive the spindle and the disc tool magazine to perform lifting and lowering movements. The disc tool magazine is provided with a plurality of tools, and the tools are distributed along the circumference of the disc tool magazine. The spindle is used to clamp the tools on the disc tool magazine. The second drive assembly is used to drive the disc tool magazine to rotate. The method includes:

[0005] Controlling the first driving assembly to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe, and determining the current descending distance of the spindle;

[0006] Acquire the current angle of the disc tool magazine, and determine the initial descent distance corresponding to the current angle from a preset mapping relationship based on the current angle; wherein the initial descent distance represents the descent distance of the spindle when the current tool abuts against the probe without being damaged;

[0007] In the case where it is detected that the current descending distance is greater than the initial descending distance, a target spare tool corresponding to the current tool and a target angle corresponding to the target spare tool are determined from the preset mapping relationship based on the current angle; wherein the target angle is different from the current angle, and the shape of the target spare tool is the same as the shape of the current tool;

[0008] Controlling the spindle to release the current tool;

[0009] Control the second driving assembly to control the disc tool magazine to rotate to the target angle so that the target spare tool is located directly below the spindle;

[0010] The spindle is controlled to clamp the target spare tool.

[0011] According to the machine tool tool processing method of the embodiment of the present application, at least the following beneficial effects are achieved: the method first controls the first drive component to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe, and determines the current descending distance of the spindle; obtains the current angle of the disc tool magazine, and determines the initial descending distance corresponding to the current angle from the preset mapping relationship based on the current angle; when it is detected that the current descending distance is greater than the initial descending distance, it can be indicated that the current tool is damaged and the current tool cannot continue to be processed, so based on the current angle, the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool are determined from the preset mapping relationship, and the second drive component is controlled to control the disc tool magazine to rotate to the target angle, so that the target spare tool is located directly below the spindle, and the spindle is controlled to clamp the target spare tool. Since the target spare tool has the same shape as the damaged tool, the target spare tool is used to continue processing. Therefore, the embodiment of the present application realizes automatic detection of whether the current tool is damaged. When the current tool is detected to be damaged, the target spare tool can be automatically replaced, and the target spare tool is used for processing. In this way, the machine tool can continue to produce without suspending production for a long time, improving production efficiency, and there is no need to manually replace the tool.

[0012] According to some embodiments of the present application, each tool is provided with a tool number, and tools of the same shape have the same tool number;

[0013] The preset mapping relationship is obtained by following the steps below:

[0014] When it is determined that all the tools are not damaged, controlling the second drive assembly to control the disc tool magazine to rotate so that the multiple tools rotate to the bottom of the spindle in sequence, recording the angle of the tool when it rotates to the bottom of the spindle, and establishing a first mapping relationship between the angle and the tool number;

[0015] By controlling the spindle to clamp the tool and controlling the first drive assembly to drive the spindle to descend, each tool is sequentially brought into contact with the probe, and the initial descending distance of the spindle when the tool abuts against the spindle is recorded, and a second mapping relationship between the tool number and the initial descending distance is established;

[0016] The preset mapping relationship is obtained based on the first mapping relationship and the second mapping relationship.

[0017] According to some embodiments of the present application, determining a target spare tool corresponding to the current tool from the preset mapping relationship based on the current angle includes:

[0018] Determine a current tool number of the current tool from the preset mapping relationship based on the current angle;

[0019] Based on the current tool number, the target spare tool is determined from the preset mapping relationship, and the tool number of the target spare tool is the same as the current tool number.

[0020] According to some embodiments of the present application, the spacing angle between every two adjacent cutting tools in the disc tool magazine is a preset spacing angle;

[0021] The machine tool is also provided with a sensor and an auxiliary disc, wherein the auxiliary disc is connected to the second driving assembly and is coaxially arranged on one side of the disc tool magazine, and the edge of the auxiliary disc is provided with a plurality of gaps arranged at intervals along the circumferential direction, wherein each gap is opposite to a tool position; the sensor is used to detect the gap;

[0022] The obtaining of the current angle of the disc tool magazine comprises:

[0023] The historical detection times of detecting the gap are determined by the sensor and the driving direction of the second driving component, and the current angle is calculated based on the historical detection times and the preset interval angle.

[0024] According to some embodiments of the present application, determining the historical detection times of detecting the gap by the sensor and the driving direction of the second driving component includes:

[0025] Acquire a first detection number of times the sensor detects the notch when the disc tool magazine rotates in a first direction;

[0026] Acquire a second detection number of times that the sensor detects the notch when the disc tool magazine rotates along a second direction; wherein the first direction is an initial rotation direction of the disc tool magazine, and the second direction is opposite to the first direction;

[0027] The historical detection number is obtained by subtracting the second detection number from the first detection number.

[0028] According to some embodiments of the present application, controlling the second drive assembly to control the disc tool magazine to rotate to the target angle includes:

[0029] Based on the current angle and the target angle, an angle difference is obtained;

[0030] Determining the number of times to be detected based on the angle difference and the preset interval angle;

[0031] Add the number of pending detections to the number of historical detections to obtain the number of target detections;

[0032] The second driving component is controlled to control the disc tool magazine to rotate and update the historical detection times in real time until the historical detection times are equal to the target historical detection times.

[0033] According to some embodiments of the present application, the machine tool is further provided with a probe drive assembly;

[0034] After obtaining the current angle of the disc tool magazine and determining the initial descending distance corresponding to the current angle from a preset mapping relationship based on the current angle, the method further includes:

[0035] In the case where it is detected that the current descent distance is equal to the initial descent distance, a target detection path corresponding to the current tool is determined from the preset mapping relationship based on the current angle; the target detection path represents the width and extension direction of the blade of the current tool;

[0036] Controlling the probe driving assembly to drive the probe to move along the target detection path;

[0037] If it is detected that the probe is out of contact with the current tool during the movement of the probe along the target detection path, the method jumps to determining the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool from the preset mapping relationship based on the current angle.

[0038] The second aspect of the present application provides a machine tool tool processing device, which is applied to a CNC machine tool. The CNC machine tool includes a probe, a spindle, a first drive assembly, a second drive assembly and a disc tool magazine. The first drive assembly is used to drive the spindle and the disc tool magazine to perform lifting and lowering movements. The disc tool magazine is provided with a plurality of tools, and the tools are distributed along the circumference of the disc tool magazine. The spindle is used to clamp the tools on the disc tool magazine. The second drive assembly is used to drive the disc tool magazine to rotate to change the tool located directly below the spindle, so that the spindle can clamp different tools. The probe is arranged below the spindle.

[0039] The device comprises:

[0040] A distance acquisition module, used for controlling the first driving assembly to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe, and determining the current descending distance of the spindle;

[0041] An angle acquisition module, used for acquiring the current angle of the disc tool magazine, and determining an initial descent distance corresponding to the current angle from a preset mapping relationship based on the current angle; wherein the initial descent distance represents the descent distance of the spindle when the current tool abuts against the probe without being damaged;

[0042] A determination module, configured to determine, when detecting that the current descent distance is greater than the initial descent distance, a target spare tool corresponding to the current tool and a target angle corresponding to the target spare tool from the preset mapping relationship based on the current angle; wherein the target angle is different from the current angle, and the shape of the target spare tool is the same as the shape of the current tool;

[0043] A release module, used for controlling the spindle to release the current tool;

[0044] A rotation module, used for controlling the second driving assembly to control the disc tool magazine to rotate to the target angle so that the target spare tool is located directly below the spindle;

[0045] A clamping module is used to control the spindle to clamp the target spare tool.

[0046] The third aspect of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the machine tool tool processing method described in any one of the first aspect of the present application.

[0047] The fourth aspect of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program. When the computer program is executed by a processor, the machine tool tool processing method described in any one of the first aspect of the present application is implemented.

[0048] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:

[0050] Figure 1 A schematic diagram of the structure of a CNC machine tool according to an embodiment of the present application;

[0051] Figure 2 A schematic diagram of the steps of the machine tool tool processing method implemented in this application;

[0052] Figure 3 A schematic diagram of the flow of steps for generating a preset mapping relationship;

[0053] Figure 4 for Figure 2 A specific flow chart of step S230;

[0054] Figure 5 A schematic diagram of the structure of the auxiliary disc according to an embodiment of the present application;

[0055] Figure 6 for Figure 2 A specific flow chart of step S250;

[0056] Figure 7 A schematic structural diagram of a machine tool tool processing device according to an embodiment of the present application;

[0057] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present application.

[0058] Reference numerals:

[0059] A first driving assembly 100 ; a second driving assembly 200 ; a main shaft 300 ; a disc tool magazine 400 ; an auxiliary disc 500 ; a probe 600 ; and a mounting seat 700 . DETAILED DESCRIPTION

[0060] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0061] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0062] In the description of this application, "several" means more than one, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0063] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0064] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0065] Reference Figure 1 , Figure 1The schematic diagram of the structure of the CNC machine tool of the embodiment of the present application is shown in FIG. The CNC machine tool includes a mounting seat 700, a probe 600, a spindle 300, a first drive assembly 100, a second drive assembly 200 and a disc tool magazine 400. The first drive assembly 100 is used to drive the spindle 300 and the disc tool magazine 400 to perform lifting and lowering movements. The disc tool magazine 400 is provided with a plurality of tools, and the tools are distributed along the circumference of the disc tool magazine 400. The spindle 300 is used to clamp the tools on the disc tool magazine 400. The disc tool magazine 400 is tilted on one side of the spindle 300, and part of the structure of the disc tool magazine 400 is located directly below the spindle 300, so that the spindle 300 can clamp the tools on the disc tool magazine 400. The spindle 300, the second drive assembly 200 and the disc tool magazine 400 are all mounted on the mounting seat 700, and the mounting seat 700 is mounted on the first drive assembly 100. The first drive assembly 100 is used to drive the mounting seat 700 to perform lifting and lowering movements, so that the mounting seat 700 can drive the spindle 300, the second drive assembly 200 and the disc tool magazine 400 to perform lifting and lowering movements. The second drive assembly 200 is used to drive the disc tool magazine 400 to rotate to change the tool located directly below the spindle 300, so that the spindle 300 can clamp different tools; the probe 600 is arranged below the spindle 300; the disc tool magazine 400 is provided with a plurality of tools of different shapes, and the tools of different shapes are used to perform different processing, and each shape of tool is provided with two, so that when a tool is damaged, it can be replaced with another tool of the same shape.

[0066] based on Figure 1 A CNC machine tool, a first aspect of the present application provides a machine tool tool processing method. Figure 2 , Figure 2 A schematic diagram of the steps of the machine tool tool processing method implemented in this application. The machine tool tool processing method is applied to Figure 1 For a CNC machine tool, the machine tool tool processing method may include but is not limited to steps S210 to S260.

[0067] Step S210, controlling the first driving assembly to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe, and determining the current descending distance of the spindle;

[0068] It is worth noting that the current tool refers to the tool currently clamped by the spindle 300.

[0069] In one embodiment, a collision sensor is provided on the CNC machine tool. When the collision sensor detects a collision, it may be caused by a broken tool of the CNC machine tool. Therefore, it is necessary to detect the current tool clamped by the spindle 300 to detect whether the current tool is damaged. Therefore, when a collision is detected by the collision sensor, steps S210 to S260 of the embodiment of the present application are executed.

[0070] Step S220, obtaining the current angle of the disc tool magazine, and determining an initial descent distance corresponding to the current angle from a preset mapping relationship based on the current angle; wherein the initial descent distance represents the descent distance of the spindle when the current tool abuts against the probe without being damaged;

[0071] Step S230, when it is detected that the current descending distance is greater than the initial descending distance, determining a target spare tool corresponding to the current tool and a target angle corresponding to the target spare tool from a preset mapping relationship based on the current angle; wherein the target angle is different from the current angle, and the shape of the target spare tool is the same as the shape of the current tool;

[0072] In one embodiment, the angle of the disc tool magazine 400 refers to the angle at which the disc tool magazine 400 rotates along the initial rotation direction. The current angle refers to the angle required to rotate the disc tool magazine 400 from the initial state along the initial rotation direction to the current state. The initial rotation direction is a preset direction, for example, in one embodiment, the initial rotation direction is clockwise; in another embodiment, the initial rotation direction is counterclockwise.

[0073] In one embodiment, the current angle refers to the angle that the disc tool magazine 400 needs to rotate from an initial state along an initial rotation direction to a current state.

[0074] Step S240, controlling the spindle to release the current tool;

[0075] Step S250, controlling the second driving assembly to control the disc tool magazine to rotate to a target angle so that the target spare tool is located directly below the spindle;

[0076] It is worth noting that controlling the second drive assembly 200 to control the disc tool magazine 400 to rotate to a target angle means controlling the second drive assembly 200 to control the disc tool magazine 400 to rotate so that after the rotation is completed, the current angle is equal to the target angle.

[0077] Step S260, controlling the spindle to clamp the target spare tool.

[0078] The machine tool tool processing method of the embodiment of the present application first controls the first drive component 100 to control the spindle 300 to descend through the above steps S210 to S260, so that the current tool clamped by the spindle 300 abuts against the probe 600, and the current descent distance of the spindle 300 is determined; the current angle of the disc tool magazine 400 is obtained, and the initial descent distance corresponding to the current angle is determined from a preset mapping relationship based on the current angle; when it is detected that the current descent distance is greater than the initial descent distance, it can be indicated that the current tool is damaged and the current tool cannot continue to be processed. Therefore, based on the current angle, the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool are determined from the preset mapping relationship, and the second drive component 200 is controlled to control the disc tool magazine 400 to rotate to the target angle so that the target spare tool is located directly below the spindle 300, and the spindle 300 is controlled to clamp the target spare tool. Since the target spare tool has the same shape as the damaged tool, the target spare tool is used to continue processing. Therefore, the embodiment of the present application realizes automatic detection of whether the current tool is damaged. When it is detected that the current tool is damaged, the target spare tool can be automatically replaced and the target spare tool can be used for processing. In this way, the machine tool can continue production without suspending production for a long time, thereby improving production efficiency and eliminating the need for manual tool replacement.

[0079] It is understandable that each tool is provided with a tool number, and tools of the same shape have the same tool number. Figure 3 , Figure 3 The figure is a flow chart of the steps for generating the preset mapping relationship. The preset mapping relationship can be obtained by the following steps:

[0080] Step S310, when it is determined that all the tools are not damaged, controlling the second drive assembly to control the disc tool magazine to rotate so that the multiple tools rotate to the bottom of the spindle in sequence, recording the angle of the tool when it rotates to the bottom of the spindle, and establishing a first mapping relationship between the angle and the tool number;

[0081] It is worth noting that before processing, the second drive component 200 is controlled to control the disc tool magazine 400 to rotate so that multiple tools are rotated in sequence to directly below the spindle 300, and the angle of each tool when it is directly below the spindle 300 is recorded, and the first mapping relationship between the tool number and the angle of the tool is recorded.

[0082] Step S320, by controlling the spindle to clamp the tool and controlling the first drive assembly to drive the spindle to descend, each tool is sequentially brought into contact with the probe, an initial descending distance of the spindle when the tool abuts against the spindle is recorded, and a second mapping relationship between the tool number and the initial descending distance is established;

[0083] It is worth noting that for each tool, the spindle 300 is controlled to clamp the tool, and the first drive assembly 100 is controlled to drive the spindle 300 to descend, so that each tool is in contact with the probe 600 in turn, and the distance of the tool when it abuts against the spindle 300 is recorded as the initial descent distance, and a second mapping relationship between the initial descent distance of the tool and the tool number of the tool is established.

[0084] Step S330: obtaining a preset mapping relationship based on the first mapping relationship and the second mapping relationship.

[0085] Exemplarily, there are three types of tools, which are numbered as tool A, tool B and tool C, and the number of the three tools is 2. The initial descent distance corresponding to the tool numbered tool A is I, the initial descent distance corresponding to the tool numbered tool B is J, and the initial descent distance corresponding to the tool numbered tool C is K. The preset mapping relationship can be shown in Table 1.

[0086] Table 1

[0087]

[0088] The embodiment of the present application can obtain a preset mapping relationship through steps S310 to S330, so as to determine the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool in step S230.

[0089] It is understandable that, referring to Figure 4 , Figure 4 for Figure 2 A specific flow chart of step S230 in FIG. 2 . Step S230 may include but is not limited to steps S410 to S420.

[0090] Step S410, determining the current tool number of the current tool from a preset mapping relationship based on the current angle;

[0091] Step S420: Based on the current tool number, determine a target spare tool from a preset mapping relationship, and the tool number of the target spare tool is the same as the current tool number.

[0092] Exemplarily, referring to Table 1, for example, the tool number of the current tool is tool A, and the current angle is 30 degrees. In step S230, a target spare tool whose tool number is also tool A can be obtained from Table 1, and the angle of the target spare tool is 120 degrees.

[0093] It can be understood that the interval angle between every two adjacent tools in the disc tool magazine 400 is a preset interval angle, and the angle of each rotation of the disc tool magazine 400 is a multiple of the preset interval angle; the disc tool magazine 400 has multiple areas distributed along the circumference, and each area is used to place a tool. The interval angle refers to the angle between the first straight line and the second straight line, and the first straight line refers to the straight line formed between the center point of an area and the rotation center of the disc tool magazine 400; the second straight line refers to the straight line formed between the center point of an adjacent area and the rotation center. The center of the area can refer to the center of gravity, center of mass or moment of the area, and those skilled in the art can set the center of the area according to actual needs.

[0094] In one embodiment, the interval angle is 30 degrees, and those skilled in the art can set the interval angle according to actual needs.

[0095] Reference Figure 1 The machine tool is also provided with a sensor and an auxiliary disc 500, the auxiliary disc 500 is connected to the second drive assembly 200, and the auxiliary disc 500 is coaxially arranged on one side of the disc tool magazine 400, referring to Figure 5 , Figure 5 The schematic diagram of the structure of the auxiliary disc 500 of the embodiment of the present application is shown in FIG. The edge of the auxiliary disc 500 is provided with a plurality of gaps arranged at intervals along the circumferential direction, and each gap is opposite to a tool position; the sensor is used to detect the gap;

[0096] Acquiring the current angle of the disc tool magazine in step S220 may include the following steps:

[0097] The historical detection times of the gap being detected are determined by the sensor and the driving direction of the second driving assembly 200, and the current angle is calculated based on the historical detection times and the preset interval angle.

[0098] In one embodiment, before the disc tool magazine 400 rotates, although the sensor is opposite to one of the notches and can detect the notch, the number of historical detections is initialized to 0. During the rotation of the disc tool magazine 400 along the initial rotation direction, each time the sensor is blocked by the auxiliary disc 500 and then detects the notch again, the number of historical detections is increased by 1; during the rotation of the disc magazine along the direction opposite to the initial rotation direction, each time the sensor is blocked by the auxiliary disc 500 and then detects the notch again, the number of historical detections is decreased by 1.

[0099] In another embodiment, determining the historical detection times of the detected gap by the sensor and the driving direction of the second driving assembly 200 includes the following steps:

[0100] Acquire a first detection number of times the sensor detects a notch when the disc tool magazine 400 rotates in a first direction;

[0101] Acquire a second detection number of times the sensor detects the notch when the disc tool magazine 400 rotates in the second direction; wherein the first direction is the initial rotation direction of the disc tool magazine 400, and the second direction is opposite to the first direction;

[0102] Subtract the second detection number from the first detection number to obtain the historical detection number.

[0103] Specifically, before the disc tool magazine 400 rotates, the first detection number is 0, and the second detection number is 0. During the rotation of the disc tool magazine 400 in the first direction, each time the sensor is blocked by the auxiliary disc 500 once and then detects the gap again, the first detection number is increased by 1. During the rotation of the disc tool magazine 400 in the second direction, each time the sensor is blocked by the auxiliary disc 500 once and then detects the gap again, the second detection number is increased by 1. Then the second detection number is subtracted from the first detection number to obtain the historical detection number.

[0104] It is worth noting that the current angle can be calculated based on the historical detection times and the preset interval angle. Specifically, if the historical detection times are positive, the current angle = preset interval angle * historical detection times. If the historical detection times are negative, the current angle = 360 degrees - |preset interval angle * historical detection times|.

[0105] It is understandable that, referring to Figure 6 , Figure 6 for Figure 2 A specific flow chart of step S250 in step S250. In step S250, the step of controlling the second driving assembly 200 to control the disc tool magazine 400 to rotate to the target angle includes but is not limited to steps S610 to S640.

[0106] Step S610, obtaining an angle difference based on the current angle and the target angle;

[0107] It should be noted that if the current angle is greater than or equal to 360 degrees*N, then the current angle needs to be subtracted from 360 degrees*N to make the current angle less than 360 degrees, where N is a positive integer. When the current angle is less than 360 degrees, the angle difference = target angle - current angle.

[0108] Step S620, determining the number of times to be detected based on the angle difference and the preset interval angle;

[0109] It is worth noting that the number of times to be detected = angle difference ÷ preset interval angle.

[0110] Step S630, adding the number of pending detections to the number of historical detections to obtain the number of target detections;

[0111] Step S640, controlling the second driving assembly to control the disc tool magazine to rotate and update the historical detection times in real time until the historical detection times are equal to the target historical detection times.

[0112] It can be understood that, in step S640, controlling the second driving component to control the disc tool magazine to rotate and updating the historical detection times in real time includes the following steps:

[0113] When it is detected that the number of times to be detected is a positive value, the second driving assembly 200 is controlled to control the disc tool magazine 400 to rotate in the first direction and update the historical detection times in real time;

[0114] When it is detected that the number of times to be detected is a negative value, the second driving assembly 200 is controlled to control the disc tool magazine 400 to rotate in the second direction and update the historical detection times in real time.

[0115] The present application realizes controlling the second drive assembly 200 to control the disc tool magazine 400 to rotate to a target angle through steps S610 to S640, so that the target spare tool is located directly below the spindle 300, so as to facilitate tool change.

[0116] It is understandable that the machine tool is also provided with a probe drive assembly (not shown in the figure), which can drive the probe to move in the horizontal direction and the vertical direction;

[0117] In step S220, after obtaining the current angle of the disc tool magazine and determining the initial descending distance corresponding to the current angle from a preset mapping relationship based on the current angle, the following steps are also included:

[0118] When it is detected that the current descending distance is equal to the initial descending distance, a target detection path corresponding to the current tool is determined from a preset mapping relationship based on the current angle; the target detection path represents the width and extension direction of the blade of the current tool;

[0119] Controlling the probe driving component to drive the probe to move along the target detection path;

[0120] If the probe is detected to be out of contact with the current tool during its movement along the target detection path, the process jumps to determining the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool from a preset mapping relationship based on the current angle.

[0121] Specifically, referring to Table 1, the detection path corresponds to the tool number one by one, and the target detection path corresponding to the current angle can be determined through Table 1. Before executing step S220, the probe 600 is located at the preset original position, each tool is first driven to descend and abut against the probe 600, and then the probe 600 is driven to move along the blade of the tool. During the movement, the probe 600 maintains contact with the blade of the tool. The movement path of the probe 600 is the detection path corresponding to the tool. In this way, the detection path corresponding to each tool can be obtained and recorded in the preset mapping relationship.

[0122] It is worth noting that if the probe 600 is detected to be out of contact with the current tool during the movement of the probe along the target detection path, it can be determined that the blade of the current tool is damaged. Therefore, it is necessary to jump to step S230 to determine the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool from the preset mapping relationship based on the current angle, and execute steps S240 to S260 to replace the tool.

[0123] It is worth noting that if no disconnection between the probe 600 and the current tool is detected during the movement of the probe 600 along the target detection path, it is determined that the current tool is not damaged and does not need to be replaced.

[0124] It should be noted that after the probe moves along the target detection path each time, it is necessary to control the probe driving assembly to drive the probe to reset to the original position.

[0125] It can be understood that the second aspect of the present application provides a machine tool tool processing device, which is applied to Figure 1 Schematic diagram of CNC machine tools. Figure 7 , Figure 7 It is a schematic structural diagram of a machine tool tool processing device according to an embodiment of the present application.

[0126] The device includes:

[0127] The distance acquisition module 710 is used to control the first driving assembly 100 to control the spindle 300 to descend, so that the current tool clamped by the spindle 300 abuts against the probe 600, and determine the current descending distance of the spindle 300;

[0128] An angle acquisition module 720 is used to acquire the current angle of the disc tool magazine 400, and determine the initial descent distance corresponding to the current angle from a preset mapping relationship based on the current angle; wherein the initial descent distance represents the descent distance of the spindle 300 when the current tool abuts against the probe 600 without being damaged;

[0129] The determination module 730 is used to determine, when it is detected that the current descent distance is greater than the initial descent distance, a target spare tool corresponding to the current tool and a target angle corresponding to the target spare tool from a preset mapping relationship based on the current angle; wherein the target angle is different from the current angle, and the shape of the target spare tool is the same as the shape of the current tool;

[0130] A release module 740 is used to control the spindle 300 to release the current tool;

[0131] The rotation module 750 is used to control the second driving assembly 200 to control the disc tool magazine 400 to rotate to a target angle so that the target spare tool is located directly below the spindle 300;

[0132] The clamping module 760 is used to control the spindle 300 to clamp the target spare tool.

[0133] The machine tool tool processing device of the embodiment of the present application is used to execute the machine tool tool processing method of the first aspect of the embodiment of the present application. When executing the method, the first drive component 100 is first controlled to control the spindle 300 to descend, so that the current tool clamped by the spindle 300 abuts against the probe 600, and the current descent distance of the spindle 300 is determined; the current angle of the disc tool magazine 400 is obtained, and the initial descent distance corresponding to the current angle is determined from a preset mapping relationship based on the current angle; when it is detected that the current descent distance is greater than the initial descent distance, it can be indicated that the current tool is damaged and the current tool cannot continue to be processed. Therefore, based on the current angle, the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool are determined from the preset mapping relationship, and the second drive component 200 is controlled to control the disc tool magazine 400 to rotate to the target angle so that the target spare tool is located directly below the spindle 300, and the spindle 300 is controlled to clamp the target spare tool. Since the target spare tool has the same shape as the damaged tool, the target spare tool is used to continue processing. Therefore, the embodiment of the present application realizes automatic detection of whether the current tool is damaged. When it is detected that the current tool is damaged, the target spare tool can be automatically replaced and the target spare tool can be used for processing. In this way, the machine tool can continue production without suspending production for a long time, thereby improving production efficiency and eliminating the need for manual tool replacement.

[0134] Reference Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of the third aspect of the present application. The electronic device includes:

[0135] The processor 801 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0136] The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 802, and the processor 801 calls and executes the machine tool tool processing method of the embodiment of this application;

[0137] Input / output interface 803, used to implement information input and output;

[0138] The communication interface 804 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0139] A bus 805 that transmits information between the various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);

[0140] The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .

[0141] The fourth aspect of the present application is a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the machine tool tool processing method of any one of the first aspect embodiments is implemented.

[0142] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0143] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0144] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0145] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on 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.

[0146] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0147] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0148] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the mapping relationship of the mapping objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next mapping objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0149] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0150] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0151] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0152] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0153] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A machine tool tool processing method, characterized in that: Applied to a CNC machine tool, the CNC machine tool comprises a probe, a spindle, a first drive assembly, a second drive assembly and a disc tool magazine, the first drive assembly is used to drive the spindle and the disc tool magazine to perform lifting motion, the disc tool magazine is provided with a plurality of tools, and the tools are distributed along the circumference of the disc tool magazine; The spindle is used to clamp the tool on the disc tool magazine; the second drive assembly is used to drive the disc tool magazine to rotate; the method includes: Controlling the first driving assembly to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe, and determining the current descending distance of the spindle; Acquire the current angle of the disc tool magazine, and determine the initial descent distance corresponding to the current angle from a preset mapping relationship based on the current angle; wherein the initial descent distance represents the descent distance of the spindle when the current tool abuts against the probe without being damaged; In the case where it is detected that the current descending distance is greater than the initial descending distance, a target spare tool corresponding to the current tool and a target angle corresponding to the target spare tool are determined from the preset mapping relationship based on the current angle; wherein the target angle is different from the current angle, and the shape of the target spare tool is the same as the shape of the current tool; Controlling the spindle to release the current tool; Control the second driving assembly to control the disc tool magazine to rotate to the target angle so that the target spare tool is located directly below the spindle; The spindle is controlled to clamp the target spare tool.

2. The machine tool tool processing method according to claim 1, characterized in that: Each tool is provided with a tool number, and tools with the same shape have the same tool number; The preset mapping relationship is obtained by following the steps below: When it is determined that all the tools are not damaged, controlling the second drive assembly to control the disc tool magazine to rotate so that the multiple tools rotate to the bottom of the spindle in sequence, recording the angle of the tool when it rotates to the bottom of the spindle, and establishing a first mapping relationship between the angle and the tool number; By controlling the spindle to clamp the tool and controlling the first drive assembly to drive the spindle to descend, each tool is sequentially brought into contact with the probe, and the initial descending distance of the spindle when the tool abuts against the spindle is recorded, and a second mapping relationship between the tool number and the initial descending distance is established; The preset mapping relationship is obtained based on the first mapping relationship and the second mapping relationship.

3. The machine tool tool processing method according to claim 2, characterized in that: Determining a target spare tool corresponding to the current tool from the preset mapping relationship based on the current angle includes: Determine a current tool number of the current tool from the preset mapping relationship based on the current angle; Based on the current tool number, the target spare tool is determined from the preset mapping relationship, and the tool number of the target spare tool is the same as the current tool number.

4. The machine tool tool processing method according to claim 1, characterized in that: The interval angle between every two adjacent tools in the disc tool magazine is a preset interval angle; The machine tool is also provided with a sensor and an auxiliary disc, wherein the auxiliary disc is connected to the second driving assembly and is coaxially arranged on one side of the disc tool magazine, and the edge of the auxiliary disc is provided with a plurality of gaps arranged at intervals along the circumferential direction, and each of the gaps is opposite to a tool position; The sensor is used to detect the gap; The obtaining of the current angle of the disc tool magazine comprises: The historical detection times of detecting the gap are determined by the sensor and the driving direction of the second driving component, and the current angle is calculated based on the historical detection times and the preset interval angle.

5. The machine tool tool processing method according to claim 4, wherein: The determining of the historical detection times of the gap through the sensor and the driving direction of the second driving component includes: Acquire a first detection number of times the sensor detects the notch when the disc tool magazine rotates in a first direction; Acquire a second detection number of times that the sensor detects the notch when the disc tool magazine rotates along a second direction; wherein the first direction is an initial rotation direction of the disc tool magazine, and the second direction is opposite to the first direction; The historical detection number is obtained by subtracting the second detection number from the first detection number.

6. The machine tool tool processing method according to claim 5, characterized in that: The controlling the second driving assembly to control the disc tool magazine to rotate to the target angle comprises: Based on the current angle and the target angle, an angle difference is obtained; Determining the number of times to be detected based on the angle difference and the preset interval angle; Add the number of pending detections to the number of historical detections to obtain the number of target detections; The second driving component is controlled to control the disc tool magazine to rotate and update the historical detection times in real time until the historical detection times are equal to the target historical detection times.

7. The machine tool tool processing method according to claim 1, characterized in that: The machine tool is also provided with a probe drive assembly; After obtaining the current angle of the disc tool magazine and determining the initial descending distance corresponding to the current angle from a preset mapping relationship based on the current angle, the method further includes: In the case where it is detected that the current descent distance is equal to the initial descent distance, a target detection path corresponding to the current tool is determined from the preset mapping relationship based on the current angle; the target detection path represents the width and extension direction of the blade of the current tool; Controlling the probe driving assembly to drive the probe to move along the target detection path; If it is detected that the probe is out of contact with the current tool during the movement of the probe along the target detection path, the method jumps to determining the target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool from the preset mapping relationship based on the current angle.

8. A machine tool tool processing device, characterized in that: Applied to a CNC machine tool, the CNC machine tool comprises a probe, a spindle, a first drive assembly, a second drive assembly and a disc tool magazine, the first drive assembly is used to drive the spindle and the disc tool magazine to perform lifting and lowering movements, the disc tool magazine is provided with a plurality of tools, and the tools are distributed along the circumference of the disc tool magazine; the spindle is used to clamp the tools on the disc tool magazine; the second drive assembly is used to drive the disc tool magazine to rotate, so as to change the tool located directly below the spindle, so that the spindle can clamp different tools; The probe is arranged below the main shaft; The device comprises: A distance acquisition module, used for controlling the first driving assembly to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe, and determining the current descending distance of the spindle; An angle acquisition module, used for acquiring the current angle of the disc tool magazine, and determining an initial descent distance corresponding to the current angle from a preset mapping relationship based on the current angle; wherein the initial descent distance represents the descent distance of the spindle when the current tool abuts against the probe without being damaged; A determination module, configured to determine, when detecting that the current descent distance is greater than the initial descent distance, a target spare tool corresponding to the current tool and a target angle corresponding to the target spare tool from the preset mapping relationship based on the current angle; wherein the target angle is different from the current angle, and the shape of the target spare tool is the same as the shape of the current tool; A release module, used for controlling the spindle to release the current tool; A rotation module, used for controlling the second driving assembly to control the disc tool magazine to rotate to the target angle so that the target spare tool is located directly below the spindle; A clamping module is used to control the spindle to clamp the target spare tool.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the machine tool tool processing method according to any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the machine tool tool processing method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Automatic tool changing vertical machine tool and continuous machining method thereof

    CN108655798A

  • Automatic tool changer and control method therefor, and machine tool including same

    CN113508006A

  • Detection apparatus for wearing and tearing of circle disc cutter blade

    CN206862319U

  • End milling cutter damage detection device

    CN214640530U

  • Cutting-edge position adjusting device for slitter blade, cutting-edge position adjusting method for slitter blade, and slitter with cutting-edge position adjusting function for slitter blade

    JP2013202717A

Cited By

  • Multi-pin power supply element manufacturing method and device, electronic equipment and storage medium

    CN119794830A