Drilling method and device, computer equipment, readable storage medium and program product
By automatically determining and correcting the theoretical position and shrinkage ratio of the target hole of the PCB multi-layer board, the problem of inaccurate accuracy in manual drilling technology is solved, and higher drilling accuracy and lower error rate are achieved.
Patent Information
- Application Number
- CN202510335643.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-07-08
AI Technical Summary
In the manufacturing of PCB multi-layer boards, the existing drilling technology is limited by the staff's energy and experience due to the inaccurate drilling accuracy and the drilling data problem.
By automatically determining the positioning method of the part to be processed, the theoretical position information of multiple target holes and the expansion and shrinkage ratio of the target hole are obtained, and the actual drilling position information is obtained, manual intervention is reduced, and the drilling accuracy is improved.
It realizes the accurate determination of the theoretical position and expansion ratio of the target hole under any positioning method, reduces manual correction errors, improves the accuracy of drilling and reduces the error rate.
Smart Images

Figure CN120269644A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent manufacturing technology, and in particular, to a drilling method, device, computer device, readable storage medium, and program product. Background Art
[0002] Drilling refers to the operation of machining holes in solid materials. With the development of intelligent manufacturing, drilling technology has become a hot research topic. Taking the drilling of PCB (Printed Circuit Board) multi-layer boards as an example, in the manufacturing of PCB multi-layer boards, affected by the materials of the PCB multi-layer boards and the pressing heat effect, the internal and external layer circuits and hole rings of the multi-layer boards have expanded and contracted before drilling, and the offset has occurred from the design values. If drilling production is directly carried out using the design values, off-hole will occur.
[0003] Currently, still taking the drilling of PCB multi-layer boards as an example, in order to ensure the production accuracy of the multi-layer boards after expansion and contraction during drilling, PCB manufacturing enterprises will manually extract the expansion and contraction values of the multi-layer boards, convert the expansion and contraction values of the multi-layer boards into an expansion and contraction coefficient, and use PCB manufacturing software to compensate the expansion and contraction coefficient into the design standard drilling data to generate optimized new drilling data, and provide the optimized new drilling data to the drilling machine for drilling.
[0004] However, the drilling process of the above drilling method is cumbersome and subject to manual control. The extraction of the expansion and contraction values of the multi-layer boards and the optimization process of the drilling data are limited by the energy and experience of the staff. If the staff lacks energy or experience, it is very easy to cause errors in the drilling process. Therefore, the current drilling method has the problem of insufficient accuracy. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide an accurate drilling method, device, computer device, computer-readable storage medium, and computer program product.
[0006] In a first aspect, the present application provides a drilling method, including:
[0007] Determine the theoretical position information of multiple target holes in the workpiece to be processed and the target hole expansion and contraction ratio of each target hole according to the positioning method of the workpiece to be processed;
[0008] According to the target hole expansion and contraction ratio of each target hole, correct the theoretical position information of the multiple target holes respectively to obtain the actual drilling position information;
[0009] Perform a drilling operation on the workpiece to be processed based on all the actual drilling position information.
[0010] In one embodiment, the multiple target holes include a first target hole and a second target hole. The workpiece to be processed is placed on the workbench of the drilling machine. The workbench of the drilling machine is provided with a clamping assembly, and a first electrically insulating block and a second electrically insulating block are arranged on the clamping assembly. The first electrically insulating block and the second electrically insulating block are respectively arranged on the first side and the second side of the workbench. The positioning method includes:
[0011] A first positioning pin is arranged on the first electrically insulating block, and a second positioning pin is arranged on the second electrically insulating block;
[0012] The first positioning pin is matched with the first target hole, and the second positioning pin is matched with the second target hole to complete the positioning of the workpiece to be processed.
[0013] In one embodiment, according to the target hole expansion and contraction ratios of each target hole, the theoretical position information of the multiple target holes is respectively corrected to obtain the actual drilling position information, including:
[0014] Obtain the first zero-point theoretical position information and the first center theoretical position information of the workpiece to be processed;
[0015] Based on the first center theoretical position information, and the target hole expansion and contraction ratios of the first target hole and the second target hole, the theoretical position information of the first target hole and the second target hole and the first zero-point theoretical position information are respectively corrected to obtain the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole and the first initial zero-point theoretical position information;
[0016] Taking any one of the first target hole and the second target hole as the rotation fulcrum, and based on the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole, the theoretical position information of the first target hole and the theoretical position information of the second target hole, generate the rotation angle information of the rotation fulcrum;
[0017] Obtain the first position deviation between the preset first assembly position information of the clamping assembly and the first initial zero-point theoretical position information, and based on the first position deviation, process the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole respectively to obtain the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole;
[0018] Taking the rotation fulcrum as the reference point, use the rotation angle information to process the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole to obtain the actual drilling position information of the first target hole and the actual drilling position information of the second target hole.
[0019] In one embodiment, the multiple target holes include a third target hole and a fourth target hole. The workpiece to be processed is placed on the workbench of the drilling machine. An electrically insulating board is arranged on the workbench. The positioning method includes:
[0020] Set a third positioning pin and a fourth positioning pin at any two points on the bakelite board respectively;
[0021] The positioning of the workpiece to be processed is completed by the cooperation of the third positioning pin and the third target hole and the cooperation of the fourth positioning pin and the fourth target hole.
[0022] In one embodiment, according to the target hole expansion and contraction ratios of each target hole, the theoretical position information of multiple target holes is respectively corrected to obtain the actual drilling position information, including:
[0023] Obtain the second center theoretical position information of the workpiece to be processed;
[0024] According to the second center theoretical position information, and the target hole expansion and contraction ratios of the third target hole and the fourth target hole, the theoretical position information of the third target hole and the fourth target hole is respectively corrected to obtain the actual drilling position information of the third target hole and the actual drilling position information of the fourth target hole.
[0025] In one embodiment, multiple target holes include a fifth target hole and a sixth target hole. The workpiece to be processed is configured to be placed on the workbench of the drilling machine. The workbench of the drilling machine is provided with a clamping assembly, and the clamping assembly is provided with a first clamping hole and a second clamping hole. The positioning method includes:
[0026] Set a fifth positioning pin on the first clamping hole and a sixth positioning pin on the second clamping hole;
[0027] The positioning of the workpiece to be processed is completed by the cooperation of the fifth positioning pin and the fifth target hole and the cooperation of the sixth positioning pin and the sixth target hole.
[0028] In one embodiment, according to the target hole expansion and contraction ratios of each target hole, the theoretical position information of multiple target holes is respectively corrected to obtain the actual drilling position information, including:
[0029] Obtain the second zero-point theoretical position information and the third center theoretical position information of the workpiece to be processed;
[0030] Based on the third center theoretical position information, and the target hole expansion and contraction ratios of the fifth target hole and the sixth target hole, the theoretical position information of the fifth target hole and the sixth target hole and the second zero-point theoretical position information are respectively corrected;
[0031] Obtain the second position deviation between the preset second component position information of the clamping assembly and the corrected second zero-point theoretical position information, and based on the second position deviation, process the corrected theoretical position information of the fifth target hole and the sixth target hole respectively to obtain the actual drilling position information of the fifth target hole and the actual drilling position information of the sixth target hole.
[0032] In one embodiment, determining the expansion and contraction ratios of the target holes in the workpiece to be processed includes:
[0033] Obtaining the theoretical spacing information and the actual spacing information between each target hole in the workpiece to be processed and the corresponding target holes respectively;
[0034] Generating the expansion and contraction ratios of the target holes according to the theoretical spacing information and the actual spacing information corresponding to each target hole respectively.
[0035] In one embodiment, generating the expansion and contraction ratios of the target holes according to the theoretical spacing information and the actual spacing information corresponding to each target hole respectively further includes:
[0036] Classifying each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole respectively;
[0037] Generating the expansion and contraction ratio of the type of target holes based on the theoretical spacing information and the actual spacing information corresponding to multiple target holes belonging to the same type, and using the expansion and contraction ratio of the type of target holes as the expansion and contraction ratios of the multiple target holes belonging to the same type.
[0038] In one embodiment, classifying each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole respectively includes:
[0039] Generating the target error level corresponding to each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole respectively, and obtaining the type mapping relationship between the error level and the target hole type;
[0040] Generating the target hole type of each target hole based on the target error level and the type mapping relationship corresponding to each target hole respectively;
[0041] Classifying each target hole based on the target hole type of each target hole.
[0042] In one embodiment, the theoretical spacing information includes the theoretical spacing information in the first direction and the theoretical spacing information in the second direction, the actual spacing information includes the actual spacing information in the first direction and the actual spacing information in the second direction, the first direction and the second direction are perpendicular, and generating the expansion and contraction ratios of the target holes according to the theoretical spacing information and the actual spacing information corresponding to each target hole respectively includes:
[0043] For each target hole, generating the first expansion and contraction ratio of the target hole in the first direction according to the theoretical spacing information and the actual spacing information in the first direction;
[0044] Generating the second expansion and contraction ratio of the target hole in the second direction according to the theoretical spacing information and the actual spacing information in the second direction;
[0045] Combine the expansion and contraction ratio of the first target hole and the expansion and contraction ratio of the second target hole to obtain the expansion and contraction ratio of the target hole of the target hole.
[0046] In a second aspect, the present application further provides a drilling device, including:
[0047] A data acquisition module, configured to determine the theoretical position information of a plurality of target holes in a workpiece to be processed and the expansion and contraction ratio of each target hole according to the positioning method of the workpiece to be processed;
[0048] A position correction module, configured to respectively correct the theoretical position information of the target holes for centering the target holes according to the expansion and contraction ratio of each target hole to obtain the actual drilling position information;
[0049] A drilling module, configured to perform a drilling operation on the workpiece to be processed based on all the actual drilling position information.
[0050] In a third aspect, the present application further provides a computer device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0051] Determine the theoretical position information of a plurality of target holes in a workpiece to be processed and the expansion and contraction ratio of each target hole according to the positioning method of the workpiece to be processed;
[0052] Respectively correct the theoretical position information of the plurality of target holes according to the expansion and contraction ratio of each target hole to obtain the actual drilling position information;
[0053] Perform a drilling operation on the workpiece to be processed based on all the actual drilling position information.
[0054] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0055] Determine the theoretical position information of a plurality of target holes in a workpiece to be processed and the expansion and contraction ratio of each target hole according to the positioning method of the workpiece to be processed;
[0056] Respectively correct the theoretical position information of the plurality of target holes according to the expansion and contraction ratio of each target hole to obtain the actual drilling position information;
[0057] Perform a drilling operation on the workpiece to be processed based on all the actual drilling position information.
[0058] In a fifth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0059] According to the positioning method of the workpiece to be processed, determine the theoretical position information of multiple target holes in the workpiece to be processed and the expansion and contraction ratio of each target hole;
[0060] According to the expansion and contraction ratio of each target hole, correct the theoretical position information of multiple target holes respectively to obtain the actual drilling position information;
[0061] Perform a drilling operation on the workpiece to be processed based on all the actual drilling position information.
[0062] The above-mentioned drilling method, device, computer device, computer-readable storage medium and computer program product are different from the manual drilling technology in the prior art. The acquisition process of the theoretical position information of multiple target holes and the expansion and contraction ratio of each target hole is limited by the energy and experience of the staff. In the case of insufficient energy and experience, it is difficult to comprehensively and accurately obtain the theoretical position information of multiple target holes and the expansion and contraction ratio of each target hole. However, in this application, the theoretical position information of multiple target holes and the expansion and contraction ratio of each target hole are automatically determined based on the positioning method of the workpiece to be processed. That is to say, in the case of positioning the workpiece to be processed by any method, the theoretical position information of multiple target holes in the workpiece to be processed and the expansion and contraction ratio of each target hole can be accurately determined. Furthermore, based on the expansion and contraction ratio of each target hole, the theoretical position information of multiple target holes can be automatically corrected respectively, and the correction process is not affected by manual correction errors, and the obtained actual drilling position information is more accurate; further, by directly docking the actual drilling position information with the drilling operation, the manual intervention and error rate are reduced. At this time, accurate drilling can be performed on the workpiece to be processed based on the actual drilling position information. Description of the Drawings
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0064] Figure 1 It is an application environment diagram of the drilling method in an embodiment;
[0065] Figure 2 It is a flow schematic diagram of the drilling method in an embodiment;
[0066] Figure 3 It is a flow schematic diagram of the drilling method in another embodiment;
[0067] Figure 4 It is a schematic diagram of the theoretical angle β between the first target hole and the second target hole in a specific application embodiment;
[0068] Figure 5 Schematic diagram of the actual angle β' between the first target hole and the second target hole in a specific application embodiment;
[0069] Figure 6 Schematic diagram of the positions of the third target hole A, the fourth target hole B and the center point in a specific application embodiment;
[0070] Figure 7 Schematic diagram of the theoretical spacing information and the actual spacing information between a certain target hole and its corresponding target hole in a specific application embodiment;
[0071] Figure 8 Structural block diagram of a drilling device in an embodiment;
[0072] Figure 9 Internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0073] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are used to explain the present application and are not used to limit the present application.
[0074] With the development of intelligent manufacturing, drilling technology has become a hot research topic. Drilling refers to the operation of processing holes on solid materials with a drill bit. Taking the drilling of PCB multi-layer boards as an example, in the manufacturing of PCB multi-layer boards, affected by the heat effect of pressing, the internal and external circuits and hole rings of the multi-layer boards will expand thermally during high-temperature pressing and contract when the board material cools, resulting in local or overall inconsistencies between the internal and external circuits and hole rings of the multi-layer boards after pressing and the original design standards, showing a certain proportion of expansion or contraction. However, when drilling multi-layer boards, fixed target holes are required for positioning, and then, based on the set drilling data, precise drilling processing is carried out with the positioned target holes as the reference. When the internal and external circuits and hole rings of the multi-layer boards to be drilled expand and contract and cannot correspond one by one to the original designed drilling data, if the design values are directly used for drilling production, drilling processing will result in off-hole at this time.
[0075] To ensure the production accuracy of the multi-layer board after expansion and contraction during drilling, PCB manufacturing enterprises will manually extract the expansion and contraction values of the multi-layer board, convert the expansion and contraction values of the multi-layer board into an expansion and contraction coefficient, and use PCB manufacturing software to compensate this expansion and contraction coefficient into the design standard drilling data to generate optimized new drilling data, and provide the optimized new drilling data to the drilling machine for drilling production. However, this production process is cumbersome and inefficient, and is subject to manual control. If the staff lacks energy, the extraction of the expansion and contraction values of the multi-layer board and the optimization process of the drilling data are easily affected by manual detection errors. If the staff lacks experience, it is difficult to handle the extraction of the expansion and contraction values of the multi-layer board and the optimization process of the drilling data in all situations, which may lead to errors during the drilling process.
[0076] Therefore, this application provides a more accurate drilling method. Different from the manual drilling technology in the prior art, the acquisition process of the theoretical position information of multiple target holes and the target hole expansion and contraction ratio of each target hole is limited by the energy and experience of the staff. In the case of insufficient energy and experience, it is difficult to comprehensively and accurately obtain the theoretical position information of multiple target holes and the target hole expansion and contraction ratio of each target hole. However, in this application, the theoretical position information of multiple target holes and the target hole expansion and contraction ratio of each target hole are automatically determined based on the positioning method of the workpiece to be processed. That is to say, in the case of positioning the workpiece to be processed by any method, the theoretical position information of multiple target holes in the workpiece to be processed and the target hole expansion and contraction ratio of each target hole can be accurately determined. Furthermore, the theoretical position information of multiple target holes can be automatically corrected respectively according to the target hole expansion and contraction ratio of each target hole. The correction process is not affected by manual correction errors, and the obtained actual drilling position information is more accurate. Further, by directly connecting the actual drilling position information with the drilling operation, manual intervention and error rate are reduced. At this time, accurate drilling can be performed on the workpiece to be processed based on the actual drilling position information.
[0077] The drilling method provided by the embodiments of this application can be applied to, for example Figure 1In the application environment shown. Among them, the terminal 102 communicates with the controller 104 through the network, and the controller 104 can also communicate with the drilling machine 106. The user issues a drilling request for the workpiece to be processed on the drilling control interface of the terminal 102. The controller 104 responds to the drilling request for the workpiece to be processed sent by the terminal 102, and determines the theoretical position information of multiple target holes in the workpiece to be processed and the target hole expansion and contraction ratio of each target hole according to the positioning method of the workpiece to be processed; according to the target hole expansion and contraction ratio of each target hole, the theoretical position information of multiple target holes is respectively corrected to obtain the actual drilling position information; a drilling operation is performed on the workpiece to be processed based on all the actual drilling position information. In practical applications, the controller 104 performs a drilling operation on the workpiece to be processed based on the actual drilling position information of multiple target holes, which may be to control the drilling machine 106 to perform a drilling operation on the workpiece to be processed based on the actual drilling position information of multiple target holes. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc.
[0078] In an exemplary embodiment, as Figure 2 shown, a drilling method is provided, taking the controller 104 applied to Figure 1 as an example for illustration, including S200~S800. Among them:
[0079] S200, according to the positioning method of the workpiece to be processed, determine the theoretical position information of multiple target holes in the workpiece to be processed and the target hole expansion and contraction ratio of each target hole.
[0080] Among them, the workpiece to be processed refers to a workpiece that can be drilled, such as a PCB multi-layer board, etc. Multiple target holes are provided on the workpiece to be processed. The positioning method of the workpiece to be processed refers to positioning the workpiece to be processed by matching positioning pins with the target holes, and the matching method of the positioning pins and the target holes can be determined by whether there are clamping components, phenolic boards or phenolic blocks on the workbench of the drilling machine.
[0081] Specifically, in mass production processing, after the workpiece to be processed is pressed, the next step of drilling the target holes will be carried out. The drilling machine completes drilling after scanning the target holes and confirming their spacing. Among them, the drilling machine uses a camera as the "eye" and is controlled by computer software or a single-chip microcomputer, and can quickly and accurately automatically lock the material to be processed, so as to form the shape of a target on the device display, so as to realize automatic punching based on the target holes.
[0082] In the process of drilling in the present application, a positioning pin is used to position the target hole so that the positioning of the target hole is accurate, and then an accurate drilling operation is performed. Therefore, it is also necessary to obtain the matching method between the target hole and the positioning pin. Through the matching method between the target hole and the positioning pin, the positioning method of the workpiece to be processed can be obtained. The positioning method of the workpiece to be processed is different, and the multiple target holes of the workpiece to be processed are also different. According to the positioning method of the workpiece to be processed, the theoretical position information of the multiple target holes matching the positioning method is obtained. Generally, the lower left corner of the workpiece to be processed is taken as the zero point, and then the theoretical position information of the multiple target holes of the workpiece to be processed is determined based on the zero point. The theoretical position information can be represented in the form of coordinates, or in other forms, such as grid distribution, etc. In addition, the drilling machine can also record production batch information. The theoretical position information and production batch information of the multiple target holes in the workpiece to be processed obtained by the drilling machine can be stored in the database of the controller for subsequent download by the controller, or directly obtained by the controller in real time. In other embodiments, the theoretical position information and production batch information of the workpiece to be processed obtained by the drilling machine can be directly displayed to the staff through a terminal equipped with the drilling machine, and then the staff can manually fill it into the drilling program.
[0083] However, in actual production life, affected by the thermal effect of pressing, the workpiece will expand during high-temperature pressing, and the sheet will shrink after cooling, resulting in the partial or overall inner and outer layer lines and hole rings of the workpiece to be drilled after pressing being inconsistent with the original design standards. At this time, the actual drilling position information of the target hole will not be distributed according to the original design information, but will be expanded and shrunk to a certain extent on the basis of the original theoretical position information. Therefore, when drilling the target hole, in order to make the drilling process accurate, it is necessary to drill based on the actual drilling position information after expansion and contraction. In other words, the theoretical position information of the target hole is the pre-designed target hole position information, and the actual drilling position information of the target hole is the accurate target hole position information after expansion and contraction in actual production life. At this time, if it is necessary to perform a drilling operation on the workpiece to be processed through the actual drilling position information, it is also necessary to obtain the target hole expansion and contraction ratio of each target hole on the workpiece to be processed, so as to combine the theoretical position information of each target hole to generate the actual drilling position information after expansion and contraction. In practical applications, the expansion and contraction ratio of the target hole has positive and negative values. Generally, the positive value is the expansion ratio of the target hole, and the negative value is the cold contraction ratio of the target hole.
[0084] S400, correcting theoretical position information of multiple target holes respectively according to the expansion and contraction ratio of each target hole to obtain actual drilling position information.
[0085] Specifically, for different positioning methods of workpieces to be processed, the present application can select a shrinkage compensation method that matches the positioning method, and correct the theoretical position information of multiple target holes respectively through the shrinkage ratio of each target hole to obtain the actual drilling position information of each target hole.
[0086] S600, perform a drilling operation on the workpiece to be processed based on all the actual drilling position information.
[0087] Specifically, after the controller obtains the actual drilling position information of all target holes, based on the actual drilling position information of all target holes, a drilling operation is performed on the workpiece to be processed. And since the actual drilling position information is the accurate drilling position information after shrinkage, therefore, the operation of performing drilling on the workpiece to be processed based on the actual drilling position information of all target holes is also more accurate. More specifically, the operation of performing drilling on the workpiece to be processed is completed by the controller controlling the drilling machine. After the controller obtains the actual drilling position information of all target holes, it pushes the actual drilling position information of all target holes to the drilling machine, and the drilling machine performs a drilling operation on the workpiece to be processed based on the actual drilling position information of all target holes.
[0088] In an exemplary embodiment, initial drilling data is stored in the controller, and the drilling data includes the theoretical position information of all target holes in the workpiece to be processed; pushing the actual drilling position information of multiple target holes to the drilling machine further includes: updating the initial drilling data in the controller based on the actual drilling position information of all target holes; pushing the updated drilling data to the drilling machine.
[0089] In the above drilling method, different from the manual drilling technology in the prior art, the acquisition process of the theoretical position information of multiple target holes and the shrinkage ratio of each target hole is limited by the energy and experience of the staff. In the case of insufficient energy and experience, it is very difficult to comprehensively and accurately obtain the theoretical position information of multiple target holes and the shrinkage ratio of each target hole. However, in the present application, the theoretical position information of multiple target holes and the shrinkage ratio of each target hole are automatically determined based on the positioning method of the workpiece to be processed. That is to say, in any case of positioning the workpiece to be processed, the theoretical position information of multiple target holes in the workpiece to be processed and the shrinkage ratio of each target hole can be accurately determined. Furthermore, the theoretical position information of multiple target holes can be automatically corrected respectively according to the shrinkage ratio of each target hole, and the correction process is not affected by manual correction errors, and the obtained actual drilling position information is more accurate; further, by directly connecting the actual drilling position information with the drilling operation, the manual intervention and error rate are reduced. At this time, drilling can be accurately performed on the workpiece to be processed based on the actual drilling position information.
[0090] In an exemplary embodiment, a plurality of target holes include a first target hole and a second target hole. A workpiece to be processed is placed on the workbench of a drilling machine. The workbench of the drilling machine is provided with a clamping assembly. A first electrically insulating block and a second electrically insulating block are arranged on the clamping assembly. The first electrically insulating block and the second electrically insulating block are respectively arranged on the first side and the second side of the workbench. The positioning method includes:
[0091] A first positioning pin is arranged on the first electrically insulating block, and a second positioning pin is arranged on the second electrically insulating block; the first positioning pin is matched with the first target hole, and the second positioning pin is matched with the second target hole to complete the positioning of the workpiece to be processed.
[0092] Specifically, the workbench of the drilling machine is provided with a clamping assembly. A first electrically insulating block and a second electrically insulating block are arranged on the clamping assembly. The first electrically insulating block and the second electrically insulating block are respectively arranged on the first side and the second side of the workbench. The first side and the second side are two adjacent sides on the workbench. The first electrically insulating block and the second electrically insulating block can be lifted freely. Positioning holes are drilled on the first electrically insulating block and the second electrically insulating block respectively. Through the clamping action of the clamping assembly, the first positioning pin is inserted into the first electrically insulating block, and the second positioning pin is inserted into the second electrically insulating block, so that the positioning hole of the first electrically insulating block is matched with one end of the first positioning pin, and the positioning hole of the second electrically insulating block is matched with one end of the second positioning pin. At this time, the workpiece to be processed is placed on the workbench of the drilling machine, and the first electrically insulating block and the second electrically insulating block are controlled to lift freely, so that the other end of the first positioning pin on the first electrically insulating block is matched with the first target hole, and the other end of the second positioning pin on the second electrically insulating block is matched with the second target hole to complete the positioning of the workpiece to be processed.
[0093] It should be noted that the reason why the first side and the second side are two adjacent sides on the workbench instead of any two sides is that the size of the workpiece to be processed often changes, and the positioning pins are arranged on the electrically insulating blocks, and the positions of the positioning pins are fixed. When the sizes of the workpieces to be processed replaced are different, if the first side and the second side are opposite sides, the positioning pins cannot automatically identify the target holes on the workpiece to be processed at this time. Therefore, two adjacent sides need to be used for positioning.
[0094] In an exemplary embodiment, the implementation manner of the electrically insulating block can be to set two small independent electrically insulating blocks on the workbench in the above manner, drill holes on each electrically insulating board respectively to cooperate with the two positioning pins, or to set an electrically insulating block on the workbench and drill two target holes on the electrically insulating block to cooperate with the two positioning pins.
[0095] The positioning process of setting an electric wooden block on the workbench and drilling two target holes in the electric wooden block for cooperation with two positioning pins includes: the workbench of the drilling machine is provided with a clamping assembly, and a fifth electric wooden block is arranged on the clamping assembly. The fifth electric wooden block is embedded in the central area of the workbench. The area of the fifth electric wooden block is smaller than the area of the workpiece to be processed. A first positioning pin is arranged on the first side of the fifth electric wooden block, and a second positioning pin is arranged on the second side of the fifth electric wooden block. The first side and the second side are two adjacent sides of the fifth electric wooden block. At this time, the positioning of the workpiece to be processed is completed by the cooperation of the first positioning pin and the first target hole and the cooperation of the second positioning pin and the second target hole.
[0096] In the above embodiment, by arranging a clamping assembly on the workbench of the drilling machine, a first electric wooden block and a second electric wooden block are arranged on the clamping assembly. The first electric wooden block and the second electric wooden block are respectively arranged on the first side and the second side of the workbench. By the cooperation of the first positioning pin and the first target hole and the cooperation of the second positioning pin and the second target hole, the positioning of the target holes on the workpiece to be processed can be accurately completed.
[0097] In an exemplary embodiment, as Figure 3 shown, S400 includes:
[0098] S410, obtaining the first zero-point theoretical position information and the first center theoretical position information of the workpiece to be processed.
[0099] S420, based on the first center theoretical position information, the target hole expansion and contraction ratios of the first target hole and the second target hole, respectively correcting the theoretical position information of the first target hole and the second target hole and the first zero-point theoretical position information, to obtain the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole, and the first initial zero-point theoretical position information.
[0100] S430, taking any one of the first target hole and the second target hole as the rotation fulcrum, and generating the rotation angle information of the rotation fulcrum based on the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole, the theoretical position information of the first target hole, and the theoretical position information of the second target hole.
[0101] S440, obtaining the first position deviation between the preset first component position information of the clamping assembly and the first initial zero-point theoretical position information, and respectively processing the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole based on the first position deviation, to obtain the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole.
[0102] S450, taking the rotation fulcrum as the reference point, processes the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole by using the rotation angle information, and obtains the actual drilling position information of the first target hole and the actual drilling position information of the second target hole.
[0103] Specifically, the workbench of the drilling machine is provided with a clamping assembly. The clamping assembly is provided with a first electric block and a second electric block. The first electric block and the second electric block are respectively arranged on the first side and the second side of the workbench. The first side and the second side are adjacent sides. Its positioning method includes: setting a first positioning pin on the first electric block and a second positioning pin on the second electric block; completing the positioning of the workpiece to be processed by matching the first positioning pin with the first target hole and the second positioning pin with the second target hole. It can be seen that at this time, if the two target holes of the workpiece to be processed expand or contract, the whole workpiece to be processed will rotate around one of the fixed target holes.
[0104] Furthermore, since the expansion and contraction of the workpiece to be processed all originate from the center point, first, it is necessary to obtain the first central theoretical position information of the center point of the workpiece to be processed. In practical applications, when the zero point of the workpiece to be processed is at the lower left corner, the first central theoretical position information of the center point of the workpiece to be processed is obtained through the size of the workpiece to be processed, that is, the length and width of the workpiece to be processed are obtained, and based on the length and width, the first central theoretical position information of the center point of the workpiece to be processed is obtained.
[0105] Secondly, based on the first central theoretical position information, the target hole expansion and contraction ratios of the first target hole and the second target hole, and using a position compensation method matching the above positioning method, correct the theoretical position information of the first target hole and the second target hole to obtain the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole.
[0106] Immediately afterwards, taking any one of the first target hole and the second target hole as the rotation fulcrum, and based on the first initial actual drilling position information and the theoretical position information of the two target holes of the first target hole and the second target hole, generate the rotation angle information of the rotation fulcrum. That is to say, based on the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole, the theoretical position information of the first target hole, and the theoretical position information of the second target hole, generate the rotation angle information of the rotation fulcrum.
[0107] More specifically, based on the theoretical position information of the first target hole and the theoretical position information of the second target hole, a theoretical right triangle is established between the first target hole and the second target hole. Based on the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole, an actual right triangle is established between the first target hole and the second target hole. And based on the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole, using the Pythagorean theorem, the actual angle information of the target hole as the rotation fulcrum relative to the other target hole is obtained. Based on the theoretical position information of the first target hole and the theoretical position information of the second target hole, using the Pythagorean theorem, the theoretical angle information of the target hole as the rotation fulcrum relative to the other target hole is obtained. And based on the actual angle information and the theoretical angle information, the rotation angle information of the rotation fulcrum is generated. In practical applications, generating the rotation angle information of the rotation fulcrum based on the actual angle information and the theoretical angle information includes: taking the difference between the actual angle information and the theoretical angle information as the rotation angle information of the rotation fulcrum.
[0108] It should be noted that since the clamping component is fixed in advance on the drilling machine, at this time, the component position of the clamping component is fixed, which is the clamping position corresponding to the theoretical position before expansion and contraction, and the component position is not affected by expansion and contraction. Therefore, after the workpiece to be processed undergoes expansion and contraction, the expanded and contracted workpiece to be processed will form a first position deviation in the X and Y directions with the component position of the clamping component before expansion and contraction. Therefore, after obtaining the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole, it is also necessary to process the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole through the first position deviation to make the finally obtained drilling position information accurate.
[0109] That is to say, obtain the first zero-point theoretical position information of the workpiece to be processed and the preset first component position information of the clamping component, and based on the first zero-point theoretical position information, correct the first zero-point theoretical position information in the case where the workpiece to be processed is affected by expansion and contraction to obtain the first initial zero-point theoretical position information. Obtain the first position deviation between the preset first component position information and the first initial zero-point theoretical position information, and based on the first position deviation, process the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole respectively to obtain the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole.
[0110] Based on the first position deviation, the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole are processed respectively to obtain the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole, including: obtaining the first initial drilling position of the first target hole from the first initial drilling position information of the first target hole, obtaining the first initial drilling position of the second target hole from the second initial drilling position information of the second target hole, and translating the first initial drilling position of the first target hole and the first initial drilling position of the second target hole according to the first position deviation respectively to obtain the second initial drilling position of the first target hole and the second initial drilling position of the second target hole.
[0111] Finally, taking the rotation pivot point as the reference point, the second initial drilling position information of each target hole is rotated using the rotation angle information to obtain the actual drilling position information of each target hole.
[0112] For example, as Figure 4 shown, let the lower left corner of the workpiece to be processed be the coordinate origin M, the coordinates of the fixed target hole on the left of the workpiece be the first target hole P1 (Xp1, Yp1), and the coordinates of the fixed target hole at the bottom of the workpiece be the second target hole P2 (Xp2, Yp2). A right triangle is established with the coordinates of P1 and P2. If the lower fixed target hole is used as the rotation pivot point, the theoretical angle β can be obtained. Based on the target hole expansion and contraction ratios of each target hole, after analyzing the expansion and contraction compensation of P1, P2, and point M, the coordinates P1', P2', and M' can be obtained. As Figure 5 shown, let the coordinates of P1' be (Xp1', Yp1'), and the coordinates of P2' be (Xp2', Yp2'). A right triangle is established with the coordinates of P1' and P2'. Using the lower fixed target hole as the rotation pivot point, the actual angle β' can be obtained. Then the rotation angle information is: Δβ = β' - β. Among them, when Δβ is negative, rotate clockwise by Δβ angle with the lower fixed target hole as the rotation pivot point; when Δβ is positive, rotate counterclockwise by Δβ angle with the lower fixed target hole as the rotation pivot point.
[0113] Furthermore, obtain the first position deviation ΔL between the preset component position information of the clamping component and the first initial zero-point theoretical position information M'. Translate P1' and P2' by the first position deviation ΔL to obtain P1'' and P2''. The controller uses the left side P2'' of the lower fixed target hole after translation at this time as the rotation pivot point, and controls the entire workpiece to be processed to rotate by the calculated rotation angle information Δβ to obtain the actual drilling coordinates P1''' of the first target hole and the actual drilling coordinates P2''' of the second target hole. The drilling machine automatically imports the actual drilling coordinates of all target holes to complete the drilling production.
[0114] In an exemplary embodiment, taking the first target hole as an example, based on the first central theoretical position information and the expansion and contraction ratio of the first target hole, the theoretical position information of the first target hole is corrected, including: generating a position compensation value for the first target hole based on the first central theoretical position information, the theoretical position information of the first target hole, and the expansion and contraction ratio of the first target hole, and correcting the theoretical position information of the first target hole based on the position compensation value of the first target hole.
[0115] Generating a position compensation value for the first target hole based on the first central theoretical position information, the theoretical position information of the first target hole, and the expansion and contraction ratio of the first target hole includes: obtaining the theoretical position difference between the first central theoretical position information and the theoretical position information of the first target hole, and generating a position compensation value for the first target hole based on the ratio of the theoretical position difference of the first target hole to the expansion and contraction ratio of the first target hole; further, correcting the theoretical position information of the first target hole based on the position compensation value of the first target hole includes: summing the position compensation value of the first target hole and the theoretical position information of the first target hole to obtain the first initial drilling position information of the first target hole.
[0116] In the above embodiment, when the positioning method of the workpiece to be processed includes setting a first positioning pin on the first insulating block and a second positioning pin on the second insulating block, and completing the positioning of the workpiece to be processed by the cooperation of the first positioning pin and the first target hole and the cooperation of the second positioning pin and the second target hole, if there is expansion and contraction in the target holes for positioning, the actual drilling position information of all the target holes in the workpiece to be processed will rotate with one of the target holes as the reference. Therefore, in this embodiment, the rotation angle information is calculated to correct the theoretical position information of each target hole to obtain accurate actual drilling position information.
[0117] In an exemplary embodiment, the multiple target holes include a third target hole and a fourth target hole. The workpiece to be processed is placed on the workbench of the drilling machine, and an insulating block is provided on the workbench. The positioning method includes:
[0118] Setting a third positioning pin and a fourth positioning pin at any two points of the insulating block respectively; completing the positioning of the workpiece to be processed by the cooperation of the third positioning pin and the third target hole and the cooperation of the fourth positioning pin and the fourth target hole.
[0119] Specifically, the bakelite board in this embodiment is different from the wooden block in the above embodiment. Generally, the area of the bakelite board in this embodiment is larger than that of the wooden block in the above embodiment, and the area of the bakelite board is generally greater than or equal to the area of the workpiece to be processed. The bakelite board is arranged on the workbench, and the workpiece to be processed is also placed on the workbench. Therefore, corresponding positioning holes can be drilled at any two points of the bakelite board, and a third positioning pin and a fourth positioning pin are inserted into the two positioning holes, so that the third positioning pin and the fourth positioning pin are respectively arranged at any two points of the bakelite board. Furthermore, by controlling the cooperation between the third positioning pin and the third target hole and the cooperation between the fourth positioning pin and the fourth target hole, the positioning of the workpiece to be processed is completed. At this time, the bakelite board is generally arranged between the workbench and the workpiece to be processed to complete the cooperation between the third positioning pin on the bakelite board and the third target hole and the cooperation between the fourth positioning pin on the bakelite board and the fourth target hole.
[0120] In the above embodiment, when the workpiece to be processed is placed on the workbench of the drilling machine and the bakelite board is arranged on the workbench, by respectively arranging a third positioning pin and a fourth positioning pin at any two points of the bakelite board, and through the cooperation between the third positioning pin and the third target hole and the cooperation between the fourth positioning pin and the fourth target hole, the target hole positioning of the workpiece to be processed can be accurately completed.
[0121] In an exemplary embodiment, according to the target hole expansion and contraction ratio of each target hole, the theoretical position information of multiple target holes is respectively corrected to obtain the actual drilling position information, including:
[0122] Obtain the second center theoretical position information of the workpiece to be processed; according to the second center theoretical position information, and the target hole expansion and contraction ratios of the third target hole and the fourth target hole, respectively correct the theoretical position information of the third target hole and the fourth target hole to obtain the actual drilling position information of the third target hole and the actual drilling position information of the fourth target hole.
[0123] Specifically, when the workpiece to be processed is placed on the workbench of the drilling machine, a bakelite board is arranged on the workbench, and a third positioning pin and a fourth positioning pin are respectively arranged at any two points of the bakelite board. The third positioning pin is matched with the third target hole, and the fourth positioning pin is matched with the fourth target hole to complete the positioning of the workpiece to be processed. In this case, the theoretical position information of the first target hole and the second target hole on the workpiece to be processed is obtained. Moreover, since the expansion and contraction of the workpiece to be processed both originate from the center point, it is also necessary to obtain the second center theoretical position information of the center point of the workpiece to be processed. The method for obtaining the second center theoretical position information is the same as the method for obtaining the first center theoretical position information in the above embodiment, and will not be elaborated here. Furthermore, based on the second center theoretical position information and the target hole expansion and contraction ratio of the third target hole, the theoretical position information of the third target hole is corrected to obtain the actual drilling position information of the third target hole. At the same time, based on the second center theoretical position information and the target hole expansion and contraction ratio of the fourth target hole, the theoretical position information of the fourth target hole is corrected to obtain the actual drilling position information of the fourth target hole.
[0124] In an exemplary embodiment, taking the third target hole as an example, correcting the theoretical position information of the third target hole based on the second center theoretical position information and the target hole expansion and contraction ratio of the third target hole includes: generating a position compensation value for the third target hole based on the second center theoretical position information, the theoretical position information of the third target hole, and the target hole expansion and contraction ratio of the third target hole, and correcting the theoretical position information of the third target hole based on the position compensation value of the third target hole to obtain the actual drilling position information of the third target hole.
[0125] Among them, generating a position compensation value for the third target hole based on the second center theoretical position information, the theoretical position information of the third target hole, and the target hole expansion and contraction ratio of the third target hole includes: obtaining the theoretical position difference between the second center theoretical position information and the theoretical position information of the third target hole, and generating a position compensation value for the third target hole based on the ratio of the theoretical position difference to the target hole expansion and contraction ratio of the third target hole; at this time, correcting the theoretical position information of the third target hole based on the position compensation value of the third target hole to obtain the actual drilling position information of the third target hole includes: summing the position compensation value of the third target hole and the theoretical position information of the third target hole to obtain the actual drilling position information of the third target hole.
[0126] For example, Figure 6As shown, when the expansion and contraction ratio of the target holes includes the expansion and contraction ratio of the target holes in the x-direction and the expansion and contraction ratio of the target holes in the y-direction, taking the lower left corner of the workpiece to be processed as the origin, any target hole A is selected as the third target hole, and its theoretical position information is A(Xa, Ya); let the dimensions of the workpiece to be processed be LX and LY, the center point O of the workpiece to be processed and its second center theoretical position information be O(LX / 2, LY / 2); the expansion and contraction ratio of the target hole A be Δx and Δy, then the actual drilling position information of point A' after compensation optimization is A'(Xa', Ya'): the coordinate Xa' of point A' = Xa + (LX / 2 - Xa)Δx, and the coordinate Ya' of point A' = Ya + (LY / 2 - Ya)Δy. Still Figure 6 As shown, if any target hole B is selected as the fourth target hole, and its theoretical position information is B(Xb, Yb), and the others are the same as above, then the actual drilling position information of point B' after compensation optimization is B'(Xb', Yb'): the coordinate Xb' of point B' = Xb + (LX / 2 - Xb)Δx, and the coordinate Yb' of point B' = Yb + (LY / 2 - Yb)Δy.
[0127] In the above embodiment, when the positioning method includes respectively arranging a third positioning pin and a fourth positioning pin at any two points of the bakelite board; and completing the positioning of the workpiece to be processed by matching the third positioning pin with the third target hole and matching the fourth positioning pin with the fourth target hole, combining the second center theoretical position information of the center point of the workpiece to be processed with the expansion and contraction ratio of each target hole, the position compensation value to be compensated can be accurately obtained, and then based on the position compensation value, the theoretical position information of any target hole can be accurately corrected.
[0128] In an exemplary embodiment, the multiple target holes include a fifth target hole and a sixth target hole. The workpiece to be processed is configured to be placed on the workbench of the drilling machine. The workbench of the drilling machine is provided with a clamping assembly, and the clamping assembly is provided with a first clamping hole and a second clamping hole. The positioning method includes:
[0129] Arranging a fifth positioning pin on the first clamping hole and a sixth positioning pin on the second clamping hole; and completing the positioning of the workpiece to be processed by matching the fifth positioning pin with the fifth target hole and matching the sixth positioning pin with the sixth target hole.
[0130] Specifically, in this positioning method, there is no phenolic board or phenolic block set, but a fixed clamping component is set on the workbench of the drilling machine. The clamping component is provided with a first clamping hole and a second clamping hole. Among them, the first clamping hole is used to clamp the fifth positioning pin, and the second clamping hole is used to clamp the sixth positioning pin. The fifth positioning pin is clamped through the first clamping hole, and the sixth positioning pin is clamped through the second clamping hole. By controlling the clamping component, the cooperation between the fifth positioning pin and the fifth target hole is controlled, and the cooperation between the sixth positioning pin and the sixth target hole is controlled to complete the positioning of the workpiece to be processed. In practical applications, since the clamping component can be moved to any position of the workpiece to be processed, the fifth target hole and the sixth target hole are also any two target holes on the workpiece to be processed.
[0131] In the above embodiment, when the workpiece to be processed is configured to be placed on the workbench of the drilling machine, and the drilling machine is provided with a clamping component with a first clamping hole and a second clamping hole, the target hole positioning of the workpiece to be processed can be accurately completed through the cooperation between the fifth positioning pin and the fifth target hole and the cooperation between the sixth positioning pin and the sixth target hole.
[0132] In an exemplary embodiment, according to the target hole expansion and contraction ratio of each target hole, the theoretical position information of multiple target holes is respectively corrected to obtain the actual drilling position information, including:
[0133] Obtain the second zero-point theoretical position information and the third center theoretical position information of the workpiece to be processed; based on the third center theoretical position information, the target hole expansion and contraction ratio of the fifth target hole and the sixth target hole, respectively correct the theoretical position information of the fifth target hole and the sixth target hole and the second zero-point theoretical position information; obtain the second position deviation between the preset second component position information of the clamping component and the corrected second zero-point theoretical position information, and based on the second position deviation, respectively process the corrected theoretical position information of the fifth target hole and the sixth target hole to obtain the actual drilling position information of the fifth target hole and the actual drilling position information of the sixth target hole.
[0134] Among them, when the workpiece to be processed expands and contracts, the preset second component position information of the clamping component does not change. Therefore, when the workpiece to be processed expands and contracts, there is an expansion and contraction deviation between the actual zero-point position information of the workpiece to be processed and the preset second component position of the clamping component.
[0135] Specifically, in the case where the positioning method includes setting a fifth positioning pin on the first clamping hole and a sixth positioning pin on the second clamping hole, and completing the positioning of the workpiece to be processed by the cooperation of the fifth positioning pin with the fifth target hole and the cooperation of the sixth positioning pin with the sixth target hole, according to the position compensation method matching this positioning method, the theoretical position information of the fifth target hole and the sixth target hole is preliminarily corrected. Specifically, the third central theoretical position information of the center point of the workpiece to be processed is obtained, and based on the third central theoretical position information and the target hole expansion and contraction ratio of the fifth target hole, the theoretical position information of the fifth target hole is preliminarily corrected, and based on the third central theoretical position information and the target hole expansion and contraction ratio of the sixth target hole, the theoretical position information of the sixth target hole is preliminarily corrected.
[0136] At this time, since the clamping assembly is fixed in advance on the drilling machine, at this time, the component position of the clamping assembly is fixed, which is the clamping position corresponding to the theoretical position before expansion and contraction, and the component position is not affected by expansion and contraction. Therefore, after the workpiece to be processed undergoes expansion and contraction, the expanded and contracted workpiece to be processed will form a second position deviation in the X and Y directions with the component position of the clamping assembly before expansion and contraction. Therefore, after the theoretical position information of the fifth target hole and the sixth target hole is respectively corrected, it is also necessary to obtain the second zero-point theoretical position information of the zero point of the workpiece to be processed and the preset second component position information of the clamping assembly, and based on the third central theoretical position information, perform expansion and contraction correction on the second zero-point theoretical position information to generate a second position deviation between the preset second component position information and the corrected second zero-point theoretical position information.
[0137] Finally, based on the second position deviation, the corrected theoretical position information of the fifth target hole and the sixth target hole is respectively processed to obtain the actual drilling position information of the fifth target hole and the actual drilling position information of the sixth target hole. That is to say, the fifth target hole and the sixth target hole are translated by the corresponding second position deviation to obtain the actual drilling positions of the fifth target hole and the sixth target hole.
[0138] In the above embodiment, in the case where the positioning method includes setting a fifth positioning pin on the first clamping hole and a sixth positioning pin on the second clamping hole, and completing the positioning of the workpiece to be processed by the cooperation of the fifth positioning pin with the fifth target hole and the cooperation of the sixth positioning pin with the sixth target hole, since the component position information of the clamping assembly of the drilling machine is fixed and does not expand and contract with the expansion and contraction of the workpiece to be processed, it is also necessary to process the preliminarily corrected theoretical position information based on the second position deviation between the preset second component position information of the clamping assembly and the corrected second zero-point theoretical position information to obtain accurate actual drilling position information.
[0139] In an exemplary embodiment, determining the target hole expansion and contraction ratio of each target hole in the workpiece to be processed includes:
[0140] Obtain the theoretical spacing information and actual spacing information between each target hole and the corresponding target hole in the workpiece to be processed; generate the expansion and contraction ratio of each target hole according to the theoretical spacing information and actual spacing information corresponding to each target hole.
[0141] Among them, each target hole and the corresponding target hole can be two target holes that are symmetric to each other based on the center line, or can be target holes that are not symmetric based on the center line. For example, each target hole and the corresponding target hole can be on both sides of the vertical center line or the horizontal center line as the axis of symmetry. For example, the left target hole and the right target hole with the vertical center line of the workpiece to be processed as the symmetry line, or the upper target hole and the lower target hole with the horizontal center line of the workpiece to be processed as the symmetry line. In addition, each target hole and the corresponding target hole can also be in the left part and the lower part of the workpiece to be processed.
[0142] Specifically, the drilling machine can record the actual spacing information between each target hole and the corresponding target hole in the workpiece to be processed. For example, obtain the actual spacing information of the upper and lower two target holes with the horizontal center line of the workpiece to be processed as the axis of symmetry, or obtain the actual spacing information of the left and right two target holes with the vertical center line of the workpiece to be processed as the axis of symmetry. The drilling machine can also obtain the theoretical spacing information between each target hole and the corresponding target hole from the theoretical position information of multiple target holes in the workpiece to be processed. The obtained actual spacing information and theoretical spacing information can be stored in the database of the controller for subsequent download by the controller, or directly be obtained by the controller in real time. In some other embodiments, the actual spacing information and theoretical spacing information of each pair of target holes obtained by the drilling machine can also be directly displayed to the staff through a terminal supporting the drilling machine, and then filled into the drilling program of the controller manually by the staff.
[0143] After the controller obtains the theoretical spacing information and actual spacing information between each target hole and the corresponding target hole on the workpiece to be processed, it can generate the expansion and contraction ratio of each target hole according to the theoretical spacing information and actual spacing information corresponding to each target hole.
[0144] In the above embodiments, by the theoretical spacing information and actual spacing information between each target hole and the corresponding target hole on the workpiece to be processed, the expansion and contraction ratio of each target hole can be directly generated, and the method of generating the expansion and contraction ratio of the target hole is simple and accurate.
[0145] In an exemplary embodiment, generating the expansion and contraction ratio of each target hole according to the theoretical spacing information and actual spacing information corresponding to each target hole further includes:
[0146] Classify each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole; generate the shrinkage and expansion ratio of the target holes of the type based on the theoretical spacing information and the actual spacing information corresponding to multiple target holes belonging to the same type, and use the shrinkage and expansion ratio of the target holes of the type as the shrinkage and expansion ratio of multiple target holes belonging to the same type.
[0147] Specifically, the controller obtains the actual spacing information corresponding to each target hole in batches, and classifies the obtained batch of target holes according to management requirements. Generally, the classification method is to classify each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole. For example, two target holes with errors within the first preset range are determined to be the first category, and two target holes with errors within the second preset range are determined to be the second category, and so on. In practical applications, the error can be 1 mil (Millimeter), 2 mil, 3 mil, etc. In other words, two target holes with the actual spacing information greater than the theoretical spacing information by 1 mil are classified into one category, two target holes with the actual spacing information greater than the theoretical spacing information by 2 mil are classified into one category, two target holes with the actual spacing information greater than the theoretical spacing information by 3 mil are classified into one category, and so on.
[0148] After classifying each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole, it is also possible to generate a category lot number based on the error data and the original production batch information, and manage the target holes based on the lot number.
[0149] At this time, based on the theoretical spacing information and the actual spacing information corresponding to multiple target holes belonging to the same type, the shrinkage and expansion ratio of the target holes of the type can be generated, and the shrinkage and expansion ratio of the target holes of the type is used as the shrinkage and expansion ratio of multiple target holes corresponding to the type. For multiple target holes of the same type, generating the shrinkage and expansion ratio of the target holes of the type based on the theoretical spacing information and the actual spacing information corresponding to multiple target holes belonging to the same type includes: generating an average theoretical spacing based on the theoretical spacing information corresponding to all target holes belonging to the same type, and generating an average actual spacing based on the actual spacing information corresponding to all target holes belonging to the same type. Finally, based on the average theoretical spacing and the average actual spacing, generate the shrinkage and expansion ratio of the target holes corresponding to each type, and use the shrinkage and expansion ratio of the target holes of the type as the shrinkage and expansion ratio of all target holes under each type.
[0150] In the above embodiment, by classifying and managing a batch of target holes, the efficiency of calculating the shrinkage and expansion ratio of a large number of target holes is improved. At the same time, since target holes with similar errors are classified into one category, the interference of target holes with large spacing errors is reduced. Therefore, the accuracy of generating the shrinkage and expansion ratio of target holes is also improved.
[0151] In an exemplary embodiment, classifying each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole includes:
[0152] Generating a target error level corresponding to each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole, obtaining the type mapping relationship between the error level and the target hole type; generating the target hole type of each target hole based on the target error level and the type mapping relationship corresponding to each target hole; classifying each target hole based on the target hole type of each target hole.
[0153] Specifically, generating a target error level corresponding to each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole. For example, when the error is within the first preset range, the target error level between the target holes is level one; when the error is within the second preset range, the target error level between the target holes is level two; when the error is within the third preset range, the target error level between the target holes is level three.
[0154] Obtaining the type mapping relationship, where the type mapping relationship represents the mapping relationship between the error level of each target hole and the target hole type. Specifically, when the error level is level one, the corresponding target hole type is the first type; when the error level is level two, the corresponding target hole type is the second type; when the error level is level three, the corresponding target hole type is the second type. Therefore, based on the target error level and the type mapping relationship corresponding to each target hole, the target hole type corresponding to the target error level can be queried to obtain the target hole type of all target holes, and then based on the target hole type of each target hole, the target holes with the same target hole type can be classified into one category.
[0155] In the above embodiment, by setting the mapping relationship between the error level of each target hole and the target hole type, the target hole type of each target hole can be accurately queried based on the target error level corresponding to each target hole, so as to accurately classify each target hole.
[0156] In an exemplary embodiment, the theoretical spacing information includes the theoretical spacing information in the first direction and the theoretical spacing information in the second direction, the actual spacing information includes the actual spacing information in the first direction and the actual spacing information in the second direction, and the first direction is perpendicular to the second direction. Generating the target hole expansion and contraction ratio of each target hole according to the theoretical spacing information and the actual spacing information corresponding to each target hole includes:
[0157] For each target hole, generate a first target hole expansion / contraction ratio in the first direction based on the theoretical spacing information and the actual spacing information in the first direction; generate a second target hole expansion / contraction ratio in the second direction based on the theoretical spacing information and the actual spacing information in the second direction; combine the first target hole expansion / contraction ratio and the second target hole expansion / contraction ratio to obtain the target hole expansion / contraction ratio of the target hole.
[0158] Specifically, the target hole expansion / contraction ratio of the target hole includes a first target hole expansion / contraction ratio in the first direction and a second target hole expansion / contraction ratio in the second direction, and the first direction is perpendicular to the second direction. For example, when the first direction is the horizontal direction, the second direction can be the vertical direction; when the first direction is the vertical direction, the second direction can be the horizontal direction.
[0159] Obtaining the theoretical spacing information and the actual spacing information between each target hole of the workpiece to be processed and the corresponding target hole can be parsed as obtaining the theoretical spacing information and the actual spacing information in the first direction between each target hole and the corresponding target hole, and the theoretical spacing information and the actual spacing information in the second direction between each target hole and the corresponding target hole. Generate a first target hole expansion / contraction ratio in the first direction based on the theoretical spacing information and the actual spacing information in the first direction, and generate a second target hole expansion / contraction ratio in the second direction based on the theoretical spacing information and the actual spacing information in the second direction. Furthermore, combine the first target hole expansion / contraction ratio and the second target hole expansion / contraction ratio to obtain the target hole expansion / contraction ratio of the target hole.
[0160] In an exemplary embodiment, generating a first target hole expansion / contraction ratio in the first direction based on the theoretical spacing information and the actual spacing information in the first direction includes: obtaining the spacing difference in the first direction between the actual spacing information and the theoretical spacing information of the target hole in the first direction, and generating a first target hole expansion / contraction ratio in the first direction based on the ratio of the spacing difference in the first direction to the theoretical spacing information in the first direction.
[0161] In an exemplary embodiment, generating a second target hole expansion / contraction ratio in the second direction based on the theoretical spacing information and the actual spacing information in the second direction includes: obtaining the spacing difference in the second direction between the actual spacing information and the theoretical spacing information of the target hole in the second direction, and generating a second target hole expansion / contraction ratio in the second direction based on the ratio of the spacing difference in the second direction to the theoretical spacing information in the second direction.
[0162] For example, Figure 7As shown in the figure, let the first direction be the x-direction, the second direction be the y-direction, the theoretical spacing information of the two target holes in the first direction be Lx, the theoretical spacing information of the two target holes in the second direction be Ly, the actual spacing information of the two target holes in the first direction be lx, and the actual spacing information of the two target holes in the second direction be ly. Then the expression for the first target hole expansion and contraction ratio between the two target holes includes: (lx - Lx) / Lx = Δx, and the expression for the second target hole expansion and contraction ratio between the two target holes includes: (ly - Ly) / Ly = Δy.
[0163] In the above embodiment, the target holes expand and contract in both the first direction and the second direction. Therefore, by generating the target hole expansion and contraction ratio in the first direction and the target hole expansion and contraction ratio in the second direction, a comprehensive and accurate target hole expansion and contraction ratio can be obtained. Furthermore, based on the target hole expansion and contraction ratio, the problem of target hole expansion and contraction can be solved accurately, and accurate actual drilling position information can be obtained.
[0164] To elaborate in more detail on how to perform accurate drilling when the workpiece to be processed expands and contracts, the following will provide the most detailed embodiment of a drilling method. Here, the workpiece to be processed is a PCB multi-layer board, which is placed on the workbench of the drilling machine. The first direction is the x-direction, and the second direction is the y-direction, including:
[0165] S1. Data acquisition: In mass production processing, after the multi-layer board is laminated, the next step is the target hole drilling process. The drilling machine scans the target holes and confirms their spacing, and then completes the target hole drilling and records the actual spacing information between each target hole and its corresponding target hole among multiple target holes, as well as the production batch information. The controller reads the production information after the target hole drilling is completed, and the reading method is carried out in the way of system docking for automatic import or manual filling.
[0166] S2. Pile management: The intelligent system piles up the read batch of actual spacing information according to management requirements. Generally, it is piled up according to the actual spacing information being greater than or less than the theoretical spacing information by 1 mil, 2 mil, 3 mil, etc., and generates a new Lot number together with the original production batch information. After piling up, it is managed by the Lot number.
[0167] S3. Expansion and contraction ratio calculation: Calculate the average value of all the actual data of the X-direction and Y-direction target holes within the Lot number, that is, confirm the actual spacing information of the X-direction and Y-direction expansion and contraction within the Lot number, and set them as lx and ly respectively; assume that the original designed theoretical X-direction target hole spacing of the multi-layer board is Lx, and the theoretical Y-direction target hole spacing is Ly. Calculate the expansion and contraction ratio with the center point O of the multi-layer board as the reference, according to the formulas: (lx - Lx) / Lx = Δx (X-direction expansion and contraction ratio, positive value for expansion, negative value for cold shrinkage), (ly - Ly) / Ly = Δy (Y-direction expansion and contraction ratio, positive value for expansion, negative value for cold shrinkage). Calculate the target hole expansion and contraction ratio Δx in the x-direction and the target hole expansion and contraction ratio Δy in the y-direction of this Lot number.
[0168] S4. Drilling data compensation optimization: Optimize the drilling data according to the calculated expansion and contraction ratio of the Lot number. Among them, the positioning target hole methods for multilayer board drilling production are divided into three modes:
[0169] Mode Ⅰ: The positioning target hole method of bakelite board. The bakelite board is arranged on the workbench, and positioning holes are drilled at any two points of the bakelite board. Positioning pins are respectively arranged in the two positioning holes. One positioning pin is matched with target hole A, and the other positioning pin is matched with target hole B.
[0170] Set the lower left corner of the multilayer board as the coordinate origin. For any point A drilling point in the drilling data, its drilling data coordinates are A(Xa, Ya); according to the dimensions LX and LY of the multilayer board, the intelligent system calculates the center point O of the multilayer board and its coordinates O(LX / 2, LY / 2); the expansion and contraction ratio of this Lot number is Δx and Δy.
[0171] Then the coordinates of points A' and B' after compensation optimization are A'(Xa', Ya') respectively: the X coordinate of point A' is Xa' = Xa + (LX / 2 - Xa)Δx, and the Y coordinate of point A' is Ya' = Ya + (LY / 2 - Ya)Δy.
[0172] And so on to complete the compensation optimization of all target holes in the original drilling data, generate new compensated drilling data, and the drilling machine automatically imports the new compensated drilling data to complete the drilling production.
[0173] Mode Ⅱ: Drilling machine clamping PIN positioning target hole production. The drilling machine clamping PIN means that the drilling machine itself has a mechanical clamping PIN fixing device with an immovable position, and the PIN nails of the multilayer board are directly clamped at the clamping PIN position of the machine. That is to say, the drilling machine is provided with a clamping component, and a first clamping hole and a second clamping hole are arranged on the clamping component. A fifth positioning pin is arranged on the first clamping hole, and a sixth positioning pin is arranged on the second clamping hole. Therefore, by controlling the clamping component, the fifth positioning pin can be matched with the fifth target hole, and the sixth positioning pin can be matched with the sixth target hole, so as to complete the target hole positioning of the workpiece to be processed.
[0174] And because there will be a deviation in the X and Y directions between the component position information of the clamping component and the actual zero coordinate (after expansion and contraction) of the drilling data, therefore, after calculating the hole position coordinates of all target hole materials according to Mode Ⅰ, taking the zero point of the drilling data as the reference point, the hole position coordinates of the whole board are respectively translated by Δx in the X direction and by Δy in the Y direction; and new compensated drilling data is regenerated, and the drilling machine automatically imports the new compensated drilling data to complete the drilling production.
[0175] Mode III: Production of target holes positioned by nested PINS. In the production of target holes positioned by nested PINS, the workbench of the drilling machine is provided with a clamping assembly. On the clamping assembly, there is a first electrically insulating block and a second electrically insulating block. The first electrically insulating block and the second electrically insulating block are respectively arranged on the first side and the second side of the workbench. The first side and the second side are adjacent sides. For example, the first side is the left side and the second side is the lower side. A first positioning pin is set on the first electrically insulating block, and a second positioning pin is set on the second electrically insulating block. The first positioning pin cooperates with the left fixed target hole, and the second positioning pin cooperates with the lower fixed target hole. During positioning, affected by the expansion and contraction of the multilayer board, the whole multilayer board will rotate around one of the fixed target holes after positioning.
[0176] In other cases, there is a complete electrically insulating block on the clamping assembly. The electrically insulating block is arranged at the center of the workbench. At this time, a first positioning pin is set on the left side of the electrically insulating block, and a second positioning pin is set on the lower side of the electrically insulating block. The first positioning pin cooperates with the left fixed target hole, and the second positioning pin cooperates with the lower fixed target hole.
[0177] Let the lower left corner of the multilayer board be the coordinate zero point. The coordinates of the left fixed target hole are P1(Xp1, Yp1), and the coordinates of the lower fixed target hole are P2(Xp2, Yp2). A right triangle is established with the coordinates of P1 and P2, and the angle β can be obtained. After calculating the expansion and contraction compensation of points P1 and P2 according to Mode I, the coordinates P1' and P2' can be obtained. Let the coordinates of P1' be (Xp1', Yp1'), and the coordinates of P2' be (Xp2', Yp2'). A right triangle is established with the coordinates of P1' and P2', and the angle β' can be obtained.
[0178] Then, taking the lower fixed target hole as the rotation fulcrum, its rotation angle is: Δβ = β' - β. Among them, when Δβ is negative, rotate clockwise by Δβ angle with the lower fixed target hole as the rotation fulcrum; when Δβ is positive, rotate counterclockwise by Δβ angle with the lower fixed target hole as the rotation fulcrum.
[0179] After calculating the hole position coordinates of all drilling data according to Mode II, the intelligent system rotates the calculated angle with one of the fixed target holes as the rotation fulcrum and regenerates new compensated drilling data. The drilling machine automatically imports the new compensated drilling data to complete the drilling production.
[0180] The intelligent system provides the above three different expansion and contraction compensation generation modes for users to choose.
[0181] S5. Through the above steps, when the PCB multilayer board is completed with lamination, the drilling target equipment and its information are intelligently connected to the drilling machine, and new drilling data is automatically compensated and optimized to realize the intelligent manufacturing and precision production of the PCB drilling process.
[0182] It should be understood that although the steps in the flowcharts involved in the above embodiments are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0183] Based on the same inventive concept, an embodiment of the present application also provides a drilling device for implementing the drilling method involved above. The solution provided by this device to solve the problem is similar to the solution recorded in the above method. Therefore, the specific limitations in one or more embodiments of the following drilling devices can refer to the limitations on the drilling method in the above text, and will not be repeated here.
[0184] In an exemplary embodiment, as Figure 8 shown, a drilling device is provided, including: a data acquisition module 200, a position correction module 400, and a drilling module 600, where:
[0185] The data acquisition module 200 is configured to determine the theoretical position information of multiple target holes in the workpiece to be processed and the target hole expansion and contraction ratio of each target hole according to the positioning method of the workpiece to be processed;
[0186] The position correction module 400 is configured to correct the theoretical position information of the target holes for centering the target holes respectively according to the target hole expansion and contraction ratio of each target hole to obtain the actual drilling position information;
[0187] The drilling module 600 is configured to perform a drilling operation on the workpiece to be processed based on all the actual drilling position information.
[0188] In one embodiment, the multiple target holes include a first target hole and a second target hole. The workpiece to be processed is placed on the workbench of the drilling machine. The workbench of the drilling machine is provided with a clamping assembly, and a first electric wooden block and a second electric wooden block are arranged on the clamping assembly. The first electric wooden block and the second electric wooden block are respectively arranged on the first side and the second side of the workbench. The positioning method includes: setting a first positioning pin on the first electric wooden block and a second positioning pin on the second electric wooden block; and completing the positioning of the workpiece to be processed by matching the first positioning pin with the first target hole and the second positioning pin with the second target hole.
[0189] In one embodiment, the position correction module 400 is further configured to obtain the first zero-point theoretical position information and the first center theoretical position information of the workpiece to be machined; based on the first center theoretical position information, the target hole expansion and contraction ratios of the first target hole and the second target hole, respectively correct the theoretical position information of the first target hole and the second target hole and the first zero-point theoretical position information to obtain the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole, and the first initial zero-point theoretical position information; using any one of the first target hole and the second target hole as the rotation fulcrum, and based on the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole, the theoretical position information of the first target hole, and the theoretical position information of the second target hole, generate the rotation angle information of the rotation fulcrum; obtain the first position deviation between the preset first component position information of the clamping component and the first initial zero-point theoretical position information, and based on the first position deviation, respectively process the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole to obtain the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole; taking the rotation fulcrum as the reference point, use the rotation angle information to process the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole to obtain the actual drilling position information of the first target hole and the actual drilling position information of the second target hole.
[0190] In one embodiment, the multiple target holes include a third target hole and a fourth target hole. The workpiece to be machined is placed on the workbench of the drilling machine, and a bakelite board is arranged on the workbench. The positioning method includes: respectively arranging a third positioning pin and a fourth positioning pin at any two points of the bakelite board; matching the third positioning pin with the third target hole and matching the fourth positioning pin with the fourth target hole to complete the positioning of the workpiece to be machined.
[0191] In one embodiment, the position correction module 400 is further configured to obtain the second center theoretical position information of the workpiece to be machined; according to the second center theoretical position information, the target hole expansion and contraction ratios of the third target hole and the fourth target hole, respectively correct the theoretical position information of the third target hole and the fourth target hole to obtain the actual drilling position information of the third target hole and the actual drilling position information of the fourth target hole.
[0192] In one embodiment, the multiple target holes include a fifth target hole and a sixth target hole. The workpiece to be machined is configured to be placed on the workbench of the drilling machine. The workbench of the drilling machine is provided with a clamping component, and the clamping component is provided with a first clamping hole and a second clamping hole. The positioning method includes: arranging a fifth positioning pin on the first clamping hole and arranging a sixth positioning pin on the second clamping hole; matching the fifth positioning pin with the fifth target hole and matching the sixth positioning pin with the sixth target hole to complete the positioning of the workpiece to be machined.
[0193] In one embodiment, the position correction module 600 is further configured to obtain the second zero-point theoretical position information and the third center theoretical position information of the workpiece to be processed; based on the third center theoretical position information, and the target hole expansion and contraction ratios of the fifth target hole and the sixth target hole, correct the theoretical position information of the fifth target hole and the sixth target hole and the second zero-point theoretical position information respectively; obtain the second position deviation between the preset second component position information of the clamping component and the corrected second zero-point theoretical position information, and based on the second position deviation, process the corrected theoretical position information of the fifth target hole and the sixth target hole respectively to obtain the actual drilling position information of the fifth target hole and the actual drilling position information of the sixth target hole.
[0194] In one embodiment, the data acquisition module 200 is further configured to obtain the theoretical spacing information and the actual spacing information between each target hole in the workpiece to be processed and the corresponding target holes; generate the target hole expansion and contraction ratio of each target hole according to the theoretical spacing information and the actual spacing information corresponding to each target hole.
[0195] In one embodiment, the data acquisition module 200 is further configured to classify each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole; generate the type target hole expansion and contraction ratio based on the theoretical spacing information and the actual spacing information corresponding to multiple target holes belonging to the same type, and use the type target hole expansion and contraction ratio as the target hole expansion and contraction ratio of multiple target holes belonging to the same type.
[0196] In one embodiment, the data acquisition module 200 is further configured to generate the target error level corresponding to each target hole according to the error between the theoretical spacing information and the actual spacing information corresponding to each target hole, and obtain the type mapping relationship between the error level and the target hole type; generate the target hole type of each target hole based on the target error level and the type mapping relationship corresponding to each target hole; classify each target hole based on the target hole type of each target hole.
[0197] In one embodiment, the theoretical spacing information includes the theoretical spacing information in the first direction and the theoretical spacing information in the second direction, the actual spacing information includes the actual spacing information in the first direction and the actual spacing information in the second direction, the first direction is perpendicular to the second direction, and the data acquisition module 200 is further configured to, for each target hole, generate the first target hole expansion and contraction ratio in the first direction according to the theoretical spacing information and the actual spacing information in the first direction; generate the second target hole expansion and contraction ratio in the second direction according to the theoretical spacing information and the actual spacing information in the second direction; combine the first target hole expansion and contraction ratio and the second target hole expansion and contraction ratio to obtain the target hole expansion and contraction ratio of the target hole.
[0198] Each module in the above-mentioned drilling device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0199] In an exemplary embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 9 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the theoretical position information of each of the multiple target holes and the expansion and contraction ratio of the target holes. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a drilling method.
[0200] Those skilled in the art can understand that Figure 9 the structure shown in
[0201] is a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0202] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the steps in each of the above method embodiments.
[0202] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the steps in each of the above method embodiments.
[0203] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, it implements the steps in each of the above method embodiments.
[0204] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0205] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this application.
[0206] The above embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A drilling method, characterized in that, The method includes: Determining the theoretical position information of multiple target holes in the workpiece to be processed and the target hole expansion / contraction ratio of each target hole according to the positioning method of the workpiece to be processed; Respectively correcting the theoretical position information of the multiple target holes according to the target hole expansion / contraction ratio of each target hole to obtain the actual drilling position information; Performing a drilling operation on the workpiece to be processed based on all the actual drilling position information.
2. The method according to claim 1, characterized in that, The multiple target holes include a first target hole and a second target hole. The workpiece to be processed is placed on the workbench of a drilling machine. The workbench of the drilling machine is provided with a clamping assembly. The clamping assembly is provided with a first electrical wooden block and a second electrical wooden block. The first electrical wooden block and the second electrical wooden block are respectively arranged on the first side and the second side of the workbench. The positioning method includes: Setting a first positioning pin on the first electrical wooden block and a second positioning pin on the second electrical wooden block; Completing the positioning of the workpiece to be processed by matching the first positioning pin with the first target hole and the second positioning pin with the second target hole.
3. The method according to claim 2, wherein Respectively correcting the theoretical position information of the multiple target holes according to the target hole expansion / contraction ratio of each target hole to obtain the actual drilling position information, including: Obtaining the first zero-point theoretical position information and the first center theoretical position information of the workpiece to be processed; Based on the first center theoretical position information, the target hole expansion / contraction ratios of the first target hole and the second target hole, respectively correcting the theoretical position information of the first target hole, the second target hole and the first zero-point theoretical position information to obtain the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole and the first initial zero-point theoretical position information; Taking any one of the first target hole and the second target hole as a rotation fulcrum, and generating the rotation angle information of the rotation fulcrum based on the first initial drilling position information of the first target hole, the first initial drilling position information of the second target hole, the theoretical position information of the first target hole and the theoretical position information of the second target hole; Obtaining the first position deviation between the preset first assembly position information of the clamping assembly and the first initial zero-point theoretical position information, and respectively processing the first initial drilling position information of the first target hole and the first initial drilling position information of the second target hole based on the first position deviation to obtain the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole; Using the rotation angle information to process the second initial drilling position information of the first target hole and the second initial drilling position information of the second target hole with the rotation fulcrum as the reference point to obtain the actual drilling position information of the first target hole and the actual drilling position information of the second target hole.
4. The method according to claim 1, wherein The multiple target holes include a third target hole and a fourth target hole. The workpiece to be processed is placed on the workbench of a drilling machine. The workbench is provided with an electrical wooden board. The positioning method includes: Respectively setting a third positioning pin and a fourth positioning pin at any two points of the electrical wooden board; The positioning of the workpiece to be machined is completed by the cooperation of the third positioning pin with the third target hole and the cooperation of the fourth positioning pin with the fourth target hole.
5. The method according to claim 4, wherein The method of respectively correcting the theoretical position information of the multiple target holes according to the target hole expansion and contraction ratios of the respective target holes to obtain the actual drilling position information includes: Obtaining the second center theoretical position information of the workpiece to be machined; According to the second center theoretical position information, the target hole expansion and contraction ratios of the third target hole and the fourth target hole, respectively correcting the theoretical position information of the third target hole and the fourth target hole to obtain the actual drilling position information of the third target hole and the actual drilling position information of the fourth target hole.
6. The method according to claim 1, characterized in that, The multiple target holes include a fifth target hole and a sixth target hole. The workpiece to be machined is configured to be placed on the workbench of a drilling machine. The workbench of the drilling machine is provided with a clamping assembly. The clamping assembly is provided with a first clamping hole and a second clamping hole. The positioning method includes: Setting a fifth positioning pin on the first clamping hole and setting a sixth positioning pin on the second clamping hole; The positioning of the workpiece to be machined is completed by the cooperation of the fifth positioning pin with the fifth target hole and the cooperation of the sixth positioning pin with the sixth target hole.
7. The method according to claim 6, characterized in that, The method of respectively correcting the theoretical position information of the multiple target holes according to the target hole expansion and contraction ratios of the respective target holes to obtain the actual drilling position information includes: Obtaining the second zero-point theoretical position information and the third center theoretical position information of the workpiece to be machined; Based on the third center theoretical position information, the target hole expansion and contraction ratios of the fifth target hole and the sixth target hole, respectively correcting the theoretical position information of the fifth target hole, the sixth target hole and the second zero-point theoretical position information; Obtaining a second position deviation between the preset second component position information of the clamping assembly and the corrected second zero-point theoretical position information, and based on the second position deviation, respectively processing the corrected theoretical position information of the fifth target hole and the sixth target hole to obtain the actual drilling position information of the fifth target hole and the actual drilling position information of the sixth target hole.
8. The method according to claim 1, characterized in that, Determining the target hole expansion and contraction ratios of the respective target holes in the workpiece to be machined includes: Obtaining the theoretical spacing information and the actual spacing information between each target hole in the workpiece to be machined and the corresponding target holes respectively; Generating the target hole expansion and contraction ratios of the respective target holes according to the theoretical spacing information and the actual spacing information respectively corresponding to the respective target holes.
9. The method according to claim 8, characterized in that The method of generating the target hole expansion and contraction ratios of the respective target holes according to the theoretical spacing information and the actual spacing information respectively corresponding to the respective target holes further includes: Classifying the respective target holes according to the error between the theoretical spacing information and the actual spacing information respectively corresponding to the respective target holes; Based on the theoretical spacing information and the actual spacing information respectively corresponding to multiple target holes belonging to the same type, generating a type target hole expansion and contraction ratio, and using the type target hole expansion and contraction ratio as the target hole expansion and contraction ratio of multiple target holes belonging to the same type.
10. The method according to claim 9, wherein Classify each of the target holes according to the error between the theoretical spacing information and the actual spacing information corresponding to each of the target holes, including: Generate a target error level corresponding to each of the target holes according to the error between the theoretical spacing information and the actual spacing information corresponding to each of the target holes, and obtain the type mapping relationship between the error level and the target hole type; Generate the target hole type of each target hole based on the target error level corresponding to each target hole and the type mapping relationship; Classify each of the target holes based on the target hole type of each of the target holes.
11. The method according to claim 8, wherein The theoretical spacing information includes the theoretical spacing information in the first direction and the theoretical spacing information in the second direction, the actual spacing information includes the actual spacing information in the first direction and the actual spacing information in the second direction, the first direction is perpendicular to the second direction, and generating the expansion and contraction ratio of each target hole according to the theoretical spacing information and the actual spacing information corresponding to each target hole includes: For each of the target holes, generate a first target hole expansion and contraction ratio in the first direction according to the theoretical spacing information and the actual spacing information in the first direction; Generate a second target hole expansion and contraction ratio in the second direction according to the theoretical spacing information and the actual spacing information in the second direction; Combine the first target hole expansion and contraction ratio and the second target hole expansion and contraction ratio to obtain the expansion and contraction ratio of the target hole.
12. A drilling device, characterized in that, The device includes: A data acquisition module for determining the theoretical position information of multiple target holes in the workpiece to be processed and the expansion and contraction ratio of each target hole according to the positioning method of the workpiece to be processed; A position correction module for respectively correcting the theoretical position information of the target hole pairs of the target holes according to the expansion and contraction ratio of each target hole to obtain the actual drilling position information; A drilling module for performing a drilling operation on the workpiece to be processed based on all the actual drilling position information.
13. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 11 are implemented.