Short slot inclination compensation method

By updating the end point coordinates of the short slot hole in the drilling program and automatically correcting the tilt using coordinate transformation, the problem of short slot hole tilt in the existing technology, which is complicated to operate and inefficient, is solved, and an efficient and convenient compensation effect is achieved.

CN120659233APending Publication Date: 2025-09-16DELTON TECH (GUANGZHOU) INC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510530565.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

The existing technology is complex, inefficient and lacks flexibility in solving the problem of short slot hole tilt, and cannot quickly and effectively compensate through the guide hole method.

Method used

By compensating and updating the coordinates of the short slot holes in the drilling program, the inclination is automatically corrected using coordinate transformation, the compensation inclination angle is calculated, and the end point coordinates are updated to form an updated drilling program.

Benefits of technology

It realizes the automation, efficiency and convenience of short slot hole tilt compensation, improves drilling accuracy and efficiency, and avoids cumbersome auxiliary tools and processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120659233A_ABST
    Figure CN120659233A_ABST
Patent Text Reader

Abstract

The invention provides a short slot inclination compensation method, which comprises the following steps of: S1, analyzing a drilling program file, identifying a short slot, and extracting a starting coordinate and an end point coordinate of the short slot; the starting coordinate refers to a starting point of short slot hole drilling, and the end point coordinate refers to an end point of short slot hole drilling; s2, calculating a compensation inclination angle of the short slot hole according to the length of the short slot hole and a preset compensation value; s3, updating the end point coordinate of the short slot hole according to the compensation inclination angle; and S4, forming an updated drilling program according to the updated coordinates. According to the short slot inclination compensation method provided by the invention, the inclination correction process is automatically and efficiently carried out by directly compensating and updating the coordinates of the short slot in the drilling program, and the accuracy of the compensated short slot is ensured through coordinate transformation, so that the inclination compensation efficiency of the short slot is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of drilling production, and in particular to a short slot hole tilt compensation method. Background Art

[0002] Short slot holes, defined as slotted holes in machining processes with a length less than or equal to twice the slot width, are used for positioning and connecting PCBs or precision components. Short slot holes often tilt during the drilling process. This can be caused by a variety of factors, including material factors such as thermal expansion of the substrate, internal stress or deformation; equipment and tool factors such as insufficient drilling machine precision, worn or improperly selected drill bits; process parameter factors such as feed rate and rotational speed mismatch, inadequate dust collection and cooling; and environmental factors such as temperature and humidity.

[0003] In the existing technology, in order to solve the problem of tilting during the production of short slot holes, the main method is to add guide holes at both ends of the short slot holes to guide the short slot holes. This method has the following defects: First, additional drilling is required to achieve this, which makes the operating software interface complex and the process cumbersome, and is prone to unnecessary risks due to operational errors. Secondly, it is inefficient: it cannot solve the tilting problem quickly and effectively. It is necessary to manually find the objects to be added and add guide holes at both ends of the short slot holes. Finally, it lacks flexibility: the method of adding guide holes to solve the problem of short slot hole tilting is too rigid and cannot flexibly adjust the data according to the actual environment.

[0004] Therefore, it is necessary to find a more convenient and efficient tilt compensation method. Summary of the Invention

[0005] In order to overcome the problems existing in the related art, the purpose of the present invention is to provide a short slot hole tilt compensation method. By directly compensating and updating the short slot hole coordinates in the drilling program, the tilt correction process is automatically and efficiently carried out. Through coordinate transformation, the accuracy of the compensated short slot hole is ensured, thereby improving the efficiency of short slot hole tilt compensation.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] A short slot tilt compensation method, comprising:

[0008] S1: Parse the drilling program file, identify the short slot hole, and extract the starting coordinates and end coordinates of the short slot hole; the starting coordinate refers to the starting point of the short slot hole drilling, and the end coordinate refers to the end point of the short slot hole drilling;

[0009] S2: Calculate the compensation tilt angle of the short slot hole according to the length of the short slot hole and the preset compensation value;

[0010] S3: Update the end point coordinates of the short slot according to the compensation tilt angle;

[0011] S4: generating an updated drilling program according to the updated coordinates.

[0012] Furthermore, the identifying of the short slot holes includes: setting a screening condition according to an expression of the short slot holes in the drilling program, and matching the features of the short slot holes in the drilling program through the screening condition.

[0013] Furthermore, the screening condition is the tool number used for drilling the short slot hole.

[0014] Furthermore, the rotation direction of the tilt angle compensation in step S2 is opposite to the rotation direction of the short slot hole in the drilling process, and the rotation direction refers to the direction in which the end point coordinates of the short slot hole are offset relative to the starting point coordinates.

[0015] Furthermore, the calculation method of the compensation tilt angle in step S2 includes:

[0016] Calculate the length of the short slot;

[0017] Set the compensation tilt distance of the short slot end position;

[0018] The compensation tilt angle of the end point of the short slot hole is calculated according to the length of the short slot hole and the compensation tilt distance.

[0019] Furthermore, the calculation formula for the compensation tilt angle is: cosθ=(2d 2 -s 2 ) / (2d 2 ), where d refers to the length of the short slot hole, s refers to the compensation tilt distance at the end position of the short slot hole, and s is a fixed value.

[0020] Furthermore, the calculation formula for the length of the short slot is: Among them, (x1, y1) is the starting coordinate of the short slot hole; (x2, y2) is the ending coordinate of the short slot hole;

[0021] The calculation method for the end point coordinates of the updated short slot hole is:

[0022] x3=(x2-x1)cosθ-(y2-y1)sinθ+x1;

[0023] y3=(x2-x1)sinθ+(y2-y1)cosθ+y1; where (x3, y3) are the updated coordinates of the end point of the short slot.

[0024] Furthermore, the formatting of the updated coordinates specifically includes: padding the updated coordinates with zeros and adjusting the symbol format.

[0025] Furthermore, the slot length of the short slot hole is less than or equal to twice the slot width.

[0026] Furthermore, the method further includes: performing drilling processing according to the updated drilling program.

[0027] The beneficial effects of the present invention are as follows: the present application can automatically identify and match short slot holes in the drilling program, and extract the starting coordinates and end coordinates of the short slot holes in the drilling program file. During the drilling process, the starting coordinates will not change, but the end coordinates will be offset, causing the short slot holes to tilt and offset; before drilling, the present application calculates the compensation tilt angle based on the short slot hole length and a preset compensation value, and uses the compensation tilt angle to update and replace the end coordinates to form an updated drilling program; the tilt compensation process of the present application makes the end coordinates of the short slot hole pre-offset in the opposite direction, so that during the drilling process, the end coordinates of the short slot hole will automatically shift to the original position, thereby avoiding the tilt of the short slot hole; the present application only needs to determine the preset compensation value to automatically perform the short slot hole tilt compensation process. The whole process is efficient and convenient, and the compensation is accurate, which improves the accuracy and efficiency of short slot hole drilling and avoids the cumbersome process of using auxiliary tools or auxiliary processes for tilt compensation in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is a flow chart of the short slot tilt compensation method of this application;

[0029] Figure 2 This is a partial comparison diagram before and after the drilling program of Example 3 is updated. DETAILED DESCRIPTION

[0030] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to make the present invention more thorough and complete and to fully convey the scope of the present invention to those skilled in the art.

[0031] Example 1

[0032] This application provides a short slot tilt compensation method, comprising:

[0033] S1: Parse the drilling program file, identify the short slot hole, and extract the starting coordinates and end coordinates of the short slot hole; the starting coordinate refers to the starting point of the short slot hole drilling, and the end coordinate refers to the end point of the short slot hole drilling;

[0034] S2: Calculate the compensation tilt angle of the short slot hole according to the length of the short slot hole and the preset compensation value;

[0035] S3: Update the end point coordinates of the short slot according to the compensation tilt angle;

[0036] S4: generating an updated drilling program according to the updated coordinates.

[0037] The drilling process of the short slot hole in the present application is a linear drilling process, in which the tool moves linearly between a starting point and an end point to form the short slot hole.

[0038] The short slot hole in this application refers to a slot-shaped hole with a slot length less than or equal to twice the slot width. During the drilling process of the short slot hole, an offset will occur due to the influence of the drilling process or the material of the PCB board. The direction and angle of the short slot hole offset for the same batch of materials and drilling processes are the same. The principle of this application is to pre-compensate the short slot hole before drilling, that is, to rotate it in the direction opposite to the offset direction during the drilling process. In this way, during the drilling process, the position of the short slot hole after the rotation offset coincides with its original position, thereby realizing compensation for the drilling offset of the short slot hole.

[0039] In this application, rotation of the short slot hole refers to the drilling start point remaining stationary while the drilling end point shifts. This can be understood as a rotational shift with the short slot hole's start point as the origin and the length of the short slot hole as the radius. The compensation tilt angle in this application is in the opposite direction to the offset angle during drilling, but the angle is the same in magnitude.

[0040] The size of the compensation tilt angle in this application is related to the length of the short slot hole. In actual operation, under the conditions of the same material and the same drilling process, the offset distance of the end coordinates of short slot holes of different lengths is basically the same, which leads to different offset angles of short slot holes of different lengths. Therefore, the preset compensation value of this application is the offset distance value, and then the corresponding compensation tilt angle is calculated based on the length of the short slot hole and the preset offset distance value, and the drilling program is updated and replaced accordingly.

[0041] The present application can automatically identify and match short slot holes in the drilling program, and extract the starting coordinates and end coordinates of the short slot holes in the drilling program file. During the drilling process, the starting coordinates will not change, but the end coordinates will be offset, causing the short slot holes to tilt and offset; before drilling, the present application calculates the compensation tilt angle based on the short slot hole length and the preset compensation value, and uses the compensation tilt angle to update and replace the end coordinates to form an updated drilling program; the tilt compensation process of the present application makes the end coordinates of the short slot hole pre-offset in the opposite direction, so that during the drilling process, the end coordinates of the short slot hole will automatically offset to the original position, thereby avoiding the tilt of the short slot hole; the present application only needs to determine the preset compensation value to automatically perform the short slot hole tilt compensation process. The whole process is efficient and convenient, and the compensation is accurate, which improves the accuracy and efficiency of short slot hole drilling and avoids the cumbersome process of using auxiliary tools or auxiliary processes for tilt compensation in the prior art.

[0042] Example 2

[0043] like Figure 1 As shown, the present application provides a short slot tilt compensation method, comprising:

[0044] S1: Parse the drilling program file, identify the short slot hole, and extract the starting coordinates and end coordinates of the short slot hole; the starting coordinate refers to the starting point of the short slot hole drilling, and the end coordinate refers to the end point of the short slot hole drilling.

[0045] Specifically, filtering conditions are set based on the expression of short slot holes in the drilling program, and the characteristics of short slot holes in the drilling program are matched through the filtering conditions. The drilling program refers to the control program for all drilling processes including short slot holes set for the processing plate. In the process of forming the drilling program, different coding methods are used for different holes. This application can set filtering conditions based on the coding method, that is, find the unique coding for short slot holes in the expression formed by the coding method, so as to achieve matching and identification of short slot holes.

[0046] For example, when encoding a short slot hole, tool information will be added to the corresponding code and the tool number will be noted. In the entire drilling process, the tool code corresponding to the short slot hole is unique, so the short slot hole can be identified and matched in the encoding program based on the tool code.

[0047] The drilling program will record the starting point and ending point of the short slot hole, that is, the starting point and ending point of the tool. It should be noted that the drilling process of the short slot hole is linear drilling, and the tool moves in a straight line between the starting point and the ending point to form the short slot hole. Therefore, it is only necessary to record the starting coordinates and the ending coordinates of the short slot hole, and combine them with the tool coding to control the drilling process of the short slot hole.

[0048] In the subsequent compensation process, the starting coordinates of the short slot hole remain unchanged, and the end coordinates of the short slot hole are offset to offset the tilt offset generated in the drilling process.

[0049] S2: Calculate the compensation tilt angle of the short slot hole according to the length of the short slot hole and the preset compensation value.

[0050] The rotation direction of the compensation tilt angle is opposite to the rotation direction of the short slot during the drilling process. This rotation direction refers to the direction in which the coordinates of the end point of the short slot are offset relative to the coordinates of the starting point. In practice, under different materials and drilling conditions, the offset distance of the short slot is the same, resulting in different offset angles for short slots of different lengths. Therefore, the preset compensation value in this step is the offset distance value determined by the drilling process and the material of the workpiece.

[0051] Furthermore, the calculation method for compensating the tilt angle in this application includes:

[0052] S21: Calculate the length of the short slot hole. The calculation formula for the length of the short slot hole is: Among them, (x1, y1) is the starting coordinate of the short slot hole; (x2, y2) is the ending coordinate of the short slot hole;

[0053] S22: Set the compensation tilt distance of the short slot end position;

[0054] S23: Calculate the compensation tilt angle of the end point of the short slot hole according to the length of the short slot hole and the compensation tilt distance; the calculation formula of the compensation tilt angle is: cosθ=(2d 2 -s 2 ) / (2d 2 ), where d refers to the length of the short slot, s refers to the compensation tilt distance at the end position of the short slot, and s is a fixed value related to the drill diameter.

[0055] Specifically, this step can form a triangle including the offset short slots before and after, and calculate the rotation angle of the offset short slots before and after according to the cosine theorem, thereby deriving the calculation formula for the above-mentioned compensation tilt angle.

[0056] S3: updating the end point coordinates of the short slot hole according to the compensation tilt angle.

[0057] The calculation method for the end point coordinates of the updated short slot hole is:

[0058] x3=(x2-x1)cosθ-(y2-y1)sinθ+x1;

[0059] y3=(x2-x1)sinθ+(y2-y1)cosθ+y1; where (x3, y3) are the updated coordinates of the end point of the short slot.

[0060] S4: Based on the updated coordinates, an updated drilling program is generated. Specifically, it includes:

[0061] Keep the starting coordinates unchanged;

[0062] The end point coordinates are replaced and updated, and the replaced and updated end point coordinates are formatted. The specific formatting is related to the coding expression in the drilling program. For example, when the coordinates in the coding program are all expressed in three digits, the updated coordinates need to be padded with zeros to three digits, and the symbol format needs to be adjusted to make it consistent with the coordinate expression in the coding program.

[0063] S5: Perform drilling according to the updated drilling program.

[0064] Since the end point coordinates of the pre-measured short slot hole are compensated in the opposite direction, when the drilling process is executed according to the updated drilling program, the short slot hole will be offset, and the offset tilt distance is equal to the compensated distance, ensuring that the short slot hole formed by drilling is located in the original position.

[0065] This application only needs to determine the preset compensation value to automatically perform the short slot hole tilt compensation process. The whole process is efficient and convenient, and the compensation is accurate, which improves the accuracy and efficiency of short slot hole drilling and avoids the cumbersome process of using auxiliary tools or auxiliary processes for tilt compensation in the existing technology.

[0066] When the PCB board or drilling process parameters change, you only need to adjust the preset compensation values ​​to form a corresponding compensation method. This application method does not require GENESIS or INCAMPRO software, and can be used directly in the drilling program to make compensation corrections. It also allows users to customize the compensation values ​​and can be applied to different process scenarios.

[0067] In actual operation, you can first preset a compensation value, update the drilling program and execute the drilling process. By comparing the processed PCB board and the target board, you can determine whether the compensation value is appropriate. If it is not appropriate, you can repeat the above process and make adjustments until the processed PCB board and the target board are completely consistent.

[0068] Example 3

[0069] This embodiment provides a short slot tilt compensation method, including:

[0070] S1: Parse the drilling program file, identify short slots, and extract the starting and ending coordinates of the short slots. The starting coordinates refer to the starting point of the short slot drilling, and the ending coordinates refer to the ending point of the short slot drilling. In the short slot drilling process, the tool trajectory is a straight line. In the drilling program, when coding the short slots, the starting and ending points of the short slot cutting are recorded, along with the corresponding tool code. In this embodiment, the tool code for the short slot hole ends with 6.

[0071] This step first uses regular expressions to match the characteristics of short slot holes. For example, the format (x...y...B5) is identified as the code corresponding to the drilled hole. Based on this code, the start and end coordinates of the short slot hole are extracted. Then, a filter condition is set to filter out the short slot holes by setting the tool code to end with 6.

[0072] S2: Calculate the compensation tilt angle of the short slot hole based on the length of the short slot hole and the preset compensation value. Specifically including:

[0073] S21: Calculate the length of the short slot:

[0074] The calculation formula for the length of the short slot is: Among them, (x1, y1) is the starting coordinate of the short slot hole; (x2, y2) is the ending coordinate of the short slot hole;

[0075] S22: Set the compensation tilt distance of the short slot end position to 1MIL, i.e. 0.0254mm;

[0076] S23: Calculate the compensation tilt angle of the end point of the short slot hole according to the length of the short slot hole and the compensation tilt distance; the calculation formula of the compensation tilt angle is: cosθ=(2d 2 -s 2 ) / (2d 2 ), where d refers to the length of the short slot, s refers to the compensation tilt distance at the end point of the short slot, and s is a fixed value related to the drill diameter, i.e. 0.0254 mm.

[0077] S3: updating the end point coordinates of the short slot hole according to the compensation tilt angle.

[0078] The calculation method for the end point coordinates of the updated short slot hole is:

[0079] x3=(x2-x1)cosθ-(y2-y1)sinθ+x1;

[0080] y3=(x2-x1)sinθ+(y2-y1)cosθ+y1; where (x3, y3) are the updated coordinates of the end point of the short slot.

[0081] S4: Based on the updated coordinates, an updated drilling program is generated. Specifically, it includes:

[0082] Keep the starting coordinates unchanged;

[0083] The end point coordinates are replaced and updated, and the replaced and updated end point coordinates are padded with zeros to three digits, and the symbol format is adjusted so that it is consistent with the coordinate expression in the encoding program.

[0084] like Figure 2 The figure shows a comparison diagram of some drilling programs before and after the update. It can be seen that the starting coordinates of the tool entry point are the same, while the ending coordinates of the tool retraction point, that is, the coordinates of the rotation point, have changed.

[0085] S5: Perform drilling according to the updated drilling program.

[0086] The present application can automatically identify and match short slot holes in the drilling program, and extract the starting coordinates and end coordinates of the short slot holes in the drilling program file. During the drilling process, the starting coordinates will not change, but the end coordinates will be offset, causing the short slot holes to tilt and offset; before drilling, the present application calculates the compensation tilt angle based on the short slot hole length and the preset compensation value, and uses the compensation tilt angle to update and replace the end coordinates to form an updated drilling program; the tilt compensation process of the present application makes the end coordinates of the short slot hole pre-offset in the opposite direction, so that during the drilling process, the end coordinates of the short slot hole will automatically offset to the original position, thereby avoiding the tilt of the short slot hole; the present application only needs to determine the preset compensation value to automatically perform the short slot hole tilt compensation process. The whole process is efficient and convenient, and the compensation is accurate, which improves the accuracy and efficiency of short slot hole drilling and avoids the cumbersome process of using auxiliary tools or auxiliary processes for tilt compensation in the prior art.

[0087] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used herein to describe the spatial positional relationship of a device or feature to other devices or features as shown in the figures. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figures. For example, if the device in the drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.

[0088] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. Unless otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of this application.

[0089] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.

Claims

1. A short slot tilt compensation method, characterized in that: include: S1: Parse the drilling program file, identify the short slot hole, and extract the starting coordinates and end coordinates of the short slot hole; the starting coordinate refers to the starting point of the short slot hole drilling, and the end coordinate refers to the end point of the short slot hole drilling; S2: Calculate the compensation tilt angle of the short slot hole according to the length of the short slot hole and the preset compensation value; S3: Update the end point coordinates of the short slot according to the compensation tilt angle; S4: generating an updated drilling program according to the updated coordinates.

2. A short slot hole tilt compensation method according to claim 1, characterized in that: The identifying of the short slot hole includes: setting a screening condition according to an expression of the short slot hole in the drilling program, and matching the characteristics of the short slot hole in the drilling program through the screening condition.

3. The short slot hole tilt compensation method according to claim 2, characterized in that: The screening condition is a tool number used for drilling short slot holes.

4. The short slot hole tilt compensation method according to claim 1, characterized in that: The rotation direction of the tilt angle compensation in step S2 is opposite to the rotation direction of the short slot hole in the drilling process, and the rotation direction refers to the direction in which the end point coordinates of the short slot hole are offset relative to the starting point coordinates.

5. The short slot hole tilt compensation method according to claim 1, characterized in that: The calculation method of the tilt compensation angle in step S2 includes: Calculate the length of the short slot; Set the compensation tilt distance of the short slot end position; The compensation tilt angle of the end point of the short slot hole is calculated according to the length of the short slot hole and the compensation tilt distance.

6. The short slot hole tilt compensation method according to claim 5, characterized in that: The calculation formula of the compensation tilt angle is: cosθ=(2d 2 -s 2 ) / (2d 2 ), where d refers to the length of the short slot hole, s refers to the compensation tilt distance at the end position of the short slot hole, and s is a fixed value.

7. The short slot hole tilt compensation method according to claim 6, characterized in that: The calculation formula for the length of the short slot is: Among them, (x1, y1) is the starting coordinate of the short slot hole; (x2, y2) is the ending coordinate of the short slot hole; The calculation method for the end point coordinates of the updated short slot hole is: x3=(x2-x1)cosθ-(y2-y1)sinθ+x1; y3=(x2-x1)sinθ+(y2-y1)cosθ+y1; where (x3, y3) are the updated coordinates of the end point of the short slot.

8. The short slot hole tilt compensation method according to claim 1, characterized in that: The formatting of the updated coordinates specifically includes: padding the updated coordinates with zeros and adjusting the symbol format.

9. The short slot hole tilt compensation method according to claim 1, characterized in that: The slot length of the short slot hole is less than or equal to twice the slot width.

10. The short slot hole tilt compensation method according to claim 1, characterized in that: Also includes: Drill holes according to the updated drilling procedure.