A PCB unit board layout method, medium and device based on poles

CN114386362BActive Publication Date: 2024-12-03ZHEJIANG SHUREN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210045388.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-15
Publication Date
2024-12-03
Estimated Expiration
2042-01-15

AI Technical Summary

Technical Problem

Existing technologies have not effectively addressed the NP-hard problem of optimizing the panelization of PCB unit boards, which relies on manual experience and lacks efficient mathematical models and feasible optimization methods for the panelization of rectangular unit boards, leading to suboptimal utilization rates and complex sequencing processes.

Method used

A pole-based PCB unit board layout method that simplifies the positioning process by using poles as layout starting points, updating the material board until no more PCB unit boards can be placed, and employing a computer-readable storage medium to implement the method.

Benefits of technology

The method simplifies the positioning process, quickly identifies infeasible placements, and provides a target value for sequencing algorithms, making it easier to evaluate solutions and optimize the panelization process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114386362B_ABST
    Figure CN114386362B_ABST
Patent Text Reader

Abstract

The present invention relates to a PCB unit board layout method, medium and equipment based on poles, which layout the PCB unit board to the material board. During the layout process, the PCB unit board of preset form is always laid out with the poles after the material board is updated, until the surplus corresponding to the poles in the material board cannot match any PCB unit board; a PCB unit board layout program based on poles is stored on the medium, and the PCB unit board layout method based on poles is implemented when executed by a processor; the computer equipment includes a memory, a processor and a computer program stored in the memory and can be run on the processor, and the PCB unit board layout method based on poles is implemented when the program is executed. The present invention simplifies the positioning process of the PCB unit board on the material board, can quickly remove infeasible poles, and provides the target value of each solution of the sequencing algorithm for subsequent evaluation, which is easy to implement in software and converted into a software product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of printed circuits, housings or structural parts of electrical equipment, and manufacturing of electrical component assemblies, and in particular to a pole-based PCB unit board layout method, medium, and equipment. Background Art

[0002] The panelization problem of PCB unit boards comes with the large-scale production process of circuit boards in the electronics industry. In the early days, the panelization of PCB unit boards mainly relied on manual experience to make decisions, striving to maximize the utilization rate of each board, so as to meet customer needs with the least number of boards. The panelization problem of PCB unit boards is not only an important academic issue in the field of operations optimization, but also a pain point and difficulty that has been plaguing PCB circuit board manufacturers and needs to be solved urgently. The panelization problem of PCB unit boards is an NP-hard problem. Since 1939, foreign scholars have conducted research on similar problems of panelization. To this day, the business and academic communities are still committed to exploring effective mathematical models and feasible optimization methods for the problem of PCB unit boards.

[0003] The main situation that the PCB electronics industry generally faces is the orthogonal panelization problem of rectangular unit boards. Consider how to choose the position of the small rectangular unit board on the rectangular board (when placing the small unit board, consider that both sides of the rectangular unit board are parallel to the corresponding sides of the large rectangular board) so that the large board can be fully utilized and the maximum number of unit boards can be assembled. At present, the mathematical model of related research considers the utilization rate of the board or the maximum number of unit boards as the objective function value. The research methods of the problem include but are not limited to the strip method, simplex method, dynamic programming method, two-stage method, three-stage method, four-rectangle method and heuristic algorithm. However, no matter which method is used to solve the problem, two processes of positioning and sequencing are required. For some algorithms, the sequencing process is not obvious, but if the intelligent optimization algorithm is used, it is an obvious sequencing operation; the positioning method is the top priority of the layout problem, and the performance of the sequencing method is completely subject to the selection of positioning rules.

[0004] In the prior art, the positioning methods mainly include the remaining rectangle method, the lower left principle and the lower left principle. The principle of the remaining rectangle method is that after a PCB unit board is placed on the material board, the remaining part of the material board will form 4 rectangular areas. The next PCB unit board needs to be placed in one of the remaining 4 rectangular areas. Figure 1 As shown, where w i and h i is the width and height of the PCB unit board, W and H are the width and height of the material board, and the corresponding (0,y i +h i )、(x i ,H)、(x i ,y i)、(x i +w i ,0)、(W,y i ) and (0,0), (W,H) are the coordinates of the corresponding cutting points and corner points; the lower left principle and the lower left principle respectively mean that when placing the unit boards, the feasible lower leftmost point or the leftmost lowermost point of the large material board is considered as the lower left corner point of the rectangle. It is essentially based on the residual rectangle method. The reason why the residual rectangle method is not convenient is that as the number of unit boards increases, the process of determining the feasible residual rectangle will become more complicated; the lower left principle, such as Figure 2 As shown, the upper right corner of the material board is considered as the initial entry position of the rectangular block (such as PCB unit board No. 4), and then the appropriate position is continuously tested downward. If it cannot continue downward, the appropriate position is tested to the left. If it cannot continue to go left, it is cycled downward and leftward until the cycle cannot continue. The lower left principle is as follows Figure 3 As shown, it is similar to the lower left principle. Taking PCB unit board No. 4 as an example, each attempt is to first cycle to the left and then downward to find a suitable position until it cannot cycle anymore. The operation of the lower left principle and the lower left principle must be combined with the line coincidence or rectangular area intersection theory of computational geometry theory, and it is not easy to know how to select the step size for each movement. Summary of the invention

[0005] The present invention solves the problems existing in the prior art and provides an optimized pole-based PCB unit board layout method, medium and device, which can simplify the process of determining the unit board placement position and quickly evaluate the advantages and disadvantages of feasible solutions of the sorting algorithm.

[0006] The technical solution adopted by the present invention is a PCB unit board layout method based on poles. The method layouts the PCB unit board to the material board. During the layout process, the PCB unit board of a preset shape is always laid out with the poles after the material board is updated until the remaining material corresponding to the poles in the material board cannot match any PCB unit board.

[0007] Preferably, the method comprises the following steps:

[0008] Step 1: Initialize the material board and all PCB unit boards to be laid out;

[0009] Step 2: Confirm the layout starting point on the material board and use the layout starting point as the pole;

[0010] Step 3: Align the corresponding corner points and poles of the first PCB unit board of the preset shape and layout them, using the laid out PCB unit board as a mask;

[0011] Step 4: Update the poles of the sheet and confirm the pole priority;

[0012] Step 5: If there is no unlaid PCB unit board, proceed to step 8, otherwise, update the current PCB unit board margin M, set i=0, and proceed to the next step;

[0013] Step 6: Place the corresponding corner points of the preset PCB unit board on the board according to the pole priority. If the remaining material of the current board meets the layout requirements, the laid out PCB unit board is used as a new mask and returns to step 4. Otherwise, i=i+1 and proceed to the next step.

[0014] Step 7: If i=M, proceed to step 8, otherwise, replace the PCB unit board of the preset form that has not been laid out, and return to step 6;

[0015] Step 8: End the layout, obtain the layout plan, and restore all masked PCB unit boards to the display state.

[0016] Preferably, in step 1, any material board is placed in an XOY coordinate system to obtain the length and width of the PCB unit board.

[0017] Preferably, in step 2, the layout starting point is one of the four corner points of the sheet.

[0018] Preferably, in the method, the preset configuration of the PCB unit board includes a horizontal setting and a vertical setting.

[0019] Preferably, in the method, the training of the preset form of the PCB unit board comprises the following steps:

[0020] Step S.1: Set a random probability p for each PCB unit board, p∈(0,1);

[0021] Step S.2: confirming the preset shape of the PCB unit board based on the random probability p, and setting the identifier of the PCB unit board arranged horizontally to 1, and the identifier of the PCB unit board arranged vertically to 0;

[0022] Step S.3: construct a data set based on the identification of all PCB unit boards, search for other data sets corresponding to the current board area in the database, and store the data set with the larger number of set elements. If the number of set elements is the same, retain the stored data set, and increase the number of training times corresponding to the current board area by 1;

[0023] Step S.4: If the area of ​​the material boards is the same and the number of training times does not reach the preset upper limit, return to step S.2; otherwise, select the corresponding stored data set and directly establish the preset shape of the PCB unit board with the identification of the PCB unit board.

[0024] Preferably, in the method, after confirming the mask, a minimum square is constructed with the shortest side length w of all PCB unit boards. If the minimum square placed at any updated pole will exceed the boundary of the updated material board, then the updated pole is an infeasible pole and is cancelled.

[0025] Preferably, in step 4, after the infeasible poles are eliminated, the pole priorities are sorted in the order of top to bottom or bottom to top of all current poles.

[0026] A computer-readable storage medium stores a pole-based PCB unit board layout program, which implements the pole-based PCB unit board layout method when executed by a processor.

[0027] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the pole-based PCB unit board layout method is implemented.

[0028] The present invention relates to an optimized pole-based PCB unit board layout method, medium and equipment, which layout the PCB unit board to a material board. During the layout process, the PCB unit board of a preset form is always laid out with the poles after the material board is updated, until the remaining material corresponding to the poles in the material board cannot match any PCB unit board; a pole-based PCB unit board layout program is stored on the medium, and a pole-based PCB unit board layout method is implemented when it is executed by a processor; a computer device includes a memory, a processor and a computer program stored in the memory and runnable on the processor, and a pole-based PCB unit board layout method is implemented when the program is executed.

[0029] The beneficial effects of the present invention are:

[0030] (1) Simplifies the positioning process of the PCB unit board on the material board;

[0031] (2) It can quickly remove infeasible extreme points and provide the target value of each solution of the sequencing algorithm for subsequent evaluation;

[0032] (3) It is easy to implement the process in software and transform it into a software product. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of the remaining rectangle method in the prior art;

[0034] Figure 2 It is a schematic diagram of the lower left principle in the prior art;

[0035] Figure 3 It is a schematic diagram of the lower left principle in the prior art;

[0036] Figure 4 This is a schematic diagram comparing the differences between the extreme point method and the corner point method;

[0037] Figure 5 is a flow chart of the method of the present invention;

[0038] Figure 6 It is a schematic diagram of an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The present invention is further described in detail below in conjunction with embodiments, but the protection scope of the present invention is not limited thereto.

[0040] The present invention relates to a PCB unit board layout method based on poles. The method layouts the PCB unit board to a material board. During the layout process, the PCB unit board of a preset form is always laid out with the poles after the material board is updated until the remaining material corresponding to the poles in the material board cannot match any PCB unit board.

[0041] In the present invention, first of all, it is necessary to clarify the concept of "pole". When no PCB unit board is laid out on the material board, the pole can be regarded as non-existent, or as the starting point of the layout; when a PCB unit board is set on the material board, more poles begin to exist, including at least the upper left corner, upper right corner, and lower right corner of this PCB unit board. In some ways, the starting point of the layout can also be regarded as a pole at this time, but it is invalid. After the pole is determined, in fact, there is no need to consider other factors. Just select a feasible pole and set a corresponding corner point of the next object at the feasible pole. Then a new pole will be generated and repeated until there is no room for more PCB unit boards.

[0042] In the present invention, it should be noted that the pole is different from the corner point, and the pole is the inflection point of the outer contour line of all PCB unit boards on the current material board; Figure 4 As shown, Figure 4 (a) is the selectable pole constructed by the pole-based layout method. Figure 4 (b) is the selectable pole constructed by the corner point-based layout method. Taking PCB unit board No. 11 as an example, compared with the corner point method which easily ignores the possible rectangular placement positions (the space enclosed by PCB unit boards No. 2, No. 1, No. 6 and No. 8), the error rate of placing PCB units based on poles is lower and simpler.

[0043] like Figure 5 As shown, the method comprises the following steps:

[0044] Step 1: Initialize the material board and all PCB unit boards to be laid out;

[0045] In the step 1, any material board is placed in an XOY coordinate system to obtain the length and width of the PCB unit board.

[0046] Step 2: Confirm the layout starting point on the material board and use the layout starting point as the pole;

[0047] In step 2, the layout starting point is one of the four corner points of the material board.

[0048] In the present invention, generally, the lower left corner of the material plate is used as the layout starting point.

[0049] Step 3: Align the corresponding corner points and poles of the first PCB unit board of the preset shape and layout them, using the laid out PCB unit board as a mask;

[0050] In the method, the preset configurations of the PCB unit board include horizontal configuration and vertical configuration.

[0051] In the method, the training of the preset form of the PCB unit board includes the following steps:

[0052] Step S.1: Set a random probability p for each PCB unit board, p∈(0,1);

[0053] Step S.2: confirming the preset shape of the PCB unit board based on the random probability p, and setting the identifier of the PCB unit board arranged horizontally to 1, and the identifier of the PCB unit board arranged vertically to 0;

[0054] Step S.3: construct a data set based on the identification of all PCB unit boards, search for other data sets corresponding to the current board area in the database, and store the data set with the larger number of set elements. If the number of set elements is the same, retain the stored data set, and increase the number of training times corresponding to the current board area by 1;

[0055] Step S.4: If the area of ​​the material boards is the same and the number of training times does not reach the preset upper limit, return to step S.2; otherwise, select the corresponding stored data set and directly establish the preset shape of the PCB unit board with the identification of the PCB unit board.

[0056] In the present invention, masking is only an operation mode. In order to better show the current sheet material residue and the corresponding poles, in actual operation, masking may not be used and only the poles may be marked.

[0057] In the present invention, the training of the preset shape of the PCB unit board can be implemented by various algorithms, such as pre-fabricating the PCB unit board in horizontal and vertical settings with random probability, obtaining the solution each time, and storing the optimal solution. The "solution" here refers to the number of PCB unit boards that can be laid out under a material board of a certain area or length and width value (the number of set elements is large); setting the maximum iteration value for training can ensure to a certain extent that the number of PCB unit boards laid out under the material board of the same area during each layout process is the largest.

[0058] Step 4: Update the poles of the sheet and confirm the pole priority;

[0059] In the method, after the mask is confirmed, a minimum square is constructed with the shortest side length w in all PCB unit boards. If the minimum square placed at any updated pole will exceed the boundary of the updated material board, then the updated pole is an infeasible pole and is cancelled.

[0060] In step 4, after the infeasible poles are eliminated, the pole priorities are sorted in the order of top to bottom or bottom to top of all current poles.

[0061] In the present invention, after the pole is determined, the calculation process can actually be greatly reduced by judging the feasibility of the pole. Specifically, the minimum square is constructed with the shortest side length, and the placement logic of the minimum square is set. Generally speaking, each pole is judged based on the corner point of the minimum square facing the starting point of the layout.

[0062] In the present invention, for example, when the lower left corner of the material board is used as the layout starting point, the order of all current poles from bottom to top is used as the pole priority sorting.

[0063] Step 5: If there is no unlaid PCB unit board, proceed to step 8, otherwise, update the current PCB unit board margin M, set i=0, and proceed to the next step;

[0064] In the present invention, i is an identifier of the number of layout attempts and is initialized to 0.

[0065] Step 6: Place the corresponding corner points of the preset PCB unit board on the board according to the pole priority. If the remaining material of the current board meets the layout requirements, the laid out PCB unit board is used as a new mask and returns to step 4. Otherwise, i=i+1 and proceed to the next step.

[0066] Step 7: If i=M, proceed to step 8, otherwise, replace the PCB unit board of the preset form that has not been laid out, and return to step 6;

[0067] In the present invention, when any PCB unit board cannot be laid out, the flag is incremented by 1 until it becomes the same as the M value, indicating that a new PCB unit board cannot be added for layout.

[0068] Step 8: End the layout, obtain the layout plan, and restore all masked PCB unit boards to the display state.

[0069] In the present invention, an embodiment is provided:

[0070] The size of the material board is L=150, W=100, the size of the PCB unit board is 40*60 for board 1, 75*35 for board 2, 70*30 for board 3, and 30*25 for board 4; the size of the smallest square W is 25*25;

[0071] Assuming that the placement order of PCB unit boards is 1-2-3-4, the first PCB unit board is placed as follows: Figure 6 As shown in (a), three new poles (0,60), (40,0) and (40,60) are obtained and added to the pole set, such as EP=[(0,60),(40,0),(40,60)];

[0072] Select the leftmost and bottommost point (0,60) to place PCB unit board No. 2, such as Figure 6 As shown in (b), the new poles are updated and the infeasible poles (0,60), (40,60), (0,95), (40,95) and (75,95) are eliminated using the minimum square W;

[0073] Sort EP=[(40,0),(75,0),(75,60)], select the leftmost and bottommost pole (40,0) to place PCB unit board No. 3, such as Figure 6 As shown in (c), new poles are added to EP=[(40,0),(75,0),(75,60), (0,30),(40,30),(75,30),(110,0),(110,30)], and the small square W is used to eliminate the infeasible poles (0,30), (40,0) and (75,0);

[0074] Sort EP=[(40,30),(75,30),(75,60),(110,0),(110,30)], select the leftmost and bottommost pole to place PCB unit board No. 4, such as Figure 6 As shown in (d), new poles are added and small squares W are used to eliminate infeasible poles (0,55), (40,30), (40,55), (70,0) and (70,55);

[0075] On this basis, you can continue to set up subsequent PCB unit boards.

[0076] In order to implement the above-mentioned embodiment, an embodiment of the present invention proposes a computer-readable storage medium, on which a pole-based PCB unit board layout program is stored. When the pole-based PCB unit board layout program is executed by a processor, the pole-based PCB unit board layout method is implemented.

[0077] According to the computer-readable storage medium of an embodiment of the present invention, a pole-based PCB unit board layout program is used to enable the processor to implement the pole-based PCB unit board layout method as described above when executing the pole-based PCB unit board layout program, thereby realizing a feasible and concise pole generation and feasibility identification method for two-dimensional PCB panelization problems, simplifying the process of determining the placement position of PCB unit boards, and quickly evaluating the advantages and disadvantages of feasible solutions of the sorting algorithm.

[0078] In order to implement the above-mentioned embodiment, the present invention proposes a computer device, including a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the pole-based PCB unit board layout method is implemented, thereby realizing a feasible and concise pole generation and feasibility identification method for two-dimensional PCB panelization problems, simplifying the process of determining the placement position of the PCB unit boards, and quickly evaluating the advantages and disadvantages of feasible solutions of the sorting algorithm.

[0079] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0080] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0083] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0084] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A PCB unit board layout method based on poles, characterized in that: The PCB unit board is laid out on the material board. During the layout process, the PCB unit board of the preset form is always laid out with the poles updated on the material board until the remaining material corresponding to the poles in the material board cannot match any PCB unit board. The method comprises the following steps: Step 1: Initialize the material board and all PCB unit boards to be laid out; Step 2: Confirm the layout starting point on the material board and use the layout starting point as the pole; Step 3: Align the corresponding corner points and poles of the first PCB unit board of the preset shape and layout them, using the laid out PCB unit board as a mask; Step 4: Update the poles of the sheet and confirm the pole priority; Step 5: If there is no unlaid PCB unit board, proceed to step 8, otherwise, update the current PCB unit board margin M, set i=0, and proceed to the next step; Step 6: Place the corresponding corner points of the preset PCB unit board on the board according to the pole priority. If the remaining material of the current board meets the layout requirements, the laid out PCB unit board is used as a new mask and returns to step 4. Otherwise, i=i+1 and proceed to the next step. Step 7: If i=M, proceed to step 8, otherwise, replace the PCB unit board of the preset form that has not been laid out, and return to step 6; Step 8: End the layout, obtain the layout plan, and restore all masked PCB unit boards to the display state.

2. The PCB unit board layout method based on poles according to claim 1, characterized in that: In the step 1, any material board is placed in an XOY coordinate system to obtain the length and width of the PCB unit board.

3. The PCB unit board layout method based on poles according to claim 1, characterized in that: In step 2, the layout starting point is one of the four corner points of the material board.

4. The PCB unit board layout method based on poles according to claim 1, characterized in that: In the method, the preset configurations of the PCB unit board include horizontal configuration and vertical configuration.

5. The PCB unit board layout method based on poles according to claim 4 is characterized in that: In the method, the training of the preset form of the PCB unit board includes the following steps: Step S.1: Set a random probability p for each PCB unit board, p∈(0,1); Step S.2: confirming the preset shape of the PCB unit board based on the random probability p, and setting the identifier of the PCB unit board arranged horizontally to 1, and the identifier of the PCB unit board arranged vertically to 0; Step S.3: construct a data set based on the identification of all PCB unit boards, search for other data sets corresponding to the current board area in the database, and store the data set with the larger number of set elements. If the number of set elements is the same, retain the stored data set, and increase the number of training times corresponding to the current board area by 1; Step S.4: If the area of ​​the material boards is the same and the number of training times does not reach the preset upper limit, return to step S.2; otherwise, select the corresponding stored data set and directly establish the preset shape of the PCB unit board with the identification of the PCB unit board.

6. The PCB unit board layout method based on poles according to claim 1, characterized in that: In the method, after the mask is confirmed, a minimum square is constructed with the shortest side length w in all PCB unit boards. If the minimum square placed at any updated pole will exceed the boundary of the updated material board, then the updated pole is an infeasible pole and is cancelled.

7. The PCB unit board layout method based on poles according to claim 6 is characterized in that: In step 4, after the infeasible poles are eliminated, the pole priorities are sorted in the order of top to bottom or bottom to top of all current poles.

8. A computer-readable storage medium, characterized in that: A pole-based PCB unit board layout program is stored thereon, and when the pole-based PCB unit board layout program is executed by a processor, a pole-based PCB unit board layout method as described in any one of claims 1-7 is implemented.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the pole-based PCB unit board layout method as described in any one of claims 1-7 is implemented.