Search

CN-115544943-B - Method for designing routing based on PCB (printed circuit board)

CN115544943BCN 115544943 BCN115544943 BCN 115544943BCN-115544943-B

Abstract

The invention relates to the technical field of PCB production and processing, in particular to a method for designing a routing based on a PCB (printed circuit board), which comprises the following steps of calculating a single board area and a boundary area by utilizing polygonal Boolean operation and inclusion operation through the drilling position and the board frame position of a PCB; the method comprises the steps of generating a routing path of a PCB, adjusting the path coordinates according to the routing path and the expansion coefficient, reading routing files, checking routing data, performing manual data fine adjustment, outputting routing files, and turning out the routing files to meet the reading format of numerical control equipment. Compared with the prior art, the method for designing the routing based on the PCB solves the problems that in the existing PCB routing processing process, artificial cognition deviation exists when the routing is designed, so that efficiency and quality are low, and excessive manpower is consumed.

Inventors

  • ZHOU XIAOFEI
  • WU JIE

Assignees

  • 深圳华秋电子有限公司

Dates

Publication Date
20260512
Application Date
20220922

Claims (9)

  1. 1. The method for designing the routing based on the PCB routing is characterized by comprising the following steps: step S1, calculating a single board area and a boundary area by utilizing polygonal Boolean operation and inclusion operation according to the drilling position and the board frame position of a PCB; s2, generating a routing path of the PCB; the step S2 includes the following steps: S21, acquiring a list of a total appearance area, a process edge area, a stamp hole connection area, an inner groove area and a PCB single board area, backing up positioning holes, traversing all the inner groove areas and the process edge areas in the list, and merging the intersected inner groove areas and the intersected process edge areas; step S22, calculating an actual cutting path, avoiding the situation of over-cutting and under-cutting, and matching the process edge area according to the principle that the process edge area is equal in size; s23, merging the process edge area into the total appearance area, calculating an integral appearance cutting path after merging the process edge area and the total appearance area, and carrying out repair cutting treatment at an acute angle at the intersection of the process edge area and the total appearance area; s24, merging the inner groove region into the process edge region, calculating a cutting path of the inner groove region, and performing complementary cutting treatment at an acute angle where the inner groove region and the process edge region intersect; Step S25, avoiding positioning holes, and calculating a routing path of the PCB by using a large gong cutter, a medium size routing and a small gong cutter respectively; Step S3, adjusting the path coordinates according to the gong belt path and the expansion coefficient; s4, reading the gong belt file, checking gong belt data, and performing manual data fine adjustment; And S5, outputting the gong band file, and turning out the gong band file to meet the reading format of the numerical control equipment.
  2. 2. A method for designing a routing path based on a PCB as set forth in claim 1, wherein the step S24 includes the steps of: Step S241, the large gong cutter path is ToolPath1, the small gong cutter path is ToolPath2, and the small gong cutter gong-repairing path RePairToolPaths is calculated; step S242, the cutter Path ToolPath1 of the large gong cutter is shifted outwards by the distance D1, so as to obtain the cutting Path1 of the large gong cutter; Step S243, the cutter Path ToolPath2 of the small gong cutter is outwards shifted by a distance D2 to obtain a cutting Path Path2 of the small gong cutter; Step S244, breaking up Path2 into a new Path Path3 with two points at a distance of 0.1 mm; Step S245, traversing and comparing the Path1 and the Path3, and finding out coordinate segments where the Path1 and the Path3 do not coincide; Step S246, calculating the polygonal area surrounded by the coordinate segments of the Path1 and the Path3, wherein the polygonal area is more than or equal to 0.5mm and 0.5mm, and using the coordinate segment of the Path3, which is not overlapped with the Path1, as a small gong-cutter-repair routing RePairToolPaths; Step S247, the steps S242-S246 are repeated, and all small gong knife repair paths RePairToolPaths meeting the conditions are found and combined into a total repair path RePairToolPaths.
  3. 3. A method for designing a routing based on a PCB strip as claimed in claim 1, wherein the step S1 includes the steps of: step S11, performing end-to-end contact verification on the outline of the frame of GKO files of the PCB, and performing straight line repair if frames which are not in contact end-to-end exist; Step S12, performing Boolean operation and inclusion operation on GKO files of the PCB with the closed outline of the frame to calculate the outline area of the PCB, if a plurality of outline areas exist in the calculation result, taking the outline area with the largest area and including other outline areas as a total outline area, and defining the other areas as an area to be analyzed; and S13, after the total appearance area is determined, respectively identifying a process side area, a stamp hole connection area, an inner groove area and a PCB single board area by using Boolean operation and inclusion operation on the total appearance area.
  4. 4. A method for designing a routing path based on a PCB as claimed in claim 3, wherein in the step S11, distances between the start point and the end point of the element in the GKO file and surrounding elements are calculated, the distances are greater than the sum of line widths or greater than 15mil, and a straight line repair is used between the two points.
  5. 5. A method for designing a routing path based on a PCB according to claim 3, wherein in step S12, a splice gap exists in the outline of the border of the PCB, and the GKO file is expanded by 5mil elements, and the boolean operation and the inclusion operation are re-applied, and the step S12 is repeated to calculate the total outline area.
  6. 6. A method for designing a routing path based on a PCB in accordance with claim 3, wherein in the step S13, the width or height of the area in the total outline area is less than 8mm, and the area is identified as a process edge area.
  7. 7. A method based on a routing of a PCB ribbon as defined in claim 3, wherein in the step S13, the area within the total outline area includes more than 3 holes or more than 80% of the area of the hole area, and is identified as a PCB board area.
  8. 8. A method for designing a routing path based on a PCB strip as claimed in claim 7, wherein in the step S13, the holes are determined to be stamp holes by passing through continuous holes on either side of the area within the general outline area, and if the area is not a PCB veneer area, the area is identified as a stamp hole connection area.
  9. 9. A method for designing a routing path based on a PCB strip as claimed in claim 3, wherein in the step S13, the area surrounded by the total outline area is analyzed for inclusion by using the element contacting the outline of the total outline area, and the area is identified as the inner groove area if it is included, and the area is not included.

Description

Method for designing routing based on PCB (printed circuit board) [ Field of technology ] The invention relates to the technical field of PCB production and processing, in particular to a method for designing a routing based on a PCB routing. [ Background Art ] Before the PCB is processed by routing, engineers need to design routing paths on engineering files, and process interference problems of cutter paths and PCB single boards, optimization problems of cutter processing efficiency, interference problems of cutter paths and process edges of positioning holes and single board expansion and contraction problems caused by production processes. Long-time production is difficult to avoid artificial design errors, so that the problems of size deviation, efficiency reduction, unsatisfied shipment requirements in production and the like occur during routing, and the production quality and the production efficiency are affected. In order to improve quality, stabilize product characteristics and use functions, innovate and improve the overall dimension of the PCB combination, effectively control product rejection caused by manual errors, reasonably process interference conditions of a cutter path and a PCB veneer, and optimize a cutter selecting scheme, therefore, more perfect automatic design software of the routing belt is needed, a computer replaces manual work, all human error problems in the PCB routing processing process are reasonably processed, design time is accelerated, product quality is stabilized, and efficiency is improved. [ Invention ] In order to overcome the problems, the invention provides a method for designing a routing based on a PCB (printed circuit board) routing, which can effectively solve the problems. The technical scheme provided by the invention for solving the technical problems is that a method for designing a routing based on a PCB (printed circuit board) routing is provided, and comprises the following steps: step S1, calculating a single board area and a boundary area by utilizing polygonal Boolean operation and inclusion operation according to the drilling position and the board frame position of a PCB; s2, generating a routing path of the PCB; Step S3, adjusting the path coordinates according to the gong belt path and the expansion coefficient; s4, reading the gong belt file, checking gong belt data, and performing manual data fine adjustment; And S5, outputting the gong band file, and turning out the gong band file to meet the reading format of the numerical control equipment. Preferably, the step S2 includes the following steps: S21, acquiring a list of a total appearance area, a process edge area, a stamp hole connection area, an inner groove area and a PCB single board area, backing up positioning holes, traversing all the inner groove areas and the process edge areas in the list, and merging the intersected inner groove areas and the intersected process edge areas; step S22, calculating an actual cutting path, avoiding the situation of over-cutting and under-cutting, and matching the process edge area according to the principle that the process edge area is equal in size; s23, merging the process edge area into the total appearance area, calculating an integral appearance cutting path after merging the process edge area and the total appearance area, and carrying out repair cutting treatment at an acute angle at the intersection of the process edge area and the total appearance area; s24, merging the inner groove region into the process edge region, calculating a cutting path of the inner groove region, and performing complementary cutting treatment at an acute angle where the inner groove region and the process edge region intersect; Step S25, avoiding positioning holes, and calculating a routing path of the PCB by using a large gong cutter, a medium size routing and a small gong cutter respectively. Preferably, the step S24 includes the following steps: Step S241, the large gong cutter path is ToolPath1, the small gong cutter path is ToolPath2, and the small gong cutter gong-repairing path RePairToolPaths is calculated; step S242, the cutter Path ToolPath1 of the large gong cutter is shifted outwards by the distance D1, so as to obtain the cutting Path1 of the large gong cutter; Step S243, the cutter Path ToolPath2 of the small gong cutter is outwards shifted by a distance D2 to obtain a cutting Path Path2 of the small gong cutter; Step S244, breaking up Path2 into a new Path Path3 with two points at a distance of 0.1 mm; Step S245, traversing and comparing the Path1 and the Path3, and finding out coordinate segments where the Path1 and the Path3 do not coincide; Step S246, calculating the polygonal area surrounded by the coordinate segments of the Path1 and the Path3, wherein the polygonal area is more than or equal to 0.5mm and 0.5mm, and using the coordinate segment of the Path3, which is not overlapped with the Path1, as a small gong-cutter-repair routing RePairToolP