A method, device, equipment and storage medium for generating drill package tool layout
By obtaining the drilling coordinates and diameter, calculating the tool layout combination information and weights, and generating an optimized drill package tool layout, the problem of low drilling layout efficiency in the traditional method is solved, and the efficiency and quality of drilling processing are improved.
Patent Information
- Application Number
- CN202410796609.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In traditional drilling processes, drill bit layout relies on experience or manual optimization, resulting in low efficiency and difficulty in ensuring the best drilling layout, especially when facing a large number of different processing files.
By obtaining the drilling coordinates and diameters in multiple processing files, the tool layout combination information is determined, the combination weight is calculated, and an optimized drill package tool layout is generated, which is used to set appropriate tools on the drill package to improve drilling processing efficiency and quality.
It realizes intelligent analysis of batch processing files and appropriate tool layout settings, improves the efficiency and quality of drilling processing, and avoids the problems of manual optimization difficulties and low efficiency in traditional methods.
Smart Images

Figure CN118364661B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of production and processing technology, and in particular to a method, device, equipment and storage medium for generating a drill package tool layout. Background Art
[0002] With the development and widespread application of CNC technology, the accuracy and speed requirements of drilling processing are constantly improving, and how to optimize the layout of the drill bit has become a key issue.
[0003] In CNC drilling, the layout of the drill has a direct impact on the quality of drilling, processing efficiency and the service life of the drill. Traditional layout methods usually rely on experience or manual optimization. When faced with a large number of different processing files, manual optimization becomes difficult and inefficient, and it is difficult to ensure the best drilling layout.
[0004] In summary, the problems existing in the prior art need to be solved urgently. Summary of the invention
[0005] The present invention provides a method, device, equipment and storage medium for generating a drill package tool layout, so as to solve the defects in the prior art and optimize the drilling layout.
[0006] The present invention provides a method for generating a drill package tool layout, comprising:
[0007] Acquire a plurality of processing files, wherein the processing files include drilling coordinates and drilling diameters;
[0008] Determine tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter;
[0009] Determining a tool layout combination weight according to the tool layout combination information of the plurality of processing files;
[0010] A drill package tool layout is generated according to the tool layout combination weights, and the drill package tool layout is used to set the tools on the drill package.
[0011] According to a method for generating a drill package tool layout provided by the present invention, the step of determining the tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter specifically includes:
[0012] Traverse the drilling coordinates in the processing file to determine the drilling position relationship between the drilling coordinates and the drilling coordinates;
[0013] Determining tool layout combined coordinates according to the drilling position relationship;
[0014] Tool layout combination information is determined according to the tool combination coordinates and the drilling diameter.
[0015] According to a method for generating a drill package tool layout provided by the present invention, the step of determining the tool layout combined coordinates according to the drilling position relationship specifically includes:
[0016] Get the tool position relationship of the drill package;
[0017] Matching the drilling position relationship with the tool position relationship to determine the reference hole position coordinates;
[0018] According to the reference hole position coordinates, the tool layout combination coordinates are determined.
[0019] According to a method for generating a drill package tool layout provided by the present invention, the step of determining a tool layout combination weight according to the tool layout combination information of a plurality of processing files specifically comprises:
[0020] Determine the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination according to the tool layout combination information;
[0021] A weighted calculation is performed based on the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination to obtain a tool layout combination weight of each tool layout combination.
[0022] According to a method for generating a drill package tool layout provided by the present invention, the drill package tool layout is generated according to the tool layout combination weight, and the drill package tool layout is used to set the tools on the drill package.
[0023] sorting the tool layout combination weights of each tool layout combination;
[0024] According to the sorting results, the target tool layout combination is determined;
[0025] A drill package tool layout is generated according to the target tool layout combination.
[0026] According to a method for generating a drill package tool layout provided by the present invention, after the step of generating the drill package tool layout according to the tool layout combination weight, the generating method further includes:
[0027] Obtaining a baseline tool layout;
[0028] Determining a benchmark processing time according to the benchmark tool layout;
[0029] Determining an optimized processing time based on the drill package tool layout;
[0030] When the reference processing time is less than the optimized processing time, the drill tool layout is adjusted.
[0031] According to a method for generating a drill package tool layout provided by the present invention, the tools on the drill package are distributed in an L shape.
[0032] The present invention also provides a device for generating a drill package tool layout, comprising:
[0033] A file acquisition module, used to acquire multiple processing files, wherein the processing files include drilling coordinates and drilling diameters;
[0034] A combination determination module, used to determine tool layout combination information corresponding to a processing file according to the drilling coordinates and the drilling diameter;
[0035] A weight determination module, used to determine a tool layout combination weight according to the tool layout combination information of a plurality of processing files;
[0036] The layout generation module is used to generate a drill package tool layout according to the tool layout combination weight, and the drill package tool layout is used to set the tools on the drill package.
[0037] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for generating a drill package tool layout as described in any one of the above is implemented.
[0038] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for generating a drill package tool layout as described in any one of the above is implemented.
[0039] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for generating a drill package tool layout as described in any one of the above is implemented.
[0040] The present invention provides a method, device, equipment and storage medium for generating a drill package tool layout, which obtains multiple processing files, wherein the processing files include drilling coordinates and drilling diameters; determines the tool layout combination information corresponding to the processing files according to the drilling coordinates and the drilling diameters; determines the tool layout combination weight according to the tool layout combination information of the multiple processing files; generates a drill package tool layout according to the tool layout combination weight, and the drill package tool layout is used to set the tools on the drill package. The method can analyze batch processing files and generate a drill package tool layout, so that suitable tools can be installed on the drill package, thereby improving the efficiency and quality of drilling processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 It is a flow chart of a method for generating a drill package tool layout provided by the present invention;
[0043] Figure 2 It is a structural schematic diagram of the drill bag provided by the present invention;
[0044] Figure 3 It is a structural schematic diagram of the plate provided by the present invention;
[0045] Figure 4 It is one of the schematic diagrams of the tool layout combination provided by the present invention;
[0046] Figure 5 This is the second schematic diagram of the tool layout combination provided by the present invention;
[0047] Figure 6 This is the third schematic diagram of the tool layout combination provided by the present invention;
[0048] Figure 7 It is a structural schematic diagram of a device for generating a drill package tool layout provided by the present invention;
[0049] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] In the layout of CNC drilling tool packages, the arrangement of drill bits directly affects the quality, efficiency and life of drilling processing. Traditional layout methods usually rely on experience or manual optimization. Different processing files and too many processing files will make manual optimization difficult. This method is often inefficient and difficult to ensure the optimal drilling layout. Therefore, there is an urgent need for a method that can intelligently generate drill package tool layout to improve the efficiency and quality of drilling processing.
[0052] In order to solve the problems in the prior art, the present invention proposes a method for generating a drill package tool layout to realize the intelligent generation of the drill package tool layout. The generation of the drill package tool layout is described below. Figure 1 As shown, including but not limited to the following steps:
[0053] Step 110: Acquire multiple processing files, where the processing files include drilling coordinates and drilling diameters.
[0054] In step 110, multiple processing files need to be obtained. In this embodiment, there is no restriction on the acquisition channel of the processing files. The processing files can be directly generated by a local application, or obtained from other electronic devices and computer systems through a data transmission interface or remote communication transmission. After obtaining the processing files, it is necessary to extract the drilling data therein. The drilling data mainly reflects the specific information of the processing hole position, including drilling coordinates, drilling diameter, direction and depth, etc. Among them, the directions are mainly the six directions of the plate, which are usually represented by G54, G55, G56, G57, G58, and G59 in CNC processing.
[0055] Step 120: Determine tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter.
[0056] On the basis of step 110, step 120 needs to count the drilling combinations in the processing files, find out the drilling combinations of each processing file, and then count the drilling combinations of all processing files to obtain drilling combination information. Because the drilling and the tool are one-to-one corresponding, the drilling combination information is the tool layout combination information. The purpose of finding the drilling combination of the processing file is to process as many holes as possible at the same time. For example, assuming that there are drilling holes in processing file a, whose coordinates are a1 (0, 0, 0), a2 (0, 8, 0) and a3 (0, 16, 0), and there are drilling holes in processing file b, whose coordinates are b1 (8, 0, 0), b2 (8, 8, 0) and b3 (8, 16, 0), and a1 and b1 have the same diameter, a2 and b2 have the same diameter, and a3 and b3 have the same diameter, then it can be considered that the two processing files have the same drilling combination, and the difference is only that the specific coordinates of the processing are different. If this combination appears multiple times in multiple processing files, it can be considered a commonly used processing combination, and this combination can process multiple holes at the same time. Then, under the condition that all types of processing tools required for processing are available on the drill package (for example, if the processing file requires tools with diameters of 8, 10, and 12, then only three types of tools with diameters of 8, 10, and 12 are required on the drill package), tools can be set on the drill package according to the position relationship of "a1 (0, 0, 0), a2 (0, 8, 0), and a3 (0, 16, 0)", so that multiple holes can be processed at the same time when processing most processing files, thus saving time.
[0057] It is understandable that there may be multiple drilling combinations in each processing file, or there may be no combination.
[0058] Step 130: Determine a tool layout combination weight according to the tool layout combination information of a plurality of processing files.
[0059] In step 120, the drilling combinations in each processing file have been found, and these drilling combinations need to be counted in step 130. Specifically, the number of holes drilled in each drilling combination, the number of times the combination is matched, and the number of holes actually matched in the combination are counted. The more holes a combination has, the more holes can be processed at the same time; the more times the combination is matched and the more holes actually matched, both represent that there are more processing files in the processing file that follow this drilling arrangement. The difference between the two is that when a drilling combination contains another drilling combination, the number of holes actually matched by the included node combination can also be counted in the number of holes actually matched by the drilling, and the included nodes can be selected first.
[0060] Based on the statistically obtained data, a weighted calculation can be performed to obtain the tool layout combination weight. The higher the weight, the more drilling holes the combination contains and the more matching times.
[0061] These data can be represented by data structures. Specifically, the MatchContext structure represents the context of the matching process. This structure contains:
[0062] <1> .PriorityCount: used to count the tool combination weights that match the current drill package.
[0063] <2> .Combination matching combination times matchTimes: used to count the number of tool combinations that match the current drill package.
[0064] <3> . Remaining necessary tool diameter list remainingNecessaryTools: The diameters included in the file but not in the current drill package tools. Each time a combination is successfully matched, the diameters included in the list need to be removed. The purpose of this list is to ensure that the drill package contains all types of tools required for the processing file.
[0065] <4> . Remaining diameter-match combination mapping table remainingDiameterMatchMap: Each combination may contain different diameters. Extract each diameter and insert the combination into the corresponding diameter mapping list. For example, the combination is 8(0,0,0), 10(0,32,0), 12(0,64,0),
[0066] 8(32,64,0),10(64,64,0), then insert this combination into the combinations corresponding to the diameters 8, 10, and 12. Each time a matching combination is successful, the combination under the corresponding diameter is also deleted because the diameter has been added to the drill package.
[0067] <5> .Current drill package tool information currentToolInfo: contains the current drill package tool information and tool installation status.
[0068] Step 140: Generate a drill package tool layout according to the tool layout combination weights, wherein the drill package tool layout is used to set the tools on the drill package.
[0069] In step 140, the optimal combination needs to be selected. But before that, first determine whether there are multiple installable positions for the diameters in the remaining necessary diameter list in the current drill package. If there is only one installable position, install it directly; if there is no installable position, remove this diameter. At the same time, handle tool positions with aperture restrictions. For example, a 35mm tool can only be installed at position 12. When there is a 35mm hole, it can only be installed at position 12, and other positions are not allowed. At this time, first install some necessary tools that can only be installed in one position.
[0070] Next, the remaining diameter-matching combination mapping table remainingDiameterMatchMap is traversed to obtain two combinations, one is the combination with the largest weight among the necessary tools, and the other is the combination with the largest weight among all current combinations. Because the necessary tools need to be installed on the drill package first, if the necessary tools exist, the combination with the largest weight among the necessary tools is selected, and then the combination with the largest weight among all combinations is selected.
[0071] Loop through the tools in the current drill package tool information currentToolInfo to determine whether the first diameter of the combination can be installed at the current position. If it can be installed, start matching the remaining combination nodes from the first tool to determine whether the tool matches the matching nodes of the remaining combination in position. For example, for combination nodes 8 (0, 0, 0), 10 (0, 32, 0), the drill package position 1 can be installed with a tool with a diameter of 8. At this time, the position relationship between position 2 and position 1 is (0, 0, 0) and (0, 32, 0). This is determined by the structure of the drill package itself. For reference, Figure 2 . Therefore, the offset position between position 1 and position 2 is (0,32,0)-(0,0,0)=(0,32,0), and the relationship between the first and second holes in the drilling combination is also (0,32,0)-(0,0,0)=(0,32,0). The position relationship matches, and a tool with a diameter of 10 can be installed at position 2. At this time, it is considered that position 1 and position 2 match the combination. If all nodes are matched, the corresponding position tool in currentToolInfo is set to the corresponding diameter, the weight counter in the context is added to the current combination weight, the number of combination node matches +1, and the current combination is deleted from the remaining combinations.
[0072] Then, the weight of the current context is compared with the weight of the best context. If the weight of the current context is greater than the weight of the best context and the number of node matches of the combination is greater than or equal to the number of node matches of the best context, the best context is set as the current context. Next, the current context is copied, and the current context is used as a parameter to continue to execute from the step "determine whether there are multiple installable positions in the current drill package for the diameters in the remaining necessary diameter list" until no combination can be used. At this time, the optimal result is obtained when position 1 can be matched, but this is not necessarily the best. Here, the exhaustive method is used to rematch from position 2 until all positions have been tried, and the context with the largest weight count and the most node matches of the combination is obtained.
[0073] This method can generate a drill package tool layout. Preferably, when there are fewer combinations, there may be some positions where no tools are installed. The necessary tools can be sorted according to the matching times, and then filled into the positions where no tools are installed at once to obtain the final tool layout.
[0074] The present invention provides a method, device, equipment and storage medium for generating a drill package tool layout, which obtains multiple processing files, wherein the processing files include drilling coordinates and drilling diameters; determines the tool layout combination information corresponding to the processing files according to the drilling coordinates and the drilling diameters; determines the tool layout combination weight according to the tool layout combination information of the multiple processing files; generates a drill package tool layout according to the tool layout combination weight, and the drill package tool layout is used to set the tools on the drill package. The method can analyze batch processing files and generate a drill package tool layout, so that suitable tools can be installed on the drill package, thereby improving the efficiency and quality of drilling processing.
[0075] As a further optional embodiment, the step of determining the tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter specifically includes:
[0076] Traverse the drilling coordinates in the processing file to determine the drilling position relationship between the drilling coordinates and the drilling coordinates;
[0077] Determining tool layout combined coordinates according to the drilling position relationship;
[0078] Tool layout combination information is determined according to the tool combination coordinates and the drilling diameter.
[0079] As a further optional embodiment, the step of determining the tool layout combined coordinates according to the drilling position relationship specifically includes:
[0080] Get the tool position relationship of the drill package;
[0081] Matching the drilling position relationship with the tool position relationship to determine the reference hole position coordinates;
[0082] According to the reference hole position coordinates, the tool layout combination coordinates are determined.
[0083] In this embodiment, it is necessary to determine the tool layout combination information corresponding to the processing file according to the drilling coordinates and drilling diameter of the processing file. Specifically, the drilling diameter of the processing file is first set to the default value. Here, the drilling position relationship of the processing file is first determined, such as Figure 3 As shown. The drill package structure is as follows Figure 2 As shown in the figure, the circles in the figure represent the positions where the tools can be installed. Here, the distance between each tool is 32 as an example. The tools in the drill bag are named, starting from the upper right circle for tool No. 1, the 5 circles from the upper right to the lower right are tools No. 1-5, and the 8 circles from the lower right to the lower left are tools No. 5-12. The greedy algorithm can be used to obtain the following Figure 4 , Figure 5 and Figure 6 There are three combinations shown: Combination 1: (0,0,0), (0,32,0), (0,64,0), (32,64,0), (64,64,0); Combination 2: (0,0,0), (128,0,0); Combination 3: (0,0,0), (0,32,0), (0,64,0).
[0084] Now let's explain how to get the combination: For combination 1, first Figure 7 The drill hole in the upper right corner is used as the reference point, and the reference point is matched with the drill tool No. 1 in the drill package. Then other positions can only match with tools No. 2 and No. 3, which means that 3 drill holes can be processed at the same time. Similarly, when matching with tool No. 2, only tools No. 3 and No. 4 can be matched, which also means that 3 drill holes can be processed at the same time. But when traversing to tool No. 3, it can match with tools No. 4, No. 5, No. 6 and No. 7, such as Figure 4 As shown in the figure, the gray circle means that the drilling hole and the tool position are matched. In other words, 5 drilling holes can be processed at the same time. Then, each drilling hole is matched with the drill package as a reference point to obtain the combination containing the most drilling holes. However, at this time, only the tool layout combination coordinates are obtained. The tool diameter corresponding to the coordinates needs to be added to obtain the tool layout combination information of the processing file.
[0085] The tool diameter and hole diameter are set to the same value because the condition for matching the tool with the hole is that the tool diameter and the hole diameter are the same. The matching rule here uses a greedy algorithm. When matching a tool by looping through the holes, the more holes other tools can match at this time, it is considered that when the drill package is using this tool to process this hole, other tools can also process other holes at the same time. The more matches, the more holes can be processed at the same time. This is the local optimal matching method.
[0086] As a further optional embodiment, the step of determining the tool layout combination weight according to the tool layout combination information of the plurality of processing files specifically includes:
[0087] Determine the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination according to the tool layout combination information;
[0088] A weighted calculation is performed based on the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination to obtain a tool layout combination weight of each tool layout combination.
[0089] In this embodiment, the combination obtained is shown in Table 1-1 below. The main statistics are the number of holes drilled in each combination (a), the number of times the combination is matched (b), and the number of holes actually matched by the drilling (c). Next, the weight priority = k1*a + k2*b + k3*c is calculated. k1, k2, and k3 are coefficients that can be adjusted according to the situation. Here, the node number coefficient k1 is set to 1000, the matching number coefficient k2 is set to 100, and the actual matching hole number k3 is set to 10.
[0090] For combination 1, because there are 5 drill holes, a=5, because there is only one processing file, it is only matched once, b=1, and then for combination
[0091] “8(0,0,0),10(0,32,0),12(0,64,0)” appears in both combination 1 and combination 3. Therefore, for combination 1, the actual matched drilling holes need to add the number of 3 holes in the combination “8(0,0,0),10(0,32,0),12(0,64,0)”, so c=5+3.
[0092] Table 1-1
[0093]
[0094] As a further optional embodiment, the step of generating a drill package tool layout according to the tool layout combination weight, wherein the drill package tool layout is used to set the tools on the drill package,
[0095] sorting the tool layout combination weights of each tool layout combination;
[0096] According to the sorting results, the target tool layout combination is determined;
[0097] A drill package tool layout is generated according to the target tool layout combination.
[0098] Specifically, the tool layout combination weights need to be sorted first. In this embodiment, there are two sorting results, one is the combination with the largest weight among the necessary tools, and the other is the combination with the largest weight among all current combinations. Because the necessary tools need to be installed on the drill package first, if there are necessary tools, the combination with the largest weight among the necessary tools is selected, and then the combination with the largest weight among all combinations is selected.
[0099] For example, based on Table 1-2, the first choice here is combination 1, because combination 1 has the largest weight. The combination is matched from the first position. If the current position and the positions of other node offsets in the combination can be installed in the corresponding positions, the match is considered successful. Here, according to the calculation, combination 1 can only successfully match one situation, so tools with diameters of 8, 10, 12, 8, and 10 can be directly installed in the drill bag positions of tools No. 3, 4, 5, 6, and 7. Next, the second combination 3 with the highest weight will be selected. Since combination 1 has already installed positions 3, 4, 5, 6, and 7, the original three matching methods (such as Figure 6 As shown in the figure, only the third position 1, 2, 3 can be used to install the tool. Finally, install the last combination. There are two installation positions (such as Figure 5 As shown in the figure, since the weight statistics of each weight combination are the same and the number of combinations is the same, but the first one overlaps with combination 1, which can reduce the consumption of one position, so the first one is selected first. The remaining uninstalled positions are sorted and installed according to the maximum number of single diameter matches, and finally a tool layout with the largest weight and the largest number of combinations is obtained.
[0100] Table 1-2
[0101]
[0102] As a further optional embodiment, after the step of generating the drill package tool layout according to the tool layout combination weight, the generating method further includes:
[0103] Obtaining a baseline tool layout;
[0104] Determining a benchmark processing time according to the benchmark tool layout;
[0105] Determining an optimized processing time based on the drill package tool layout;
[0106] When the reference processing time is less than the optimized processing time, the drill tool layout is adjusted.
[0107] Specifically, the processing files are generated with the optimized layout and the baseline layout, and the processing time is predicted according to the tool speed and the configuration of the equipment. The drilling of the drill package mainly involves multi-axis linear motion. The following are the steps for predicting the processing time of multi-axis linear motion:
[0108] <s1>.Calculate the distance , Represents the distance moved by the a-axis. Represents the distance moved along the z-axis.
[0109] <s2>.Calculate the maximum speed that each axis can reach , Represents the speed of the axis movement, Represents the distance the axis moves. Take the smallest speed from all axes as the total speed .
[0110] <s3>.Through the distance , , acceleration time acc, deceleration time dec calculate the movement time. First calculate the minimum distance required to move to the maximum speed , if the minimum distance is less than the total distance moved , it cannot accelerate to the maximum speed. According to the area formula of the triangle, we can know , jerk , reduce speed ,get , substituting into the area formula we get , thus we get , the processing time can also be calculated If the minimum distance is greater than or equal to the total distance , processing time .
[0111] It should be noted that when predicting the processing time, the feed speed of all tools needs to be set to the same value in order to predict the processing efficiency.
[0112] In the processing time analysis, compare the processing time of each layout according to the processing file, and check the simulation steps to understand the reasons for the differences. If the processing efficiency is not optimized, you can check the files with longer processing time, determine the reasons for the longer processing time based on the simulation, and then regenerate by manually adjusting the layout or adjusting the weight coefficient to obtain a new optimized layout.
[0113] As a further optional embodiment, the cutters on the drill kit are distributed in an L shape.
[0114] In this embodiment, the tools on the drill package are arranged in an L shape, such as Figure 2 shown.
[0115] In some optional embodiments, for the case where the tool position has an aperture restriction, for example, a 35mm tool can only be installed at position No. 12, in the optimized drill package layout interface, you can enter the configured optimized drill package interface, in which you can view all the node information and tool requirements in the file, and then specify fixed tools for some tool positions in the drill package, and fix tool No. 12 to a tool with a diameter of 35, so that the current tool will not be changed during the optimization process.
[0116] The following is a description of the device for generating a drill tool layout provided by the present invention. Figure 7 As shown, the device for generating a drill package tool layout described below and the method for generating a drill package tool layout described above can refer to each other.
[0117] A device for generating a drill package tool layout, comprising:
[0118] A file acquisition module 710, used to acquire a plurality of processing files, wherein the processing files include drilling coordinates and drilling diameters;
[0119] A combination determination module 720, configured to determine tool layout combination information corresponding to a processing file according to the drilling coordinates and the drilling diameter;
[0120] A weight determination module 730, configured to determine a tool layout combination weight according to the tool layout combination information of a plurality of processing files;
[0121] The layout generation module 740 is used to generate a drill package tool layout according to the tool layout combination weights, and the drill package tool layout is used to set the tools on the drill package.
[0122] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communications interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the method for generating the drill package tool layout, the method comprising:
[0123] Acquire a plurality of processing files, wherein the processing files include drilling coordinates and drilling diameters;
[0124] Determine tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter;
[0125] Determining a tool layout combination weight according to the tool layout combination information of the plurality of processing files;
[0126] A drill package tool layout is generated according to the tool layout combination weights, and the drill package tool layout is used to set the tools on the drill package.
[0127] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. 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 codes.
[0128] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the method for generating a drill package tool layout provided by the above methods, the method comprising:
[0129] Acquire a plurality of processing files, wherein the processing files include drilling coordinates and drilling diameters;
[0130] Determine tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter;
[0131] Determining a tool layout combination weight according to the tool layout combination information of the plurality of processing files;
[0132] A drill package tool layout is generated according to the tool layout combination weights, and the drill package tool layout is used to set the tools on the drill package.
[0133] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the method for generating a drill tool layout provided by the above methods, the method comprising:
[0134] Acquire a plurality of processing files, wherein the processing files include drilling coordinates and drilling diameters;
[0135] Determine tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter;
[0136] Determining a tool layout combination weight according to the tool layout combination information of the plurality of processing files;
[0137] A drill package tool layout is generated according to the tool layout combination weights, and the drill package tool layout is used to set the tools on the drill package.
[0138] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a drill package tool layout, characterized in that: include: Acquire a plurality of processing files, wherein the processing files include drilling coordinates and drilling diameters; Determine tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter; Determining a tool layout combination weight according to the tool layout combination information of the plurality of processing files; Generating a drill package tool layout according to the tool layout combination weight, wherein the drill package tool layout is used to set the tools on the drill package; The step of determining the tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter specifically includes: Traverse the drilling coordinates in the processing file to determine the drilling position relationship between the drilling coordinates and the drilling coordinates; Determining tool layout combined coordinates according to the drilling position relationship; Determining tool layout combination information according to the tool combination coordinates and the drilling diameter; The step of determining the tool layout combination weight according to the tool layout combination information of the plurality of processing files specifically includes: Determine the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination according to the tool layout combination information; A weighted calculation is performed based on the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination to obtain a tool layout combination weight of each tool layout combination.
2. The method for generating a drill package tool layout according to claim 1, characterized in that: The step of determining the tool layout combined coordinates according to the drilling position relationship specifically includes: Get the tool position relationship of the drill package; Matching the drilling position relationship with the tool position relationship to determine the reference hole position coordinates; According to the reference hole position coordinates, the tool layout combination coordinates are determined.
3. The method for generating a drill package tool layout according to claim 1, characterized in that: The step of generating a drill package tool layout according to the tool layout combination weight, wherein the drill package tool layout is used to set the tools on the drill package, sorting the tool layout combination weights of each tool layout combination; According to the sorting results, the target tool layout combination is determined; A drill package tool layout is generated according to the target tool layout combination.
4. The method for generating a drill package tool layout according to claim 3, characterized in that: After the step of generating a drill package tool layout according to the tool layout combination weight, the generating method further comprises: Obtaining a baseline tool layout; Determining a benchmark processing time according to the benchmark tool layout; Determining an optimized processing time based on the drill package tool layout; When the reference processing time is less than the optimized processing time, the drill tool layout is adjusted.
5. The method for generating a drill package tool layout according to claim 1, characterized in that: The cutters on the drill package are distributed in an L shape.
6. A device for generating a drill package tool layout, characterized in that: include: A file acquisition module, used to acquire multiple processing files, wherein the processing files include drilling coordinates and drilling diameters; A combination determination module, used to determine the tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter; A weight determination module, used to determine a tool layout combination weight according to the tool layout combination information of a plurality of processing files; A layout generation module, used for generating a drill package tool layout according to the tool layout combination weight, wherein the drill package tool layout is used for setting the tools on the drill package; The step of determining the tool layout combination information corresponding to the processing file according to the drilling coordinates and the drilling diameter specifically includes: Traverse the drilling coordinates in the processing file to determine the drilling position relationship between the drilling coordinates and the drilling coordinates; Determining tool layout combined coordinates according to the drilling position relationship; Determining tool layout combination information according to the tool combination coordinates and the drilling diameter; The step of determining the tool layout combination weight according to the tool layout combination information of the plurality of processing files specifically includes: Determine the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination according to the tool layout combination information; A weighted calculation is performed based on the matching times of each tool layout combination, the number of drill holes included in each tool layout combination, and the number of drill holes actually matched by each tool layout combination to obtain a tool layout combination weight of each tool layout combination.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for generating a drill package tool layout as described in any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a drill package tool layout according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
All-section rock tunneling machine cutter layout design optimization method
CN101086208A
Numerical control cutter intelligent selecting method providing self evaluation
CN101694572A
Processing craft data evaluating method and device
CN102521454A
Energy-consumption-oriented cavity numerical control milling cutter combination optimization method
CN105785912A
Method and device for determining working procedure of numerical control multi-row drill, electronic equipment and storage medium
CN113393134A
