WO2015131458A1 - Pcb splicing method and device - Google Patents

Pcb splicing method and device Download PDF

Info

Publication number
WO2015131458A1
WO2015131458A1 PCT/CN2014/079375 CN2014079375W WO2015131458A1 WO 2015131458 A1 WO2015131458 A1 WO 2015131458A1 CN 2014079375 W CN2014079375 W CN 2014079375W WO 2015131458 A1 WO2015131458 A1 WO 2015131458A1
Authority
WO
WIPO (PCT)
Prior art keywords
special
shaped plate
shaped
nfp
combination
Prior art date
Application number
PCT/CN2014/079375
Other languages
French (fr)
Chinese (zh)
Inventor
曾宪雄
Original Assignee
深圳市百能信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市百能信息技术有限公司 filed Critical 深圳市百能信息技术有限公司
Publication of WO2015131458A1 publication Critical patent/WO2015131458A1/en

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K3/00Apparatus or processes for manufacturing printed circuits
    • H05K3/0097Processing two or more printed circuits simultaneously, e.g. made from a common substrate, or temporarily stacked circuit boards
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K3/00Apparatus or processes for manufacturing printed circuits
    • H05K3/0005Apparatus or processes for manufacturing printed circuits for designing circuits by computer

Definitions

  • the present invention relates to the field of PCB (Printed Circuit Board), and in particular to a PCB panel method and apparatus.
  • PCB Printed Circuit Board
  • a primary object of the present invention is to provide a PCB panel method and apparatus for reducing the cost of production of PCB shaped panel panels and rapidly generating a panel solution.
  • an aspect of the present invention provides a PCB panel method comprising the following steps:
  • the first type of irregular shaped plate and the second type of irregular shaped plate are distinguished; and the irregular shaped peripheral frame line NFP is respectively generated by using preset rules, wherein the first type of shaped plate is in the corresponding rectangle Generating a special-shaped plate irregular peripheral frame line NFP, and forming a special-shaped plate irregular peripheral frame line NFP on the original shaped plate;
  • the N NFPs are combined to form N different shaped plate combinations
  • the first type of special-shaped plate is a special-shaped plate or a special-shaped plate whose size of the special-shaped plate does not exceed a threshold value
  • the present invention also provides a PCB panel device, comprising:
  • the special-shaped board classification module is configured to dissolve each of the special-shaped boards into the board spacing, and distinguish the first-type special-shaped board from the second-type special-shaped board;
  • the NFP generating module is configured to generate a special-shaped board NFP by using a preset rule, wherein the first type of special-shaped board generates an irregular-shaped irregular-shaped peripheral line NFP in the corresponding rectangle, and the second-type special-shaped board generates a special-shaped board on the original shaped board.
  • a combination module configured to combine N NFPs to generate N different shaped plate combination maps when the number N of the shaped plates is greater than 1 and does not exceed the threshold;
  • a screening module configured to filter an optimal combination of the panels from the combination of the N shaped plates
  • the first type of special-shaped plate is a special-shaped plate whose area of the shaped plate or the special-shaped plate whose size does not exceed the threshold value exceeds the threshold of the area of the circumscribed rectangle; the shaped plate other than the first type of special-shaped plate is the second Class shaped plate.
  • the invention combines the profiled plates which have been dissolved into the plate spacing by using preset rules to generate a combination of the puzzle plates, and selects the optimal combination of the puzzle plates, and converts the shaped plate which meets the requirements into a rectangular process during the combination process, thereby improving the The efficiency of PCB production and the calculation efficiency of the combination method, and the production materials of the profiled board are reduced, and the cost is reduced.
  • FIG. 1 is a schematic flow chart of an embodiment of a PCB panel method according to the present invention.
  • FIG. 2 is a schematic view of a profiled plate after the spacing of the plates is dissolved in the method shown in FIG. 1;
  • FIG. 3a is a schematic diagram of a profiled board A selected in a PCB panel method according to an embodiment of the present invention
  • FIG. 3b is a schematic diagram of a profiled board B selected in the PCB panel method according to an embodiment of the invention
  • 3c is a schematic view showing a trajectory of a profiled plate B moving along a shaped plate A in a PCB assembly method according to an embodiment of the present invention
  • 3d is a schematic view showing the NFP of the profiled plate A relative to the profiled plate B in the PCB panel method according to an embodiment of the invention
  • FIG. 4 is a schematic view showing the sliding direction and distance of the profiled plate B in the NFP process for generating the profiled plate A in the method shown in FIG. 1;
  • FIG. 5 is a schematic diagram of a specific process for generating an irregular peripheral frame line NFP of a profiled board by using preset rules in a PCB panel method according to another embodiment of the present invention
  • FIG. 6 is a schematic diagram of a specific process of combining N NFPs to generate N combined plate combinations according to another embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a specific flow chart for extracting an optimal combination of panels from a combination of N profiled plates according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a PCB panel device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an NFP generating module according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a first generating unit according to another embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a specific structure of a screening module provided in another embodiment of the present invention.
  • FIG. 13 is a schematic structural view of a PCB panel device according to still another embodiment of the present invention.
  • Embodiments of the present invention relate to a panel method for use in PCB unloading, and more particularly to a panel method for a profiled panel.
  • FIG. 1 is a PCB panel method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • the plate spacing In the process of combining the shaped plates, a certain distance between the plates and the plates needs to be reserved, which is called the plate spacing.
  • the profiled plate e.g., drilling operation, cutting operation
  • the presence of the plate spacing protects the profiled plate from damage.
  • the width of the profiled plate after the spacing of the plates is dissolved and the relevant parameters have a decisive effect on the layout. Therefore, before the combination of the profiled plates, the spacing of the plates needs to be dissolved into the profiled plates.
  • a circle with a width and height D surrounds the profiled plate for a circle, and the resulting trajectory is a new pattern containing the spacing of the plates. As shown in Fig. 2, it is a shaped plate after the plate spacing is dissolved, The shaded area is the area of the plate spacing in which it dissolves.
  • the shaped plates In order to further improve the efficiency of the combination of the panels, it is necessary to properly classify and process the shaped plates after the spacing of the plates, specifically the shaped plates whose area of the shaped plate or the special-shaped plate whose size does not exceed the threshold exceeds the threshold of the area of the circumscribed rectangle.
  • the other shaped plates For the first type of shaped plate, the other shaped plates are divided into the second type of shaped plate. And the smallest circumscribed rectangle of the first type of special-shaped plate is obtained, and the minimum circumscribed rectangle is used as a representative in the splicing process.
  • the NFP of the special-shaped plate is further generated by using a preset rule, and each NFP is formed by the intersection of the special-shaped panels, for example, the shaped plate A and the shaped plate B can generate two NFPs, which are shaped plates.
  • the specific forming process is: arbitrarily selecting the first shaped plate A (shown in FIG. 3a) and the second shaped plate B (as shown in FIG.
  • NFP of B (as shown in Figure 3d). If it is necessary to perform a paneling operation on a plurality of shaped plates, the remaining shaped plates are crossed by two to form corresponding NFPs, for example, NFPBA forming the shaped plate B with respect to the shaped plate A, and the like. Thus, N N-shaped plates will form N NFPs.
  • the combined NFP with the smallest outer frame area is selected from the generated N-1 combined NFPs, so that the area occupied by the set is the smallest, thereby improving the utilization of each set.
  • FIG. 5 is a schematic diagram of generating a shaped plate A
  • FIG. 6 is a schematic view. S101: selecting a starting point
  • the end point Ci of the shaped plate C and the end point Dj of the profiled plate D are selected as starting points.
  • the sliding distance is the distance from Ci to Ci+1, and the sliding direction is as indicated by the arrow.
  • a plurality of line segments are generated, starting from all point coordinates of the shaped plate C, rotating in the sliding direction by 180 degrees, and having a length of Ci to Ci+1, and determining whether the line segment intersects with the edge of the shaped plate D, if any, corresponding to The intersection of the points is added to the intersection point set L1.
  • S104 generate a plurality of second line segments starting from all the coordinate points of the first shaped plate, the direction is a sliding direction, and the length is the sliding distance, and the intersection point of the second line segment and the first shaped plate edge is obtained, and then the intersection point set is added.
  • L1
  • a plurality of line segments are generated starting from all the point coordinates of the shaped plate D, the direction is the sliding direction, and the length is Ci to Ci+1, and it is determined whether the line segment intersects the edge of the shaped plate C, and if so, the corresponding intersection point Join the intersection point set Ll.
  • S105 selecting an intersection point of the intersection point set that is the smallest distance from the second profiled board edge line and an edge line of the first shaped plate and the second shaped plate corresponding to the intersection point;
  • intersection point of the intersection point set L1 and the edge line of the profiled plate C is the smallest, and the edge of the profiled plate C and the profiled plate D corresponding to the intersection point are selected.
  • step S106 Determine whether the minimum intersection is the starting point, and if yes, perform step S107. Otherwise, step S102, step S103, step S104, step S105 are performed in a loop;
  • the obtained minimum intersection point to generate the NFP of the profiled plate C; use the mode of fast screening line segment intersection, limit extraction line segment, top peripheral line not judged, non-blocking line not judged, etc. to obtain the intersection point.
  • the intersection point is connected to the line, it is the NFP trajectory line, and the best positioning point can be obtained on the trajectory line. Take the smallest area rectangle of the NFP containing the profiled plate C, and the NFP positioning point of the profiled plate C is the optimal positioning point.
  • the implementation process of the fast screening line segment intersection is as follows: The end point coordinate values of the two line segments are used in advance to exclude the pair of intersecting line segments, and the operation time of calling the intersection function is reduced.
  • the process of limiting the extraction line segment is as follows: Exclude the end points of some profiled plates C and profiled plates D so that they do not need to lead out the line segments, so as to reduce the amount of intersection of the line segments.
  • the implementation process of the top peripheral line is not judged as: the outer frame such as the special-shaped board C and the special-shaped board D, after the object is initialized, whether each line segment is the top peripheral line, and the two end points of the defined line segment of the top peripheral line are in the
  • the XY axis is the edge of the rectangle in the positive direction.
  • the process of generating the intersecting set L1 if the sliding line of the shaped plate C and the apex of the shaped plate D are reversed, the corresponding line segments are the top peripheral lines, and the lead segment judgment is not required to reduce the calculation amount of the line segment intersection.
  • the non-blocking line is not judged by the implementation process: To eliminate the line segment and the line segment are parallel, to reduce the amount of intersection of the line segment.
  • FIG. 6 a more detailed flowchart of the steps of combining N NFPs to generate a plurality of combined NFPs in another embodiment, as shown in FIG. 5, specifically includes:
  • S201 Obtain a cross-combined NFP set of N shaped plates; cross-assemble the N shaped plates to generate an NFP set.
  • the combined NFP of the shaped plate A and the shaped plate B is obtained from the intersecting NFP set, and the rectangular area including the combined NFP is selected to be the smallest, and the positioning of the shaped plate A and the shaped plate B is optimal.
  • the positioning point generates a combined view of the shaped plate A and the shaped plate B and stores corresponding positioning points.
  • S203 From the NFP set, the second combined NFP of the first shaped plate NFP and the third shaped plate NFP is called, and the third combined NFP of the second shaped plate and the third shaped plate is called, and the fourth combined NFP is obtained after the combination. , obtaining an optimal positioning point, generating a second combination map and storing corresponding positioning points;
  • a combined NFP of the shaped plate A and the shaped plate C and a combined NFP of the shaped plate B and the shaped plate C are respectively obtained from the intersecting NFP set, and the two combined NFP combinations are
  • the combined NFP comprising three profiled plates further obtains the optimal positioning points of the profiled plate A, the profiled plate B and the profiled plate C, and generates a combined view of the three profiled plates and stores corresponding positioning points.
  • step S300 specifically includes:
  • S304 determining whether the N-1 cycle is completed, if yes, executing step S305, otherwise performing step S303;
  • S305 The minimum area of the screening frame is the final combination of the panels.
  • the shaped plates are placed horizontally from high to low to generate a manual placement operation by the user.
  • the threshold of the number of shaped plates N is 20; the preset time range is 5 minutes.
  • the optimal combination of the puzzles can be obtained smoothly, but it is not excluded that the partial graphics are particularly complicated, and the optimal combination of the puzzles cannot be obtained smoothly, within a preset time range.
  • the operation process will be stopped, and the operation interface manually placed by the user will be generated, and the operation can be directly performed by manual placement.
  • the manually generated jigsaw has higher flexibility, compared to each profiled plate in the automatic generation process. It can only be selected at 90 °, 180 ° and 270 °, and a finer angle of rotation can be selected for manual operation.
  • the mode of the minimum optimal ratio is used to determine the proportional relationship of the various shaped plates to re-screen the optimal combination of the panels. Specifically, assuming that there are three special-shaped plates of A, B, and C, the required ratio is 5:2:3. If the first optimal combination of the puzzles is unsuccessful, in order to reduce the complexity of the graphics processing, The ratio is adjusted to 2:1:1 for screening. If the optimal panel combination map is not selected within the preset time range, the profiled board is placed horizontally from high to low to generate an operation interface manually placed by the user. Although adjusting the ratio to 2:1:1 will result in overproduction of the A and B shaped plates, this level of overproduction is acceptable relative to the plate-saving effect of the panels.
  • the PCB panel method proposed by the invention combines the profiled plates which have been dissolved into the board spacing by using preset rules to generate a panel combination diagram, and selects the optimal panel combination diagram, and the profiled board which meets the requirements in the combination process
  • the conversion to rectangular processing improves the efficiency of PCB production and the calculation efficiency of the combination method, and reduces the production materials of the shaped plate, thereby reducing the cost.
  • FIG. 8 is a PCB panel device 100 according to an embodiment of the present invention. As shown in FIG. 8 , the device includes:
  • the special-shaped board classification module 110 is configured to dissolve each of the special-shaped boards into the board spacing to distinguish the first-type special-shaped board from the second-type special-shaped board;
  • the NFP generating module 120 is configured to generate a special-shaped board NFP by using a preset rule, where the first type of special-shaped board generates an irregular-shaped irregular frame line NFP in the corresponding rectangle, and the second type of special-shaped board generates a special-shaped board on the original shaped board. Irregular peripheral frame line NFP;
  • the combination module 1130 is configured to combine N NFPs to generate N special-shaped board combination diagrams when the number N of the special-shaped boards is greater than 1 and does not exceed the threshold;
  • a screening module 1140 configured to filter an optimal panel combination map from the N special-shaped panel combination diagrams; wherein, the first-type profiled plate has an area of a profiled plate whose profiled plate does not exceed a threshold value, and the area of the profiled plate accounts for A profiled plate having an area of the circumscribed rectangle exceeding a threshold; the profiled plate other than the first type of profiled plate is a second type of profiled plate.
  • the plate spacing In the process of combining the shaped plates, a certain distance between the plates and the plates needs to be reserved, which is called the plate spacing.
  • the profiled plate e.g., drilling operation, cutting operation
  • the presence of the plate spacing protects the profiled plate from damage.
  • the width of the profiled plate after the spacing of the plates is dissolved and the relevant parameters have a decisive effect on the layout. Therefore, before the combination of the profiled plates, the profiled plate classification module 110 needs to dissolve the spacing of the plates into the profiled plate.
  • a circle with a width and height D surrounds the profiled plate for a circle, and the resulting trajectory is a new pattern containing the spacing of the plates. As shown in Fig. 2, it is a shaped plate after the plate spacing is dissolved, The shaded area is the area of the plate spacing in which it dissolves.
  • the profiled plate sorting module 10 needs to properly classify and process the profiled plate after the pitch of the plate is integrated, and specifically, the area of the profiled plate or the profiled plate whose size does not exceed the threshold exceeds the area of the circumscribed rectangle.
  • the threshold shaped plate is divided into the first type of shaped plate, other shaped
  • the board is divided into a second type of shaped board. And the smallest circumscribed rectangle of the first type of special-shaped plate is obtained, and the minimum circumscribed rectangle is used as a representative in the splicing process.
  • the splicing of the rectangle is more convenient and fast, and for the special-shaped plate with a size not exceeding 10*10 and In the case of a profiled plate whose area of the circumscribed rectangle exceeds 99%, the extra area is extremely small in terms of increased production efficiency.
  • the NFP generating module 120 further generates the NFP of the special-shaped board by using preset rules, and each NFP is generated by the two-dimensional cross-shaped board, such as the special-shaped board A and the special-shaped board B can generate two NFPs. , the trajectory of the one-shaped plate B around the shaped plate A for one week and the trajectory of the shaped plate A moving around the shaped plate B one week.
  • the combination module 130 combines the N NFPs to generate N different shape plate combination maps, and the screening module 1140 selects the optimal combination of the outer frame lines from the generated N special-shaped plate combination maps, so that it occupies the Set. The smallest area, which improves the utilization of each set.
  • FIG. 9 is a more detailed structural diagram of the NFP generation module 120.
  • the NFP generation module 120 specifically includes:
  • a first generating unit 121 configured to select any two shaped plates, using an end point of the first shaped plate as a starting point, and using an end point of the second shaped plate as a reference point, so that the second shaped plate is along the The edge movement of the first shaped plate, recording the movement trajectory of the second shaped plate is NFP;
  • the second generating unit 122 is configured to cross the other shaped plates to generate corresponding NFPs.
  • the second generating unit 12 will have two remaining shaped plates
  • the two crosses generate corresponding NFPs, such as NFPBA forming the shaped plate B relative to the profiled plate A, and the like.
  • NFPBA forming the shaped plate B relative to the profiled plate A, and the like.
  • the first generating unit 121 specifically includes:
  • a first generating sub-unit 121a configured to select a starting point, and record a distance between the two ends of the second shaped plate and a sliding direction when the first shaped plate moves along the edge of the second shaped plate from the starting point;
  • the second generation sub-unit 121b is configured to generate a plurality of first line segments that are rotated by 180 degrees and a length of the sliding direction with all the coordinate points of the second shaped plate as a starting point, and the first line segment is obtained.
  • the third generation sub-unit 121c is configured to generate a plurality of second line segments starting from all the coordinate points of the first shaped plate, the direction is the sliding direction, and the length is the sliding distance, and the intersection of the second line segment and the first profiled plate edge is obtained.
  • the fourth generating sub-unit 121d is configured to select an intersection point of the intersection point set L that is the smallest distance from the edge of the second profiled board and an edge line of the first shaped plate and the second shaped plate corresponding to the intersection point;
  • the fifth generating sub-unit 121e is configured to generate the second shaped plate NFP by connecting all the acquired minimum points.
  • the first generating sub-unit 121a selects the end point Ci of the shaped plate C and the end point D j of the shaped plate D as a starting point, and moves the shaped plate D from the starting point along the edge line of the shaped plate C, and the sliding distance is the point of the end of the shaped plate C. Distance, and record the sliding direction;
  • the sliding distance is the distance from Ci to Ci+1, and the sliding direction is as indicated by the arrow.
  • the second generation sub-unit 121b generates a plurality of first line segments which are rotated by 180 degrees in the sliding direction from the point coordinates of all the points of the profiled plate C, and the degree is Ci to Ci+1, and the first line segment and the profiled plate B are determined. Whether the edges of the intersections intersect, if any, add the corresponding intersection points to the intersection point set L2;
  • the third generating sub-unit 121c generates a plurality of line segments starting from all the point coordinates of the shaped plate B, the direction is the sliding direction, and the length is Ci to Ci+1, and determining whether the line segment intersects the edge of the shaped plate A, if any , then the corresponding intersection point is added to the intersection point set L2;
  • the fourth generating sub-unit 121d selects an intersection point of the intersecting point set L2 that is the smallest distance from the edge of the shaped plate A, and an edge line of the shaped plate C and the shaped plate D corresponding to the intersection point, and determines whether the intersection point is a starting point, and if not,
  • the second generation sub-unit 121b and the third generation sub-unit 121c traverse all the endpoints of the profiled board C, and if so, acquire a number of minimum intersections;
  • the fifth generation sub-unit 121e connects the acquired minimum intersection point to generate the NFP of the profiled board A; and obtains the intersection point by using the modes of fast screening line segment intersection, limiting the extraction line segment, the top peripheral line not judging, and the non-blocking line not judging.
  • the intersection point is connected to a line, it is an NFP trajectory line, and the best positioning point can be obtained on the trajectory line. Take the smallest area rectangle of the NFP containing the profiled plate C, and the NFP positioning point of the profiled plate C is the optimal positioning point.
  • the implementation process of the fast screening line segment intersection is as follows: The end point coordinate values of the two line segments are used in advance to eliminate the pair of intersecting line segments, and the operation time of calling the intersection function is reduced.
  • the process of limiting the extraction line segment is as follows: Exclude the end points of some profiled plates C and profiled plates D so that they do not need to lead out the line segments, so as to reduce the amount of intersection of the line segments.
  • the implementation process of the top peripheral line is not judged as: the outer frame such as the special-shaped board C and the special-shaped board D, after the object is initialized, whether each line segment is the top peripheral line, and the two end points of the defined line segment of the top peripheral line are in the
  • the XY axis is the edge of the rectangle in the positive direction.
  • the process of generating the intersection point set L2 if the sliding line of the profiled plate C and the apex of the profiled plate D are reversed, the corresponding line segments are the top peripheral lines, and the lead segment judgment is not required, so as to reduce the calculation amount of the line segment intersection.
  • FIG. 11 is a schematic diagram of a specific structure of the combination module 130 in another embodiment. As shown in FIG. 12 , the following specifically includes:
  • a cross-collection unit 131 configured to obtain a cross-combined NFP set of N profiled boards
  • the combination map generating unit 132 is configured to obtain the first combined NFP of the first shaped plate and the second shaped plate from the intersecting NFP set, obtain an optimal positioning point, generate a first combined picture, and store the corresponding Anchor point; also used,
  • the second combined NFP of the first shaped plate NFP and the third shaped plate NFP is called, and the third combined NFP of the second shaped plate and the third shaped plate is called, and the second combined NFP is After the third combined NFP combination obtains the fourth combined NFP, the optimal positioning point is obtained, and the second combined image is generated and the corresponding positioning point is stored;
  • the determining unit 133 is configured to determine whether to perform N-1 combined operations, and if not, send an instruction to cause the combined map unit to generate a combined map until N combined images are obtained.
  • the cross-collection unit 131 cross-combines the N profiled plates to generate an NFP set.
  • the combined figure generating unit 132 obtains the combined NFP of the shaped plate D and the shaped plate E from the intersecting NFP set, and takes the smallest rectangular area including the combined NFP, the shaped plate D and the shaped plate E.
  • the positioning is the optimal positioning point, and a combined view of the shaped plate D and the shaped plate E is generated and the corresponding positioning points are stored.
  • the combination map generation unit 132 respectively obtains the combined NFP of the profiled plate D and the profiled plate F and the combined NFP of the profiled plate E and the profiled plate F from the intersecting NFP set, The two combined NFPs are combined into a combined NFP comprising three profiled plates, and the optimal positioning points of the profiled plate D, the profiled plate E and the profiled plate F are further obtained, and a combined view of the three profiled plates is generated and the corresponding positioning points are stored.
  • the determining unit 133 determines whether to perform N-1 combined operations, and if not, sends an instruction to the combined map.
  • the unit 132 further generates a combined view of the other shaped boards until the N combined pictures are obtained.
  • FIG. 6 a specific structural diagram of the screening module 140 is shown in FIG. 6 , and the screening module 140 specifically includes:
  • a first screening subunit 141 configured to take a combined image of a maximum area as a starting graphic
  • a second screening sub-unit 142 configured to take any combination map of the N combined graphs except the starting graph, calculate a sub-optimal mode anchor point, and generate a combined graph set M;
  • a third screening sub-unit 143 configured to: traverse the N combination maps, take any combination of the profiled panels outside the combination of the set of maps M, to obtain an optimal mode anchor point, into the combined map set M;
  • the fourth screening sub-unit 144 is configured to filter the minimum area of the outer frame into a final panel combination diagram fifth screening sub-unit 145 for determining whether to complete the N-1 cycle, and if so, sending an instruction to the fourth screening subunit The final puzzle combination map is generated, otherwise the instruction is sent to the third screening subunit to traverse the combined map.
  • the first screening sub-unit 141 takes the combined picture of the largest area as the starting picture
  • the second screening sub-unit 142 takes any combination map of the N combined graphs except the starting graph, calculates a sub-optimal mode anchor point, and generates a combined graph set M;
  • the third screening sub-unit 143 traverses the N combined graphs, and takes any combination of the irregular-shaped panels outside the combined graph set M to obtain an optimal mode positioning point, and puts the combined graph set M;
  • the fifth screening sub-unit 145 determines whether the N-1 loop is completed. If yes, the command is sent to the fourth screening sub-unit 144 to filter out the combined map with the smallest outer frame area as the final puzzle combination map, otherwise the command is sent to the third filter. Unit 143 traverses the combined map.
  • the manual interface generating module 150 is further configured to: when the number N of the shaped plates is greater than a threshold or the optimal combination of the templates is not selected within a preset time range, The board is placed horizontally from high to low to generate an operation interface manually placed by the user;
  • the threshold of the number N of the special-shaped plates is 20; the preset time range is 5 minutes; the threshold of the size of the special-shaped plate is 10*10; and the area of the area of the irregular-shaped plate occupies 99% of the area of the circumscribed rectangle.
  • the optimal combination of the puzzles can be obtained smoothly, but it is not excluded that the partial graphics are particularly complicated, and the optimal combination of the puzzles cannot be obtained smoothly, within a preset time range.
  • the operation process will be stopped, and the operation interface manually placed by the user will be generated, and the operation can be directly performed by manual placement.
  • the manually generated jigsaw has higher flexibility, compared to each profiled plate in the automatic generation process. It can only be selected at 90 °, 180 ° and 270 °, and a finer angle of rotation can be selected for manual operation.
  • the mode of the minimum optimal ratio is used to determine the proportional relationship of the various shaped plates to re-screen the optimal combination of the panels. Specifically, assuming that there are three special-shaped plates of A, B, and C, the required ratio is 5:2:3. If the first optimal combination of the puzzles is unsuccessful, in order to reduce the complexity of the graphics processing, The ratio is adjusted to 2:1:1 for screening. If the optimal panel combination map is not selected within the preset time range, the profiled board is placed horizontally from high to low to generate an operation interface manually placed by the user. Although adjusting the ratio to 2:1:1 will result in overproduction of the A and B shaped plates, this level of overproduction is acceptable relative to the plate-saving effect of the panels.
  • the PCB panel device proposed by the invention combines the profiled plates which have been dissolved into the plate spacing by using preset rules to generate a panel combination diagram, and selects an optimal panel combination diagram, and the profiled board which meets the requirements in the combination process
  • the conversion to rectangular processing improves the efficiency of PCB production and the calculation efficiency of the combination method, and reduces the production materials of the shaped plate, thereby reducing the cost.

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Hardware Design (AREA)
  • Processing Or Creating Images (AREA)
  • Numerical Control (AREA)

Abstract

A PCB splicing method and device. The method comprises: after sketch plates are integrated into plate gaps, distinguishing sketch plates of a first type and sketch plates of a second type; respectively generating sketch plate no-fit polygons (NFPs)according to a pre-set rule, wherein the sketch plates of the first type generate sketch plate NFPs in corresponding rectangles, and the sketch plates of the second type generate sketch plate NFPs on original sketch plates; when the number N of the sketch plates is greater than 1 and does not exceed a threshold value, combining the N NFPs in pairs to generate N sketch plate combination patterns; and screening out an optimal splicing combination pattern from the N sketch plate combination patterns. The sketch plates which are already integrated into the plate gaps are combined so as to generate and screen out the optimal place splicing combination pattern by means of a combination process using the pre-set rule, and in the combination process, sketch plates which conform to requirements are converted into rectangles for processing, thereby improving the PCB production efficiency and the combination-method calculation efficiency, reducing the production materials of the sketch plates, and reducing the costs.

Description

一种 PCB拼板方法及装置  PCB panel method and device
技术领域 Technical field
本发明涉及 PCB (PrintedCircuitBoard, 印刷电路板) 技术领域, 具体是一 种 PCB拼板方法及装置。  The present invention relates to the field of PCB (Printed Circuit Board), and in particular to a PCB panel method and apparatus.
背景技术 Background technique
目前, 在需要对多款同工艺的 PCB产品进行合拼的情形下, 通常使用人工 把多款 Pes (—类 PCB产品的最小出货单位)合并成 1个 Set (生产的最小单位, 由 Pes合成)。 在需要进行拼板的 Pes为异形板的情况下, 但其排布在 Set中的 位置固定, 使得 Set的板材利用率通常较低。  At present, in the case of a need to combine a variety of PCB products of the same process, it is common to manually combine multiple Pes (the smallest unit of shipment of PCB-like products) into one set (the smallest unit of production, by Pes) synthesis). In the case where the Pes that need to be made into a panel is a profiled plate, but its position in the Set is fixed, the plate utilization of the Set is usually low.
发明内容 Summary of the invention
本发明的主要目的在于提供一种 PCB拼板方法和装置, 旨在降低 PCB异形 板拼板的生产用料成本, 并快速生成拼板方案。  SUMMARY OF THE INVENTION A primary object of the present invention is to provide a PCB panel method and apparatus for reducing the cost of production of PCB shaped panel panels and rapidly generating a panel solution.
为了达到上述目的, 本发明一方面提出一种 PCB 拼板方法, 包括以下步 骤:  In order to achieve the above object, an aspect of the present invention provides a PCB panel method comprising the following steps:
将每一异形板溶入板间距后, 区分第一类异形板和第二类异形板; 利用预置的规则分别生成异形板不规则外围框线 NFP, 其中第一类异形板 在对应的矩形生成异形板不规则外围框线 NFP, 第二类异形板在原异形板上生 成异形板不规则外围框线 NFP;  After each shaped plate is dissolved into the plate spacing, the first type of irregular shaped plate and the second type of irregular shaped plate are distinguished; and the irregular shaped peripheral frame line NFP is respectively generated by using preset rules, wherein the first type of shaped plate is in the corresponding rectangle Generating a special-shaped plate irregular peripheral frame line NFP, and forming a special-shaped plate irregular peripheral frame line NFP on the original shaped plate;
当异形板的个数 N大于 1且不超过阈值时, 将 N个所述 NFP两两合并生成 N个异形板组合图;  When the number N of the shaped plates is greater than 1 and does not exceed the threshold, the N NFPs are combined to form N different shaped plate combinations;
从 N个异形板组合图中筛选出最优拼板组合图;  Selecting the optimal combination of the panels from the combination of N shaped plates;
其中, 所述第一类异形板为异形板的尺寸不超过阈值的异形板或异形板的 面积占其外接矩形的面积超过阈值的异形板; 第一类异形板之外的异形板为第 二类异形板。 Wherein the first type of special-shaped plate is a special-shaped plate or a special-shaped plate whose size of the special-shaped plate does not exceed a threshold value The profiled plate whose area occupies the area of the circumscribed rectangle exceeds the threshold; the profiled plate other than the first type of profiled plate is the second type of profiled plate.
另一方面, 本发明还提出一种 PCB拼板装置, 包括:  In another aspect, the present invention also provides a PCB panel device, comprising:
异形板分类模块, 用于将每一异形板溶入板间距后, 区分第一类异形板和 第二类异形板;  The special-shaped board classification module is configured to dissolve each of the special-shaped boards into the board spacing, and distinguish the first-type special-shaped board from the second-type special-shaped board;
NFP 生成模块, 用于利用预置的规则分别生成异形板 NFP, 其中第一类异 形板在对应的矩形生成异形板不规则外围框线 NFP, 第二类异形板在原异形板 上生成异形板不规则外围框线 NFP;  The NFP generating module is configured to generate a special-shaped board NFP by using a preset rule, wherein the first type of special-shaped board generates an irregular-shaped irregular-shaped peripheral line NFP in the corresponding rectangle, and the second-type special-shaped board generates a special-shaped board on the original shaped board. Regular peripheral frame line NFP;
组合模块, 用于当异形板的个数 N大于 1且不超过阈值时, 将 N个所述 NFP 两两合并生成 N个异形板组合图;  a combination module, configured to combine N NFPs to generate N different shaped plate combination maps when the number N of the shaped plates is greater than 1 and does not exceed the threshold;
筛选模块, 用于从 N个异形板组合图中筛选出最优拼板组合图;  a screening module, configured to filter an optimal combination of the panels from the combination of the N shaped plates;
其中, 所述第一类异形板为异形板的尺寸不超过阈值的异形板或异形板的 面积占其外接矩形的面积超过阈值的异形板; 第一类异形板之外的异形板为第 二类异形板。  Wherein, the first type of special-shaped plate is a special-shaped plate whose area of the shaped plate or the special-shaped plate whose size does not exceed the threshold value exceeds the threshold of the area of the circumscribed rectangle; the shaped plate other than the first type of special-shaped plate is the second Class shaped plate.
本发明通过利用预置的规则将已溶入板间距的异形板组合生成拼板组合 图, 并筛选出最优拼板组合图, 组合过程中将符合要求的异形板转化为矩形处 理, 提高了 PCB生产的效率和组合方式的计算效率, 并且降低了异形板的生产 用料, 降低了成本。  The invention combines the profiled plates which have been dissolved into the plate spacing by using preset rules to generate a combination of the puzzle plates, and selects the optimal combination of the puzzle plates, and converts the shaped plate which meets the requirements into a rectangular process during the combination process, thereby improving the The efficiency of PCB production and the calculation efficiency of the combination method, and the production materials of the profiled board are reduced, and the cost is reduced.
附图说明 DRAWINGS
图 1为本发明提供的 PCB拼板方法一实施例的流程示意图;  1 is a schematic flow chart of an embodiment of a PCB panel method according to the present invention;
图 2为图 1所示的方法中溶入板间距后的异形板示意图;  2 is a schematic view of a profiled plate after the spacing of the plates is dissolved in the method shown in FIG. 1;
图 3a为本发明一实施例中 PCB拼板方法中选定的异形板 A的示意图; 图 3b为本发明一实施例中 PCB拼板方法中选定的异形板 B的示意图; 图 3c为本发明一实施例中 PCB拼板方法中异形板 B沿异形板 A运动一周的 轨迹示意图; 3a is a schematic diagram of a profiled board A selected in a PCB panel method according to an embodiment of the present invention; FIG. 3b is a schematic diagram of a profiled board B selected in the PCB panel method according to an embodiment of the invention; 3c is a schematic view showing a trajectory of a profiled plate B moving along a shaped plate A in a PCB assembly method according to an embodiment of the present invention;
图 3d为本发明一实施例中 PCB拼板方法中异形板 A相对于异形板 B的 NFP 示意图;  3d is a schematic view showing the NFP of the profiled plate A relative to the profiled plate B in the PCB panel method according to an embodiment of the invention;
图 4为图 1所示的方法中生成异形板 A的 NFP过程中, 异形板 B滑动方向 及距离示意图;  4 is a schematic view showing the sliding direction and distance of the profiled plate B in the NFP process for generating the profiled plate A in the method shown in FIG. 1;
图 5为本发明又一实施例提供的 PCB拼板方法中利用预置的规则分别生成 异形板不规则外围框线 NFP的具体的流程示意图;  FIG. 5 is a schematic diagram of a specific process for generating an irregular peripheral frame line NFP of a profiled board by using preset rules in a PCB panel method according to another embodiment of the present invention; FIG.
图 6为本发明又一实施例提供的 PCB拼板方法中将 N个所述 NFP两两合并 生成 N个异形板组合图的具体的流程示意图;  FIG. 6 is a schematic diagram of a specific process of combining N NFPs to generate N combined plate combinations according to another embodiment of the present invention;
图 7为本发明又一实施例提供的从 N个异形板组合图中筛选出最优拼板组 合图的具体的流程示意图;  FIG. 7 is a schematic diagram of a specific flow chart for extracting an optimal combination of panels from a combination of N profiled plates according to another embodiment of the present invention; FIG.
图 8为本发明实施例中提供的 PCB拼板装置的结构示意图;  FIG. 8 is a schematic structural diagram of a PCB panel device according to an embodiment of the present invention; FIG.
图 9为本发明实施例中提供的 NFP生成模块的具体的结构示意图; 图 10为本发明又一实施例中提供的第一生成单元的具体的结构示意图; 图 11为本发明又一实施例中提供的组合模块的具体的结构示意图; 图 12为本发明又一实施例中提供的筛选模块的具体的结构示意图  FIG. 9 is a schematic structural diagram of an NFP generating module according to an embodiment of the present invention; FIG. 10 is a schematic structural diagram of a first generating unit according to another embodiment of the present invention; FIG. 12 is a schematic diagram of a specific structure of a screening module provided in another embodiment of the present invention; FIG.
图 13为本发明又一实施例中 PCB拼板装置的结构示意图。  FIG. 13 is a schematic structural view of a PCB panel device according to still another embodiment of the present invention.
本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说 明。  The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实舫式 Concrete implementation
为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实 施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅 仅用以解释本发明, 并不用于限定本发明。 The present invention 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 only The invention is only intended to be illustrative, and is not intended to limit the invention.
本发明实施例涉及 PCB开料时使用的拼板方法, 具体涉及异形板的拼板方 法。  Embodiments of the present invention relate to a panel method for use in PCB unloading, and more particularly to a panel method for a profiled panel.
请参照图 1, 为本发明实施例提出的 PCB拼板方法, 如图 1所示, 该方法 包括以下步骤:  Please refer to FIG. 1, which is a PCB panel method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
S100 : 将每一异形板溶入板间距后, 区分第一类异形板和第二类异形板; 其中, 所述第一类异形板为异形板的尺寸不超过阈值的异形板或异形板的 面积占其外接矩形的面积超过阈值的异形板; 第一类异形板之外的异形板为第 二类异形板。  S100: After dissolving each of the shaped plates into the spacing of the plates, distinguishing between the first type of irregularly shaped plates and the second type of special shaped plates; wherein the first type of irregular shaped plates are shaped plates or shaped plates whose shaped plates do not exceed a threshold value The profiled plate whose area occupies the area of the circumscribed rectangle exceeds the threshold; the profiled plate other than the first type of profiled plate is the second type of profiled plate.
在组合异形板的过程中, 板与板之间需要保留一定的间距, 该间距被称为 板间距。 后续对异形板的操作的过程中 (例如钻孔操作、 切割操作) , 板间距 的存在可以保护异形板不被损害。 在本实施例中, 溶入板间距后的异形板宽高 及相关参数对排样有决定性作用, 故在异形板组合前, 需要将板间距溶入异形 板中。 由一个宽高为 D的矩形围绕异形板组合运动一圈, 所产生的轨迹线即为 包含了板间距的新图形, 如图 2所示, 为溶入板间距后的异形板, 其中图示阴 影部分为溶入的板间距区域。  In the process of combining the shaped plates, a certain distance between the plates and the plates needs to be reserved, which is called the plate spacing. In the subsequent operation of the profiled plate (e.g., drilling operation, cutting operation), the presence of the plate spacing protects the profiled plate from damage. In this embodiment, the width of the profiled plate after the spacing of the plates is dissolved and the relevant parameters have a decisive effect on the layout. Therefore, before the combination of the profiled plates, the spacing of the plates needs to be dissolved into the profiled plates. A circle with a width and height D surrounds the profiled plate for a circle, and the resulting trajectory is a new pattern containing the spacing of the plates. As shown in Fig. 2, it is a shaped plate after the plate spacing is dissolved, The shaded area is the area of the plate spacing in which it dissolves.
为了进一步提高拼板组合的效率, 需要对融入板间距之后的异形板进行适 当分类和处理, 具体将尺寸不超过阈值的异形板或异形板的面积占其外接矩形 的面积超过阈值的异形板分为第一类异形板, 其它的异形板分为第二类异形 板。 并且得到第一类异形板的最小的外接矩形, 以最小外接矩形作为拼板过程 中的代表, 相对于异形板, 矩形的拼接更为方便快速, 并且对于尺寸不超过 10*10 的异形板和异形板的面积占其外接矩形的面积超过 99%的异形板而言, 所多出的面积相对于提高的生产效率而言, 代价是非常微小的。 S200: 利用预置的规则分别生成 N个异形板的 NFP (NoFitPolygon, 不规 则多边形外框线) , 其中第一类异形板在对应的矩形生成异形板不规则外围框 线 NFP, 第二类异形板在原异形板上生成异形板不规则外围框线 NFP; In order to further improve the efficiency of the combination of the panels, it is necessary to properly classify and process the shaped plates after the spacing of the plates, specifically the shaped plates whose area of the shaped plate or the special-shaped plate whose size does not exceed the threshold exceeds the threshold of the area of the circumscribed rectangle. For the first type of shaped plate, the other shaped plates are divided into the second type of shaped plate. And the smallest circumscribed rectangle of the first type of special-shaped plate is obtained, and the minimum circumscribed rectangle is used as a representative in the splicing process. Compared with the special-shaped plate, the splicing of the rectangle is more convenient and fast, and for the special-shaped plate with a size not exceeding 10*10 and In the case of a profiled plate whose area of the circumscribed rectangle exceeds 99%, the extra area is extremely small in terms of increased production efficiency. S200: Generate NFP (NoFitPolygon, irregular polygon outer frame line) of the N shaped plates by using preset rules, wherein the first type of irregular shaped plate generates irregular shaped peripheral frame line NFP in the corresponding rectangle, and the second type of abnormal shape The plate generates a special-shaped plate irregular peripheral frame line NFP on the original shaped plate;
在溶入了板间距区域后, 进一步利用预置规则分别生成异形板的 NFP, 每 一 NFP为异形拼板两两交叉生成, 如异形板 A和异形板 B可以生成两个 NFP, 为异形板 B绕异形板 A运动一周的轨迹以及异形板 A绕异形板 B运动一周的轨 迹。 其具体的形成过程为: 任意选定第一异形板 A (如图 3a所示) 和第二异形 板 B (如图 3b所示) , 设定第一异形板 A的一端点作为起始点、 第二异形板 B 的一端点作为参考点, 记录第二异形板 B沿第一异形板的边线运动一周的运动 轨迹(如图 3c所示), 该运动轨迹即为异形板 A相对于异形板 B的外围 NFP (如 图 3d所示)。 若需要对多个异形板进行拼板操作, 则将其余异形板两两交叉生 成相应的 NFP, 例如形成异形板 B相对于异形板 A的 NFPBA等。 这样, 有 N个 异形板则会形成 N个 NFP。  After the plate spacing region is dissolved, the NFP of the special-shaped plate is further generated by using a preset rule, and each NFP is formed by the intersection of the special-shaped panels, for example, the shaped plate A and the shaped plate B can generate two NFPs, which are shaped plates. The trajectory of B around the shaped plate A for one week and the trajectory of the shaped plate A around the shaped plate B for one week. The specific forming process is: arbitrarily selecting the first shaped plate A (shown in FIG. 3a) and the second shaped plate B (as shown in FIG. 3b), setting an end point of the first shaped plate A as a starting point, An end point of the second shaped plate B serves as a reference point, and records a movement track of the second shaped plate B moving along the edge of the first shaped plate (as shown in FIG. 3c), and the moving track is the shaped plate A relative to the shaped plate. The peripheral NFP of B (as shown in Figure 3d). If it is necessary to perform a paneling operation on a plurality of shaped plates, the remaining shaped plates are crossed by two to form corresponding NFPs, for example, NFPBA forming the shaped plate B with respect to the shaped plate A, and the like. Thus, N N-shaped plates will form N NFPs.
S300: 当异形板的个数 N大于 1且不超过阈值时, 将 N个 NFP合并成 N_l 个组合 NFP;  S300: When the number N of the shaped plates is greater than 1 and does not exceed the threshold, the N NFPs are combined into N_l combined NFPs;
将 N个 NFP两两合并生成 N-1个组合 NFP, 对于个数 N大于 20时, 此时的 拍了组合方式将会大大增加, 最优拼板组合图的获取时间将会大大提高, 反而 不利于提高计算效率, 故限定个数超出阈值时, 直接采用人工手动方式处理。  Combining N NFPs to generate N-1 combined NFPs. When the number N is greater than 20, the combination of the shots will be greatly increased, and the acquisition time of the optimal combination map will be greatly improved. It is not conducive to improve the calculation efficiency. Therefore, when the number of limits exceeds the threshold, it is directly processed manually.
S400: 从 N-1个组合 NFP中筛选出最优拼板 NFP;  S400: screening an optimal puzzle NFP from N-1 combined NFPs;
从生成的 N-1个组合 NFP中筛选出外框线面积最小的组合 NFP, 使得其占 据 Set的面积最小, 从而提高了每一 Set的利用率。  The combined NFP with the smallest outer frame area is selected from the generated N-1 combined NFPs, so that the area occupied by the set is the smallest, thereby improving the utilization of each set.
更为具体的, 请参照图 5及图 6, 图 5为生成异形板 A的示意图, 图 6为 S101 : 选定起始点; More specifically, please refer to FIG. 5 and FIG. 6. FIG. 5 is a schematic diagram of generating a shaped plate A, and FIG. 6 is a schematic view. S101: selecting a starting point;
如图 4所示, 选定异形板 C的端点 Ci和异形板 D的端点 Dj为起始点。 As shown in Fig. 4, the end point Ci of the shaped plate C and the end point Dj of the profiled plate D are selected as starting points.
S102: 记录第一异形板从所述起始点沿所述第二异形板的边线运动时, 第 二异形板两端点的距离以及滑动方向; S102: recording a distance between the two ends of the second shaped plate and a sliding direction when the first shaped plate moves from the starting point along the edge of the second shaped plate;
如图 4所示, 以异形板 D从 Ci滑动至 Ci+1为例, 滑动距离为 Ci至 Ci+1 的距离, 滑动方向如箭头所示。  As shown in Fig. 4, taking the profiled plate D from Ci to Ci+1 as an example, the sliding distance is the distance from Ci to Ci+1, and the sliding direction is as indicated by the arrow.
S103 : 生成以所述第二异形板所有坐标点为起点、 方向为滑动方向旋转 180 度、 长度为所述滑动距离的若干第一线段, 得到第一线段与所述第二异形 板边线相交点集合;  S103: generating a plurality of first line segments that are rotated by 180 degrees and a length of the sliding distance from all the coordinate points of the second shaped plate as a starting point, and the first line segment and the second shaped plate edge are obtained. Set of intersection points;
生成以异形板 C所有点坐标为起点、 滑动方向旋转 180度为方向、 长度为 Ci至 Ci+1距离的若干线段, 判断该线段与异形板 D的边线是否有相交, 若有, 则将对应的交点添加至相交点集合 Ll。  A plurality of line segments are generated, starting from all point coordinates of the shaped plate C, rotating in the sliding direction by 180 degrees, and having a length of Ci to Ci+1, and determining whether the line segment intersects with the edge of the shaped plate D, if any, corresponding to The intersection of the points is added to the intersection point set L1.
S104: 生成以所述第一异形板所有坐标点为起点, 方向为滑动方向、 长度 为所述滑动距离的若干第二线段, 得到第二线段与第一异形板边线相交点后加 入相交点集合 L1 ;  S104: generate a plurality of second line segments starting from all the coordinate points of the first shaped plate, the direction is a sliding direction, and the length is the sliding distance, and the intersection point of the second line segment and the first shaped plate edge is obtained, and then the intersection point set is added. L1 ;
生成以异形板 D的所有点坐标为起点, 方向为滑动方向、 长度为 Ci至 Ci+1 距离的若干线段, 判断该线段与异形板 C的边线是否有相交, 若有, 则将对应 的交点加入相交点集合 Ll。  A plurality of line segments are generated starting from all the point coordinates of the shaped plate D, the direction is the sliding direction, and the length is Ci to Ci+1, and it is determined whether the line segment intersects the edge of the shaped plate C, and if so, the corresponding intersection point Join the intersection point set Ll.
S105: 选取所述相交点集合中与第二异形板边线距离最小的交点及该交点 对应的所述第一异形板和所述第二异形板的边线;  S105: selecting an intersection point of the intersection point set that is the smallest distance from the second profiled board edge line and an edge line of the first shaped plate and the second shaped plate corresponding to the intersection point;
选取相交点集合 L1中与异形板 C边线距离最小的交点, 以及该交点对应的 异形板 C和异形板 D的边线。  The intersection point of the intersection point set L1 and the edge line of the profiled plate C is the smallest, and the edge of the profiled plate C and the profiled plate D corresponding to the intersection point are selected.
S106: 判断所述最小的交点是否为所述起始点, 若是, 则执行步骤 S107, 否则循环执行步骤 S102、 步骤 S 103、 步骤 S 104、 步骤 S105; S106: Determine whether the minimum intersection is the starting point, and if yes, perform step S107. Otherwise, step S102, step S103, step S104, step S105 are performed in a loop;
当判断到最小的交点为起始点时, 则已遍历了异形板 C的所有端点。  When it is judged that the smallest intersection point is the starting point, all the end points of the profiled plate C have been traversed.
S107 : 连接获取到的所有最小的交点生成所述第二异形板 NFP;  S107: connecting all the acquired minimum points to generate the second shaped plate NFP;
连接获取到的最小交点, 生成异形板 C的 NFP; 采用快速筛选线段相交、 限制提取线段、 顶外围线不判断、 非阻止线不判断等模式得到交点。 交点连成 线, 则为 NFP轨迹线, 在轨迹线上可得到最佳定位点。 取包含异形板 C的 NFP 的面积最小矩形, 异形板 C的 NFP的定位点即为最佳定位点。  Connect the obtained minimum intersection point to generate the NFP of the profiled plate C; use the mode of fast screening line segment intersection, limit extraction line segment, top peripheral line not judged, non-blocking line not judged, etc. to obtain the intersection point. When the intersection point is connected to the line, it is the NFP trajectory line, and the best positioning point can be obtained on the trajectory line. Take the smallest area rectangle of the NFP containing the profiled plate C, and the NFP positioning point of the profiled plate C is the optimal positioning point.
更为具体的, 快速筛选线段相交的实现过程为: 提前利用 2条线段的端点 坐标值,来排除一定不相交的线段对, 减少调用相交函数的运算时间。  More specifically, the implementation process of the fast screening line segment intersection is as follows: The end point coordinate values of the two line segments are used in advance to exclude the pair of intersecting line segments, and the operation time of calling the intersection function is reduced.
限制提取线段的实现过程为: 排除一些异形板 C和异形板 D的端点,使其不 需引出线段, 以减少线段相交的运算量。  The process of limiting the extraction line segment is as follows: Exclude the end points of some profiled plates C and profiled plates D so that they do not need to lead out the line segments, so as to reduce the amount of intersection of the line segments.
顶外围线不判断的实现过程为: 像异形板 C和异形板 D之类的外框,对象初 始化后得到每条线段是否为顶外围线,顶外围线的定义线段的 2 个端点均在以 XY轴为正方向的矩形的边线上。 在生成相交集合 L1 的过程中, 若异形板 C的 滑动线和异形板 D 的顶点逆时针对应的线段都为顶外围线, 则不需引线段判 断,以减少线段相交的运算量。  The implementation process of the top peripheral line is not judged as: the outer frame such as the special-shaped board C and the special-shaped board D, after the object is initialized, whether each line segment is the top peripheral line, and the two end points of the defined line segment of the top peripheral line are in the The XY axis is the edge of the rectangle in the positive direction. In the process of generating the intersecting set L1, if the sliding line of the shaped plate C and the apex of the shaped plate D are reversed, the corresponding line segments are the top peripheral lines, and the lead segment judgment is not required to reduce the calculation amount of the line segment intersection.
非阻止线不判断的实现过程为: 为排除线段与线段是平行的情况,以减少 线段相交的运算量。  The non-blocking line is not judged by the implementation process: To eliminate the line segment and the line segment are parallel, to reduce the amount of intersection of the line segment.
在前述实施例的基础上, 请参照图 6, 为另一实施例中将 N个 NFP合并生 成若干组合 NFP的步骤更为具体的流程示意图, 如图 5所示, 具体包括:  On the basis of the foregoing embodiment, referring to FIG. 6, a more detailed flowchart of the steps of combining N NFPs to generate a plurality of combined NFPs in another embodiment, as shown in FIG. 5, specifically includes:
S201 : 获得 N个异形板的交叉组合 NFP集合; 将 N个异形板分别交叉组合 生成 NFP集合。  S201: Obtain a cross-combined NFP set of N shaped plates; cross-assemble the N shaped plates to generate an NFP set.
S202 : 从交叉 NFP 集合中获取到第一异形板和第二异形板的第一组合 NFP, 得到最佳定位点, 生成第一组合图并存储对应的定位点; S202: Obtaining the first combination of the first shaped plate and the second shaped plate from the intersecting NFP set NFP, obtain the optimal positioning point, generate the first combination map and store the corresponding positioning point;
以异形板 A和异形板 B为例, 从交叉 NFP集合中获取到异形板 A与异形板 B的组合 NFP, 取最小包含组合 NFP的矩形面积, 异形板 A和异形板 B的定位为 最佳定位点, 生成异形板 A和异形板 B的组合图并存储对应的定位点。  Taking the shaped plate A and the shaped plate B as an example, the combined NFP of the shaped plate A and the shaped plate B is obtained from the intersecting NFP set, and the rectangular area including the combined NFP is selected to be the smallest, and the positioning of the shaped plate A and the shaped plate B is optimal. The positioning point generates a combined view of the shaped plate A and the shaped plate B and stores corresponding positioning points.
S203 : 从 NFP集合中, 调出第一异形板 NFP和第三异形板 NFP的第二组合 NFP , 调出第二异形板与第三异形板的第三组合 NFP, 组合获得第四组合 NFP 后, 得到最佳定位点, 生成第二组合图并存储对应的定位点;  S203: From the NFP set, the second combined NFP of the first shaped plate NFP and the third shaped plate NFP is called, and the third combined NFP of the second shaped plate and the third shaped plate is called, and the fourth combined NFP is obtained after the combination. , obtaining an optimal positioning point, generating a second combination map and storing corresponding positioning points;
以异形板 、 异形板 B和异形板 C为例, 从交叉 NFP集合中分别获取到异 形板 A与异形板 C的组合 NFP以及异形板 B与异形板 C的组合 NFP, 两个组合 NFP组合为包含三个异形板的组合 NFP, 进一步获得异形板 A、 异形板 B以及异 形板 C的最佳定位点, 生成三个异形板的组合图并存储对应的定位点。  Taking the irregular plate, the special-shaped plate B and the special-shaped plate C as an example, a combined NFP of the shaped plate A and the shaped plate C and a combined NFP of the shaped plate B and the shaped plate C are respectively obtained from the intersecting NFP set, and the two combined NFP combinations are The combined NFP comprising three profiled plates further obtains the optimal positioning points of the profiled plate A, the profiled plate B and the profiled plate C, and generates a combined view of the three profiled plates and stores corresponding positioning points.
S204 : 判断是否进行 N-1 次组合操作, 若否, 则循环执行步骤 S202 与 S203 , 直到进行 N-1次组合操作; 若是, 则结束流程, 此时获取到 N个异形板 组合图。  S204: determining whether to perform N-1 combined operations, if not, performing steps S202 and S203 cyclically until N-1 combined operations are performed; if yes, ending the process, and acquiring N special shaped plate combinations.
请参照图 7, 为步骤 S300更为具体的流程示意图, 如图 7所示, S300具体 包括:  Referring to FIG. 7, a more detailed flowchart of step S300 is shown. As shown in FIG. 7, the S300 specifically includes:
S301 : 选取最大面积的组合图作为起始图形;  S301: Select a combined image of the largest area as the starting graphic;
S302 : 选取 N个组合图中除起始图形外的任一组合图, 计算得到次优模式 定位点, 生成组合图集合 M;  S302: selecting any combination map except the starting graph in the N combined graphs, calculating a suboptimal mode positioning point, and generating a combined graph set M;
S303 : 遍历所述 N个组合图, 选取所述组合图集合 M外的任一异形板组合 图, 得到最优模式定位点, 放入组合图集合 M;  S303: traversing the N combined maps, selecting any combination of the special-shaped panels outside the combined graph set M, obtaining an optimal mode positioning point, and placing the combined graph set M;
S304: 判断是否完成 N-1次循环, 若是, 则执行步骤 S305 , 否则执行步骤 S303 ; S305 : 筛选外框面积最小的为最终拼板组合图。 S304: determining whether the N-1 cycle is completed, if yes, executing step S305, otherwise performing step S303; S305: The minimum area of the screening frame is the final combination of the panels.
优选地, 当所述异形板的个数 N大于阈值或在预设时间范围内没有筛选出 最优拼板组合图时, 将异形板由高到低横向摆放, 生成用户手动摆放的操作界 面;  Preferably, when the number N of the shaped plates is greater than a threshold or the optimal combination of the panels is not selected within a preset time range, the shaped plates are placed horizontally from high to low to generate a manual placement operation by the user. Interface
其中, 异形板的个数 N的阈值为 20; 预设时间范围为 5分钟。  The threshold of the number of shaped plates N is 20; the preset time range is 5 minutes.
一般而言, 当个数 N小于 20时, 能够顺利得到最优的拼板的组合方式, 但 是不能排除部分图形特别复杂, 无法顺利得到最优拼板组合图, 当在预设的时 间范围内没有得到结果时, 将停止运算过程, 生成用户手动摆放的操作界面, 直接通过手动摆放完成操作, 手动生成的拼板具有更高的灵活性, 相比于自动 生成过程中每个异形板只能在 90 ° 、 180 ° 和 270 ° 选择, 手动操作的时候可 以选择更为精细的旋转角度。  In general, when the number N is less than 20, the optimal combination of the puzzles can be obtained smoothly, but it is not excluded that the partial graphics are particularly complicated, and the optimal combination of the puzzles cannot be obtained smoothly, within a preset time range. When the result is not obtained, the operation process will be stopped, and the operation interface manually placed by the user will be generated, and the operation can be directly performed by manual placement. The manually generated jigsaw has higher flexibility, compared to each profiled plate in the automatic generation process. It can only be selected at 90 °, 180 ° and 270 °, and a finer angle of rotation can be selected for manual operation.
进一步地, 当在预设时间范围内没有筛选出最优拼板组合图时, 采用最小 最优比例的模式确定对各种异形板的比例关系重新筛选最优拼板组合图。 具体 来讲, 假设有 A、 B、 C三种异形板, 所需的比例是 5 : 2 : 3, 如果第一次最优拼 板组合图生成不成功, 为了降低图形处理的复杂度, 将比例调整为 2 : 1 : 1进行 筛选, 如果在预设时间范围内还是没有筛选出最优拼板组合图, 再将异形板由 高到低横向摆放, 生成用户手动摆放的操作界面。 虽然将比例调整为 2 : 1 : 1后 会使得 A和 B两种异形板出现生产过量的情况, 但是相对于拼板所带来的节约 板材的效果, 这个程度的生产过量是可以接受的。  Further, when the optimal combination of the panels is not selected within the preset time range, the mode of the minimum optimal ratio is used to determine the proportional relationship of the various shaped plates to re-screen the optimal combination of the panels. Specifically, assuming that there are three special-shaped plates of A, B, and C, the required ratio is 5:2:3. If the first optimal combination of the puzzles is unsuccessful, in order to reduce the complexity of the graphics processing, The ratio is adjusted to 2:1:1 for screening. If the optimal panel combination map is not selected within the preset time range, the profiled board is placed horizontally from high to low to generate an operation interface manually placed by the user. Although adjusting the ratio to 2:1:1 will result in overproduction of the A and B shaped plates, this level of overproduction is acceptable relative to the plate-saving effect of the panels.
本发明提出的 PCB拼板方法, 通过利用预置的规则将已溶入板间距的异形 板组合生成拼板组合图, 并筛选出最优拼板组合图, 组合过程中将符合要求的 异形板转化为矩形处理, 提高了 PCB生产的效率和组合方式的计算效率, 并且 降低了异形板的生产用料, 降低了成本。 请参照图 8, 为本发明实施例提出的 PCB拼板装置 100, 如图 8所示, 该装 置包括: The PCB panel method proposed by the invention combines the profiled plates which have been dissolved into the board spacing by using preset rules to generate a panel combination diagram, and selects the optimal panel combination diagram, and the profiled board which meets the requirements in the combination process The conversion to rectangular processing improves the efficiency of PCB production and the calculation efficiency of the combination method, and reduces the production materials of the shaped plate, thereby reducing the cost. Please refer to FIG. 8 , which is a PCB panel device 100 according to an embodiment of the present invention. As shown in FIG. 8 , the device includes:
异形板分类模块 110, 用于将每一异形板溶入板间距后, 区分第一类异形 板和第二类异形板;  The special-shaped board classification module 110 is configured to dissolve each of the special-shaped boards into the board spacing to distinguish the first-type special-shaped board from the second-type special-shaped board;
NFP生成模块 120, 用于利用预置的规则分别生成异形板 NFP, 其中第一类 异形板在对应的矩形生成异形板不规则外围框线 NFP, 第二类异形板在原异形 板上生成异形板不规则外围框线 NFP;  The NFP generating module 120 is configured to generate a special-shaped board NFP by using a preset rule, where the first type of special-shaped board generates an irregular-shaped irregular frame line NFP in the corresponding rectangle, and the second type of special-shaped board generates a special-shaped board on the original shaped board. Irregular peripheral frame line NFP;
组合模块 1130, 用于当异形板的个数 N大于 1且不超过阈值时, 将 N个所 述 NFP两两合并生成 N个异形板组合图;  The combination module 1130 is configured to combine N NFPs to generate N special-shaped board combination diagrams when the number N of the special-shaped boards is greater than 1 and does not exceed the threshold;
筛选模块 1140, 用于从 N个异形板组合图中筛选出最优拼板组合图; 其中, 所述第一类异形板为异形板的尺寸不超过阈值的异形板或异形板的 面积占其外接矩形的面积超过阈值的异形板; 第一类异形板之外的异形板为第 二类异形板。  a screening module 1140, configured to filter an optimal panel combination map from the N special-shaped panel combination diagrams; wherein, the first-type profiled plate has an area of a profiled plate whose profiled plate does not exceed a threshold value, and the area of the profiled plate accounts for A profiled plate having an area of the circumscribed rectangle exceeding a threshold; the profiled plate other than the first type of profiled plate is a second type of profiled plate.
在组合异形板的过程中, 板与板之间需要保留一定的间距, 该间距被称为 板间距。 后续对异形板的操作的过程中 (例如钻孔操作、 切割操作) , 板间距 的存在可以保护异形板不被损害。 在本实施例中, 溶入板间距后的异形板宽高 及相关参数对排样有决定性作用, 故在异形板组合前, 异形板分类模块 110需 要将板间距溶入异形板中。 由一个宽高为 D的矩形围绕异形板组合运动一圈, 所产生的轨迹线即为包含了板间距的新图形, 如图 2所示, 为溶入板间距后的 异形板, 其中图示阴影部分为溶入的板间距区域。  In the process of combining the shaped plates, a certain distance between the plates and the plates needs to be reserved, which is called the plate spacing. In the subsequent operation of the profiled plate (e.g., drilling operation, cutting operation), the presence of the plate spacing protects the profiled plate from damage. In this embodiment, the width of the profiled plate after the spacing of the plates is dissolved and the relevant parameters have a decisive effect on the layout. Therefore, before the combination of the profiled plates, the profiled plate classification module 110 needs to dissolve the spacing of the plates into the profiled plate. A circle with a width and height D surrounds the profiled plate for a circle, and the resulting trajectory is a new pattern containing the spacing of the plates. As shown in Fig. 2, it is a shaped plate after the plate spacing is dissolved, The shaded area is the area of the plate spacing in which it dissolves.
为了进一步提高拼板组合的效率, 异形板分类模块 10 需要对融入板间距 之后的异形板进行适当分类和处理, 具体将尺寸不超过阈值的异形板或异形板 的面积占其外接矩形的面积超过阈值的异形板分为第一类异形板, 其它的异形 板分为第二类异形板。 并且得到第一类异形板的最小的外接矩形, 以最小外接 矩形作为拼板过程中的代表, 相对于异形板, 矩形的拼接更为方便快速, 并且 对于尺寸不超过 10*10 的异形板和异形板的面积占其外接矩形的面积超过 99% 的异形板而言, 所多出的面积相对于提高的生产效率而言, 代价是非常微小 的。 In order to further improve the efficiency of the combination of the panel, the profiled plate sorting module 10 needs to properly classify and process the profiled plate after the pitch of the plate is integrated, and specifically, the area of the profiled plate or the profiled plate whose size does not exceed the threshold exceeds the area of the circumscribed rectangle. The threshold shaped plate is divided into the first type of shaped plate, other shaped The board is divided into a second type of shaped board. And the smallest circumscribed rectangle of the first type of special-shaped plate is obtained, and the minimum circumscribed rectangle is used as a representative in the splicing process. Compared with the special-shaped plate, the splicing of the rectangle is more convenient and fast, and for the special-shaped plate with a size not exceeding 10*10 and In the case of a profiled plate whose area of the circumscribed rectangle exceeds 99%, the extra area is extremely small in terms of increased production efficiency.
在溶入了板间距区域后, NFP生成模块 120进一步利用预置规则分别生成 异形板的 NFP, 每一 NFP为异形拼板两两交叉生成, 如异形板 A和异形板 B可 以生成两个 NFP, 为异形板 B绕异形板 A运动一周的轨迹以及异形板 A绕异形 板 B运动一周的轨迹。  After the board spacing region is dissolved, the NFP generating module 120 further generates the NFP of the special-shaped board by using preset rules, and each NFP is generated by the two-dimensional cross-shaped board, such as the special-shaped board A and the special-shaped board B can generate two NFPs. , the trajectory of the one-shaped plate B around the shaped plate A for one week and the trajectory of the shaped plate A moving around the shaped plate B one week.
组合模块 130将 N个 NFP两两合并生成 N个异形板组合图, 筛选模块 1140 从生成的 N个异形板组合图中筛选出外框线面积最小的最优拼板组合图, 使得 其占据 Set的面积最小, 从而提高了每一 Set的利用率。  The combination module 130 combines the N NFPs to generate N different shape plate combination maps, and the screening module 1140 selects the optimal combination of the outer frame lines from the generated N special-shaped plate combination maps, so that it occupies the Set. The smallest area, which improves the utilization of each set.
更为具体的, 请参照图 9, 为 NFP生成模块 120更为具体的结构示意图, 如图 8所示, NFP生成模块 120具体包括:  More specifically, please refer to FIG. 9 , which is a more detailed structural diagram of the NFP generation module 120. As shown in FIG. 8 , the NFP generation module 120 specifically includes:
第一生成单元 121, 用于选定任意两个异形板, 将第一异形板的一端点作 为起始点, 将第二异形板的一端点作为参考点, 使所述第二异形板沿所述第一 异形板的边线运动, 记录所述第二异形板的运动轨迹为 NFP;  a first generating unit 121, configured to select any two shaped plates, using an end point of the first shaped plate as a starting point, and using an end point of the second shaped plate as a reference point, so that the second shaped plate is along the The edge movement of the first shaped plate, recording the movement trajectory of the second shaped plate is NFP;
第二生成单元 122, 用于其余异形板两两交叉生成相应的 NFP。  The second generating unit 122 is configured to cross the other shaped plates to generate corresponding NFPs.
任意选定第一异形板 A (如图 3a所示)和第二异形板 B (如图 3b所示) , 设定第一异形板 A的一端点作为起始点、 第二异形板 B的一端点作为参考点, 记录第二异形板 B沿第一异形板的边线运动一周的运动轨迹(如图 3c所示), 该运动轨迹即为异形板 A相对于异形板 B的外围 NFP (如图 3d所示) 。  Arbitrarily selecting the first shaped plate A (shown in FIG. 3a) and the second shaped plate B (as shown in FIG. 3b), setting one end of the first shaped plate A as a starting point, and one end of the second shaped plate B Point as a reference point, recording the movement trajectory of the second shaped plate B moving along the edge of the first shaped plate (as shown in FIG. 3c), the moving track is the NFP of the shaped plate A relative to the periphery of the shaped plate B (as shown in the figure) 3d shown).
若需要对多个异形板进行拼板操作, 则第二生成单元 12 将其余异形板两 两交叉生成相应的 NFP, 例如形成异形板 B相对于异形板 A的 NFPBA等。 这样, 有 N个异形板则会形成 N个 NFP。 If it is necessary to perform a panel operation on a plurality of shaped plates, the second generating unit 12 will have two remaining shaped plates The two crosses generate corresponding NFPs, such as NFPBA forming the shaped plate B relative to the profiled plate A, and the like. Thus, there are N shaped plates that form N NFPs.
进一步地, 如图 10所示, 第一生成单元 121具体包括:  Further, as shown in FIG. 10, the first generating unit 121 specifically includes:
第一生成子单元 121a, 用于选定起始点, 记录第一异形板从所述起始点沿 所述第二异形板的边线运动时, 第二异形板两端点的距离以及滑动方向;  a first generating sub-unit 121a, configured to select a starting point, and record a distance between the two ends of the second shaped plate and a sliding direction when the first shaped plate moves along the edge of the second shaped plate from the starting point;
第二生成子单元 121b, 用于生成以所述第二异形板所有坐标点为起点、 方 向为所述滑动方向旋转 180度、 长度为滑动距离的若干第一线段, 得到第一线 段与所述第二异形板边线相交点集合;  The second generation sub-unit 121b is configured to generate a plurality of first line segments that are rotated by 180 degrees and a length of the sliding direction with all the coordinate points of the second shaped plate as a starting point, and the first line segment is obtained. The intersection of the intersection points of the second profiled board edges;
第三生成子单元 121c, 用于生成以第一异形板所有坐标点为起点, 方向为 滑动方向、 长度为滑动距离的若干第二线段, 得到第二线段与第一异形板边线 相交点后加入所述相交点集合;  The third generation sub-unit 121c is configured to generate a plurality of second line segments starting from all the coordinate points of the first shaped plate, the direction is the sliding direction, and the length is the sliding distance, and the intersection of the second line segment and the first profiled plate edge is obtained. The set of intersection points;
第四生成子单元 121d, 用于选取所述相交点集合 L中与第二异形板边线距 离最小的交点及该交点对应的所述第一异形板和所述第二异形板的边线;  The fourth generating sub-unit 121d is configured to select an intersection point of the intersection point set L that is the smallest distance from the edge of the second profiled board and an edge line of the first shaped plate and the second shaped plate corresponding to the intersection point;
第五生成子单元 121e, 用于连接获取到的所有最小的交点生成所述第二异 形板 NFP。  The fifth generating sub-unit 121e is configured to generate the second shaped plate NFP by connecting all the acquired minimum points.
第一生成子单元 121a选定异形板 C的端点 Ci和异形板 D的端点 D j为起始 点, 使异形板 D从起始点沿异形板 C的边线运动, 滑动距离为异形板 C两端点 的距离, 并记录滑动方向;  The first generating sub-unit 121a selects the end point Ci of the shaped plate C and the end point D j of the shaped plate D as a starting point, and moves the shaped plate D from the starting point along the edge line of the shaped plate C, and the sliding distance is the point of the end of the shaped plate C. Distance, and record the sliding direction;
如图 4所示, 以异形板 D从 Ci滑动至 Ci+1为例, 滑动距离为 Ci至 Ci+1 的距离, 滑动方向如箭头所示。  As shown in Fig. 4, taking the profiled plate D from Ci to Ci+1 as an example, the sliding distance is the distance from Ci to Ci+1, and the sliding direction is as indicated by the arrow.
第二生成子单元 121b生成以异形板 C所有点坐标为起点、 方向为滑动方向 旋转 180度、 程度为 Ci至 Ci+1距离的若干第一线段, 判断该第一线段与异形 板 B的边线是否有相交, 若有, 则将对应的交点添加至相交点集合 L2; 第三生成子单元 121c生成以异形板 B的所有点坐标为起点, 方向为滑动方 向、 长度为 Ci至 Ci+1距离的若干线段, 判断该线段与异形板 A的边线是否有 相交, 若有, 则将对应的交点加入相交点集合 L2; The second generation sub-unit 121b generates a plurality of first line segments which are rotated by 180 degrees in the sliding direction from the point coordinates of all the points of the profiled plate C, and the degree is Ci to Ci+1, and the first line segment and the profiled plate B are determined. Whether the edges of the intersections intersect, if any, add the corresponding intersection points to the intersection point set L2; The third generating sub-unit 121c generates a plurality of line segments starting from all the point coordinates of the shaped plate B, the direction is the sliding direction, and the length is Ci to Ci+1, and determining whether the line segment intersects the edge of the shaped plate A, if any , then the corresponding intersection point is added to the intersection point set L2;
第四生成子单元 121d选取相交点集合 L2中与异形板 A边线距离最小的交 点, 以及该交点对应的异形板 C 和异形板 D 的边线, 判断该交点是否为起始 点, 若否, 则由第二生成子单元 121b、 第三生成子单元 121c遍历异形板 C的 所有端点, 若是, 则获取到了若干最小交点;  The fourth generating sub-unit 121d selects an intersection point of the intersecting point set L2 that is the smallest distance from the edge of the shaped plate A, and an edge line of the shaped plate C and the shaped plate D corresponding to the intersection point, and determines whether the intersection point is a starting point, and if not, The second generation sub-unit 121b and the third generation sub-unit 121c traverse all the endpoints of the profiled board C, and if so, acquire a number of minimum intersections;
第五生成子单元 121e连接获取到的最小交点, 生成异形板 A的 NFP; 采用 快速筛选线段相交、 限制提取线段、 顶外围线不判断、 非阻止线不判断等模式 得到交点。 交点连成线, 则为 NFP轨迹线, 在轨迹线上可得到最佳定位点。 取 包含异形板 C的 NFP的面积最小矩形, 异形板 C的 NFP的定位点即为最佳定位 点。  The fifth generation sub-unit 121e connects the acquired minimum intersection point to generate the NFP of the profiled board A; and obtains the intersection point by using the modes of fast screening line segment intersection, limiting the extraction line segment, the top peripheral line not judging, and the non-blocking line not judging. When the intersection point is connected to a line, it is an NFP trajectory line, and the best positioning point can be obtained on the trajectory line. Take the smallest area rectangle of the NFP containing the profiled plate C, and the NFP positioning point of the profiled plate C is the optimal positioning point.
快速筛选线段相交的实现过程为: 提前利用 2 条线段的端点坐标值,来排 除一定不相交的线段对,减少调用相交函数的运算时间。  The implementation process of the fast screening line segment intersection is as follows: The end point coordinate values of the two line segments are used in advance to eliminate the pair of intersecting line segments, and the operation time of calling the intersection function is reduced.
限制提取线段的实现过程为: 排除一些异形板 C和异形板 D的端点,使其不 需引出线段, 以减少线段相交的运算量。  The process of limiting the extraction line segment is as follows: Exclude the end points of some profiled plates C and profiled plates D so that they do not need to lead out the line segments, so as to reduce the amount of intersection of the line segments.
顶外围线不判断的实现过程为: 像异形板 C和异形板 D之类的外框,对象初 始化后得到每条线段是否为顶外围线,顶外围线的定义线段的 2 个端点均在以 XY轴为正方向的矩形的边线上。 在生成相交点集合 L2 的过程中, 若异形板 C 的滑动线和异形板 D 的顶点逆时针对应的线段都为顶外围线,则不需引线段判 断,以减少线段相交的运算量。  The implementation process of the top peripheral line is not judged as: the outer frame such as the special-shaped board C and the special-shaped board D, after the object is initialized, whether each line segment is the top peripheral line, and the two end points of the defined line segment of the top peripheral line are in the The XY axis is the edge of the rectangle in the positive direction. In the process of generating the intersection point set L2, if the sliding line of the profiled plate C and the apex of the profiled plate D are reversed, the corresponding line segments are the top peripheral lines, and the lead segment judgment is not required, so as to reduce the calculation amount of the line segment intersection.
非阻止线不判断的实现过程为: 为排除线段与线段是平行的情况,以减少 线段相交的运算量。 在前述实施例的基础上, 请参照图 11, 为另一实施例中组合模块 130的具 体结构示意图, 如图 12所示, 具体包括: The implementation process of non-blocking line not judging is: To eliminate the case where the line segment is parallel with the line segment, so as to reduce the amount of calculation of the intersection of the line segments. On the basis of the foregoing embodiments, please refer to FIG. 11 , which is a schematic diagram of a specific structure of the combination module 130 in another embodiment. As shown in FIG. 12 , the following specifically includes:
交叉集合单元 131, 用于获得 N个异形板的交叉组合 NFP集合;  a cross-collection unit 131, configured to obtain a cross-combined NFP set of N profiled boards;
组合图生成单元 132, 用于从所述交叉 NFP集合中获取到所述第一异形板 和所述第二异形板的第一组合 NFP, 得到最佳定位点, 生成第一组合图并存储 对应的定位点; 还用于,  The combination map generating unit 132 is configured to obtain the first combined NFP of the first shaped plate and the second shaped plate from the intersecting NFP set, obtain an optimal positioning point, generate a first combined picture, and store the corresponding Anchor point; also used,
从 NFP集合中, 调出第一异形板 NFP和第三异形板 NFP的第二组合 NFP, 调出第二异形板与第三异形板的第三组合 NFP, 将所述第二组合 NFP与所述第 三组合 NFP组合获得第四组合 NFP后, 得到最佳定位点, 生成第二组合图并存 储对应的定位点;  From the NFP set, the second combined NFP of the first shaped plate NFP and the third shaped plate NFP is called, and the third combined NFP of the second shaped plate and the third shaped plate is called, and the second combined NFP is After the third combined NFP combination obtains the fourth combined NFP, the optimal positioning point is obtained, and the second combined image is generated and the corresponding positioning point is stored;
判断单元 133, 用于判断是否进行 N-1 次组合操作, 若否, 则发送指令使 组合图单元生成组合图, 直到得到 N个组合图。  The determining unit 133 is configured to determine whether to perform N-1 combined operations, and if not, send an instruction to cause the combined map unit to generate a combined map until N combined images are obtained.
交叉集合单元 131将 N个异形板分别交叉组合生成 NFP集合。  The cross-collection unit 131 cross-combines the N profiled plates to generate an NFP set.
以异形板 D和异形板 E为例, 组合图生成单元 132从交叉 NFP集合中获取 到异形板 D与异形板 E的组合 NFP, 取最小包含组合 NFP的矩形面积, 异形板 D 和异形板 E的定位为最佳定位点, 生成异形板 D和异形板 E的组合图并存储对 应的定位点。  Taking the shaped plate D and the shaped plate E as an example, the combined figure generating unit 132 obtains the combined NFP of the shaped plate D and the shaped plate E from the intersecting NFP set, and takes the smallest rectangular area including the combined NFP, the shaped plate D and the shaped plate E. The positioning is the optimal positioning point, and a combined view of the shaped plate D and the shaped plate E is generated and the corresponding positioning points are stored.
以异形板 D、 异形板 E和异形板 F为例, 组合图生成单元 132从交叉 NFP 集合中分别获取到异形板 D与异形板 F的组合 NFP以及异形板 E与异形板 F的 组合 NFP, 两个组合 NFP组合为包含三个异形板的组合 NFP, 进一步获得异形板 D、 异形板 E以及异形板 F的最佳定位点, 生成三个异形板的组合图并存储对应 的定位点。  Taking the profiled plate D, the profiled plate E and the profiled plate F as an example, the combination map generation unit 132 respectively obtains the combined NFP of the profiled plate D and the profiled plate F and the combined NFP of the profiled plate E and the profiled plate F from the intersecting NFP set, The two combined NFPs are combined into a combined NFP comprising three profiled plates, and the optimal positioning points of the profiled plate D, the profiled plate E and the profiled plate F are further obtained, and a combined view of the three profiled plates is generated and the corresponding positioning points are stored.
判断单元 133判断是否进行 N-1次组合操作, 若否, 则发送指令至组合图 单元 132进一步生成其他异形板的组合图, 直到获得 N个组合图; 请参照图 6, 为筛选模块 140的具体结构示意图, 如图 6所示, 筛选模块 140具体包括: The determining unit 133 determines whether to perform N-1 combined operations, and if not, sends an instruction to the combined map. The unit 132 further generates a combined view of the other shaped boards until the N combined pictures are obtained. Referring to FIG. 6 , a specific structural diagram of the screening module 140 is shown in FIG. 6 , and the screening module 140 specifically includes:
第一筛选子单元 141, 用于取最大面积的组合图作为起始图形;  a first screening subunit 141, configured to take a combined image of a maximum area as a starting graphic;
第二筛选子单元 142, 用于取 N个组合图中除所述起始图形外的任一组合 图, 计算得到次优模式定位点, 生成组合图集合 M;  a second screening sub-unit 142, configured to take any combination map of the N combined graphs except the starting graph, calculate a sub-optimal mode anchor point, and generate a combined graph set M;
第三筛选子单元 143, 用于.遍历所述 N个组合图, 取所述组合图集合 M外 的任一异形板组合图, 得到最优模式定位点, 放入所述组合图集合 M;  a third screening sub-unit 143, configured to: traverse the N combination maps, take any combination of the profiled panels outside the combination of the set of maps M, to obtain an optimal mode anchor point, into the combined map set M;
第四筛选子单元 144, 用于筛选外框面积最小的为最终拼板组合图 第五筛选子单元 145, 用于判断是否完成 N-1 次循环, 若是, 则发送指令 至第四筛选子单元生成最终拼板组合图, 否则发送指令至第三筛选子单元遍历 组合图。  The fourth screening sub-unit 144 is configured to filter the minimum area of the outer frame into a final panel combination diagram fifth screening sub-unit 145 for determining whether to complete the N-1 cycle, and if so, sending an instruction to the fourth screening subunit The final puzzle combination map is generated, otherwise the instruction is sent to the third screening subunit to traverse the combined map.
第一筛选子单元 141取最大面积的组合图作为起始图形;  The first screening sub-unit 141 takes the combined picture of the largest area as the starting picture;
第二筛选子单元 142取 N个组合图中除所述起始图形外的任一组合图, 计 算得到次优模式定位点, 生成组合图集合 M;  The second screening sub-unit 142 takes any combination map of the N combined graphs except the starting graph, calculates a sub-optimal mode anchor point, and generates a combined graph set M;
第三筛选子单元 143遍历所述 N个组合图, 取所述组合图集合 M外的任一 异形板组合图, 得到最优模式定位点, 放入所述组合图集合 M;  The third screening sub-unit 143 traverses the N combined graphs, and takes any combination of the irregular-shaped panels outside the combined graph set M to obtain an optimal mode positioning point, and puts the combined graph set M;
第五筛选子单元 145判断是否完成 N-1次循环, 若是, 则发送指令至第四 筛选子单元 144筛选出外框面积最小的组合图为最终拼板组合图, 否则发送指 令至第三筛选子单元 143遍历组合图。  The fifth screening sub-unit 145 determines whether the N-1 loop is completed. If yes, the command is sent to the fourth screening sub-unit 144 to filter out the combined map with the smallest outer frame area as the final puzzle combination map, otherwise the command is sent to the third filter. Unit 143 traverses the combined map.
进一步地, 如图 13所示, 还包括手动界面生成模块 150, 用于当所述异形 板的个数 N大于阈值或在预设时间范围内没有筛选出最优拼板组合图时, 将异 形板由高到低横向摆放, 生成用户手动摆放的操作界面; 其中, 异形板的个数 N的阈值为 20; 预设时间范围为 5分钟; 异形板的尺 寸的阈值为 10*10 ; 异形板的面积占其外接矩形的面积的阈值为 99%。 Further, as shown in FIG. 13 , the manual interface generating module 150 is further configured to: when the number N of the shaped plates is greater than a threshold or the optimal combination of the templates is not selected within a preset time range, The board is placed horizontally from high to low to generate an operation interface manually placed by the user; The threshold of the number N of the special-shaped plates is 20; the preset time range is 5 minutes; the threshold of the size of the special-shaped plate is 10*10; and the area of the area of the irregular-shaped plate occupies 99% of the area of the circumscribed rectangle.
一般而言, 当个数 N小于 20时, 能够顺利得到最优的拼板的组合方式, 但 是不能排除部分图形特别复杂, 无法顺利得到最优拼板组合图, 当在预设的时 间范围内没有得到结果时, 将停止运算过程, 生成用户手动摆放的操作界面, 直接通过手动摆放完成操作, 手动生成的拼板具有更高的灵活性, 相比于自动 生成过程中每个异形板只能在 90 ° 、 180 ° 和 270 ° 选择, 手动操作的时候可 以选择更为精细的旋转角度。  In general, when the number N is less than 20, the optimal combination of the puzzles can be obtained smoothly, but it is not excluded that the partial graphics are particularly complicated, and the optimal combination of the puzzles cannot be obtained smoothly, within a preset time range. When the result is not obtained, the operation process will be stopped, and the operation interface manually placed by the user will be generated, and the operation can be directly performed by manual placement. The manually generated jigsaw has higher flexibility, compared to each profiled plate in the automatic generation process. It can only be selected at 90 °, 180 ° and 270 °, and a finer angle of rotation can be selected for manual operation.
进一步地, 当在预设时间范围内没有筛选出最优拼板组合图时, 采用最小 最优比例的模式确定对各种异形板的比例关系重新筛选最优拼板组合图。 具体 来讲, 假设有 A、 B、 C三种异形板, 所需的比例是 5 : 2 : 3, 如果第一次最优拼 板组合图生成不成功, 为了降低图形处理的复杂度, 将比例调整为 2 : 1 : 1进行 筛选, 如果在预设时间范围内还是没有筛选出最优拼板组合图, 再将异形板由 高到低横向摆放, 生成用户手动摆放的操作界面。 虽然将比例调整为 2 : 1 : 1后 会使得 A和 B两种异形板出现生产过量的情况, 但是相对于拼板所带来的节约 板材的效果, 这个程度的生产过量是可以接受的。  Further, when the optimal combination of the panels is not selected within the preset time range, the mode of the minimum optimal ratio is used to determine the proportional relationship of the various shaped plates to re-screen the optimal combination of the panels. Specifically, assuming that there are three special-shaped plates of A, B, and C, the required ratio is 5:2:3. If the first optimal combination of the puzzles is unsuccessful, in order to reduce the complexity of the graphics processing, The ratio is adjusted to 2:1:1 for screening. If the optimal panel combination map is not selected within the preset time range, the profiled board is placed horizontally from high to low to generate an operation interface manually placed by the user. Although adjusting the ratio to 2:1:1 will result in overproduction of the A and B shaped plates, this level of overproduction is acceptable relative to the plate-saving effect of the panels.
本发明提出的 PCB拼板装置, 通过利用预置的规则将已溶入板间距的异形 板组合生成拼板组合图, 并筛选出最优拼板组合图, 组合过程中将符合要求的 异形板转化为矩形处理, 提高了 PCB生产的效率和组合方式的计算效率, 并且 降低了异形板的生产用料, 降低了成本。  The PCB panel device proposed by the invention combines the profiled plates which have been dissolved into the plate spacing by using preset rules to generate a panel combination diagram, and selects an optimal panel combination diagram, and the profiled board which meets the requirements in the combination process The conversion to rectangular processing improves the efficiency of PCB production and the calculation efficiency of the combination method, and reduces the production materials of the shaped plate, thereby reducing the cost.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉该技术的人在本发明所揭露的技术范围内, 可轻易想到的变 化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该 以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should The scope of protection of the claims shall prevail.

Claims

权 利 要 求 书 claims
1、 一种 PCB拼板方法, 其特征在于, 包括以下步骤: 1. A PCB assembly method, characterized in that it includes the following steps:
将每一异形板溶入板间距后, 区分第一类异形板和第二类异形板; 利用预置的规则分别生成异形板不规则外围框线 NFP, 其中第一类异形板 在对应的矩形生成异形板不规则外围框线 NFP, 第二类异形板在原异形板上生 成异形板不规则外围框线 NFP; 当异形板的个数 N大于 1且不超过阈值时, 将 N 个所述 NFP两两合并生成 N个异形板组合图; After each special-shaped plate is dissolved into the plate spacing, the first type of special-shaped board and the second type of special-shaped board are distinguished; the irregular peripheral frame line NFP of the special-shaped board is generated respectively using the preset rules, where the first type of special-shaped board is in the corresponding rectangle The irregular peripheral frame line NFP of the special-shaped plate is generated, and the second type of special-shaped plate generates the irregular peripheral frame line NFP of the special-shaped plate on the original special-shaped plate; when the number N of special-shaped plates is greater than 1 and does not exceed the threshold, the N NFPs are Combine each pair to generate N special-shaped plate combination diagrams;
从 N个异形板组合图中筛选出最优拼板组合图; Select the optimal panel combination diagram from N special-shaped panel combination diagrams;
其中, 所述第一类异形板为异形板的尺寸不超过阈值的异形板或异形板的 面积占其外接矩形的面积超过阈值的异形板; 第一类异形板之外的异形板为第 二类异形板。 Among them, the first type of special-shaped board is a special-shaped board whose size does not exceed a threshold value or a special-shaped board whose area accounts for the area of its circumscribed rectangle exceeds a threshold value; special-shaped boards other than the first type of special-shaped board are second type special-shaped boards. Special-shaped board.
2、根据权利要求 1所述的方法, 其特征在于, 所述利用预置的规则分别生 成 N个异形板的不规则外围框线 NFP的步骤具体包括: 2. The method according to claim 1, characterized in that the step of using preset rules to respectively generate irregular peripheral frames NFP of N special-shaped plates specifically includes:
选定第一异形板和第二异形板板, 将第一异形板的一端点作为起始点, 将 第二异形板的一端点作为参考点, 记录所述第二异形板沿所述第一异形板的边 线运动一周的运动轨迹为 NFP; Select the first special-shaped plate and the second special-shaped plate, use one end point of the first special-shaped plate as the starting point, use one end point of the second special-shaped plate as the reference point, record the second special-shaped plate along the first special-shaped plate The movement trajectory of the sideline of the board in one cycle is NFP;
将其余异形板两两交叉生成相应的 NFP。 Cross the remaining special-shaped plates two by two to generate the corresponding NFP.
3、根据权利要求 2所述的方法, 其特征在于, 所述选定第一异形板和第二 异形板, 分别将第一异形板和第二异形板的一端点作为起始点, 记录所述第二 异形板沿所述第一异形板的边线运动一周的运动轨迹为 NFP的步骤具体包括: 3. The method according to claim 2, characterized in that: to select the first special-shaped plate and the second special-shaped plate, respectively use one end point of the first special-shaped plate and the second special-shaped plate as a starting point, and record the said The steps of moving the second special-shaped plate along the edge of the first special-shaped plate for one cycle as NFP specifically include:
A1.选定起始点; A1. Select the starting point;
A2.记录第一异形板从所述起始点沿所述第二异形板的边线运动时, 第二 异形板两端点的距离以及滑动方向; A2. Record the distance between the two end points of the second special-shaped plate and the sliding direction when the first special-shaped plate moves from the starting point along the edge of the second special-shaped plate;
A3.生成以所述第二异形板所有坐标点为起点、 方向为所述滑动方向旋转 180 度、 长度为所述滑动距离的若干第一线段, 得到第一线段与所述第二异形 板边线相交点集合; A3. Generate a rotation with all coordinate points of the second special-shaped plate as the starting point and the direction as the sliding direction. 180 degrees, several first line segments with a length of the sliding distance, and obtain a set of intersection points between the first line segments and the edge of the second special-shaped plate;
A4.生成以所述第一异形板所有坐标点为起点、 方向为所述滑动方向、 长 度为所述滑动距离的若干第二线段, 得到第二线段与所述第一异形板边线相交 点后加入所述相交点集合; A4. Generate several second line segments with all coordinate points of the first special-shaped plate as the starting point, the direction as the sliding direction, and the length as the sliding distance, and obtain the intersection point of the second line segment and the edge line of the first special-shaped plate. Join the set of intersection points;
A5.选取所述相交点集合中与第二异形板边线距离最小的交点及该交点对 应的所述第一异形板和所述第二异形板的边线, 判断所述最小的交点是否为所 述起始点, 若是, 则执行步骤 A6, 否则循环执行步骤 A2、 步骤 A3、 步骤 A4、 步骤 A5; A5. Select the intersection point with the smallest distance from the edge of the second special-shaped plate in the set of intersection points and the edge of the first special-shaped plate and the second special-shaped plate corresponding to the intersection point, and determine whether the smallest intersection point is the starting point, if yes, execute step A6, otherwise execute step A2, step A3, step A4 and step A5 in a loop;
A6.连接获取到的所有最小的交点生成所述第二异形板 NFP。 A6. Connect all the minimum intersection points obtained to generate the second profiled plate NFP.
4、根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述将 N个所述 NFP 两两合并生成 N个异形板组合图的步骤具体包括: 4. The method according to claim 1, 2 or 3, characterized in that the step of merging N NFPs in pairs to generate N special-shaped plate combination diagrams specifically includes:
B1.获得 N个异形板的交叉组合 NFP集合; B1. Obtain the cross-combination NFP set of N special-shaped plates;
B2.从所述交叉 NFP 集合中获取到所述第一异形板和所述第二异形板的第 一组合 NFP, 得到最佳定位点, 生成第一组合图并存储对应的定位点; B2. Obtain the first combined NFP of the first special-shaped plate and the second special-shaped plate from the cross NFP set, obtain the best positioning point, generate a first combination diagram and store the corresponding positioning point;
B3.从 NFP 集合中, 调出第一异形板 NFP 和第三异形板 NFP 的第二组合 NFP, 调出第二异形板与第三异形板的第三组合 NFP, 将所述第二组合 NFP与所 述第三组合 NFP组合获得第四组合 NFP后, 得到最佳定位点, 生成第二组合图 并存储对应的定位点; B3. From the NFP set, call out the second combination NFP of the first special-shaped plate NFP and the third special-shaped plate NFP, call out the third combination NFP of the second special-shaped plate and the third special-shaped plate, and add the second combination NFP After combining with the third combination NFP to obtain the fourth combination NFP, obtain the best positioning point, generate a second combination map and store the corresponding positioning point;
B4.判断是否进行 N-1次组合操作, 若否, 则循环步骤 B2、 B3 o B4. Determine whether to perform N-1 combination operations. If not, loop steps B2 and B3 o
5、 根据权利要求 1、 2或 3所述的方法, 其特征在于, 所述利用预置条件 从所述若干 NFP中筛选出拼板 NFP的步骤具体包括: 5. The method according to claim 1, 2 or 3, characterized in that the step of using preset conditions to select panelized NFPs from the plurality of NFPs specifically includes:
C1.取最大面积的组合图作为起始图形; C2.取 N个组合图中除所述起始图形外的任一组合图, 计算得到次优模式 定位点, 生成组合图集合 M; C1. Take the combination graph with the largest area as the starting graph; C2. Take any combination diagram except the starting figure among the N combination diagrams, calculate the sub-optimal mode positioning point, and generate a combination diagram set M;
C3.遍历所述 N个组合图, 取所述组合图集合 M外的任一异形板组合图, 得 到最优模式定位点, 放入所述组合图集合 M; C3. Traverse the N combination diagrams, take any special-shaped plate combination diagram outside the combination diagram set M, obtain the optimal mode positioning point, and put it into the combination diagram set M;
C4.判断是否完成 N-1次循环, 若是, 则执行步骤 C5, 否则执行步骤 C3; C4. Determine whether N-1 cycles have been completed. If so, execute step C5; otherwise, execute step C3 ;
C5.筛选外框面积最小的为最终拼板组合图。 C5. Select the one with the smallest outer frame area to be the final panel combination picture.
6、 一种 PCB拼板装置, 其特征在于, 包括: 6. A PCB splicing device, characterized by including:
异形板分类模块, 用于将每一异形板溶入板间距后, 区分第一类异形板和 第二类异形板; The special-shaped plate classification module is used to distinguish the first type of special-shaped board from the second type of special-shaped board after melting each special-shaped board into the plate spacing;
NFP 生成模块, 用于利用预置的规则分别生成异形板 NFP, 其中第一类异 形板在对应的矩形生成异形板不规则外围框线 NFP, 第二类异形板在原异形板 上生成异形板不规则外围框线 NFP; The NFP generation module is used to generate special-shaped plates NFP respectively using preset rules. The first type of special-shaped plate generates irregular peripheral frame lines NFP of the special-shaped plate in the corresponding rectangle, and the second type of special-shaped plate generates non-shaped special-shaped plates on the original special-shaped plate. Rule perimeter frame NFP;
组合模块, 用于当异形板的个数 N大于 1且不超过阈值时, 将 N个所述 NFP 两两合并生成 N个异形板组合图; The combination module is used to combine N NFPs in pairs to generate N special-shaped plate combination diagrams when the number N of special-shaped plates is greater than 1 and does not exceed the threshold;
筛选模块, 用于从 N个异形板组合图中筛选出最优拼板组合图; The screening module is used to select the optimal panel combination diagram from N special-shaped panel combination diagrams;
其中, 所述第一类异形板为异形板的尺寸不超过阈值的异形板或异形板的 面积占其外接矩形的面积超过阈值的异形板; 第一类异形板之外的异形板为第 二类异形板。 Among them, the first type of special-shaped board is a special-shaped board whose size does not exceed a threshold value or a special-shaped board whose area accounts for the area of its circumscribed rectangle exceeds a threshold value; special-shaped boards other than the first type of special-shaped board are second type special-shaped boards. Special-shaped board.
7、 根据权利要求 6所述的装置, 其特征在于, 所述 NFP生成模块具体包 括: 7. The device according to claim 6, wherein the NFP generation module specifically includes:
第一生成单元, 用于选定第一异形板和第二异形板, 将第一异形板的一端 点作为起始点, 将第二异形板的一端点作为参考点, 记录所述第二异形板沿所 述第一异形板的边线运动一周的运动轨迹为 NFP; 第二生成单元, 用于将其余异形板两两交叉生成相应的 NFP。 The first generation unit is used to select the first special-shaped plate and the second special-shaped plate, use one end point of the first special-shaped plate as the starting point, use one end point of the second special-shaped plate as the reference point, and record the second special-shaped plate The movement trajectory along the edge of the first special-shaped plate is NFP; The second generation unit is used to cross the remaining special-shaped plates to generate corresponding NFP.
8、 根据权利要求 7 所述的装置, 其特征在于, 所述第一生成单元具体包 括: 8. The device according to claim 7, wherein the first generating unit specifically includes:
第一生成子单元, 用于选定起始点, 记录第一异形板从所述起始点沿所述 第二异形板的边线运动时, 第二异形板两端点的距离以及滑动方向; The first generation subunit is used to select the starting point and record the distance between the two end points of the second special-shaped plate and the sliding direction when the first special-shaped plate moves from the starting point along the edge of the second special-shaped plate;
第二生成子单元, 用于生成以所述第二异形板所有坐标点为起点、 方向为 所述滑动方向旋转 180度、 长度为所述滑动距离的若干第一线段, 得到第一线 段与所述第二异形板边线相交点集合; The second generation subunit is used to generate a number of first line segments starting from all coordinate points of the second special-shaped plate, rotating 180 degrees in the direction of the sliding direction, and having a length of the sliding distance, to obtain the first line segments. A collection of intersection points with the edge line of the second special-shaped plate;
第三生成子单元, 用于生成以所述第一异形板所有坐标点为起点, 方向为 所述滑动方向、 长度为所述滑动距离的若干第二线段, 得到第二线段与所述第 一异形板边线相交点后加入所述相交点集合; The third generation subunit is used to generate a number of second line segments starting from all coordinate points of the first special-shaped plate, with the direction being the sliding direction and the length being the sliding distance, to obtain the second line segments and the first The intersection point of the edge lines of the special-shaped plate is added to the set of intersection points;
第四生成子单元, 用于选取所述相交点集合 L中与第二异形板边线距离最 小的交点及该交点对应的所述第一异形板和所述第二异形板的边线; The fourth generation subunit is used to select the intersection point with the smallest distance from the edge line of the second special-shaped plate in the intersection point set L and the edge line of the first special-shaped plate and the second special-shaped plate corresponding to the intersection point;
第五生成子单元, 用于连接获取到的所有最小的交点生成所述第二异形板 The fifth generation subunit is used to connect all obtained minimum intersection points to generate the second special-shaped plate
9、 根据权利要求 6、 7或 8所述的装置, 其特征在于, 所述组合模块具体 包括: 9. The device according to claim 6, 7 or 8, characterized in that the combination module specifically includes:
交叉集合单元, 用于获得 N个异形板的交叉组合 NFP集合; Cross collection unit, used to obtain the cross combination NFP set of N special-shaped plates;
组合图生成单元, 用于从所述交叉 NFP集合中获取到所述第一异形板和所 述第二异形板的第一组合 NFP, 得到最佳定位点, 生成第一组合图并存储对应 的定位点; 以及从 NFP集合中, 调出第一异形板 NFP和第三异形板 NFP的第二 组合 NFP, 调出第二异形板与第三异形板的第三组合 NFP, 将所述第二组合 NFP 与所述第三组合 NFP组合获得第四组合 NFP后, 得到最佳定位点, 生成第二组 合图并存储对应的定位点; A combination diagram generating unit, configured to obtain the first combined NFP of the first special-shaped plate and the second special-shaped board from the cross NFP set, obtain the best positioning point, generate a first combination diagram and store the corresponding anchor point; and from the NFP set, call out the second combination NFP of the first special-shaped plate NFP and the third special-shaped plate NFP, call out the third combination NFP of the second special-shaped plate and the third special-shaped plate, and transfer the second combination NFP After combining the NFP combination with the third combination NFP to obtain the fourth combination NFP, the best positioning point is obtained and the second group is generated. Combine the pictures and store the corresponding positioning points;
判断单元, 用于判断是否进行 N-1次组合操作, 若否, 则发送指令至组合 图单元生成组合图, 直到得到 N个组合图。 The judgment unit is used to judge whether to perform N-1 combination operations. If not, send instructions to the combination diagram unit to generate a combination diagram until N combination diagrams are obtained.
10、根据权利要求 6、 7或 8所述的装置, 其特征在于, 所述筛选模块具体 包括: 10. The device according to claim 6, 7 or 8, characterized in that the screening module specifically includes:
第一筛选子单元, 用于取最大面积的组合图作为起始图形; 第二筛选子单 元, 用于取 N个组合图中除所述起始图形外的任一组合图, 计算得到次优模式 定位点, 生成组合图集合 M; The first screening subunit is used to select the combination diagram with the largest area as the starting figure; the second screening subunit is used to select any combination diagram among the N combination diagrams except the starting figure, and calculate the suboptimal Pattern anchor point, generate combination diagram set M;
第三筛选子单元, 用于遍历所述 N个组合图, 取所述组合图集合 M外的任 一异形板组合图, 得到最优模式定位点, 放入所述组合图集合 M; The third screening subunit is used to traverse the N combination diagrams, take any special-shaped plate combination diagram outside the combination diagram set M, obtain the optimal mode positioning point, and put it into the combination diagram set M;
第四筛选子单元, 用于筛选外框面积最小的为最终拼板组合图 The fourth screening sub-unit is used to screen the final panel combination picture with the smallest outer frame area.
第五筛选子单元, 用于判断是否完成 N-1次循环, 若是, 则发送指令至第 四筛选子单元生成最终拼板组合图, 否则发送指令至第三筛选子单元遍历组合 图。 The fifth screening subunit is used to determine whether N-1 cycles have been completed. If so, an instruction is sent to the fourth screening subunit to generate the final puzzle combination diagram. Otherwise, an instruction is sent to the third screening subunit to traverse the combination diagram.
PCT/CN2014/079375 2014-03-03 2014-06-06 Pcb splicing method and device WO2015131458A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410075218.3 2014-03-03
CN201410075218.3A CN103957672B (en) 2014-03-03 2014-03-03 A kind of PCB board joint methods and device

Publications (1)

Publication Number Publication Date
WO2015131458A1 true WO2015131458A1 (en) 2015-09-11

Family

ID=51334856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079375 WO2015131458A1 (en) 2014-03-03 2014-06-06 Pcb splicing method and device

Country Status (2)

Country Link
CN (1) CN103957672B (en)
WO (1) WO2015131458A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837299B (en) * 2015-05-08 2017-10-03 歌尔股份有限公司 PCB connecting plates device and its connecting plate method
CN105764268B (en) * 2016-05-04 2018-12-18 深圳市百能信息技术有限公司 Special-shaped board joint method and device based on inscribed polygon
CN109086917B (en) * 2018-07-17 2021-07-27 杭州电子科技大学 Optimal makeup and paper cutting combination determination method for single-sheet printing
CN113836859A (en) * 2021-09-23 2021-12-24 苏州悦谱半导体有限公司 Computer-aided manufacturing method of intelligent jointed board for industrial graphics
CN115392181B (en) * 2022-10-28 2023-02-07 成都复锦功率半导体技术发展有限公司 Layout design method based on external frame design, chip and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030029034A1 (en) * 2001-08-08 2003-02-13 Unitech Printed Circuit Board Corp. Method of removing and replacing defective piece of printed circuit board formed on a panel
CN201440755U (en) * 2009-07-15 2010-04-21 东莞康源电子有限公司 Array circuit board
CN102781176A (en) * 2011-05-10 2012-11-14 深圳光启高等理工研究院 Splicing method of circuit board and splicing circuit board
CN102833961A (en) * 2012-06-15 2012-12-19 深圳市百能信息技术有限公司 PCB (Printed circuit board) butt welding method and PCB butt welding device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030029034A1 (en) * 2001-08-08 2003-02-13 Unitech Printed Circuit Board Corp. Method of removing and replacing defective piece of printed circuit board formed on a panel
CN201440755U (en) * 2009-07-15 2010-04-21 东莞康源电子有限公司 Array circuit board
CN102781176A (en) * 2011-05-10 2012-11-14 深圳光启高等理工研究院 Splicing method of circuit board and splicing circuit board
CN102833961A (en) * 2012-06-15 2012-12-19 深圳市百能信息技术有限公司 PCB (Printed circuit board) butt welding method and PCB butt welding device

Also Published As

Publication number Publication date
CN103957672A (en) 2014-07-30
CN103957672B (en) 2017-10-31

Similar Documents

Publication Publication Date Title
WO2015131458A1 (en) Pcb splicing method and device
JP6742869B2 (en) Image processing apparatus and image processing method
DE102014106579A1 (en) Special gestures for camera control and image processing methods
JP2020533710A (en) Image stitching method and device, storage medium
CN107395958A (en) Image processing method and device, electronic equipment and storage medium
WO2021121162A1 (en) Picture processing method and apparatus, and electronic device and storage medium
CN104461001B (en) A kind of information processing method and electronic equipment
TW202001614A (en) Methods and systems of distributing task areas for cleaning devices, and cleaning devices
CN110209325A (en) A kind of 3D scene display control method, system and equipment
CN106201259A (en) A kind of method and apparatus sharing full-view image in virtual reality system
JP2019014223A (en) Three-dimensional printing apparatus and three-dimensional printing method
CN104751506B (en) A kind of Cluster Rendering method and apparatus for realizing three-dimensional graphics images
CN107203962B (en) Method for making pseudo-3D image by using 2D picture and electronic equipment
CN109669751A (en) A kind of method for drafting of input frame, device, terminal and computer storage medium
CN109525836A (en) Embedded multimode based on FPGA is same to survey device
CN108846901A (en) Model introduction method and device
US8601429B1 (en) Method for connecting flip chip components
CN103310409A (en) Quick triangle partitioning method of Tile-based rendering architecture central processing unit (CPU)
WO2024021902A1 (en) Method and apparatus for moving icon, and electronic device and storage medium
US8907976B2 (en) Resolution-adaptive mesh smoothing brush
CN105893578B (en) A kind of method and device of photo selection
WO2017107475A1 (en) Method and system for combining and splitting elements
JP2011043879A (en) Method and program for extracting mask image, and method and program for constructing voxel data
US9290871B2 (en) Apparatus and non-transitory computer-readable medium storing computer-readable instructions
JP2023522370A (en) Image display method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14884432

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14884432

Country of ref document: EP

Kind code of ref document: A1