Method for automatic tool arrangement in tool magazine, machine tool and electronic equipment
By real-time update and exchange of tool tables, the problem of tool random tools in machine tool processing is solved, and the tool automatic tooling is automatically discharged, which improves machining efficiency and reduces tool change time.
Patent Information
- Application Number
- CN202411394126.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-10-08
AI Technical Summary
The problem of tool random tooling during machine tool processing leads to a large number of tool changes and a long time to change the tool, which affects the processing efficiency.
Through the tool table, the tool table is updated in real time and the tools on the spindle and the tools in the tool magazine are exchanged to ensure that the tool returns to its initial state and realize automatic tool discharge.
Improve processing efficiency, ensure that the tools in the tool magazine return to their initial state, reduce the number and time of tool change, and avoid program chaos through alarm prompts.
Smart Images

Figure CN118893483B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of machine tools, and in particular to a method for automatically arranging tools in a tool magazine, a machine tool and electronic equipment. Background Art
[0002] In modern manufacturing, the complexity and diversity of machine tool processing products are increasing, which makes the combined use of multiple tools particularly important. During the long-term research and development process, the applicant of this application found that the tool would be messy during the machine tool processing. At this time, all the tools need to be taken out and replaced, which requires many tool changes and long tool change time, affecting the processing efficiency. Summary of the invention
[0003] The main technical problem solved by the present application is to provide a method for automatic tool arrangement in a tool magazine, a machine tool and an electronic device, which can improve processing efficiency.
[0004] To solve the above technical problems, a technical solution adopted by the present application is: to provide a method for automatic tool arrangement in a tool magazine, the method comprising: judging, according to a tool table, whether the tool number of the tool currently located on the spindle is the spindle tool number, wherein the tool table updates and saves in real time the tool number of the tool currently located on the spindle and the tool number of the tool currently located at each tool position in the tool magazine; in response to not being the spindle tool number, exchanging the tool on the spindle with the tool in the tool magazine according to the tool table, so that the tool number of the tool currently located on the spindle is the spindle tool number; after determining that the tool number of the tool currently located on the spindle is the spindle tool number, querying, according to the tool table, whether there is a first target tool position in the tool magazine, wherein the tool position number of the first target tool position does not match the tool number of the tool located at the first target tool position stored in the tool table; if the first target tool position exists, exchanging the tool number of the tool currently located at the first target tool position at the tool magazine The tool on the spindle is exchanged with the tool on the spindle; returning to the step of judging whether the tool number of the tool currently on the spindle is the spindle tool number according to the tool table, until the first target tool position does not exist in the tool magazine; wherein, according to the tool table, the step of exchanging the tool on the spindle with the tool in the tool magazine so that the tool number of the tool currently on the spindle is the spindle tool number comprises: obtaining the target tool position number corresponding to the tool number of the tool currently on the spindle; exchanging the tool at the tool position in the tool magazine whose tool position number is the target tool position number with the tool on the spindle; judging whether the tool number of the tool currently on the spindle is the spindle tool number according to the tool table; in response to not being the spindle tool number, returning to the step of obtaining the target tool position number corresponding to the tool number of the tool currently on the spindle, until the tool number of the tool currently on the spindle is the spindle tool number.
[0005] The method further comprises: in response to the number of times the step of returning to execute the step of obtaining the target tool position number corresponding to the tool number of the tool currently located on the spindle is greater than a first number threshold, issuing an alarm prompt.
[0006] The alarm prompt method includes at least one of sound prompt and light prompt.
[0007] The step of querying whether there is a first target tool position in the tool magazine according to the tool table includes: judging whether a tool position in the tool magazine is the first target tool position according to the arrangement order of tool position numbers according to the tool table.
[0008] Wherein, the step of exchanging the tool on the spindle with the tool in the tool magazine comprises: controlling a manipulator to exchange the tool on the spindle with the tool in the tool magazine.
[0009] The method further includes: in response to returning to execute the step of determining whether the tool number of the tool currently located on the spindle is the spindle tool number based on the tool table for a number of times greater than a second numerical threshold, issuing an alarm prompt.
[0010] The method further includes: after determining that the first target tool position exists in the tool magazine, generating prompt information for prompting manual proofreading.
[0011] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, comprising: a memory and a processor coupled to each other, the memory storing program data, and the processor calling the program data to execute any of the methods described above.
[0012] To solve the above technical problems, another technical solution adopted in the present application is: to provide a machine tool comprising: a memory and a processor coupled to each other, the memory storing program data, and the processor calling the program data to execute any of the methods described above.
[0013] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a computer-readable storage medium on which program data is stored, and when the program data is executed by a processor, the method as described in any one of the above is implemented.
[0014] The beneficial effect of the present application is: different from the prior art, the present application first places the tool on the spindle into the correct position in the tool magazine until the tool on the spindle is the correct tool, then exchanges the tool on the first target tool position in the tool magazine with the tool on the spindle, and then places the tool on the spindle into the correct position in the tool magazine, and repeats this process continuously, thereby ensuring that the tools in the tool magazine are restored to their initial state and realizing automatic tool arrangement. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0016] Figure 1 It is a flow chart of an implementation method of a tool magazine automatic tool arrangement method of the present application;
[0017] Figure 2 yes Figure 1 A flow chart of an implementation method of step S120;
[0018] Figure 3 is a schematic diagram of the position change of the tool in one embodiment of the present application;
[0019] Figure 4 is a schematic diagram of the position change of the tool in another embodiment of the present application;
[0020] Figure 5 is a schematic diagram of the position change of the tool in another embodiment of the present application;
[0021] Figure 6 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0022] Figure 7 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] In the prior art, each tool position in the tool magazine of a CNC machine tool is provided with a tool position number, and each tool also has a tool number. The tool number of the tool located at the tool position in the initial state corresponds to the tool position number of the tool position, and the tool number of the tool located on the spindle is also corresponded to the spindle, and the tool number of the tool located on the spindle is defined as the spindle tool number. The purpose of this application is to restore the tools in the tool magazine and the tools on the spindle to the initial state after the operation through the automatic tool arrangement method of the tool magazine.
[0025] To facilitate understanding, an example is given here:
[0026] Assume that the tool magazine includes 10 tool positions, and the tool position numbers of these 10 tool positions are 1, 2, ... 10. For the convenience of explanation, the tool position with tool position number 1 is referred to as tool position 1, the tool position with tool position number 2 is referred to as tool position 2, and so on. At the same time, there are 11 tools in total, and the tool numbers of these 11 tools are 0, 1, 2, ... 10. For the convenience of explanation, the tool with tool number 0 is referred to as tool 0, the tool with tool number 1 is referred to as tool 1, and so on.
[0027] In the initial state, tool No. 0 is located on the spindle, tool No. 1 is located on tool position No. 1 in the tool magazine, tool No. 2 is located on tool position No. 2 in the tool magazine, and so on. At the same time, the tool number of tool No. 0 is defined as the spindle tool number.
[0028] The purpose of this application is that after the operation, the position of each tool is consistent with the initial state.
[0029] See also Figure 1 In one embodiment, the automatic tool arrangement method of the tool magazine of the present application includes:
[0030] S110: judging whether the tool number of the tool currently on the spindle is the spindle tool number according to the tool table, wherein the tool table updates and saves the tool number of the tool currently on the spindle and the tool number of the tool currently located at each tool position in the tool magazine in real time.
[0031] Specifically, as long as the position of any tool in the tool magazine or the spindle changes, the tool table will be updated. Therefore, based on the tool table, the tool number of the tool currently on the spindle can be obtained, and it can be further determined whether the tool number of the tool currently on the spindle is the spindle tool number. If it is determined that the tool number of the tool currently on the spindle is the spindle tool number, step S130 is executed, otherwise step S120 is executed.
[0032] Still using the above example for explanation, step S110 specifically determines whether the current spindle has tool No. 0. If it has tool No. 0, execute step S130; otherwise, execute step S120.
[0033] S120: According to the tool table, the tool on the spindle is exchanged with the tool in the tool magazine so that the tool number of the tool currently on the spindle is the spindle tool number.
[0034] Specifically, the tool number of the tool on the spindle is not the spindle tool number, that is, the tool on the spindle is not tool No. 0. The machine tool replaces the tool on the spindle with the tool in the tool magazine so that tool No. 0 is replaced on the spindle.
[0035] See also Figure 2 , the process specifically includes:
[0036] S121: Obtain a target tool position number corresponding to the tool number of the tool currently located on the spindle.
[0037] Specifically, the target tool position number corresponding to the tool number of the tool currently on the spindle is, in the initial state, the tool position number of the tool position of the tool magazine where the tool currently on the spindle is located. Still using the above example, assuming that the tool currently on the spindle is tool No. 3, therefore, in the initial state, tool No. 3 is located at tool position No. 3 of the tool magazine, and therefore the corresponding target tool position number obtained in step S121 is No. 3.
[0038] It can be understood that step S121 is to obtain the target tool position number according to the tool table.
[0039] S122: Exchange the tool at the tool position with the target tool position number in the tool magazine with the tool on the spindle.
[0040] Specifically, after step S122, the tool on the spindle returns to the tool position where the tool was located in the initial state, and the tool on the tool position is returned to the spindle. For example, in the above example, tool No. 3 returns to tool position No. 3, and the tool on tool position No. 3 returns to the spindle. Of course, the above exchange process will be updated in real time in the tool table.
[0041] It can be understood that if the tool on tool position No. 3 is tool No. 0 before the exchange in step S122, then after the exchange in step S122, the tool on the spindle is tool No. 0, but if the tool on tool position No. 3 is not tool No. 0 before the exchange in step S122, then after the exchange in step S122, the tool on the spindle is not yet tool No. 0.
[0042] S123: According to the tool table, determine whether the tool number of the tool currently located on the spindle is the spindle tool number.
[0043] If the judgment result is yes, the process ends; if the judgment result is no, the process returns to step S121.
[0044] Specifically, according to the tool table, determine whether the tool number of the tool currently located on the spindle is tool No. 0. If it is not tool No. 0, return to execute step S121. If it is tool No. 0, step S120 is completed.
[0045] In order to facilitate the understanding of the above understanding, the following Figure 3 and Figure 4 Two examples are given to illustrate:
[0046] exist Figure 3 In the example, after one exchange, the tool on the spindle is already tool No. 0, so there is no need to exchange it further.
[0047] And in Figure 4 In the example, after one exchange, tool No. 1 is on the spindle, so tool No. 1 on the spindle needs to be replaced with the tool at position 1, and this process is repeated until tool No. 0 is on the spindle.
[0048] In one embodiment, the tool arrangement method further includes: in response to the number of times the step of returning to execute the step of obtaining the target tool position number corresponding to the tool number of the tool currently located on the spindle is greater than a first count threshold, issuing an alarm prompt.
[0049] Specifically, the first count threshold can be set by itself. In response to the number of times returning to execute step S121 being greater than the first count threshold, the machine tool issues an alarm to avoid program confusion and being stuck in a loop.
[0050] In one embodiment, the alarm prompt includes at least one of a sound prompt and a light prompt. Specifically, the sound prompt or the light prompt is used to remind the operator that there is a problem with the program operation, thereby reducing the time when the machine tool is stuck in a cycle and improving the processing efficiency.
[0051] S130: Determine whether the first target tool position exists in the tool magazine according to the tool table.
[0052] If it does not exist, the process ends; if it does exist, execute step S140.
[0053] Specifically, the tool position number of the first target tool position does not match the tool number of the tool located at the first target tool position stored in the tool table. That is, the tool currently at the first target tool position is not the tool that was initially at the first target tool position. For example, if the tool at position 2 in the current tool magazine is tool No. 4, then position 2 is the first target tool position.
[0054] In one embodiment, step S130 specifically includes: judging whether the tool positions in the tool magazine are the first target tool positions according to the tool table and in the order of the tool position numbers, that is, judging whether tool position No. 1 in the tool magazine is the first target tool position, and if not, judging whether tool position No. 2 is the first target tool position, and so on.
[0055] Of course, in other implementations, it is also possible to randomly determine whether the tool position in the tool magazine is the first target tool position.
[0056] S140: Exchange the tool on the first target tool position with the tool on the spindle.
[0057] Specifically, since the tool currently on the first target tool position is not the tool on the first target tool position in the initial state, the tool on the first target tool position is exchanged with the tool on the spindle. After step S140, the execution returns to step S110. After returning to step S110, the tool number of the tool on the spindle can be guaranteed to be the spindle tool number, so that the above process is continuously cycled, and the initial state can be finally restored.
[0058] In order to better understand the above scheme, Figure 4 The process is described as follows:
[0059] Combination Figure 5 After the tool on the spindle is adjusted to tool No. 0 in step S120, it is determined whether there is a first target tool position in the tool magazine. At this time, the first target tool position is found to be position 4. Then the tool on position 4 is replaced with the tool on the spindle, and then the process returns to step S120 until the tool on the spindle is tool No. 0.
[0060] Through the above method, the present application can realize automatic tool arrangement so that the distribution of the tools is the same as the initial state.
[0061] In one embodiment, the method for arranging tools further includes: in response to returning to execute the step of judging whether the tool number of the tool currently located on the spindle is the spindle tool number according to the tool table for a number of times greater than a second number threshold, an alarm is issued. Specifically, the second number threshold can be set by itself, and in response to returning to execute step S121 for a number of times greater than the second number threshold, the machine tool issues an alarm to avoid program confusion and being stuck in a loop.
[0062] In one embodiment, the alarm prompt includes at least one of a sound prompt and a light prompt. Specifically, the sound prompt or the light prompt is used to remind the operator that there is a problem with the program operation, thereby reducing the time when the machine tool is stuck in a cycle and improving the processing efficiency.
[0063] In one embodiment, the step of exchanging the tool on the spindle with the tool in the tool magazine in step S110 includes controlling the manipulator to exchange the tool on the spindle with the tool in the tool magazine.
[0064] Specifically, one end of the manipulator grabs the tool on the spindle, the machine tool rotates the tool magazine, and the other end of the manipulator grabs the tool on the tool position. The manipulator rotates 180° to replace the tool on the spindle to the tool position in the tool magazine. Correspondingly, the tool on the tool position in the tool magazine is replaced on the spindle.
[0065] In one embodiment, the method further includes generating prompt information for prompting manual proofreading after determining that the first target tool position exists in the tool magazine.
[0066] Specifically, since errors may occur during the updating of the tool table, after the tool is automatically arranged by the method of the present application, a prompt message can be generated to remind manual proofreading in order to ensure accuracy. Then, during the proofreading process, the manual tool can be removed from the wrong tool position according to the prompt message, and put into the correct tool position after proofreading, thereby improving the efficiency of tool change after tool disorder.
[0067] The present application also protects a machine tool, including a memory and a processor coupled to each other, the memory storing program data, and the processor calling the program data to execute the above method. The machine tool includes a CNC machine tool, and includes any machine tool such as a CNC lathe, a CNC milling machine, etc., without limitation here.
[0068] See also Figure 6 The present application also protects an electronic device 100, including a memory 110 and a processor 120 coupled to each other, the memory 110 stores program data, and the processor 120 calls the program data to execute the above method. The specific method can be found in the above content, which will not be repeated here. Among them, the electronic device 100 can be any device such as a mobile phone, a computer, a television, etc., which is not limited here.
[0069] See also Figure 7 The present application also protects a computer-readable storage medium 200 on which program data 210 is stored. When the program data 210 is executed by a processor, the method of any of the above embodiments is implemented. For the description of the relevant contents, please refer to the detailed description of the above method embodiment, which will not be repeated here.
[0070] It should be noted that the units described 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 present implementation scheme.
[0071] 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.
[0072] 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 is essentially 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. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0073] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for automatically arranging tools in a tool magazine, characterized in that: The method comprises: According to the tool table, determining whether the tool number of the tool currently located on the spindle is the spindle tool number, wherein the tool table updates and stores the tool number of the tool currently located on the spindle and the tool number of the tool currently located at each tool position in the tool magazine in real time; In response to not being the spindle tool number, exchanging the tool on the spindle with the tool in the tool magazine according to the tool table so that the tool number of the tool currently on the spindle is the spindle tool number; After determining that the tool number of the tool currently located on the spindle is the spindle tool number, querying whether there is a first target tool position in the tool magazine according to the tool table, wherein the tool position number of the first target tool position does not match the tool number of the tool located at the first target tool position stored in the tool table; If the first target tool position exists, exchanging the tool on the first target tool position with the tool on the spindle; Returning to the step of determining whether the tool number of the tool currently located on the spindle is the spindle tool number according to the tool table, until the first target tool position does not exist in the tool magazine; The step of exchanging the tool on the spindle with the tool in the tool magazine according to the tool table so that the tool number of the tool currently on the spindle is the spindle tool number includes: Obtaining a target tool position number corresponding to the tool number of the tool currently located on the spindle; wherein the target tool position number is the tool position number of the tool position in the tool magazine where the tool currently located on the spindle is located in an initial state; Exchanging the tool at the tool position with the target tool position number in the tool magazine with the tool on the spindle; According to the tool table, determining whether the tool number of the tool currently located on the spindle is the spindle tool number; In response to it not being the spindle tool number, returning to the step of acquiring the target tool position number corresponding to the tool number of the tool currently located on the spindle, until the tool number of the tool currently located on the spindle is the spindle tool number.
2. The method according to claim 1, characterized in that: The method further comprises: In response to the number of times the step of returning to execute the step of obtaining the target tool position number corresponding to the tool number of the tool currently located on the spindle is greater than a first number threshold, an alarm prompt is issued.
3. The method according to claim 2, characterized in that The alarm prompt method includes at least one of sound prompt and light prompt.
4. The method according to claim 1, characterized in that: The step of querying whether the first target tool position exists in the tool magazine according to the tool table comprises: According to the tool table and in the order of arrangement of tool position numbers, it is determined whether the tool position in the tool magazine is the first target tool position.
5. The method according to claim 1, characterized in that The step of exchanging the tool on the spindle with the tool in the tool magazine comprises: The manipulator is controlled to exchange the tool on the spindle with the tool in the tool magazine.
6. The method according to claim 1, characterized in that The method further comprises: In response to returning to execute the step of determining whether the tool number of the tool currently located on the spindle is the spindle tool number based on the tool table for a number of times greater than a second numerical threshold, an alarm is issued.
7. The method according to claim 1, characterized in that The method further comprises: After determining that the first target tool position exists in the tool magazine, a prompt message prompting manual proofreading is generated.
8. A machine tool, characterized in that: include: A memory and a processor coupled to each other, the memory storing program data, and the processor calling the program data to execute the method according to any one of claims 1 to 7.
9. An electronic device, characterized in that: include: A memory and a processor coupled to each other, the memory storing program data, and the processor calling the program data to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having program data stored thereon, characterized in that: When the program data is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Intelligent tool magazine system suitable for numerical control machine tool and control method of intelligent tool magazine
CN108393724A
Magazine tool management controller of numerical control machine tool
CN108818094A
Device and method for tool returning and tool magazine returning and numerical control machine tool
CN109318024A
Numerical control machine tool magazine tool information storage and calling method
CN111015321A
Numerical control(NC) device
JP1991277448A
