Process map inspection method and system
By processing the machining drawings and parts list using the processing device, and by using transformation matrix and enlarged outline technology, the problem of missed inspection of milled hole positions on the carrier was solved, the inspection efficiency and accuracy were improved, and the situation of parts being crushed was avoided.
Patent Information
- Application Number
- CN202210687658.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-06-16
AI Technical Summary
Manually inspecting the location of milled holes on the carrier can easily lead to missed inspections, resulting in parts being crushed by the carrier.
The processing device processes the machining drawing and parts list, uses a transformation matrix to convert the coordinate group into the corresponding second coordinate group, obtains the outer frame of the part and adjusts it to an enlarged outer frame, determines whether the non-hole area falls within the enlarged outer frame, and outputs a warning notification to avoid missed detection.
It improves the efficiency and accuracy of milling hole position inspection, avoids the situation where parts are crushed by the carrier, and enlarges the milling hole size within the allowable range by using the enlarged outer frame technology to avoid problems caused by part offset.
Smart Images

Figure CN117291861B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a machining drawing inspection method and system. BACKGROUND
[0002] The main purpose of a carrier is to carry various printed circuit boards and parts for functional testing or in-circuit testing (ICT) of the printed circuit boards and parts. The manufacturing process of the carrier is as follows: first, an engineer uses AutoCAD (computer aided design drawing software) and according to the data to make a carrier drawing for computer numerical control (CNC) machining; then, after the carrier drawing is completed, a transparent part distribution map is printed out, and through the transparent part distribution map, the engineer uses visual inspection to check whether the milling hole position of the part is correct. However, this manual inspection method is prone to miss the problem of not correctly milling the hole that should be milled.
[0003] When the part position is not correctly milled, once the printed circuit board is placed in the machined carrier, the problem of the part being crushed by the carrier may occur at the machined part position that is not correctly milled, thereby causing the problem of the test machine being unable to start or test abnormally. SUMMARY
[0004] In view of the above, the present application provides a machining drawing inspection method and system to solve the above problems.
[0005] According to a machining drawing inspection method of an embodiment of the present application, the method comprises the following steps executed by a processing device: obtaining a machining drawing and a part list, wherein the machining drawing comprises a non-hole area and a hole area related to a part, and the part list comprises a first coordinate group of the part; converting the first coordinate group into a second coordinate group corresponding to the machining drawing according to a conversion matrix; obtaining line data corresponding to the part according to the part list; obtaining a part outer frame corresponding to the part on the machining drawing according to the second coordinate group and the line data; adjusting the part outer frame to an enlarged outer frame according to a preset value; and outputting a warning notification when a part of the non-hole area falls within the enlarged outer frame.
[0006] A machining drawing inspection system according to an embodiment of the present application includes a memory and a processing device connected to each other. The memory stores a machining drawing and a part list, wherein the machining drawing includes a non-hole region and a hole region related to a part, and the part list includes a first coordinate set of the part. The processing device is configured to obtain the machining drawing and the part list, convert the first coordinate set into a second coordinate set corresponding to the machining drawing according to a conversion matrix, obtain line data corresponding to the part according to the part list, obtain a part bounding box corresponding to the part on the machining drawing according to the second coordinate set and the line data, adjust the part bounding box into an enlarged bounding box according to a preset value, and output a warning notification when a part of the non-hole region falls within the enlarged bounding box.
[0007] In summary, the machining drawing inspection system and method according to one or more embodiments of the present application can improve the efficiency and accuracy of checking the milling hole position on the machining drawing, avoid missing the milling hole position caused by manual inspection, and thus improve the situation that the part is crushed by the carrier. In addition, since the machining machine tool cannot necessarily process the carrier very accurately, the size of the milling hole can be enlarged within the allowable range by the technical means of forming the enlarged bounding box, so as to avoid the problem that the part is crushed due to the part offset during processing. In addition, by judging whether each boundary of the enlarged bounding box falls in the non-hole region according to the sorting result, the inspection can be performed in a sequential manner, thereby avoiding the problem of missing inspection. Furthermore, the machining drawing inspection system and method according to one or more embodiments of the present application can improve the inspection efficiency by setting the number of threads that can be executed simultaneously according to the highest execution performance of the processing device, and judging whether the target part is a checked part before executing the judgment program.
[0008] The above description of the present disclosure and the following description of the embodiments are intended to demonstrate and explain the concept and principle of the present application, and provide further explanation of the scope of the patent application of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0009] Figure 1 A block diagram of a machining drawing inspection system according to an embodiment of the present application.
[0010] Figure 2 A flowchart of a machining drawing inspection method according to an embodiment of the present application.
[0011] Figure 3 A detailed flowchart showing step S15 of Figure 2 .
[0012] Figure 4 A detailed flowchart showing step S21 of Figure 2 .
[0013] Figure 5 A schematic diagram showing a part bounding box and an enlarged bounding box.
[0014] Figure 6 Fig. 6 is a diagram showing a part of a non-hole area on a machining map.
[0015] Explanation of Reference Numerals:
[0016] 1: Machining map inspection system
[0017] 11: Memory
[0018] 12: Processing device
[0019] P0-P8: Points
[0020] BDY1: Part outer frame
[0021] BDY2, BDY2': Enlarged outer frame
[0022] IMG1: Machining map
[0023] IMG2: Partial enlarged view
[0024] S11, S13, S15, S17, S19, S21, S23, S25, S151, S153, S211, S213: Steps DETAILED DESCRIPTION
[0025] The detailed features and advantages of the present application are described in detail in the embodiments below, which are sufficient for those skilled in the art to understand the technical content of the present application and implement it, and those skilled in the art can easily understand the related purposes and advantages of the present application according to the content disclosed in the specification, claims and drawings. The following examples are further detailed to illustrate the present application, but do not limit the scope of the present application in any way.
[0026] The machining map inspection system and method shown in one or more embodiments of the present application can be used to check whether the milling hole position of the machining map surface of the carrier carrying the printed circuit board is correct, so that the hole can be milled at the correct position when the carrier is machined.
[0027] To illustrate the machining map inspection system and method shown in one or more embodiments of the present application, please refer to Figure 1 and Figure 2 wherein Figure 1 Fig. 1 is a block diagram of a machining map inspection system according to an embodiment of the present application, Figure 2 Fig. 2 is a flow chart of a machining map inspection method according to an embodiment of the present application. The machining map inspection system 1 of an embodiment of the present application can include a memory 11 and a processing device 12, and the memory 11 can be electrically connected to or in communication with the processing device 12.
[0028] The memory 11 may be non-volatile memory (NVM), such as read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), or flash memory, etc., and the present invention is not limited thereto. The processing device 12 may be implemented as a processor, a programmable logic device (PLD), or an application-specific integrated circuit (ASIC), etc., but the present invention is not limited thereto.
[0029] The machining drawing inspection method of one embodiment of the present invention can be executed by a machining drawing inspection system 1, and in particular by a processing device 12 of the machining drawing inspection system 1. For example... Figure 2 As shown, the machining drawing inspection method may include the following steps performed by the processing device 12: Step S11: Obtain the machining drawing and parts list, wherein the machining drawing includes a non-opening area and an opening area related to the parts, and the parts list includes a first coordinate group of the parts; Step S13: Convert the first coordinate group into a second coordinate group corresponding to the machining drawing according to a transformation matrix; Step S15: Obtain the line data of the corresponding parts according to the parts list; Step S17: Obtain the outer frame of the parts corresponding to the parts on the machining drawing according to the second coordinate group and the line data; Step S19: Adjust the outer frame of the parts to an enlarged outer frame according to a preset value; Step S21: Determine whether a part of the non-opening area falls within the enlarged outer frame; If the determination result of step S21 is "yes", execute step S23: Output a warning notification; and if the determination result of step S21 is "no", execute step S25: Output a completion notification.
[0030] The machining map and the parts list are pre-stored in the memory 11, and the processing device 12 obtains the machining map and the parts list from the memory 11 at step S11. The file format of the machining map can be joint photographic group (JPG), and the machining map is an engineering file used for machining a carrier, which includes a hole area to be milled on the carrier for installing parts and a non-hole area not to be milled. The parts can be various electronic parts to be installed on a printed circuit board. The parts list can correspond to an AutoCAD (computer-aided design) file, such as a fabrication (FAB) file of the AutoCAD, and the parts list can record the names of the parts, packaging data corresponding to the names of the parts, and a first coordinate set of the parts in the AutoCAD file.
[0031] At step S13, the processing device 12 converts the first coordinate set of the target part in the AutoCAD file to a second coordinate set in the machining map by using a conversion matrix. The machining map can have four or more positioning holes, and the processing device 12 can obtain the conversion matrix through the positioning holes. The conversion matrix can be an H-matrix, which is used to project the first coordinate set of the target part in the AutoCAD file to the machining map to obtain the corresponding second coordinate set. The second coordinate set can be coordinates corresponding to a Gerber file.
[0032] At step S15, the processing device 12 can search the parts list according to the name of the part (hereinafter referred to as the target part) to obtain line data of the target part from the parts list. Specifically, the shape (or frame) of each part is formed by combining lines, and the line data can indicate the shape of the line, such as a straight line or a curved line and its curvature.
[0033] At step S17, the processing device 12 can connect a plurality of second coordinates of the second coordinate set in the machining map according to the line data to obtain a part frame of the target part in the machining map. In other words, the processing device 12 can first determine two adjacent second coordinates, and then determine whether to connect the two second coordinates by a straight line or a curved line according to the indication of the line data.
[0034] At step S19, the processing device 12 can multiply the length of each line of the part outer frame by a preset value to obtain the enlarged outer frame, or add the length of each line of the part outer frame by a preset value to obtain the enlarged outer frame. In other words, the enlarged outer frame can have the same or similar shape as the part outer frame. In the embodiment in which the enlarged outer frame is obtained by multiplying the preset value, the preset value can be 2; in the embodiment in which the enlarged outer frame is obtained by adding the preset value, the preset value can be 1 mm, but the present application is not limited to the specific value of the preset value.
[0035] At step S21, the processing device 12 can determine whether a portion of the non-hole region on the machining graph overlaps with the area enclosed by the enlarged outer frame to determine whether the portion of the non-hole region falls within the enlarged outer frame. If the processing device 12 determines that the portion of the non-hole region falls within the enlarged outer frame, at step S23, the processing device 12 outputs a warning notification, wherein the processing device 12 can output the warning notification to a display electrically or communicatively connected to the processing device 12, or output the warning notification to an electronic mailbox of the relevant engineering personnel, etc., which is not limited by the present application. In addition, in the embodiment in which the warning notification is output to the display, the processing device 12 can control the display to display the machining graph including the enlarged outer frame, and the warning notification can be a warning mark (for example, a red dot as a mark) presented at the non-hole region falling within the enlarged outer frame. If the processing device 12 determines that the portion of the non-hole region does not fall within the enlarged outer frame, at step S25, the processing device 12 can output a completion notification to a display electrically or communicatively connected to the processing device 12, or output the completion notification to an electronic mailbox of the relevant engineering personnel, etc., wherein the completion notification indicates that the checking of the machining graph has been completed.
[0036] It should be noted that step S25 is an optional step, and if the determination result of step S21 is "No", the processing device 12 can also not output the completion notification and end the process. In addition, the number of target parts can be one or more, which is not limited by the present application.
[0037] Through the machining graph checking system and method described above, the efficiency and accuracy of checking the milling hole position on the machining graph can be improved, and the problem of missing the milling hole position caused by manual checking can be avoided, thereby improving the situation that the part is crushed by the carrier. In addition, since the machining machine tool cannot necessarily process the carrier very accurately, and through the technical means of forming the enlarged outer frame, the size of the milling hole can be enlarged within the allowable range to avoid the problem that the part is crushed due to the part offset during machining.
[0038] Please refer to Figure 1 and Figure 3 together. Figure 3 show Figure 2 the detailed flowchart of step S15. As Figure 3 shown, Figure 2The step S15 can include a step S151 of obtaining the part package of the part from the parts list according to the part name, and a step S153 of obtaining the line data according to the part package using language integrated query.
[0039] As mentioned above, the parts list can record part names of various parts and part packages corresponding to the part names. Therefore, at the step S151, the processing device 12 can determine the text of the part package after the part name of the target part in the parts list, so as to find the data recorded after the part package at the step S153 described below.
[0040] At the step S153, the processing device 12 can obtain the line data of the part package using language integrated query (LINQ), wherein the line data can indicate the shape of the part package, such as a straight line or a curve. In other words, the line data described above in the step S15 can be the line data of the part package. Figure 2
[0041] Please continue to refer to Figure 1 , Figure 4 and Figure 5 , wherein Figure 4 shows a flow chart of an embodiment of the step S21, Figure 2 Figure 5 is a schematic diagram showing the part outer frame and the enlarged outer frame. It should be noted that the second coordinate set obtained by the processing device 12 at the step S13 of Figure 2 may include a plurality of second coordinates. As shown in Figure 4 , Figure 2 The step S21 can include a step S211 of sorting the plurality of second coordinates of the second coordinate set according to the longitudinal axis coordinates and the lateral axis coordinates of the second coordinates, and a step S213 of sequentially determining whether each of the plurality of boundaries of the enlarged outer frame is located in the non-opening region according to the sorting result.
[0042] Figure 5 The part outer frame BDY1 and the enlarged outer frame BDY2 are shown at the same time, and the plurality of first coordinates of the first coordinate set can be the coordinates of a plurality of points on the part outer frame BDY1 and the coordinates of the center point of the part outer frame BDY1. The first coordinate set after conversion by the conversion matrix can be the second coordinates of a plurality of points P0-P8 on the enlarged outer frame BDY2, wherein the point P0 corresponds to the center point of the part outer frame BDY1, and the points P1-P8 correspond to the points on the part outer frame BDY1.
[0043] At step S211, the processing device 12 can sort the second coordinates of the points P1-P8 according to the horizontal (e.g., X-axis) and vertical (e.g., Y-axis) coordinates of the second coordinates of the points P1-P8, such as in ascending order. For example, the processing device 12 can sort the second coordinates of the points P1-P8 according to the sorting rule from the left side to the right side and from the top side to the bottom side of the machining graph as: the second coordinates of P1, the second coordinates of P2, the second coordinates of P3, the second coordinates of P4, the second coordinates of P5, the second coordinates of P6, the second coordinates of P7, and the second coordinates of P8. It is to be noted that the above-mentioned sorting rule is merely an example, and the present application is not limited to the sorting rule.
[0044] Next, at step S213, the processing device 12 can sequentially determine whether each of the boundaries connected by a plurality of the points P1-P8 is located in the non- hole region according to the sorting result. For example, according to the above-mentioned sorting result, the processing device 12 can first determine whether the boundary formed by the points P1 and P2 is located in the non-hole region, then determine whether the boundary formed by the points P2 and P3 is located in the non-hole region, and then determine whether the boundary formed by the points P1 and P4 is located in the non-hole region, and so on. If it is determined that one of the boundaries falls in the non-hole region, the processing device 12 can perform step S23 of Figure 2 ; if it is determined that none of the boundaries falls in the non-hole region, the processing device 12 can perform step S25 of Figure 2 .
[0045] By determining whether each of the boundaries of the enlarged outer frame falls in the non-hole region according to the sorting result, the checking can be performed in a sequential manner, thereby avoiding the problem of missing.
[0046] Please refer to Figure 6 , wherein Figure 6 a schematic diagram of checking whether a part of the non-hole region on the machining graph falls in the enlarged outer frame is shown. The hole region and the non-hole region on the machining graph can have different colors, as shown in the figure, the hole region of the machining graph IMG1 can be presented in white, and the non-hole region can be presented in gray, wherein the white circular regions located in the four corners of the machining graph IMG1 can be used as the aforementioned positioning points. After the sorting result is obtained by step S211, the implementation manner of the processing device for determining whether a part of the non-hole region falls in the enlarged outer frame can also be determined by the colors presented on the machining graph IMG1. Figure 4
[0047] Specifically, the processing device can sequentially determine whether both sides of each of the boundaries of the enlarged outer frame BDY2' are presented in the color corresponding to the non-hole region according to the sorting result, and output a warning notification when it is determined that both sides of one of the boundaries are presented in the color corresponding to the non-hole region. For example, the processing device can first determine whether both sides of the boundary formed by the points P1 and P2 are presented in the color corresponding to the non-hole region, then determine whether both sides of the boundary formed by the points P2 and P3 are presented in the color corresponding to the non-hole region, and then determine whether both sides of the boundary formed by the points P1 and P4 are presented in the color corresponding to the non-hole region, and so on. If it is determined that both sides of one of the boundaries are presented in the color corresponding to the non-hole region, the processing device 12 can perform step S23 of Figure 6 For example, from the partial enlarged view IMG2 acquired from the machining map IMG1, it can be seen that both sides of the part of the boundary of the enlarged outer frame BDY2' present the gray color corresponding to the non-hole area, so the processing device can output a warning notification.
[0048] In addition, as mentioned above, the number of target parts can be multiple, so in addition to the above, in another embodiment, the processing device can simultaneously execute the following judgment procedures on multiple target parts through a multithreading program: judging whether a part of the non-hole area falls within the enlarged outer frame, sequentially judging whether each of the multiple boundaries of the enlarged outer frame is located in the non-hole area according to the sorting result, or sequentially judging whether both sides of each of the boundaries of the enlarged outer frame present one of the colors corresponding to the non-hole area according to the sorting result. For example, the processing device can first determine its own highest execution performance (for example, the highest execution performance can be associated with the number of cores of the processing device), and set the number of threads capable of simultaneously performing the inspection according to the highest execution performance, then simultaneously execute one of the above judgment procedures on multiple target parts according to the number of threads, and the processing device can first judge whether the target part is a part that has been inspected before executing the judgment procedure, so as to improve the inspection efficiency.
[0049] In summary, the machining map inspection system and method shown in one or more embodiments of the present application can improve the efficiency and accuracy of inspecting the milling hole position on the machining map, avoid missing the milling hole position caused by manual inspection, and thus improve the situation that the part is crushed by the carrier. In addition, since the machining machine tool cannot necessarily process the carrier very accurately, through the technical means of forming the enlarged outer frame, the size of the milling hole can be enlarged within the allowable range, so as to avoid the problem that the part is crushed due to the part offset during processing. In addition, by judging whether each boundary of the enlarged outer frame falls within the non-hole area according to the sorting result, the inspection can be performed in a sequential manner, thereby avoiding the problem of missing inspection. Furthermore, according to the machining map inspection system and method shown in one or more embodiments of the present application, by setting the number of threads capable of simultaneously performing the inspection according to the highest execution performance of the processing device, and first judging whether the target part is a part that has been inspected before executing the judgment procedure, the inspection efficiency can be improved.
[0050] Although the present application is disclosed with the above-mentioned embodiments, it is not intended to limit the present application. Any changes and modifications made without departing from the concept and scope of the present application shall fall within the scope of the patent protection of the present application. For the scope of protection defined by the present application, please refer to the claims.
Claims
1. A machining drawing inspection method, comprising the steps of: obtaining a machining drawing and a part list, wherein the machining drawing comprises a non-hole area and a hole area about a part, and the part list comprises a first coordinate set of the part; converting the first coordinate set into a second coordinate set corresponding to the machining drawing according to a conversion matrix; obtaining a line data corresponding to the part according to the part list; obtaining a part bounding box of the part on the machining drawing according to the second coordinate set and the line data; adjusting the part bounding box into an enlarged bounding box according to a preset value; and outputting a warning notification when a portion of the non-hole area falls within the enlarged bounding box.
2. The machining drawing inspection method of claim 1, wherein the step of obtaining the line data of the part according to the part list comprises: obtaining a part package of the part from the part list according to a part name of the part; and obtaining the line data according to the part package using a language integration query.
3. The machining drawing inspection method of claim 1, wherein the second coordinate set comprises a plurality of second coordinates, and the step of obtaining the part bounding box of the part on the machining drawing according to the second coordinate set and the line data comprises: connecting a plurality of the second coordinates according to the line data to enclose the part bounding box.
4. The machining drawing inspection method of claim 1, wherein the second coordinate set comprises a plurality of second coordinates, and the step of outputting the warning notification when a portion of the non-hole area falls within the enlarged bounding box comprises: sorting the second coordinates according to horizontal and vertical coordinates of each of the second coordinates; sequentially judging whether each of a plurality of boundaries of the enlarged bounding box is located in the non-hole area according to the sorting result; and outputting the warning notification when at least one of the boundaries of the enlarged bounding box is located in the non-hole area.
5. The machining drawing inspection method of claim 4, wherein the hole area and the non-hole area have different colors, and the step of sequentially judging whether each of the boundaries of the enlarged bounding box is located in the non-hole area according to the sorting result comprises: sequentially judging whether both sides of each of the boundaries of the enlarged bounding box exhibit a color corresponding to the non-hole area according to the sorting result.
6. A machining drawing inspection system, comprising: a memory storing a machining drawing and a part list, wherein the machining drawing comprises a non-hole area and a hole area about a part, and the part list comprises a first coordinate set of the part; and a processing device connected to the memory, the processing device being configured to obtain the machining drawing and the part list, convert the first coordinate set into a second coordinate set corresponding to the machining drawing according to a conversion matrix, obtain a line data corresponding to the part according to the part list, obtain a part bounding box of the part on the machining drawing according to the second coordinate set and the line data, adjust the part bounding box into an enlarged bounding box according to a preset value, and output a warning notification when a portion of the non-hole area falls within the enlarged bounding box.
7. The process drawing inspection system of claim 6, wherein the processing device performs retrieving the line data of the part according to the part list comprises: retrieving a part package of the part from the part list according to a part name of the part; and retrieving the line data according to the part package using a language integration query.
8. The process drawing inspection system of claim 6, wherein the second coordinate set comprises a plurality of second coordinates, the processing device performs retrieving the part outline of the part on the process drawing according to the second coordinate set and the line data comprises: connecting a plurality of the second coordinates according to the line data to enclose the part outline.
9. The process drawing inspection system of claim 6, wherein the second coordinate set comprises a plurality of second coordinates, the processing device performs outputting the warning notification when a portion of the non-hole area falls within the zoomed-out outline comprises: ordering the second coordinates according to horizontal axis coordinates and vertical axis coordinates of each of the second coordinates; sequentially determining whether each of a plurality of boundaries of the zoomed-out outline is located in the non-hole area according to the ordering result; and outputting the warning notification when at least one of the boundaries of the zoomed-out outline is located in the non-hole area.
10. The process drawing inspection system of claim 9, wherein the hole area and the non-hole area have different colors, the processing device performs sequentially determining whether each of the boundaries of the zoomed-out outline is located in the non-hole area according to the ordering result comprises: sequentially determining whether both sides of each of the boundaries of the zoomed-out outline exhibits the color corresponding to the non-hole area according to the ordering result.
Citation Information
Patent Citations
Defect inspection method and defect inspection apparatus
CN106248690A
Plate element checking device, execution method of checking device and execution method of checking system
CN110457720A