Machine Tool Tool Processing Method, Device, Electronic Equipment and Readable Storage Medium

By implementing automatic detection and replacement of tools in CNC machine tools, the production downtime caused by tool damage is solved, production efficiency is improved and manual intervention is reduced.

CN119238176BActive Publication Date: 2025-06-20DONGGUAN SINYA PRECISION MACHINERY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

During the processing process of CNC machine tools, when the tool is damaged or broken, it needs to be shut down for a long time to replace the tool, resulting in low production efficiency.

Method used

By detecting the drop distance and angle of the tool, the target backup tool is automatically determined, and by driving the disc tool magazine to rotate, the backup tool is placed directly under the spindle, so that automatic replacement and continuous processing can be achieved.

Benefits of technology

No need to suspend production for a long time, it can automatically replace tools, improve production efficiency, and reduce the need for manual tool replacement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119238176B_ABST
    Figure CN119238176B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and readable storage medium for processing a machine tool tool, relating to the technical field of numerical control machine tools. When it is detected that the current descending distance is greater than the initial descending distance, it can indicate that the current tool is damaged and the current tool cannot continue machining. Therefore, based on the current angle, a target spare tool corresponding to the current tool and the target angle corresponding to the target spare tool are determined from a preset mapping relationship. The second drive assembly is controlled to rotate the disc tool magazine 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. When the present application detects that the current tool is damaged, it can automatically replace the target spare tool and use the target spare tool for machining. In this way, the machine tool can continue production without long-term interruption of production, improving production efficiency, and there is no need for manual tool replacement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of numerical control machine tools, and particularly to a method and device for processing machine tool tools, an electronic device, and a readable storage medium. Background Art

[0002] CNC (Computerised Numerical Control) machining, also known as numerical control machining, refers to a mechanical machining method in which parts and tool displacements are controlled by digital information on a numerical control machine tool. Since CNC machining is controlled by a computer after programming, CNC machining has the advantages of stable machining quality, high machining accuracy, high repeatability, the ability to machine complex profiles, and high machining efficiency. When a numerical control machine tool is in operation, it is inevitable that tool damage or breakage may occur. In related technologies, when a tool is damaged, it is necessary to stop the machine and replace the tool with a new one. During the replacement process, production needs to be interrupted, and the tool replacement time is very long, resulting in a long interruption of production and low production efficiency. Summary of the Invention

[0003] This application aims to solve at least one of the technical problems existing in the prior art. Therefore, this application provides a method and device for processing machine tool tools, an electronic device, and a readable storage medium, which can enable the machine tool to continue production without a long interruption of production when tool damage is detected, thereby improving production efficiency.

[0004] In a first aspect of an embodiment of this application, a method for processing machine tool tools is provided, which is applied to a numerical control machine tool. The numerical control 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 move up and down. 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 hold 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 drive assembly to control the spindle to descend, so that the current tool held by the spindle abuts against the probe, and determining the current descent distance of the spindle;

[0006] 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; where the initial descent distance represents the descent distance of the spindle when the current tool abuts against the probe in the case of no damage.

[0007] When it is detected that the current descending distance is greater than the initial descending distance, determine 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;

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

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

[0010] Control the spindle to clamp the target spare tool.

[0011] According to the machine tool tool processing method of the embodiments of the present application, it has at least the following beneficial effects: The method first controls the first driving component to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe to determine the current descending distance of the spindle; obtains the current angle of the rotary 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. Therefore, 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, and the second driving component is controlled to control the rotary 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 the processing. Therefore, the embodiments of the present application realize automatic detection of whether the current tool is damaged, and when it is detected that the current tool is 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 stopping production for a long time, improving production efficiency, and there is no need for manual tool replacement.

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

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

[0014] When it is determined that none of the tools are damaged, control the second driving component to control the rotary tool magazine to rotate so that multiple tools are sequentially rotated to directly below the spindle, record the angle when the tool rotates to directly below the spindle, and establish a first mapping relationship between the angle and the tool number;

[0015] Clamp the tool by controlling the main shaft, and control the first driving component to drive the main shaft to descend, so that each tool contacts the probe in turn, record the initial descent distance of the main shaft when the tool contacts the main shaft, and establish a second mapping relationship between the tool number and the initial descent distance;

[0016] Based on the first mapping relationship and the second mapping relationship, obtain the preset mapping relationship.

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

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

[0019] Based on the current tool number, determine the target spare tool 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 interval angle between every two adjacent tools in the disc tool magazine is a preset interval angle;

[0021] The machine tool is also provided with a sensor and an auxiliary disc. The auxiliary disc is connected to the second driving component, and the auxiliary disc is coaxially arranged on one side of the disc tool magazine. A plurality of spaced gaps are arranged along the circumference of the edge of the auxiliary disc, and the gaps are respectively opposite to a tool position; the sensor is used to detect the gaps;

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

[0023] Determine the historical detection times of detecting the gap through the sensor and the driving direction of the second driving component, and calculate the current angle based on the historical detection times and the preset interval angle.

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

[0025] Obtain the first detection times of the sensor detecting the gap when the disc tool magazine rotates in the first direction;

[0026] Obtain the second detection times of the sensor detecting the gap when the disc tool magazine rotates in the second direction; wherein, the first direction is the initial rotation direction of the disc tool magazine, and the second direction is opposite to the first direction;

[0027] Subtract the second detection count from the first detection count to obtain the historical detection count.

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

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

[0030] Based on the angle difference and the preset interval angle, determine the number of detections to be performed;

[0031] Add the number of detections to be performed to the historical detection count to obtain the target detection count;

[0032] Control the second drive assembly to control the rotary tool magazine to rotate and update the historical detection count in real time until the historical detection count is equal to the target historical detection count.

[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 rotary tool magazine and determining the initial descent distance corresponding to the current angle from the preset mapping relationship based on the current angle, it further includes:

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

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

[0037] If it is detected that the probe loses contact with the current tool during the movement of the probe along the target detection path, jump 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 embodiments of the present application provides a machine tool tool processing device, which is applied to a numerically controlled machine tool. The numerically controlled machine tool includes a probe, a spindle, a first driving component, a second driving component, and a disc tool magazine. The first driving component is used to drive the spindle and the disc tool magazine to perform lifting movements. The disc tool magazine is provided with a plurality of tools, and the tools are distributed along the circumferential direction of the disc tool magazine. The spindle is used to clamp the tool on the disc tool magazine. The second driving component is used to drive the disc tool magazine to rotate to change the tool located directly below the spindle, so as to facilitate the spindle to clamp different tools. The probe is arranged below the spindle.

[0039] The device includes:

[0040] A distance acquisition module, configured to control the first driving component to control the spindle to descend, so that the current tool clamped by the spindle abuts against the probe, and determine the current descending distance of the spindle.

[0041] An angle acquisition module, configured to acquire the current angle of the disc tool magazine, and determine the initial descending distance corresponding to the current angle from a preset mapping relationship. Wherein, the initial descending distance represents the descending distance of the spindle when the current tool abuts against the probe without being damaged.

[0042] A determination module, configured to, when it is detected that the current descending distance is greater than the initial descending distance, determine a 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. 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, configured to control the spindle to release the current tool.

[0044] A rotation module, configured to control the second driving component 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, configured to control the spindle to clamp the target spare tool.

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

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

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

[0049] The present application will be further described below in conjunction with the drawings and embodiments, where:

[0050] Figure 1 is a schematic structural diagram of a numerically controlled machine tool according to an embodiment of the present application;

[0051] Figure 2 is a schematic flowchart of the steps of the machine tool tool processing method implemented by the present application;

[0052] Figure 3 is a schematic flowchart of the generation steps of a preset mapping relationship;

[0053] Figure 4 is Figure 2 a specific flowchart of step S230 in

[0054] Figure 5 is a schematic structural diagram of an auxiliary disk according to an embodiment of the present application;

[0055] Figure 6 is Figure 2 a specific flowchart of step S250 in

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

[0057] Figure 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

[0058] REFERENCE SIGNS:

[0059] First drive assembly 100; second drive assembly 200; spindle 300; disk tool magazine 400; auxiliary disk 500; probe 600; mounting base 700. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0060] Embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application and should not be construed as limiting the present application.

[0061] In the description of the present application, it should be understood that for the orientation description, such as the orientation or positional relationship indicated by up, down, front, back, left, right, etc., it is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present application.

[0062] In the description of the present application, the meaning of "several" is more than one, the meaning of "multiple" is more than two. Understandings such as "greater than", "less than", "exceeding", etc. do not include the corresponding number, and understandings such as "above", "below", "within", etc. include the corresponding number. If there is a description of "first" and "second", it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or the sequence relationship of the indicated technical features.

[0063] In the description of the present application, unless otherwise clearly defined, terms such as "set", "installed", "connected", etc. should be understood in a broad sense. Those skilled in the art can reasonably determine the specific meanings of the above terms in the present application in combination with the specific content of the technical solution.

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

[0065] Refer to Figure 1 , Figure 1Schematic structural diagram of a numerically controlled machine tool according to an embodiment of the present application. The numerically controlled machine tool includes a mounting base 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 motion. The disc tool magazine 400 is provided with a plurality of tools, and the tools are distributed along the circumferential direction of the disc tool magazine 400. The spindle 300 is used to hold the tools on the disc tool magazine 400. The disc tool magazine 400 is inclined on one side of the spindle 300, and a part of the structure in the disc tool magazine 400 is located directly below the spindle 300, so that the spindle 300 can hold 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 base 700, and the mounting base 700 is mounted on the first drive assembly 100. The first drive assembly 100 is used to drive the mounting base 700 to perform lifting motion, so that the mounting base 700 can drive the spindle 300, the second drive assembly 200, and the disc tool magazine 400 to perform lifting motion. 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 as to facilitate the spindle 300 to hold 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. The tools of different shapes are used to perform different machining operations, and there are 2 tools of each shape. In this way, when one tool is damaged, it can be replaced with another tool of the same shape.

[0066] Based on Figure 1 the numerically controlled machine tool, the first aspect embodiment of the present application provides a method for processing machine tool tools. Referring to Figure 2 , Figure 2 is a schematic flow chart of the steps of the machine tool tool processing method implemented in the present application. The machine tool tool processing method is applied to Figure 1 the numerically controlled machine tool, and the machine tool tool processing method may include but is not limited to steps S210 to S260.

[0067] Step S210, control the first drive assembly to lower the spindle so that the current tool held by the spindle abuts against the probe, and determine the current lowering distance of the spindle;

[0068] It should be noted that the current tool refers to the tool currently held by the spindle 300.

[0069] In one embodiment, a collision sensor is provided on the numerically controlled machine tool. When the current collision sensor detects a collision, it may be that the tool of the numerically controlled machine tool breaks, resulting in a collision. Therefore, it is necessary to detect the current tool held 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: Obtain the current angle of the disc tool magazine, and determine the initial descent distance corresponding to the current angle from the preset mapping relationship; wherein, the initial descent distance represents the descent distance of the spindle when the current tool contacts the probe without being damaged.

[0071] Step S230: When it is detected that the current descent distance is greater than the initial descent distance, 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; wherein, the target angle is different from the current angle, and the shape of the target spare tool is the same as that of the current tool.

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

[0073] In one embodiment, the current angle means the angle required for the disc tool magazine 400 to rotate from the initial state to the current state along the initial rotation direction.

[0074] Step S240: Control the spindle to release the current tool.

[0075] Step S250: Control the second driving component to control the disc tool magazine to rotate to the target angle so that the target spare tool is located directly below the spindle.

[0076] It should be noted that controlling the second driving component 200 to control the disc tool magazine 400 to rotate to the target angle means controlling the second driving component 200 to control the disc tool magazine 400 to rotate so that after the rotation ends, the current angle is equal to the target angle.

[0077] Step S260: Control the spindle to clamp the target spare tool.

[0078] The machine tool tool processing method according to the embodiment of the present application passes through the above steps S210 to S260. First, control the first driving component 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; obtain the current angle of the disc tool magazine 400, and determine the initial descending distance corresponding to the current angle from the preset mapping relationship; in the case where 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. Therefore, 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, control the second driving component 200 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 control the spindle 300 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 the processing. Therefore, the embodiment of the present application realizes the 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 is used for processing. In this way, the machine tool can continue to produce without long-term production suspension, improving production efficiency, and there is no need for manual tool replacement.

[0079] It can be understood that each tool is provided with a tool number, and the tool numbers of tools with the same shape are the same. Refer to Figure 3 , Figure 3 FIG. is a flow chart of the generation steps of the preset mapping relationship. The preset mapping relationship can be obtained through the following steps:

[0080] Step S310, in the case where it is determined that each tool is not damaged, control the second driving component to control the disc tool magazine to rotate, so that a plurality of tools are sequentially rotated to directly below the spindle, record the angle when the tool rotates to directly below the spindle, and establish a first mapping relationship between the angle and the tool number;

[0081] It should be noted that before processing, control the second driving component 200 to control the disc tool magazine 400 to rotate, so that a plurality of tools are sequentially rotated to directly below the spindle 300, record the angle when each tool is located directly below the spindle 300, and record the first mapping relationship between the tool number of the tool and the angle.

[0082] Step S320, by controlling the spindle to clamp the tool and controlling the first driving component to drive the spindle to descend, so that each tool abuts against the probe in turn, record the initial descending distance of the spindle when the tool abuts against the spindle, and establish a second mapping relationship between the tool number and the initial descending distance;

[0083] It should be noted that for each tool, the main shaft 300 is controlled to hold the tool, and the first driving assembly 100 is controlled to drive the main shaft 300 to descend, so that each tool is sequentially abutted against the probe 600, and the distance when the tool abuts against the main shaft 300 is recorded as the initial descent distance, and a second mapping relationship is established between the initial descent distance of the tool and the tool number of the tool.

[0084] Step S330, based on the first mapping relationship and the second mapping relationship, obtain the preset mapping relationship.

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

[0086] Table 1

[0087]

[0088] Through steps S310 to S330 in the embodiment of the present application, the preset mapping relationship can be obtained, 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 can be understood that referring to Figure 4 , Figure 4 is Figure 2 a specific process schematic diagram of step S230. Step S230 may include but is not limited to steps S410 to S420.

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

[0091] Step S420, based on the current tool number, determine the target spare tool from the 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, the target spare tool with the tool number of 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 angular interval between every two adjacent tools in the disc tool magazine 400 is a preset angular interval, and the angle of each rotation of the disc tool magazine 400 is a multiple of the preset angular interval; the disc tool magazine 400 is circumferentially provided with a plurality of regions, and each region is used to place a tool. The angular interval refers to the included angle between a first straight line and a second straight line. The first straight line is the straight line formed between the center point of a region and the rotation center of the disc tool magazine 400; the second straight line is the straight line formed between the center point of an adjacent region and the rotation center. The center of the region can refer to the center of gravity or centroid or moment center of the region, and those skilled in the art can set the center of the region according to actual needs.

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

[0095] Referring to Figure 1 , the machine tool is further provided with a sensor and an auxiliary disc 500. The auxiliary disc 500 is connected to the second driving component 200, and the auxiliary disc 500 is coaxially arranged on one side of the disc tool magazine 400. Referring to Figure 5 , Figure 5 is a schematic structural diagram of the auxiliary disc 500 according to an embodiment of the present application. A plurality of notches are circumferentially arranged at intervals on the edge of the auxiliary disc 500, and the notches are respectively opposite to one tool position; the sensor is used to detect the notches;

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

[0097] Determine the historical detection times of the detected notch through the driving direction of the sensor and the second driving component 200, and calculate the current angle based on the historical detection times and the preset angular interval.

[0098] In one embodiment, before the disc tool magazine 400 rotates, although the sensor is opposite to one of the notch positions and can detect the notch, the historical detection times are initialized to 0. During the rotation of the disc tool magazine 400 in the initial rotation direction, each time the sensor is blocked by the auxiliary disc 500 and then detects the notch again, the historical detection times are incremented by 1; during the rotation of the disc magazine in 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 historical detection times are decremented by 1.

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

[0100] Obtain the first detection times when the sensor detects the notch when the disc tool magazine 400 rotates in the first direction;

[0101] Obtain the second detection count when the sensor detects the notch while 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 count from the first detection count to obtain the historical detection count.

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

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

[0105] It can be understood that referring to Figure 6 , Figure 6 is Figure 2 a specific process schematic diagram of step S250 in

[0106] Step S610, obtain the 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, the current angle needs to be subtracted by 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, determine the number of times to be detected based on the angle difference and the preset interval angle;

[0109] It should be noted that the number of times to be detected = angle difference ÷ preset interval angle.

[0110] Step S630, add the number of times to be detected and the historical detection count to obtain the target detection count;

[0111] Step S640: Control the second drive component to rotate the disc tool magazine and update the historical detection count in real time until the historical detection count is equal to the target historical detection count.

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

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

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

[0115] Through steps S610 to S640 of the present application, it is achieved to control the second drive component 200 to rotate the disc tool magazine 400 to the target angle so that the target spare tool is located directly below the spindle 300, facilitating tool change.

[0116] It can be understood that the machine tool is also provided with a probe drive component (not shown in the figure), and the probe drive component can drive the probe to move in the horizontal and vertical directions;

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

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

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

[0120] If it is detected that the probe loses contact with the current tool during the movement of the probe along the target detection path, jump 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.

[0121] Specifically, referring to Table 1, the detection paths correspond one-to-one with the tool numbers. Through Table 1, the target detection path corresponding to the current angle can be determined. Before performing step S220, the probe 600 is positioned at a preset original position. First, each tool is driven to descend and abut against the probe 600, and then the probe 600 is driven to move along the cutting edge of the tool. During the movement, the probe 600 remains in contact with the cutting edge 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 should be noted that if during the movement of the probe along the target detection path, it is detected that the probe 600 loses contact with the current tool, it can be determined that the cutting edge 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 perform steps S240 to S260 to replace the tool.

[0123] It should be noted that if during the movement of the probe 600 along the target detection path, it is not detected that the probe 600 loses contact with the current tool, it is determined that the current tool is not damaged and does not need to be replaced.

[0124] It should be noted that after each movement of the probe along the target detection path, the probe driving component needs to be controlled to drive the probe to reset to the original position.

[0125] It can be understood that the second aspect of the embodiments of the present application provides a machine tool tool processing device, which is applied to Figure 1 the schematic numerical control machine tool. Refer to Figure 7 , Figure 7 which is the structural schematic diagram of the machine tool tool processing device according to the embodiments of the present application.

[0126] The device includes:

[0127] A distance acquisition module 710, configured to control the first driving component 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, configured to acquire the current angle of the disc tool magazine 400, and determine the initial descending distance corresponding to the current angle from the preset mapping relationship; wherein, the initial descending distance represents the descending distance of the spindle 300 when the current tool abuts against the probe 600 in the case of no damage.

[0129] A determination module 730, configured to determine 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 when it is detected that the current descent distance is greater than the initial descent distance; 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, configured to control the spindle 300 to release the current tool;

[0131] A rotation module 750, configured to control the second driving component 200 to control the rotary tool magazine 400 to rotate to the target angle, so that the target spare tool is located directly below the spindle 300;

[0132] A clamping module 760, configured to control the spindle 300 to clamp the target spare tool.

[0133] The machine tool tool processing device in the embodiment of the present application is used to execute the machine tool tool processing method in the first aspect embodiment of the present application. When executing the method, first control the first driving component 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 descent distance of the spindle 300; obtain the current angle of the rotary tool magazine 400, and determine the initial descent distance corresponding to the current angle from the preset mapping relationship; 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 processing. Therefore, 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, control the second driving component 200 to control the rotary tool magazine 400 to rotate to the target angle, so that the target spare tool is located directly below the spindle 300, and control the spindle 300 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, it can automatically replace the target spare tool and use the target spare tool for processing. In this way, the machine tool can continue to produce without long-term interruption of production, improving production efficiency, and there is no need for manual tool replacement.

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

[0135] The processor 801 can be implemented in the form of a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., 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), etc. The memory 802 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 802 and are called by the processor 801 to execute the machine tool tool processing method of the embodiments of the present application;

[0137] The input / output interface 803 is used to implement information input and output;

[0138] The communication interface 804 is used to implement communication interaction between this device and other devices, and can implement communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);

[0139] The bus 805 transmits information between the various components of the device (such as the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);

[0140] Among them, the processor 801, the memory 802, the input / output interface 803, and the communication interface 804 are communicatively connected to each other inside the device through the bus 805.

[0141] In the embodiment of the fourth aspect of the present application, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the machine tool tool processing method according to any one of the embodiments of the first aspect.

[0142] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes a memory remotely disposed relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks 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 for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0144] Those skilled in the art can understand 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 those shown in the figures, or combine certain steps, or different steps.

[0145] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices can be implemented as software, firmware, hardware, and appropriate combinations thereof.

[0147] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above figures are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0148] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the mapping relationship of mapped objects and indicates that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist simultaneously. Here, A and B can be singular or plural. The character " / " generally indicates that the mapped objects before and after are in an "or" relationship. "At least one (item) of the following" or its similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one (item) 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, and c can be single or multiple.

[0149] In several embodiments provided in this 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 illustrative. For example, the division of the above units is only a logical function division, and there can be other division methods in actual implementation. For example, 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 displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices, or units, and can be in electrical, mechanical, or other forms.

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

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

[0152] When 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 such understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media that can store programs such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.

[0153] The preferred embodiments of the embodiments of this application have been described above with reference to the accompanying drawings, and thus do not limit the scope of the rights of the embodiments of this application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of this application shall be within the scope of the rights of the embodiments of this application.

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; Controlling the spindle to clamp the target spare tool; 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.

2. The machine tool tool processing method according to claim 1, 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.

3. 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.

4. The machine tool tool processing method according to claim 3, 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.

5. The machine tool tool processing method according to claim 4, 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 detection times.

6. 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.

7. 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, used for controlling the spindle to clamp the target spare tool; 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.

8. 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 6 when executing the computer program.

9. 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 6 is implemented.

Citation Information

Patent Citations

  • End milling cutter damage detection device

    CN214640530U