Machine tool automatic control method, machine tool and storage medium
By acquiring the current machining type and positional relationship of the machine tool, the automatic selection of the tool retraction program solves the problem of operators manually controlling tool retraction when machining is interrupted. This enables automatic tool retraction under different machining types, reduces the skill requirements of operators, and improves machining efficiency.
Patent Information
- Application Number
- CN202310391210.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-04-12
AI Technical Summary
When the machine tool is interrupted, the operator needs to manually control the tool retraction based on experience. This requires the operator to be highly skilled, and different machining characteristics require different retraction methods.
By obtaining the current machining type of the machine tool, determining the current retraction type, and selecting the corresponding retraction program from the preset retraction program set, the tool is controlled to retract automatically, including the distinction between internal and external preset retraction programs and the adjustment of the retraction strategy according to the tool position relationship.
This technology enables automatic tool retraction under different machining types, reducing the skill requirements for operators and improving the automation and efficiency of machining.
Smart Images

Figure CN116466648B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of machine tool processing, in particular to a machine tool automatic control method, a machine tool and a storage medium. BACKGROUND
[0002] The machine tool executes different machining programs according to part features, and the program is interrupted due to equipment failure and other reasons during the machining process. Therefore, the operator needs to manually control the equipment according to experience, and move the tool to a safe position. Different machining features require different tool withdrawal methods, and the skill requirement for the operator is very high. SUMMARY
[0003] The main purpose of the present application is to provide a machine tool automatic control method, a machine tool and a storage medium, which aims to solve the problem of how to automatically withdraw the tool of different types when the machining is interrupted.
[0004] To achieve the above purpose, the present application provides a machine tool automatic control method, comprising the following steps:
[0005] After the machine tool is interrupted, the current machining type of the machine tool is obtained;
[0006] A current tool withdrawal type is determined from a preset tool withdrawal type set according to the current machining type;
[0007] A current tool withdrawal program is determined from a preset tool withdrawal program set corresponding to the current tool withdrawal type according to the current tool withdrawal type;
[0008] The current tool withdrawal program is run to control the tool withdrawal of the machine tool.
[0009] Optionally, the current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type according to the current tool withdrawal type, comprising:
[0010] The target tool setting position and the target termination position are obtained, and the actual interruption position of the tool is obtained;
[0011] The position relationship between the tool and the machined part is determined according to the target tool setting position, the target termination position and the actual interruption position;
[0012] The current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type according to the position relationship.
[0013] Optionally, the preset tool withdrawal program set comprises an internal preset tool withdrawal program and an external preset tool withdrawal program;
[0014] The current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type according to the position relationship, comprising:
[0015] The current retracting program is determined as an inner preset retracting program when the tool is in the workpiece;
[0016] The current retracting program is determined as an outer preset retracting program when the tool is out of the workpiece.
[0017] Optionally, after the tool retracting process of the machine tool is controlled to run the current retracting program, the method further comprises:
[0018] Obtaining a motion state of the tool to determine an interrupt state of the tool;
[0019] Adjusting a machining strategy of the tool according to the interrupt state.
[0020] Optionally, the adjusting of the machining strategy of the tool according to the interrupt state comprises:
[0021] If the interrupt state is an interrupt of feeding, the tool is controlled to continue to execute a current cutting program;
[0022] If the interrupt state is an interrupt of retracting, the tool is controlled to continue to execute the current retracting program until a start position.
[0023] Optionally, the controlling of the tool to continue to execute the current cutting program if the interrupt state is the interrupt of feeding comprises:
[0024] Determining a machining completion parameter according to the target tool setting position, the target end position and the actual interrupt position;
[0025] Adjusting a cutting strategy of the tool according to the machining completion parameter and a preset completion condition.
[0026] Optionally, the adjusting of the cutting strategy of the tool according to the machining completion parameter and the preset completion condition comprises:
[0027] If the machining completion parameter satisfies the preset completion condition, the tool is controlled to continue to perform machining from the actual interrupt position.
[0028] If the machining completion parameter does not satisfy the preset completion condition, the tool is controlled to execute the current retracting program and then re-execute the current cutting program.
[0029] Optionally, before the current machining type of the machine tool is obtained, the method further comprises at least one of the following steps:
[0030] Obtaining preset retracting types corresponding to different machining types to establish a preset retracting type set corresponding to different machining types;
[0031] Obtain different preset tool withdrawal programs corresponding to the same machining type, and establish a preset tool withdrawal program set corresponding to the same machining type.
[0032] The application provides a machine tool, which comprises:
[0033] A tool;
[0034] A driving device connected to the tool; and
[0035] A controller electrically connected to the machine tool, wherein the controller comprises a memory and a processor, and the machine tool automatic control method stored on the memory and executable on the processor, and the machine tool automatic control method is configured to realize the steps of the machine tool automatic control method.
[0036] The application provides a storage medium, wherein the storage medium stores the machine tool automatic control method, and the machine tool automatic control method realizes the steps of the machine tool automatic control method when executed by a processor.
[0037] In the technical scheme, the tool withdrawal scheme of the tool is different due to different machining types of the tool, in order to adapt the tool withdrawal scheme of the tool to the current machining type, the current tool withdrawal type of the tool is determined through the current machining type, and the current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type, so that the tool can be withdrawn according to the tool withdrawal scheme corresponding to the current tool withdrawal program, thus, the tool can be withdrawn according to the tool withdrawal scheme matched with the current machining type by obtaining the current machining type, the tool can be withdrawn, and when the current machining type changes, the current tool withdrawal program changes synchronously, so that the machine tool can automatically withdraw tools of different types, thereby helping to reduce the requirements of the machine tool on the operator. BRIEF DESCRIPTION OF DRAWINGS
[0038] In order to more clearly illustrate the technical schemes in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the application, and for those skilled in the art, other drawings can be obtained from the structures shown in the drawings without creative labor.
[0039] Figure 1 The structure diagram of the controller of the machine tool related to the embodiment of the application;
[0040] Figure 2A first flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0041] Figure 3 A second flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0042] Figure 4 A third flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0043] Figure 5 A fourth flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0044] Figure 6 A fifth flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0045] Figure 7 A sixth flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0046] Figure 8 A seventh flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0047] Figure 9 An eighth flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0048] Figure 10 A ninth flowchart of the automatic machine tool control method provided by the present application is shown in the figure;
[0049] Figure 11 A tenth flowchart of the automatic machine tool control method provided by the present application is shown in the figure.
[0050] The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0052] It should be noted that if the embodiments of the present application involve directional indications, the directional indications are only used to explain the relative position relationship, movement condition and the like between components in a certain posture, and if the certain posture changes, the directional indications also change accordingly.
[0053] In addition, if the description of "first", "second" and the like is involved in the embodiments of the present application, the description of "first", "second" and the like is only for the purpose of description, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first", "second" can be explicitly or implicitly included at least one of the features. In addition, the technical solutions of various embodiments can be combined with each other, but it must be based on the realization of ordinary skilled in the art, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, and is not within the protection scope required by the present application.
[0054] The machine tool performs different machining programs according to the characteristics of the parts, and the program is interrupted due to equipment failure and the like during the machining process, so that the operator needs to manually control the equipment according to experience to move the tool to a safe position, different machining characteristics require different tool withdrawal modes, and the skill requirement of the operator is very high.
[0055] The present application provides a machine tool, which comprises a tool, a driving device and a controller, the driving device is connected to the tool, and the controller is electrically connected to the driving device, in the present application, the tool is driven by the driving device, and the controller is arranged to control the driving device to drive the tool, so that the tool can be withdrawn according to the tool withdrawal scheme suitable for the current machining type, thereby enabling the machine tool to automatically withdraw the tool of different machining types.
[0056] As shown in Figure 1 The controller can include a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection and communication between the components. The user interface 1003 can include a display screen, an input unit such as a keyboard, and can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 can be a high-speed random access memory (RAM), and can also be a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.
[0057] As shown in Figure 1As shown, the memory 1005 as a storage medium can include an operating system, a network communication module, a user interface module, and a control program of the controller of the machine tool.
[0058] In Figure 1 In the controller shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the controller of the application can be arranged in the controller, and the controller calls the control program of the controller stored in the memory 1005 through the processor 1001, and executes the control method of the controller provided by the embodiments of the application.
[0059] In Figure 2 In the controller shown, the machine tool automatic tool withdrawal control program stored in the memory 1005 is called by the processor 1001, and the following operations are performed:
[0060] After the interruption of the machine tool processing, the current processing type of the machine tool is acquired;
[0061] According to the current processing type, a current tool withdrawal type is determined from a preset tool withdrawal type set;
[0062] According to the current tool withdrawal type, a current tool withdrawal program is determined from a preset tool withdrawal program set corresponding to the current tool withdrawal type;
[0063] The current tool withdrawal program is run to control the tool withdrawal of the machine tool.
[0064] Further, the current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type, including:
[0065] The target tool setting position and the target termination position are acquired, and the actual interruption position of the tool is acquired;
[0066] According to the target tool setting position, the target termination position and the actual interruption position, the position relationship between the tool and the workpiece being processed is determined;
[0067] According to the position relationship, the current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type.
[0068] Further, the preset tool withdrawal program set includes an internal preset tool withdrawal program and an external preset tool withdrawal program;
[0069] The current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type according to the position relationship, including:
[0070] The current retracting program is determined as an inner preset retracting program when the tool is in the workpiece;
[0071] The current retracting program is determined as an outer preset retracting program when the tool is out of the workpiece.
[0072] Further, after the tool retracting process is executed, the method further comprises:
[0073] acquiring a motion state of the tool to determine an interrupt state of the tool;
[0074] adjusting a machining strategy of the tool according to the interrupt state.
[0075] Further, the adjusting of the machining strategy of the tool according to the interrupt state comprises:
[0076] if the interrupt state is an interrupt of feeding, controlling the tool to continue executing a current cutting program;
[0077] if the interrupt state is an interrupt of retracting, controlling the tool to continue executing the current retracting program until a start position.
[0078] Further, the controlling of the tool to continue executing the current cutting program if the interrupt state is the interrupt of feeding comprises:
[0079] determining a machining completion parameter according to the target tool setting position, the target end position and the actual interrupt position;
[0080] adjusting a cutting strategy of the tool according to the machining completion parameter and a preset completion condition.
[0081] Further, the adjusting of the cutting strategy of the tool according to the machining completion parameter and the preset completion condition comprises:
[0082] if the machining completion parameter satisfies the preset completion condition, controlling the tool to continue machining from the actual interrupt position.
[0083] if the machining completion parameter does not satisfy the preset completion condition, controlling the tool to execute the current retracting program and then re-execute the current cutting program.
[0084] Further, before the acquiring of the current machining type of the machine tool, the method further comprises at least one of the following steps:
[0085] acquiring preset retracting types corresponding to different machining types to establish a preset retracting type set corresponding to different machining types;
[0086] Obtain different preset tool withdrawal programs corresponding to the same machining type, and establish a preset tool withdrawal program set corresponding to the same machining type.
[0087] Based on the above hardware structure, the application provides a machine tool automatic control method, the tool is driven by the driving device, and the driving device drives the tool by setting the controller, so that the tool can be withdrawn according to the tool withdrawal scheme suitable for the current machining type, so that the machine tool can automatically withdraw the tool of different machining types.
[0088] Please refer to Figure 2 , Figure 2 The first flowchart of the machine tool automatic control method provided by the application.
[0089] In this embodiment, the machine tool automatic control method comprises the following steps:
[0090] S10: obtaining the current machining type of the machine tool after the machining of the machine tool is interrupted;
[0091] S20: determining the current tool withdrawal type from the preset tool withdrawal type set according to the current machining type;
[0092] S30: determining the current tool withdrawal program from the preset tool withdrawal program set corresponding to the current tool withdrawal type according to the current tool withdrawal type;
[0093] S40: running the current tool withdrawal program to control the tool of the machine tool to withdraw.
[0094] In this embodiment, since the machining types of the tools are different, the tool withdrawal schemes of the tools are also different, in order to make the tool withdrawal scheme of the tool suitable for the current machining type, the current tool withdrawal type of the tool is determined through the current machining type, and the current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type through the current tool withdrawal type, so that the tool can be withdrawn according to the tool withdrawal scheme corresponding to the current tool withdrawal program, thus, by obtaining the current machining type, the tool can be withdrawn according to the tool withdrawal scheme suitable for the current machining type, the tool can be withdrawn, and when the current machining type changes, the current tool withdrawal program will also change synchronously, so that the machine tool can automatically withdraw the tool of different machining types, thereby helping to reduce the requirements of the machine tool on the operator.
[0095] It should be noted that the machining type of the tool is various, for example, hole machining or thread machining, and the hole machining has a hole corresponding tool withdrawal scheme, and the thread machining has a thread corresponding tool withdrawal scheme, both of which are not the same, so when the machining type changes, the tool withdrawal scheme also needs to change, and in the application, the current machining type is obtained, so that the tool can be withdrawn according to the tool withdrawal scheme matched with the current machining type, that is, the tool can be withdrawn, and when the machining type changes, the current tool withdrawal program will change synchronously, so that the machine tool can automatically withdraw the tool for machining different types of tools, thereby helping to reduce the requirements of the machine tool on the operator.
[0096] Please refer to Figure 3 , Figure 3 The second flowchart of the machine tool automatic control method provided by the application.
[0097] The current tool withdrawal program is determined from the preset tool withdrawal program set corresponding to the current tool withdrawal type.
[0098] S31: Obtain the target tool setting position and the target termination position, and obtain the actual interruption position of the tool;
[0099] It should be noted that the target tool setting position refers to the position of the tool when it first contacts the machined part, and the target termination position refers to the position of the tool when it completes machining in the machined part. The actual interruption position refers to the stopping position of the tool after the machine tool machining is interrupted.
[0100] S32: Determine the position relationship between the tool and the machined part according to the target tool setting position, the target termination position and the actual interruption position.
[0101] It can be understood that when the actual interruption position is between the target tool setting position and the target termination position, it indicates that the tool is in the machined part when the machine tool machining is interrupted; when the actual interruption position is outside the target tool setting position and the target termination position, it indicates that the tool is outside the machined part when the machine tool machining is interrupted.
[0102] S33: Determine the current tool withdrawal program from the preset tool withdrawal program set corresponding to the current tool withdrawal type according to the position relationship.
[0103] In the embodiment, when the current tool retract type is determined, the tool retracts according to the tool retract scheme corresponding to the current tool retract type, and the tool retract scheme is different due to different interrupt positions of the tool. Therefore, the position relationship between the tool and the workpiece is determined through the target tool setting position, the target end position and the actual interrupt position, and the current tool retract program is adjusted according to the position relationship, so that the tool retracts according to the preset tool retract scheme.
[0104] It should be noted that when the current machining type is determined, the position relationship between the tool and the workpiece needs to be further determined when the tool retracts. When the tool is in the workpiece, the machine tool needs to control the workpiece to cooperate with the tool when controlling the tool to retract, so as to prevent the tool from damaging the workpiece during tool retract. When the tool is outside the workpiece, the tool is separated from the workpiece, and the tool can directly retract without considering the workpiece. For example, when the tool retracts according to the tool retract scheme corresponding to the hole, it is necessary to determine whether the tool is in the hole. When the tool is in the hole, the machine tool needs to control the workpiece to cooperate with the tool to retract when controlling the tool to retract. When the tool is outside the hole, the machine tool directly controls the tool to retract.
[0105] Further, in an embodiment, please refer to Figure 4 , Figure 4 The third flowchart of the automatic machine tool control method provided by the present application is shown.
[0106] The preset tool retract program set includes an inner preset tool retract program and an outer preset tool retract program;
[0107] The current tool retract program is determined from the preset tool retract program set corresponding to the current tool retract type according to the position relationship, and the current tool retract program is determined from the preset tool retract program set corresponding to the current tool retract type according to the position relationship.
[0108] S331: When the tool is in the workpiece, the current tool retract program is determined as the inner preset tool retract program.
[0109] In the embodiment, when the tool is in the workpiece, the machine tool controls the tool and the workpiece at the same time, so that the tool retracts according to the inner preset tool retract program, thereby preventing the tool from damaging the workpiece during tool retract.
[0110] In another embodiment, please refer to Figure 5 , Figure 5 The fourth flowchart of the automatic machine tool control method provided by the present application is shown.
[0111] The preset tool withdrawal procedure set includes an inner preset tool withdrawal procedure and an outer preset tool withdrawal procedure.
[0112] The current tool withdrawal procedure is determined from the preset tool withdrawal procedure set corresponding to the current tool withdrawal type according to the position relationship.
[0113] S332: When the tool is outside the machined workpiece, the current tool withdrawal procedure is determined as the outer preset tool withdrawal procedure.
[0114] In the embodiment, when the tool is outside the machined workpiece, it indicates that the tool has been separated from the machined workpiece, at this time, the tool can directly withdraw without considering the machined workpiece.
[0115] Please refer to Figure 6 , Figure 6 The fifth flowchart of the automatic machine tool control method provided by the present application is shown.
[0116] After the current tool withdrawal procedure is run to control the tool withdrawal of the machine tool, the method further includes:
[0117] S50: The movement state of the tool is acquired to determine the interruption state of the tool.
[0118] It should be noted that the movement state of the tool can be determined by the movement of the tool, for example, when the machine tool detects the tool at the target alignment position and does not detect the tool at the target termination position, it indicates that the interruption of the tool occurs in the process of feeding; when the machine tool detects the tool at the target alignment position and the target termination position and does not detect the tool at the target alignment position for the second time, it indicates that the interruption of the tool occurs in the process of withdrawing. Of course, the movement state of the tool can be acquired by an image sensor, and the present application does not limit this.
[0119] S60: The machining strategy of the tool is adjusted according to the interruption state.
[0120] In the embodiment, since the machined workpiece can be completed or not completed when the machine tool is interrupted, the movement state of the tool is acquired to determine whether the interruption of the tool occurs in the process of feeding or in the process of withdrawing when the machine tool is interrupted, and the machining strategy of the tool is adjusted according to the determination result.
[0121] Further, in an embodiment, please refer to Figure 7 , Figure 7 The sixth flowchart of the automatic machine tool control method provided by the present application is shown.
[0122] The adjusting the machining strategy of the tool according to the interrupt state comprises:
[0123] S61: if the interrupt state is the feed interrupt, controlling the tool to continue to execute the current cutting program;
[0124] In the embodiment, if the interrupt state is the feed interrupt, it indicates that the machined workpiece has not completed machining and needs to continue machining, therefore, the tool needs to be controlled to continue to execute the current cutting program to make the machined workpiece complete machining.
[0125] In another embodiment, referring to Figure 8 , Figure 8 The seventh flowchart of the automatic machine tool control method provided by the application.
[0126] The adjusting the machining strategy of the tool according to the interrupt state comprises:
[0127] S62: if the interrupt state is the feed interrupt, controlling the tool to continue to execute the current cutting program until the starting point position.
[0128] In the embodiment, if the interrupt state is the feed interrupt, it indicates that the machined workpiece has not completed machining and needs to continue machining, therefore, the tool needs to be controlled to continue to execute the current cutting program to make the machined workpiece complete machining.
[0129] In the embodiment, referring to Figure 9 , Figure 9 The eighth flowchart of the automatic machine tool control method provided by the application.
[0130] The adjusting the machining strategy of the tool according to the interrupt state comprises:
[0131] S611: determining a machining completion parameter according to the target tool setting position, the target termination position and the actual interrupt position;
[0132] It can be understood that the machining completion parameter of the machined workpiece can be determined according to the distance between the actual interrupt position and the target tool setting position and the distance between the target tool setting position and the target termination position.
[0133] S612: adjusting the cutting strategy of the tool according to the machining completion parameter and a preset completion condition.
[0134] In the embodiment, when the machine tool processing is interrupted, the workpiece can be completed by 30% or 80%, corresponding to different completion conditions, and the cutting strategy of the workpiece needs to be adjusted. Therefore, the machining completion condition of the workpiece is judged by the machining completion parameter and the preset completion condition, so as to adjust the cutting strategy of the workpiece.
[0135] Further, in an embodiment, referring to Figure 10 , Figure 10 The ninth flowchart of the automatic machine tool control method provided by the application is shown.
[0136] The cutting strategy of the tool is adjusted according to the machining completion parameter and the preset completion condition, including:
[0137] S612a: If the machining completion parameter meets the preset completion condition, the tool is controlled to continue processing from the actual interruption position.
[0138] In the embodiment, if the machining completion parameter meets the preset completion condition, it means that the workpiece has been completed by more than half. At this time, if the processing is restarted, a long time will be consumed. In the embodiment, the machine tool controls the tool to continue processing from the actual interruption position, so as to save processing time and help improve processing efficiency.
[0139] It can be understood that the preset completion condition can be a fixed value, a value range, etc., and the application does not limit this. Specifically, in the embodiment, the preset completion condition is greater than 50%.
[0140] In an embodiment, referring to Figure 11 , Figure 11 The tenth flowchart of the automatic machine tool control method provided by the application is shown.
[0141] The cutting strategy of the tool is adjusted according to the machining completion parameter and the preset completion condition, including:
[0142] S612b: If the machining completion degree does not meet the preset completion condition, the tool is controlled to execute the current tool withdrawal program and then execute the current cutting program again.
[0143] In the embodiment, if the machining completion parameter meets the preset completion condition, it means that the workpiece has just started processing. If the actual interruption position is processed, the tool needs to be controlled to accurately move to the timely interruption position, which has high precision and high requirements. Therefore, in the embodiment, the tool is controlled to execute the current cutting program again, so as to process the workpiece again, which is helpful to reduce the processing difficulty.
[0144] In order to match the tool retracting scheme with the current machining type, specifically, in the embodiment,
[0145] Before acquiring the current machining type of the machine tool, further comprising at least one of the following steps:
[0146] S01: acquiring preset tool retracting types corresponding to different machining types, and establishing a preset tool retracting type set corresponding to different machining types;
[0147] In the embodiment, the tool retracting scheme is different due to different machining types of the tool, in order to make the tool retracting scheme adapt to the current machining type, for this purpose, different preset tool retracting types are established corresponding to different machining types, to form the preset tool retracting type set, so that when the current machining type is acquired, matching is performed in the preset tool retracting type set to determine the current tool retracting type. It can be understood that the preset tool retracting type set includes tool retracting schemes of all machining types, such as hole tool retracting, thread tool retracting, etc.
[0148] After the current tool retracting type is determined, the tool is retracted according to the tool retracting scheme corresponding to the current tool retracting type, because the interruption positions of the tool are different, the tool retracting scheme is also different, for this purpose, in the embodiment:
[0149] S02: acquiring different preset tool retracting programs corresponding to the same machining type, and establishing a preset tool retracting program set corresponding to the same machining type.
[0150] In the embodiment, different tool retracting schemes of the same machining type are established according to the position relationship between the tool and the machined part when the tool is retracted, so that the tool can be retracted according to the corresponding preset tool retracting scheme when the tool is retracted, so as to avoid damaging the machined part when the tool is retracted. It can be understood that the preset tool retracting program set includes the inner preset tool retracting program and the outer preset tool retracting program.
[0151] The above only describes the preferred embodiments of the present application, and does not limit the patent scope of the present application, any equivalent structural transformation made under the concept of the present application, or direct / indirect application in other related technical fields is included in the patent protection scope of the present application.
Claims
1. A machine tool automatic control method characterized by, The method comprises the following steps: acquiring a current machining type of the machine tool after a machining interruption of the machine tool; determining a current tool retracting type from a preset tool retracting type set according to the current machining type; determining a current tool retracting program from a preset tool retracting program set corresponding to the current tool retracting type according to the current tool retracting type; running the current tool retracting program to control the tool to retract; the determining of the current tool retracting program from the preset tool retracting program set corresponding to the current tool retracting type comprises: acquiring a target tool setting position and a target termination position, and acquiring an actual interruption position of the tool; determining a position relationship between the tool and a workpiece to be machined according to the target tool setting position, the target termination position and the actual interruption position; determining the current tool retracting program from the preset tool retracting program set corresponding to the current tool retracting type according to the position relationship; the preset tool retracting program set comprises an inner preset tool retracting program and an outer preset tool retracting program; the determining of the current tool retracting program from the preset tool retracting program set corresponding to the current tool retracting type according to the position relationship comprises: when the tool is in the workpiece, the current tool retracting program is determined as the inner preset tool retracting program; when the tool is outside the workpiece, the current tool retracting program is determined as the outer preset tool retracting program; after the running of the current tool retracting program to control the tool to retract, the method further comprises: acquiring a motion state of the tool to determine an interruption state of the tool; adjusting a machining strategy of the tool according to the interruption state; the adjusting of the machining strategy of the tool according to the interruption state comprises: if the interruption state is an interruption in feeding, the tool is controlled to continue to execute a current cutting program; if the interruption state is an interruption in retracting, the tool is controlled to continue to execute the current tool retracting program until a start position; the controlling of the tool to continue to execute the current cutting program if the interruption state is the interruption in feeding comprises: determining a machining completion parameter according to the target tool setting position, the target termination position and the actual interruption position; adjusting a cutting strategy of the tool according to the machining completion parameter and a preset completion condition.
2. The machine tool automatic control method according to claim 1, characterized by, the adjusting of the cutting strategy of the tool according to the machining completion parameter and the preset completion condition comprises: if the machining completion parameter satisfies the preset completion condition, the tool is controlled to continue to machine from the actual interruption position; if the machining completion parameter does not satisfy the preset completion condition, the tool is controlled to execute the current tool retracting program and then execute the current cutting program again.
3. The machine tool automatic control method according to claim 1, characterized by, before the acquiring of the current machining type of the machine tool, the method further comprises at least one of the following steps: acquiring preset tool retracting types corresponding to different machining types to establish a preset tool retracting type set corresponding to different machining types; acquiring different preset tool retracting programs corresponding to a same machining type to establish a preset tool retracting program set corresponding to the same machining type.
4. A machine tool, characterized by comprise: a tool; a driving device drivingly connected to the tool; and A controller electrically connected to the driving device, the controller comprising a memory and a processor and the machine tool automatic control method stored on the memory and executable on the processor, the machine tool automatic control method configured to implement the steps of the machine tool automatic control method according to any one of claims 1 to 3.
5. A storage medium, characterized by The machine tool automatic control method is stored on the storage medium and implemented when executed by a processor.
Citation Information
Patent Citations
Segment-by-segment machining method for long and thin thread
CN110125493A
Template-based numerical control processing cutter feeding and retracting macro automatic customization method and system
CN113778023A