Machining optimization method and device for numerical control six-face drill and electronic equipment
By constructing a collection of processing models and optimizing the processing program, the problem of insufficient efficiency and accuracy of CNC six-sided drilling equipment in complex machining needs is solved, an efficient and accurate processing process is achieved, and the number of times of replacement of clamps and the cost of use is reduced.
Patent Information
- Application Number
- CN202411675035.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-02-25
AI Technical Summary
Existing CNC six-sided drilling equipment is difficult to meet the complex processing needs, the processing efficiency and accuracy are insufficient, and the clamps need to be replaced frequently, resulting in low material utilization, high cost and large labor and material consumption.
By obtaining the data to be processed, a collection of processing models is constructed, and the model collection is grouped and sorted according to the common clamp position, the machining program is optimized to reduce the number of clamp replacements and improve machining efficiency.
It improves the processing efficiency and accuracy of CNC six-sided drills, meets complex processing needs, does not require frequent replacement of clamps, improves the utilization rate of plate materials, and reduces the cost of use and labor and material consumption.
Smart Images

Figure CN119511956A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of CNC machining, and in particular to a machining optimization method, device, electronic equipment and storage medium for CNC six-sided drilling. Background Art
[0002] With the rapid growth of market demand for panel furniture, especially customized furniture, CNC six-sided drilling has been widely used for its fully automated drilling and grooving functions, high processing efficiency, good precision, and intelligent production of panel furniture with CNC cutting machines. It has gradually replaced traditional manufacturing methods and become the mainstream of the industry.
[0003] However, the requirements for CNC six-sided drilling equipment research and development technology, CAM software docking, and accessories are higher than those for ordinary drilling equipment, especially the requirements for CAM software. However, the existing CNC six-sided drilling technology has gradually failed to meet the usage needs. Since more and more processing needs are no longer simple drilling and grooving, the requirements for processing efficiency and processing accuracy have been greatly improved, which also greatly increases the processing requirements of CAM software for optimizing processing efficiency, and cannot meet the number of clamp changes. Summary of the invention
[0004] The purpose of this application is to provide a processing optimization method, device, electronic equipment and storage medium for CNC six-sided drilling, which can improve processing efficiency and processing accuracy, meet various complex processing requirements, and do not require frequent replacement of clamps. It can improve the utilization rate of plate materials, reduce the cost of use, and reduce the use of manpower and material resources.
[0005] In a first aspect, an embodiment of the present application provides a processing optimization method for a CNC six-side drill, the method comprising:
[0006] Acquiring the to-be-processed data of the CNC six-side drill;
[0007] Construct a processing model set according to the data to be processed;
[0008] Obtaining a common clamp position of the set of processing models;
[0009] Grouping the processing model set according to the common clamp position to obtain a plurality of groups;
[0010] sorting the plurality of groups to obtain a processing model sequence;
[0011] The machining program is optimized according to the machining model sequence.
[0012] In the above implementation process, the processing model set is grouped, sorted and then optimized according to the common clamp position, which can improve the processing efficiency and processing accuracy, meet various complex processing requirements, and eliminate the need for frequent replacement of clamps. It can improve the utilization rate of plate materials, reduce the cost of use, and reduce the use of manpower and material resources.
[0013] Furthermore, the step of obtaining the common clamp position of the processing model set includes:
[0014] Traversing the processing model set, obtaining the maximum value of the clamp coordinate and the minimum value of the clamp coordinate corresponding to each processing model in the processing model set;
[0015] Obtaining a processing model that needs to be avoided from the processing model set;
[0016] Obtaining a clamp avoidance area corresponding to the processing model that needs to be avoided;
[0017] The common clamp position is obtained according to the clamp avoidance area corresponding to the processing model that needs to be avoided and the maximum value and the minimum value of the clamp coordinates corresponding to the processing model that needs to be avoided.
[0018] In the above implementation process, the common clamp position is obtained according to the clamp avoidance area and clamp coordinates corresponding to the processing model that needs to be avoided, which can ensure that the clamp will not affect the processing path and improve the processing efficiency and accuracy.
[0019] Furthermore, the step of grouping the processing model set according to the common clamp position to obtain a plurality of groups includes:
[0020] Determining whether the common clamp position meets a preset standard;
[0021] If yes, grouping the processing model set according to the relationship between the processing model position and the clamp position to obtain the plurality of groups;
[0022] If not, the common clamp position is obtained according to the segmentation method.
[0023] In the above implementation process, when the common clamp position does not meet the preset standard, the common clamp position can be regained by a segmentation method to improve the accuracy of the common clamp position.
[0024] Furthermore, the step of obtaining the common clamp position according to the segmentation method comprises:
[0025] Grouping the processing model set according to the preset first grouping method to obtain a first group, wherein each processing model in the first group uses the same first clamping position;
[0026] Obtaining the coordinates of the splitting point according to the first clamp position;
[0027] Traverse each processing model in the first group according to the split point coordinates, and if there is a processing model that needs to avoid the clamp, obtain the corresponding avoidance clamp coordinates;
[0028] The remaining processing models that do not need to avoid the clamp are grouped again according to a preset second grouping method to obtain a second group;
[0029] Determining whether the common clamp position of the second group can be obtained;
[0030] If so, determining the common clamp position of the second group as the common clamp position;
[0031] If not, the common clamp position is obtained according to the two-terminal method.
[0032] In the above implementation process, the number of times the clamp is replaced can be minimized, the processing efficiency of the clamp area can be improved, the utilization rate of the clamp can be improved, the time required for the processing process can be reduced, and the problem of plate reference loss caused by excessive clamp replacement can be avoided.
[0033] Furthermore, the step of obtaining the common clamp position according to the two-terminal method comprises:
[0034] Traversing the processing model set, and determining whether a processing model in the processing model set needs to avoid the clamp;
[0035] If so, the corresponding processing models are combined into a set that needs to be avoided;
[0036] If not, the corresponding processing models are combined into a set that does not need to be avoided;
[0037] Traversing the set to be avoided, grouping them according to the relationship between the avoidance area of the clamp and the center point of the plate, to obtain a third group;
[0038] The common clamp position is obtained according to the third grouping and the avoidance-free set.
[0039] In the above implementation process, the two-end method can quickly and accurately obtain the common clamp position, realize the rapid distinction between the area that needs to be avoided and the area that does not need to be avoided, make the error of replacing the clamp smaller, and provide more convenience for processing.
[0040] Furthermore, the step of sorting the multiple groups to obtain a processing model sequence includes:
[0041] Dividing the middle groups in the plurality of groups into a first middle group and a second middle group according to the relationship between the center point of the plate and the position of the processing model;
[0042] The plurality of groups including the first intermediate group and the second intermediate group are sorted to obtain the processing model sequence.
[0043] In the above implementation process, by sorting multiple groups to generate a processing model sequence, the optimal clamp changing method can be obtained, the efficient use of the clamp can be achieved, the utilization rate of the plate can be improved and the waste rate can be reduced.
[0044] Furthermore, the step of optimizing the machining program according to the machining model sequence includes:
[0045] The processing model sequence is traversed, and the clamping positions of adjacent processing models in the processing model sequence are adjusted to obtain a target processing program.
[0046] In the above implementation process, by adjusting the clamp positions of adjacent processing models in the processing model sequence, the shortest processing path can be achieved, the processing efficiency can be significantly improved, and the processing flow can be improved.
[0047] In a second aspect, the embodiment of the present application further provides a processing optimization device for a CNC six-sided drill, the device comprising:
[0048] An acquisition module, used for acquiring the to-be-processed data of the CNC six-side drill;
[0049] A construction module, used for constructing a processing model set according to the data to be processed;
[0050] A data acquisition module, used for obtaining a common clamp position of the processing model set;
[0051] A grouping module, used for grouping the processing model set according to the common clamp position to obtain a plurality of groups;
[0052] A sorting module, used for sorting the plurality of groups to obtain a processing model sequence;
[0053] The optimization module is used to optimize the machining program according to the machining model sequence.
[0054] In the above implementation process, the processing model set is grouped, sorted and then optimized according to the common clamp position, which can improve the processing efficiency and processing accuracy, meet various complex processing requirements, and eliminate the need for frequent replacement of clamps. It can improve the utilization rate of plate materials, reduce the cost of use, and reduce the use of manpower and material resources.
[0055] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.
[0057] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0058] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0059] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the range values. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0061] Figure 1 A schematic diagram of a process flow of a CNC six-sided drilling process optimization method provided in an embodiment of the present application;
[0062] Figure 2 A schematic diagram of the structural composition of a processing optimization device for a CNC six-sided drill provided in an embodiment of the present application;
[0063] Figure 3 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0065] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0066] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application, but are not used to limit the scope of the present application.
[0067] Embodiment 1
[0068] Figure 1 is a flow chart of a processing optimization method for a CNC six-sided drill provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0069] S1, obtaining the processing data of the CNC six-sided drilling machine;
[0070] S2, constructing a processing model set according to the data to be processed;
[0071] S3, obtaining the common clamp position of the processing model set;
[0072] S4, grouping the processing model set according to the common clamp position to obtain multiple groups;
[0073] S5, sorting the multiple groups to obtain a processing model sequence;
[0074] S6, optimizing the machining program according to the machining model sequence.
[0075] In the above implementation process, the processing model set is grouped, sorted and then optimized according to the common clamp position, which can improve the processing efficiency and processing accuracy, meet various complex processing requirements, and eliminate the need for frequent replacement of clamps. It can improve the utilization rate of plate materials, reduce the cost of use, and reduce the use of manpower and material resources.
[0076] In S1, the single hole processing is converted into an abstract model, which has the following parameters (data to be processed):
[0077] The coordinates of the plate are given by the plate data; the processing tool is obtained after the hole drill is matched; whether the clamp needs to be avoided, and the clamp avoidance area, that is, the clamp cannot be in this area when processing the model, are calculated by the model coordinates and the tool avoidance parameters; the clamp position is calculated by the clamp avoidance area, clamp limit, and the clampable position limit of the plate.
[0078] In S2, the optimization purpose of the embodiment of the present application is to prioritize the processing models using the same clamp position together, so it is necessary to convert the scene into a processing model for multiple hole positions to obtain a processing model set containing multiple processing models. The processing model of the embodiment of the present application has completed the hole drill matching, and the processing tool in the processing model has been confirmed.
[0079] Furthermore, S3 includes:
[0080] Traversing the processing model set, obtaining the maximum value of the clamp coordinate and the minimum value of the clamp coordinate corresponding to each processing model in the processing model set;
[0081] Obtaining a processing model that needs to be avoided in a processing model set;
[0082] Obtaining a clamp avoidance area corresponding to the processing model that needs to be avoided;
[0083] The common clamp position is obtained according to the clamp avoidance area corresponding to the processing model that needs to be avoided and the maximum value and the minimum value of the clamp coordinates corresponding to the processing model that needs to be avoided.
[0084] In the above implementation process, the common clamp position is obtained according to the clamp avoidance area and clamp coordinates corresponding to the processing model that needs to be avoided, which can ensure that the clamp will not affect the processing path and improve the processing efficiency and accuracy.
[0085] The clamp avoidance area of the machining models in the machining model set is calculated, and the common clamp position is calculated, that is, all machining models can use the same clamp position.
[0086] Traverse each processing model, take the maximum and minimum values of the plate where the processing model clamp is located, and obtain the maximum and minimum values of the clamp coordinates.
[0087] Traverse each processing model to extract the processing model that needs clamp avoidance, and arrange them from large to small according to the coordinate value of the clamp avoidance area (processing models that need to be avoided).
[0088] Traverse the processing model that requires clamp avoidance, and calculate the common clamp position according to the clamp avoidance area and the corresponding maximum value of the clamp coordinates and the minimum value of the clamp coordinates.
[0089] Furthermore, S4 includes:
[0090] Determine whether the common clamp position meets the preset standard;
[0091] If so, the processing model set is grouped according to the relationship between the processing model position and the clamp position to obtain multiple groups;
[0092] If not, the common clamp position is obtained according to the segmentation method.
[0093] In the above implementation process, when the common clamp position does not meet the preset standard, the common clamp position can be regained by a segmentation method to improve the accuracy of the common clamp position.
[0094] If the calculated common clamp position is not available, the common clamp position is obtained according to the segmentation method. If the calculated common clamp position is available, the processing model set is divided into three groups according to the relationship between the processing model position and the clamp position, namely, a large value group, an intermediate group, and a small value group.
[0095] Further, the step of obtaining the common clamp position according to the segmentation method comprises:
[0096] The processing model set is grouped according to a preset first grouping method to obtain a first group, wherein each processing model in the first group uses the same first clamping position;
[0097] Obtaining the coordinates of the split point according to the first clamp position;
[0098] Traverse each processing model in the first group according to the split point coordinates, and if there is a processing model that needs to avoid the clamp, obtain the corresponding avoidance clamp coordinates;
[0099] The remaining processing models that do not need to avoid the clamp are secondary grouped according to a preset second grouping method to obtain a second group;
[0100] Determining whether the common clamp position of the second group can be obtained;
[0101] If so, determining the common clamp position of the second group as the common clamp position;
[0102] If not, obtain the common clamp position according to the two-terminal method.
[0103] In the above implementation process, the number of times the clamp is replaced can be minimized, the processing efficiency of the clamp area can be improved, the utilization rate of the clamp can be improved, the time required for the processing process can be reduced, and the problem of plate reference loss caused by excessive clamp replacement can be avoided.
[0104] The pre-set first grouping method in the embodiment of the present application is to group by dividing into three sections (which may also be the number of clamps + 1) and calculate the clamp position.
[0105] Calculate the distance from both ends of the clamp to the nearest tool, and use this to calculate the coordinates of the split point. Traverse each processing model, and the clamps that need to be avoided are based on the coordinates of the clamp avoidance area, and the clamps that do not need to be avoided are based on the clamps of the processing model. They are divided into three groups according to the pre-set second grouping method (i.e., based on the maximum value of the clamp coordinates and the minimum value of the clamp coordinates), namely the second grouping (including large value group, middle group, and small value group).
[0106] Then calculate the common clamp position of the second group. If it cannot be obtained, obtain the common clamp position according to the two-end method.
[0107] Further, the step of obtaining the common clamp position according to the two-terminal method comprises:
[0108] Traversing the processing model set, and determining whether the processing model in the processing model set needs to avoid the clamp;
[0109] If so, the corresponding processing models are combined into a set that needs to be avoided;
[0110] If not, the corresponding processing models are combined into a set that does not need to be avoided;
[0111] Traverse the set that needs to be avoided, group them according to the relationship between the clamp avoidance area and the center point of the plate, and obtain the third group;
[0112] A common clamp position is obtained based on the third grouping and the no-avoidance set.
[0113] In the above implementation process, the two-end method can quickly and accurately obtain the common clamp position, realize the rapid distinction between the area that needs to be avoided and the area that does not need to be avoided, make the error of replacing the clamp smaller, and provide more convenience for processing.
[0114] The clamp position is calculated according to the two-end method, divided by the center of the plate, and the processing model is traversed. Depending on whether the clamp needs to be avoided, it is divided into two groups, namely the avoidance set and the non-avoidance set.
[0115] The set that needs to be avoided is traversed and divided into the third group (including a large value group, a middle group, and a small value group) according to the relationship between the avoidance range of the clamp and the center point of the plate.
[0116] The large value group and the small value group calculate the common clamp position according to the S3 method respectively, and there is no need to calculate the common clamp position together with the avoidance set and the middle group.
[0117] Furthermore, S5 includes:
[0118] Dividing the middle groups in the plurality of groups into a first middle group and a second middle group according to the relationship between the center point of the plate and the position of the processing model;
[0119] The plurality of groups including the first intermediate group and the second intermediate group are sorted to obtain a processing model sequence.
[0120] In the above implementation process, by sorting multiple groups to generate a processing model sequence, the optimal clamp changing method can be obtained, the efficient use of the clamp can be achieved, the utilization rate of the plate can be improved and the waste rate can be reduced.
[0121] According to the relationship between the center point of the plate and the position of the processing model, the intermediate group is divided into two groups, namely the first intermediate group and the second intermediate group.
[0122] The processing models in the four groups (large group, first intermediate group, second intermediate group, and small group) are sorted by TSP using a greedy algorithm.
[0123] The four groups are arranged in ascending or descending order in the X direction according to their initial positions, and finally arranged into a processing model sequence.
[0124] Furthermore, S6 includes:
[0125] The processing model sequence is traversed, and the clamp positions of adjacent processing models in the processing model sequence are adjusted to obtain the target processing program.
[0126] In the above implementation process, by adjusting the clamp positions of adjacent processing models in the processing model sequence, the shortest processing path can be achieved, the processing efficiency can be significantly improved, and the processing flow can be improved.
[0127] The clamp position calculation of the existing processing model sequence is optimized again, and the clamp position of the local adjacent model is adjusted.
[0128] Traverse the sequence and try to use the clamp position of the previous model; traverse the sequence and try to use the clamp position of the next model; traverse the sequence and try to use the clamp position of the previous model. Finally, generate the corresponding processing program according to the processing model sequence order and the clamp position of each model.
[0129] The present application realizes a method for optimizing the processing efficiency of a universal six-sided drill, and improves the processing efficiency by combining the calculation of the optimal clamp changing method with the shortest path.
[0130] Embodiment 2
[0131] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, a processing optimization device for a CNC six-sided drill is provided below, such as Figure 2 As shown, the device comprises:
[0132] An acquisition module 1 is used to acquire the processing data of the CNC six-sided drill;
[0133] Construction module 2, used to construct a processing model set according to the data to be processed;
[0134] A data acquisition module 3 is used to obtain a common clamp position of a set of processing models;
[0135] A grouping module 4 is used to group the processing model set according to the common clamp position to obtain multiple groups;
[0136] A sorting module 5 is used to sort the multiple groups to obtain a processing model sequence;
[0137] The optimization module 6 is used to optimize the machining program according to the machining model sequence.
[0138] In the above implementation process, the processing model set is grouped, sorted and then optimized according to the common clamp position, which can improve the processing efficiency and processing accuracy, meet various complex processing requirements, and eliminate the need for frequent replacement of clamps. It can improve the utilization rate of plate materials, reduce the cost of use, and reduce the use of manpower and material resources.
[0139] Furthermore, the data acquisition module 3 is also used for:
[0140] Traversing the processing model set, obtaining the maximum value of the clamp coordinate and the minimum value of the clamp coordinate corresponding to each processing model in the processing model set;
[0141] Obtaining a processing model that needs to be avoided in a processing model set;
[0142] Obtaining a clamp avoidance area corresponding to the processing model that needs to be avoided;
[0143] The common clamp position is obtained according to the clamp avoidance area corresponding to the processing model that needs to be avoided and the maximum value and the minimum value of the clamp coordinates corresponding to the processing model that needs to be avoided.
[0144] In the above implementation process, the common clamp position is obtained according to the clamp avoidance area and clamp coordinates corresponding to the processing model that needs to be avoided, which can ensure that the clamp will not affect the processing path and improve the processing efficiency and accuracy.
[0145] Furthermore, the grouping module 4 is also used for:
[0146] Determine whether the common clamp position meets the preset standard;
[0147] If so, the processing model set is grouped according to the relationship between the processing model position and the clamp position to obtain multiple groups;
[0148] If not, the common clamp position is obtained according to the segmentation method.
[0149] In the above implementation process, when the common clamp position does not meet the preset standard, the common clamp position can be regained by a segmentation method to improve the accuracy of the common clamp position.
[0150] Furthermore, the grouping module 4 is also used for:
[0151] The processing model set is grouped according to a preset first grouping method to obtain a first group, wherein each processing model in the first group uses the same first clamping position;
[0152] Obtaining the coordinates of the split point according to the first clamp position;
[0153] Traverse each processing model in the first group according to the split point coordinates, and if there is a processing model that needs to avoid the clamp, obtain the corresponding avoidance clamp coordinates;
[0154] The remaining processing models that do not need to avoid the clamp are secondary grouped according to a preset second grouping method to obtain a second group;
[0155] Determining whether the common clamp position of the second group can be obtained;
[0156] If so, determining the common clamp position of the second group as the common clamp position;
[0157] If not, obtain the common clamp position according to the two-terminal method.
[0158] In the above implementation process, the number of times the clamp is replaced can be minimized, the processing efficiency of the clamp area can be improved, the utilization rate of the clamp can be improved, the time required for the processing process can be reduced, and the problem of plate reference loss caused by excessive clamp replacement can be avoided.
[0159] Furthermore, the grouping module 4 is also used for:
[0160] Traversing the processing model set, and determining whether the processing model in the processing model set needs to avoid the clamp;
[0161] If so, the corresponding processing models are combined into a set that needs to be avoided;
[0162] If not, the corresponding processing models are combined into a set that does not need to be avoided;
[0163] Traverse the set that needs to be avoided, group them according to the relationship between the avoidance area of the clamp and the center point of the plate, and obtain the third group;
[0164] A common clamp position is obtained based on the third grouping and the no-avoidance set.
[0165] In the above implementation process, the two-end method can quickly and accurately obtain the common clamp position, realize the rapid distinction between the area that needs to be avoided and the area that does not need to be avoided, make the error of replacing the clamp smaller, and provide more convenience for processing.
[0166] Furthermore, the sorting module 5 is also used for:
[0167] Dividing the middle groups in the plurality of groups into a first middle group and a second middle group according to the relationship between the center point of the plate and the position of the processing model;
[0168] The plurality of groups including the first intermediate group and the second intermediate group are sorted to obtain a processing model sequence.
[0169] In the above implementation process, by sorting multiple groups to generate a processing model sequence, the optimal clamp changing method can be obtained, the efficient use of the clamp can be achieved, the utilization rate of the plate can be improved and the waste rate can be reduced.
[0170] Furthermore, the optimization module 6 is also used for:
[0171] The processing model sequence is traversed, and the clamp positions of adjacent processing models in the processing model sequence are adjusted to obtain the target processing program.
[0172] In the above implementation process, by adjusting the clamp positions of adjacent processing models in the processing model sequence, the shortest processing path can be achieved, the processing efficiency can be significantly improved, and the processing flow can be improved.
[0173] The above-mentioned CNC six-side drilling processing optimization device can implement the method of the above-mentioned embodiment 1. The options in the above-mentioned embodiment 1 are also applicable to this embodiment and will not be described in detail here.
[0174] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.
[0175] Embodiment 3
[0176] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the processing optimization method of the CNC six-side drill of the first embodiment.
[0177] Optionally, the above-mentioned electronic device may be a server.
[0178] See also Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33 and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication between these components. The communication interface 32 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.
[0179] The processor 31 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 31 can also be any conventional processor, etc.
[0180] The memory 33 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 33 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 31, the device can execute the above-mentioned Figure 1 The method embodiment involves various steps.
[0181] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 33, the storage controller, the processor 31, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via a communication bus 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the device.
[0182] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0183] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0184] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the processing optimization method of the CNC six-side drilling of the first embodiment.
[0185] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.
[0186] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based device that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0187] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0188] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0189] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0190] The above is only a specific implementation of the present application, but the protection range of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical range disclosed in the present application, which should be included in the protection range of the present application. Therefore, the protection range of the present application should be based on the protection range of the claims.
[0191] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A processing optimization method for CNC six-sided drilling, characterized in that: The method comprises: Acquiring the to-be-processed data of the CNC six-side drill; Construct a processing model set according to the data to be processed; Obtaining a common clamp position of the set of processing models; Grouping the processing model set according to the common clamp position to obtain a plurality of groups; sorting the plurality of groups to obtain a processing model sequence; The machining program is optimized according to the machining model sequence.
2. The processing optimization method of CNC six-side drilling according to claim 1 is characterized in that: The step of obtaining the common clamp position of the processing model set comprises: Traversing the processing model set, obtaining the maximum value of the clamp coordinate and the minimum value of the clamp coordinate corresponding to each processing model in the processing model set; Obtaining a processing model that needs to be avoided from the processing model set; Obtaining a clamp avoidance area corresponding to the processing model that needs to be avoided; The common clamp position is obtained according to the clamp avoidance area corresponding to the processing model that needs to be avoided and the maximum value and the minimum value of the clamp coordinates corresponding to the processing model that needs to be avoided.
3. The processing optimization method of CNC six-side drilling according to claim 1 is characterized in that: The step of grouping the processing model set according to the common clamp position to obtain a plurality of groups comprises: Determining whether the common clamp position meets a preset standard; If yes, grouping the processing model set according to the relationship between the processing model position and the clamp position to obtain the plurality of groups; If not, the common clamp position is obtained according to the segmentation method.
4. The processing optimization method of CNC six-side drilling according to claim 3 is characterized in that: The step of obtaining the common clamp position according to the segmentation method comprises: Grouping the processing model set according to the preset first grouping method to obtain a first group, wherein each processing model in the first group uses the same first clamping position; Obtaining the coordinates of the splitting point according to the first clamp position; Traverse each processing model in the first group according to the split point coordinates, and if there is a processing model that needs to avoid the clamp, obtain the corresponding avoidance clamp coordinates; The remaining processing models that do not need to avoid the clamp are grouped again according to a preset second grouping method to obtain a second group; Determining whether the common clamp position of the second group can be obtained; If so, determining the common clamp position of the second group as the common clamp position; If not, the common clamp position is obtained according to the two-terminal method.
5. The processing optimization device for CNC six-side drilling according to claim 4 is characterized in that: The step of obtaining the common clamp position according to the two-terminal method comprises: Traversing the processing model set, and determining whether a processing model in the processing model set needs to avoid the clamp; If so, the corresponding processing models are combined into a set that needs to be avoided; If not, the corresponding processing models are combined into a set that does not need to be avoided; Traversing the set to be avoided, grouping them according to the relationship between the avoidance area of the clamp and the center point of the plate, to obtain a third group; The common clamp position is obtained according to the third grouping and the avoidance-free set.
6. The processing optimization device for CNC six-side drilling according to claim 1 is characterized in that: The step of sorting the multiple groups to obtain a processing model sequence includes: Dividing the middle groups in the plurality of groups into a first middle group and a second middle group according to the relationship between the center point of the plate and the position of the processing model; The plurality of groups including the first intermediate group and the second intermediate group are sorted to obtain the processing model sequence.
7. The processing optimization device for CNC six-side drilling according to claim 1 is characterized in that: The step of optimizing the machining program according to the machining model sequence comprises: The processing model sequence is traversed, and the clamping positions of adjacent processing models in the processing model sequence are adjusted to obtain a target processing program.
8. A processing optimization device for CNC six-sided drilling, characterized in that: The device comprises: An acquisition module, used for acquiring the to-be-processed data of the CNC six-side drill; A construction module, used for constructing a processing model set according to the data to be processed; A data acquisition module, used for obtaining a common clamp position of the processing model set; A grouping module, used for grouping the processing model set according to the common clamp position to obtain a plurality of groups; A sorting module, used for sorting the plurality of groups to obtain a processing model sequence; The optimization module is used to optimize the machining program according to the machining model sequence.
9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the processing optimization method of the CNC six-side drilling according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The computer program is stored therein, and when the computer program is executed by a processor, the processing optimization method of the CNC six-side drilling as described in any one of claims 1 to 7 is implemented.