Control method, system and computer equipment for automatic layout and splicing of PCB boards

Through the classification of shape information and digital twin technology, the combined specifications of PCB boards are automatically determined, which solves the problems of waste of consumables and low efficiency in the production of irregular-shaped PCB boards in the existing technology, and realizes efficient and low-cost automatic Typesetting and co-organizing.

CN118428307BActive Publication Date: 2024-11-19SHENZHEN KEANG PRECISION ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410561402.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-11-19
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

In the prior art, when producing and detecting PCB boards with small or irregular shapes, conventional layout methods lead to waste of consumables, and the semi-automatic paneling process is inefficient and costly, making it difficult to meet the needs of large-scale production.

Method used

By obtaining order information, classifying and constructing a shape set and correspondence table based on shape information, generating shape digital twins, finding the optimal PNL board parameters, performing simulation layout and simulation combination, automatically determining the combination specifications of PCB boards, realizing automatic implementation of automatic Typesetting and co-organizing.

Benefits of technology

It reduces waste of consumables, reduces production costs, improves efficiency, and realizes automatic layout and combination of large-scale production of irregular-shaped PCB boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428307B_ABST
    Figure CN118428307B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of PCB boards, and in particular to a control method, system and computer device for automatic typesetting and splicing of PCB boards. By acquiring PCB parameter information and shape information in order information, multiple orders are classified based on the shape information, shape sets of different shapes are generated, and a correspondence table between each shape set and multiple order information is constructed. Multiple shape digital twins can be constructed based on multiple shape sets, and the order information corresponding to the shape set is input into the shape digital twin based on the correspondence table to obtain PCB digital twins of different shapes; a PNL digital twin is constructed, and a corresponding number of PCB digital twins are mirrored to the PNL digital twin based on the typesetting quantity for simulated typesetting and simulated splicing to generate multiple splicing results; and the splicing can be automatically scheduled directly based on the splicing results, without relying on manual semi-automatic splicing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of PCB boards, and in particular to a control method, system and computer equipment for automatic layout and splicing of PCB boards. Background Art

[0002] With the rapid development of the communication field, the output and demand of PCB boards have been continuously supplied. Different electronic devices have different shapes and structures, which also causes different shapes of PCB boards to match them. In order to facilitate production, multiple PCB boards of the same specifications are generally combined on a large PNL (panel, production board) board. After the detection mold has completed the electrical performance detection, it is uniformly divided to obtain multiple PCB samples. For smaller electronic devices, such as wireless headphones, since the internal PCB board is small, when producing the PCB board corresponding to the wireless headset, when testing its electrical performance, it is difficult to fix the PCB board on the detection mold. Therefore, in general, for smaller PCB boards or irregular PCB boards, they need to be combined on the PNL board for subsequent testing. However, due to their irregular shapes, if they are combined by conventional typesetting methods, it is easy to cause waste of PNL board consumables. In order to reduce the waste of consumables, the prior art usually adopts a semi-automatic panelization method, that is, manually inputting files, and then manually adjusting the position of the PCB board through human-computer interaction panelization to achieve the ideal result. However, this panelization process requires manual adjustment of the PCB board, which is time-consuming and relies on manual panelization experience. For the production and processing of irregular-shaped PCB boards in large quantities, the cost is high and the efficiency is low. Summary of the invention

[0003] The present application provides a control method for automatic layout and splicing of PCB boards, aiming to solve the technical problems of high cost and low efficiency in the prior art for the production and processing of irregular-shaped PCB boards in large quantities.

[0004] The present application also provides a control method for automatic layout and splicing of PCB boards, including:

[0005] Acquire multiple order information, wherein the order information includes PCB board parameter information and shape information;

[0006] Classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information;

[0007] Constructing corresponding multiple shape digital twins based on multiple shape sets;

[0008] Based on the correspondence table, the order information corresponding to different shape sets is input into different shape digital twins to obtain different PCB digital twins;

[0009] Acquire multiple PNL board parameter information, and input the multiple PNL board parameter information into each of the PCB digital twins, wherein the PCB digital twin searches for optimal PNL board parameter information from the multiple PNL board parameter information, and generates a corresponding layout quantity according to the optimal PNL board parameter information;

[0010] Construct the PNL digital twin based on the optimal PNL plate parameter information;

[0011] Based on the number of layouts, the corresponding PCB digital twin is mirrored into the PNL digital twin for simulation layout, and multiple layout results are obtained;

[0012] Simulating and merging the PCB digital twin based on multiple layout results to generate multiple merging results;

[0013] At least one merging result is selected from a plurality of merging results according to preset conditions as the merging specification of the PCB board for output, so that the PCB board is automatically laid out and merged.

[0014] Preferably, the step of classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information comprises:

[0015] Obtaining shape information of first PCB boards in the plurality of order information, and obtaining sampling points corresponding to the shape information according to a first preset condition, wherein the number of sampling points of each first PCB board is the same;

[0016] Construct a standard two-dimensional coordinate system, and obtain the coordinate point corresponding to each sampling point in the standard two-dimensional coordinate system according to a preset order;

[0017] Selecting a first PCB board as a target PCB board, calculating multiple coordinate ratios between the target PCB board and the first PCB board according to multiple coordinate points, and selecting a coordinate ratio from the multiple coordinate ratios as a target ratio according to a second preset condition;

[0018] The calculation formula is:

[0019] = ;

[0020] Where a represents the target PCB board numbered a, b represents the first PCB board numbered b, Indicates the coordinate ratio between the ath target PCB board and the bth first PCB board, Indicates the X-axis coordinate of the i-th sampling point in the a-th target PCB board, represents the Y-axis coordinate of the i-th sampling point in the a-th target PCB board, represents the X-axis coordinate of the j-th sampling point in the b-th first PCB board, represents the Y-axis coordinate of the j-th sampling point in the b-th first PCB board, and the value range of i and j is [1,n], where n represents the total number of sampling points;

[0021] The first weight value and the second weight value corresponding to the shape information of the target PCB board and the first PCB board are respectively obtained, and the similarity value between the target PCB board and the first PCB board is calculated according to the first weight value, the second weight value and the target ratio, wherein the calculation formula is: S(a, b) = M* ;

[0022] Among them, S (a, b) represents the similarity value between the a-th target PCB board and the b-th first PCB board, M represents the target ratio, The weight value corresponding to the shape information of the ath target PCB board, The weight value corresponding to the shape information of the b-th first PCB board;

[0023] Traversing all first PCB boards, repeating the steps of calculating the coordinate ratio between the target PCB board and the first PCB board according to the coordinate point to calculating the similarity value between the target PCB board and the first PCB board according to the weight value and the target ratio, to obtain multiple similarity values ​​between the target PCB board and all first PCB boards;

[0024] Determine whether the similarity value between the target PCB board and each first PCB board is less than a preset value;

[0025] If the similarity between the target PCB board and at least one other first PCB board is less than a preset value, the first PCB board corresponding to the first PCB board less than the preset value is used as a shape set;

[0026] The order information corresponding to the first PCB board in the shape set is obtained, and the order information is associated with the shape set to generate a corresponding relationship table.

[0027] Preferably, the step of inputting the order information corresponding to different shape sets into different shape digital twins based on the correspondence table to obtain different PCB digital twins comprises:

[0028] Acquire at least one order information corresponding to different shape sets based on the correspondence table, wherein the order information includes layer number information, hole position information, and electronic component layout information of the second PCB board, wherein the hole position information is associated with the electronic component layout information;

[0029] Generate corresponding numbers of layers and hole positions in corresponding digital twins of different shapes according to the number of layers and hole position information of the second PCB board to obtain different basic digital twins;

[0030] According to the correlation between the electronic component layout information and the hole position information, corresponding electronic components are generated in different basic digital twins to obtain different PCB digital twins.

[0031] Preferably, the step of searching the optimal PNL board parameter information from a plurality of PNL board parameter information by the PCB digital twin comprises:

[0032] The PCB digital twin obtains shape information of the third PCB board according to the corresponding order information, and constructs a process edge according to the shape information to obtain shape information with the process edge;

[0033] The PCB digital twin calculates the required area of ​​the third PCB board according to the shape information with the process edge;

[0034] The PCB digital twin obtains the quantity requirement of the third PCB board according to the corresponding order information;

[0035] The PCB digital twin obtains dimension information from multiple PNL board parameter information;

[0036] The PCB digital twin calculates a PNL board matching value according to the quantity requirement, the required area of ​​the third PCB board and the PNL board size information, and searches for optimal PNL board parameter information from multiple PNL board parameter information according to the PNL matching value;

[0037] The calculation formula is:

[0038] M= ;

[0039] Where M represents the PNL board matching value corresponding to the optimal PNL board parameter information, represents the size information of the PNL board numbered 1, S2 represents the size information of the PNL board numbered 2, and Si represents the size information of the PNL board numbered i. It represents the required area of ​​the third PCB board corresponding to the PCB digital twin numbered p, and n represents the required quantity of the third PCB board.

[0040] Preferably, after the step of searching for the optimal PNL board parameter information from the plurality of PNL board parameter information according to the PNL matching value, the method further comprises:

[0041] The PCB digital twin obtains PNL board size information from the optimal PNL board parameter information;

[0042] The PCB digital twin obtains the required area of ​​the third PCB board;

[0043] The PCB digital twin generates a corresponding layout quantity according to the required area of ​​the third PCB board and the PNL board size information;

[0044] Obtaining shape information corresponding to the PCB digital twin;

[0045] Acquire at least two corresponding layout types according to the shape information;

[0046] Based on the layout type, shape information of the PCB digital twin, layout quantity, required area of ​​the third PCB board and PNL board size information, the corresponding PCB digital twin is mirrored to the PNL digital twin for simulated layout, and multiple layout results corresponding to the layout type are generated.

[0047] Preferably, the step of simulating and merging the PCB digital twin based on multiple typesetting results to generate multiple merging results includes:

[0048] Acquire corresponding multiple merge types based on multiple typesetting results, wherein the merge types include V-CUT merge and stamp hole merge;

[0049] Obtaining a merge distance between each of the PCB digital twins based on a merge type;

[0050] The PCB digital twin is simulated and merged based on the layout result, the merge type and the merge distance to generate a merge result corresponding to the layout result.

[0051] Preferably, the step of selecting at least one merging result from a plurality of merging results as the merging specification of the PCB board according to a preset condition comprises:

[0052] Determine whether the blank area where the PNL digital twin in each of the merged results is located meets the preset conditions, wherein the preset conditions include the area and corresponding number of the blank areas;

[0053] If there is at least one blank area where the PNL digital twin in the merged result satisfies a preset condition, a PCB digital twin corresponding to the area of ​​the blank area is obtained, and the corresponding PCB digital twin is mirrored into the PNL digital twin as the target digital twin to obtain a target merged result;

[0054] The target merging result is output as the merging specification of the PCB board.

[0055] The present application also provides a control system for automatic layout and splicing of PCB boards, including:

[0056] An order acquisition module is used to acquire multiple order information, wherein the order information includes PCB board parameter information and shape information;

[0057] A classification module, used for classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information;

[0058] A first construction module is used to construct a corresponding plurality of shape digital twins based on a plurality of the shape sets;

[0059] An input module, used to input order information corresponding to different shape sets into different shape digital twins based on a correspondence table to obtain different PCB digital twins;

[0060] A PNL board parameter acquisition module is used to acquire multiple PNL board parameter information and input the multiple PNL board parameter information into each of the PCB digital twins, wherein the PCB digital twin searches for optimal PNL board parameter information from the multiple PNL board parameter information and generates a corresponding layout quantity according to the optimal PNL board parameter information;

[0061] The second building module is used to build the PNL digital twin based on the optimal PNL plate parameter information;

[0062] A layout module, used for mirroring the corresponding PCB digital twin to the PNL digital twin based on the layout quantity to perform simulation layout and obtain multiple layout results;

[0063] A merging module, used for simulating the merging of the PCB digital twin based on multiple layout results to generate multiple merging results;

[0064] The output module is used to select at least one merging result from multiple merging results according to preset conditions as the merging specification of the PCB board for output, so that the PCB board can be automatically laid out and merged.

[0065] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0066] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.

[0067] The beneficial effects of the present application are: by obtaining PCB parameter information and shape information in the order information, multiple orders are classified based on the shape information, shape sets of different shapes are generated, and a correspondence table between each shape set and multiple order information is constructed. Multiple shape digital twins can be constructed based on multiple shape sets, and the order information corresponding to the shape set is input into the shape digital twin based on the correspondence table to obtain PCB digital twins of different shapes; a PNL digital twin is constructed, and a corresponding number of PCB digital twins are mirrored to the PNL digital twin based on the number of layouts for simulated layout and simulated merging to generate multiple merging results; based on the merging results, the merging can be automatically scheduled and scheduled directly, and no longer rely on manual semi-automatic panelization. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 The figure is a schematic diagram of a method flow of an embodiment of the present application.

[0069] Figure 2 A schematic diagram of the system structure of an embodiment of the present application.

[0070] Figure 3 A schematic diagram of the internal structure of a computer device according to an embodiment of the present application.

[0071] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0072] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0073] like Figure 1-3 As shown, the present application provides a control method for automatic layout and splicing of PCB boards, including:

[0074] S1. Acquire multiple order information, wherein the order information includes PCB board parameter information and shape information;

[0075] S2, classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information;

[0076] S3. constructing a corresponding plurality of shape digital twins based on the plurality of shape sets;

[0077] S4. Based on the correspondence table, the order information corresponding to the different shape sets is input into different shape digital twins to obtain different PCB digital twins;

[0078] S5. Acquire multiple PNL board parameter information, and input the multiple PNL board parameter information into each of the PCB digital twins, wherein the PCB digital twin searches for optimal PNL board parameter information from the multiple PNL board parameter information, and generates a corresponding typesetting quantity according to the optimal PNL board parameter information;

[0079] S6. construct the PNL digital twin based on the optimal PNL board parameter information;

[0080] S7. Based on the number of layouts, the corresponding PCB digital twin is mirrored into the PNL digital twin for simulation layout, to obtain multiple layout results;

[0081] S8. Simulate and merge the PCB digital twin based on multiple layout results to generate multiple merging results;

[0082] S9. According to preset conditions, at least one merging result is selected from the multiple merging results as the merging specification of the PCB board for output, so that the PCB board is automatically laid out and merged.

[0083] As described in the above steps S1-S9, the present application first obtains multiple order information, the order information includes PCB parameter information and shape information, wherein the PCB parameter information includes the size information of the required PCB board, the distribution information of each electronic component on the PCB board, the required quantity and other information, and the shape information refers to the shape of the PCB board, such as a rectangle, a circle, a triangle, a capital letter L shape or other irregular shapes; by obtaining the PCB parameter information and shape information in the order information, the basic information of the PCB board required by the user can be understood, and by obtaining multiple order information, the basic information of multiple PCB boards can be understood, which is convenient for the subsequent matching of the multiple order information to the corresponding The PCB boards of multiple order information are uniformly laid out, rather than single order information being laid out one by one, thereby improving work efficiency; since the shapes of each PCB board in multiple order information are different, multiple orders can be classified based on shape information, and order information with the same shape information is classified into one set, and shape sets with different shapes are generated. In order to quickly find the order information corresponding to each shape information, a corresponding relationship table between each shape set and multiple order information can be constructed. For example, there are 100 order information in total, of which 20 order information correspond to shape information A, 30 order information correspond to shape information B, 15 order information correspond to shape information C, and 35 order information correspond to shape information D. Based on the shape information, there are four shape sets A, B, C, and D, and each shape set corresponds to a different number of order information; based on multiple shape sets, multiple shape digital twins can be constructed. The digital twin can be understood as a virtual model, which is exactly the same as the shape of the PCB board. Based on the correspondence table, the order information corresponding to the shape set is input into the shape digital twin, and PCB digital twins of different shapes are obtained. The model of the PCB digital twin is constructed according to the size information of the required PCB board in the order information and the distribution information of each electronic component on the PCB board. Therefore, it has the same structure as the required PCB board in the order information, so it can be based on the virtual PC B digital twins are typesetting and merging. Since the PCB board needs to be merged into the PNL board, and the PNL boards required by PCB boards of different shapes are also different, in order to match the PCB board to the optimal PNL board, the present application obtains multiple PNL parameter information, and inputs each PNL parameter information into the PCB digital twin to find the most suitable PNL board. In this way, the PNL boards corresponding to different shapes can be automatically and accurately found, and then the optimal PNL board parameter information is obtained. Then, according to the size information in the PNL board parameter information and the size information of the PCB digital twin, the number of PCB digital twins that can be placed on each PNL board, that is, the number of typesettings, can be understood;The corresponding PNL digital twin is constructed according to the optimal PNL board parameter information. After the PNL digital twin is constructed, the corresponding number of PCB digital twins can be mirrored to the PNL digital twin for simulated layout based on the layout quantity. When layout, different angles or different arrangements and combinations can be used according to the shape of the PCB digital twin to obtain multiple layout results. It should be noted that the arrangement and combination of the PCB digital twins can be set in advance. For example, the target shape edge of the first PCB digital twin is arranged in parallel with the target edge of the PNL digital twin, the target shape edge of the second PCB digital twin is arranged in a vertical state with the target edge of the PNL digital twin, the third PCB digital twin is horizontal, and the fourth PCB digital twin is vertical, and the layout is repeated in sequence. Its conventional style is that the target shape edge of each PCB digital twin is parallel to the target edge of the PNL digital twin, and they are arranged in order from left to right; then the PCB digital twin is simulated and merged according to multiple layout results and the required quantity in the order information, and multiple merge results are generated; in this way, at least one merge result can be selected from multiple merge results according to the demand as the merge specification of the PCB board for output, so that the user can directly automatically schedule and merge on the layout equipment and merge equipment according to the merge specification of the PCB board, no longer relying on manual semi-automatic panelization, and can generate the merge specifications of PCB boards corresponding to different shapes corresponding to multiple order information. For the production and processing of irregular PCB boards that require large quantities (hundreds / thousands), it can reduce its labor costs and improve layout efficiency. ;

[0084] In one embodiment, the step S2 of classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information includes:

[0085] S21, obtaining shape information of a first PCB board in a plurality of order information, and obtaining sampling points corresponding to the shape information according to a first preset condition, wherein the number of sampling points of each first PCB board is the same;

[0086] S22, constructing a standard two-dimensional coordinate system, and obtaining the coordinate point corresponding to each sampling point in the standard two-dimensional coordinate system according to a preset order;

[0087] S23, selecting a first PCB board as a target PCB board, calculating multiple coordinate ratios between the target PCB board and the first PCB board according to multiple coordinate points, and selecting a coordinate ratio from the multiple coordinate ratios as a target ratio according to a second preset condition;

[0088] The calculation formula is:

[0089] = ;

[0090] Where a represents the target PCB board numbered a, b represents the first PCB board numbered b, Indicates the coordinate ratio between the ath target PCB board and the bth first PCB board, Indicates the X-axis coordinate of the i-th sampling point in the a-th target PCB board, represents the Y-axis coordinate of the i-th sampling point in the a-th target PCB board, represents the X-axis coordinate of the j-th sampling point in the b-th first PCB board, represents the Y-axis coordinate of the j-th sampling point in the b-th first PCB board, and the value range of i and j is [1,n], where n represents the total number of sampling points;

[0091] S24, respectively obtaining a first weight value and a second weight value corresponding to the shape information of the target PCB board and the first PCB board, and calculating a similarity value between the target PCB board and the first PCB board according to the first weight value, the second weight value and the target ratio, wherein the calculation formula is:

[0092] S(a, b) = M* ;

[0093] Among them, S (a, b) represents the similarity value between the a-th target PCB board and the b-th first PCB board, M represents the target ratio, The weight value corresponding to the shape information of the ath target PCB board, The weight value corresponding to the shape information of the b-th first PCB board;

[0094] S25, traversing all first PCB boards, repeating the steps of calculating the coordinate ratio between the target PCB board and the first PCB board according to the coordinate point to calculating the similarity value between the target PCB board and the first PCB board according to the weight value and the target ratio, to obtain multiple similarity values ​​between the target PCB board and all first PCB boards;

[0095] S26, determining whether the similarity value between the target PCB board and each first PCB board is less than a preset value;

[0096] S27, if the similarity between the target PCB board and at least one other first PCB board is less than a preset value, taking the first PCB board corresponding to the similarity less than the preset value as a shape set;

[0097] S28. Obtain order information corresponding to the first PCB board in the shape set, and associate the order information with the shape set to generate a corresponding relationship table.

[0098] As described in the above steps S21-S28, when multiple orders are classified based on shape information, the shape information in each order information is first obtained, and the sampling points corresponding to the shape information are obtained according to the first preset condition. The first preset condition can be set in advance. For example, if the shape information includes rectangle, circle, triangle, and capital letter L, the number of sampling points can be determined first. If the number of sampling points is 10, 10 points are taken from each shape. Generally, the intersection of two lines is selected as the sampling point. If it is a circle, the point where any arc is tangent to the straight line is collected as the sampling point. It can also be based on the shape information in the historical order. The point that best represents the shape characteristic is taken as the sampling point, and there is no unique limitation here. Due to the different needs of different users, the shape information corresponding to multiple first PCB boards may be the same or different. If no classification is performed and a shape twin is directly established for the shape information corresponding to the order information, it is easy to cause too many shape twins, and the steps for merging the same or similar shapes are also similar. This will cause repeated data operations and also easily cause excessive computing losses. The large amount of data will also increase the probability of running jams, and higher hardware devices are required to complete the operation, which undoubtedly increases the production cost.Therefore, after the sampling points are determined in this embodiment, in order to classify shapes with high similarity into one category, all the sampling points can be standardized by establishing a standard two-dimensional rectangular coordinate system. After the rectangular coordinate system is established, the shapes corresponding to all shape information can be placed in the same rectangular coordinate system, so that the coordinate point of each sampling point can be obtained in the rectangular coordinate system. When obtaining the coordinate point, it can be sequentially obtained from the position of the origin in the X-axis or Y-axis direction, and then the coordinate ratio between the target PCB board and all other first PCB boards is calculated according to the coordinate point. The second preset condition can be set as the coordinate ratio with the largest number of identical coordinate ratios as the target ratio. If there is no identical number of coordinate ratios, any coordinate ratio is recognized as the target ratio. Of course, the second preset condition can also be to calculate the average value based on multiple coordinate ratios and take the average value as the target ratio. It can be set according to the needs and is not limited to it. If the target ratio is closer to 1 or equal to 1, it represents its similarity. The higher the value, the smaller the shape. The higher the value, the smaller the shape. The higher the shape. The higher the shape. The higher the shape. The higher the shape. The higher the shape. The higher the shape. The higher the shape. The higher the shape. It should be noted that the present embodiment classifies a shape set from a plurality of orders. After the shape set is classified, the shape information related to the shape set can be eliminated based on the correspondence table, and then a first PCB board corresponding to one shape information is selected from the remaining plurality of shape information as the target PCB board to repeat the above steps, so that a second shape set can be generated. By repeating the above process, multiple shape sets can be generated.

[0099] In one embodiment, the step S4 of inputting the order information corresponding to different shape sets into different shape digital twins based on the correspondence table to obtain different PCB digital twins includes:

[0100] S41, acquiring at least one order information corresponding to different shape sets based on the correspondence table, wherein the order information includes the number of layers information, hole position information, and electronic component layout information of the second PCB board, wherein the hole position information is associated with the electronic component layout information;

[0101] S42, generating corresponding numbers of layers and hole positions in corresponding digital twins of different shapes according to the number of layers information and hole position information of the second PCB board, to obtain different basic digital twins;

[0102] S43, generating corresponding electronic components in different basic digital twins according to the correlation between the electronic component layout information and the hole position information, to obtain different PCB digital twins;

[0103] As described in the above steps S41-S43, after obtaining digital twins of different shapes, order information of digital twins of different shapes can be obtained based on the corresponding relationship table. The order information includes the number of layers of the sample PCB (i.e., the second PCB board), hole position information, electronic component layout information, and distribution information. The hole position information refers to the hole positions on the second PCB board, such as positioning holes, reserved holes, screw holes, through-board holes, and pass holes, etc., and the electronic component layout information is related to the hole position information, such as which electronic components are allowed to be set next to which holes, and different hole positions have different functions; therefore, after obtaining the order information, the corresponding layers can be generated according to the hole position information and the number of layers of the PCB board (single layer, double layer or multi-layer). The basic digital twin of the number and hole position is generated, and then the corresponding electronic components are generated in the basic digital twin according to the correlation between the electronic component layout information and the hole position information. In this way, the position of the electronic components can be preliminarily confirmed based on the hole position information, so that the generated PCB digital twin of the electronic components meets the requirements of the order information, that is, the process of converting the shape digital twin into the PCB digital twin is the process of converting the two-dimensional simple model into a three-dimensional precise model. By converting the shape digital twin into the PCB digital twin, the obtained PCB digital twin can be made the same as the PCB board in the order information in terms of shape, structure, etc., so as to facilitate the subsequent automatic scheduling and merging of PCB boards based on the PCB digital twin. It should be noted that since the PCB digital twin evolves based on the shape information and the PCB parameter information in the order information, if the shape information or the PCB parameter information changes, the parameters of the PCB digital twin itself will also change accordingly and be updated in real time.

[0104] In one embodiment, the step S5 of the PCB digital twin searching for optimal PNL board parameter information from multiple PNL board parameter information includes:

[0105] S51, the PCB digital twin obtains shape information of the third PCB board according to the corresponding order information, and constructs a process edge according to the shape information to obtain shape information with the process edge;

[0106] S52, the PCB digital twin calculates the required area of ​​the third PCB board according to the shape information with the process edge;

[0107] S53, the PCB digital twin obtains the quantity requirement of the third PCB board according to the corresponding order information;

[0108] S54, the PCB digital twin obtains size information from multiple PNL board parameter information;

[0109] S55, the PCB digital twin calculates a PNL board matching value according to the quantity requirement, the required area of ​​the third PCB board and the PNL board size information, and searches for optimal PNL board parameter information from multiple PNL board parameter information according to the PNL matching value;

[0110] The calculation formula is:

[0111] M=- ,and >0;

[0112] Where M represents the PNL board matching value corresponding to the optimal PNL board parameter information, represents the size information of the PNL board numbered 1, S2 represents the size information of the PNL board numbered 2, and Si represents the size information of the PNL board numbered i. It represents the required area of ​​the third PCB board corresponding to the PCB digital twin numbered p, and n represents the required quantity of the third PCB board.

[0113] As described in the above steps S51-S55, in order to respectively explain different embodiments, in this embodiment, the PCB board is defined as a third PCB board, which is the same as the second PCB board and the first PCB board, and is the PCB board in the order information; when producing the third PCB board, since it needs to be placed in a mold for detection, it is generally detected by clamping the edge of the PCB board, but if the position of the electronic components is too close to the mold, it is easy to cause the electronic components to be broken during detection. In order to improve the detection yield of the PCB board, a process edge can be added before the PCB board is produced. Therefore, after obtaining the shape information of the third PCB board, the embodiment first constructs the process edge based on its shape information to obtain the shape information with the process edge, and then calculates the required area of ​​the third PCB board based on the shape information with the process edge. Therefore, the required area of ​​the third PCB board will be greater than the actual required area of ​​the third PCB board, and then obtains the size information of multiple PNL parameter information and the PCB required quantity information. In this way, the utilization rate of the PNL board can be calculated according to the size information, the required quantity information and the required area. Specifically, the area of ​​the PNL and the total required area of ​​the third PCB board can be compared by difference. If the difference is greater than 0 and is the smallest among the multiple PNL boards, then its utilization rate is the highest. Using the PNL board with the highest utilization rate as the optimal PNL board for the third PCB board can reduce waste of consumables and reduce production costs.

[0114] In one embodiment, after the step S55 of searching for the optimal PNL board parameter information from the plurality of PNL board parameter information according to the PNL matching value, the following steps are included:

[0115] S551, the PCB digital twin obtains PNL board size information in the optimal PNL board parameter information;

[0116] S552, the PCB digital twin obtains the required area of ​​the third PCB board;

[0117] S553, the PCB digital twin generates a corresponding layout quantity according to the required area of ​​the third PCB board and the PNL board size information;

[0118] S554, obtaining shape information corresponding to the PCB digital twin;

[0119] S555, acquiring at least two corresponding layout types according to the shape information;

[0120] S556. Based on the layout type, shape information of the PCB digital twin, layout quantity, required area of ​​the third PCB board and PNL board size information, the corresponding PCB digital twin is mirrored to the PNL digital twin for simulated layout, and multiple layout results corresponding to the layout type are generated.

[0121] As described in the above steps S551-S556, after obtaining the optimal PNL board, the PCB digital twin can obtain the required area of ​​the third PCB board, and can generate the corresponding layout quantity according to the size information of the PNL board and the required area of ​​the third PCB board; then obtain the corresponding shape information, so that the layout type can be obtained based on the shape information. In order to maximize the use of the PNL board, the layout form can be pre-adjusted according to the requirements during layout, and then the subsequent layout is generated according to the pre-adjusted mode, or it can be directly layout according to the conventional layout requirements. In order to provide a variety of layout requirements and select the best layout, the shape information in this embodiment corresponds to at least two layout types or more. According to the layout type, shape information, and layout quantity, the corresponding PCB digital twin is mirrored to the PNL digital twin for simulated layout, and multiple layout results can be generated. The mirror in this example can mean mapping and projection. The PCB digital twin is mapped one-to-one on the PNL digital twin, so that the layout of the actual PCB board can be accurately pre-simulated.

[0122] In one embodiment, the step S8 of simulating and merging the PCB digital twin based on multiple layout results to generate multiple merging results includes:

[0123] S81, acquiring corresponding multiple merge types based on multiple typesetting results, wherein the merge types include V-CUT merge and stamp hole merge;

[0124] S82. Obtaining a merge distance between each of the PCB digital twins based on the merge type;

[0125] S83, based on the layout result, the merging type and the merging distance, simulate the merging of the PCB digital twin to generate a merging result corresponding to the layout result.

[0126] As described in the above steps S81-S83, after obtaining the typesetting results, an adaptive merging type can be used according to different typesetting results, such as V-CUT merging and stamp hole merging, and the merging distance between each digital twin is obtained according to the merging type. The merging distance can be customized, and finally the PCB digital twin is simulated and merged based on the typesetting results, merging types and merging distances to generate a merging result corresponding to the typesetting results, thereby realizing the simulated automatic scheduling merging result of the PCB board. It should be noted that the merging result is the typesetting style and merging style result of multiple PCB boards on a PNL board. If the number of PCB boards required in the order information is greater than the number of PCB boards on a PNL board, the PCB boards with the same number of required boards can be directly copied based on the merging result, and no detailed description will be given here.

[0127] In one embodiment, the step S9 of selecting at least one merging result from a plurality of merging results according to a preset condition as the merging specification of the PCB board includes: S91, judging whether the blank area where the PNL digital twin is located in each of the merging results meets the preset condition, wherein the preset condition includes the blank area area and the corresponding quantity;

[0128] S92. If there is at least one blank area in the merged result where the PNL digital twin is located that meets the preset conditions, obtain the PCB digital twin corresponding to the area of ​​the blank area, and use the corresponding PCB digital twin as the target digital twin and mirror it to the PNL digital twin to obtain the target merged result;

[0129] S93: Output the target merging result as the merging specification of the PCB board.

[0130] As described in the above steps S91-S93, since the irregularly shaped PCB digital twins cannot be as tightly fitted as rectangles during layout and splicing, blank areas are likely to appear between the PCB digital twins. In order to reduce the waste of consumables, it is possible to search the order information to see whether there are other PCB boards that meet the blank area. If so, their corresponding digital twins can be mirrored to the blank area of ​​the PNL digital twin and output as the splicing specification of the PCB boards, thereby reducing production costs and reducing waste output.

[0131] The present application also provides a control system for automatic layout and splicing of PCB boards, including:

[0132] The order acquisition module 1 is used to acquire multiple order information, wherein the order information includes PCB board parameter information and shape information;

[0133] Classification module 2, used for classifying the plurality of order information based on shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information;

[0134] A first construction module 3 is used to construct a corresponding plurality of shape digital twins based on a plurality of the shape sets;

[0135] An input module 4 is used to input the order information corresponding to different shape sets into different shape digital twins based on the correspondence table to obtain different PCB digital twins;

[0136] A PNL board parameter acquisition module 5 is used to acquire multiple PNL board parameter information and input the multiple PNL board parameter information into each of the PCB digital twins, wherein the PCB digital twin searches for optimal PNL board parameter information from the multiple PNL board parameter information and generates a corresponding typesetting quantity according to the optimal PNL board parameter information;

[0137] A second construction module 6 is used to construct a PNL digital twin based on the optimal PNL plate parameter information;

[0138] A layout module 7 is used to mirror the corresponding PCB digital twin to the PNL digital twin based on the layout quantity for simulation layout, and obtain multiple layout results;

[0139] A merging module 8, configured to simulate merging of the PCB digital twin based on multiple typesetting results to generate multiple merging results;

[0140] The output module 9 is used to select at least one merging result from a plurality of merging results according to a preset condition and output it as the merging specification of the PCB board, so that the PCB board can be automatically laid out and merged.

[0141] Each module of the above system is used to implement the control method for automatic typesetting and splicing of PCB boards. Therefore, the units or sub-units corresponding to each module correspond one-to-one with the units or sub-units of the control method for automatic typesetting and splicing of PCB boards, and will not be repeated here.

[0142] like Figure 3 As shown, the present application also provides a computer device, which may be a server, and its internal structure may be as shown in Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store all data required for the process of the control method of automatic typesetting and splicing of PCB boards. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the control method of automatic typesetting and splicing of PCB boards is implemented.

[0143] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0144] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, any of the above-mentioned control methods for automatic typesetting and splicing of PCB boards is implemented.

[0145] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0146] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0147] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A control method for automatic layout and splicing of PCB boards. It is characterized in that include: Acquire multiple order information, wherein the order information includes PCB board parameter information and shape information; Classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information; Constructing corresponding multiple shape digital twins based on multiple shape sets; Based on the correspondence table, the order information corresponding to different shape sets is input into different shape digital twins to obtain different PCB digital twins; Acquire multiple PNL board parameter information, and input the multiple PNL board parameter information into each of the PCB digital twins, wherein the PCB digital twin searches for optimal PNL board parameter information from the multiple PNL board parameter information, and generates a corresponding layout quantity according to the optimal PNL board parameter information; Construct the PNL digital twin based on the optimal PNL plate parameter information; Based on the number of layouts, the corresponding PCB digital twin is mirrored into the PNL digital twin for simulation layout, and multiple layout results are obtained; Simulating and merging the PCB digital twin based on multiple layout results to generate multiple merging results; At least one merging result is selected from a plurality of merging results according to preset conditions as a merging specification of the PCB board for output, so that the PCB board is automatically laid out and merged; The step of the PCB digital twin searching for optimal PNL board parameter information from multiple PNL board parameter information includes: The PCB digital twin obtains shape information of the PCB board according to the corresponding order information, and constructs a process edge according to the shape information to obtain shape information with a process edge; The PCB digital twin calculates the required area of ​​the PCB board according to the shape information with the process edge; The PCB digital twin obtains the quantity requirement of the PCB board according to the corresponding order information; The PCB digital twin obtains dimension information from multiple PNL board parameter information; The PCB digital twin calculates a PNL board matching value according to the quantity requirement, the PCB board required area and the PNL board size information, and searches for optimal PNL board parameter information from multiple PNL board parameter information according to the PNL matching value; The calculation formula is: ; Where M represents the PNL board matching value corresponding to the optimal PNL board parameter information, represents the size information of the PNL board numbered 1, S2 represents the size information of the PNL board numbered 2, and Si represents the size information of the PNL board numbered i. represents the required area of ​​the PCB board corresponding to the PCB digital twin numbered p, and n represents the required number of PCB boards; After the step of searching for the optimal PNL board parameter information from the plurality of PNL board parameter information according to the PNL matching value, the method further comprises: The PCB digital twin obtains PNL board size information from the optimal PNL board parameter information; The PCB digital twin obtains the required area of ​​the PCB board; The PCB digital twin generates a corresponding layout quantity according to the required area of ​​the PCB board and the size information of the PNL board; Obtaining shape information corresponding to the PCB digital twin; Acquire at least two corresponding layout types according to the shape information; Based on the layout type, shape information of the PCB digital twin, layout quantity, required area of ​​PCB board and PNL board size information, the corresponding PCB digital twin is mirrored to the PNL digital twin for simulated layout, and multiple layout results corresponding to the layout type are generated.

2. The control method for automatic layout and splicing of PCB boards according to claim 1, It is characterized in that The steps of classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information include: Obtaining shape information of first PCB boards in the plurality of order information, and obtaining sampling points corresponding to the shape information according to a first preset condition, wherein the number of sampling points of each first PCB board is the same; Construct a standard two-dimensional coordinate system, and obtain the coordinate point corresponding to each sampling point in the standard two-dimensional coordinate system according to a preset order; Selecting a first PCB board as a target PCB board, calculating multiple coordinate ratios between the target PCB board and the first PCB board according to multiple coordinate points, and selecting a coordinate ratio from the multiple coordinate ratios as a target ratio according to a second preset condition; The calculation formula is: ; Where a represents the target PCB board numbered a, b represents the first PCB board numbered b, Indicates the coordinate ratio between the ath target PCB board and the bth first PCB board, Indicates the X-axis coordinate of the i-th sampling point in the a-th target PCB board, represents the Y-axis coordinate of the i-th sampling point in the a-th target PCB board, represents the X-axis coordinate of the j-th sampling point in the b-th first PCB board, represents the Y-axis coordinate of the j-th sampling point in the b-th first PCB board, and the value range of i and j is [1,n], where n represents the total number of sampling points; The first weight value and the second weight value corresponding to the shape information of the target PCB board and the first PCB board are respectively obtained, and the similarity value between the target PCB board and the first PCB board is calculated according to the first weight value, the second weight value and the target ratio, wherein the calculation formula is: ; Among them, S (a, b) represents the similarity value between the a-th target PCB board and the b-th first PCB board, M represents the target ratio, The weight value corresponding to the shape information of the ath target PCB board, The weight value corresponding to the shape information of the b-th first PCB board; Traversing all first PCB boards, repeating the steps of calculating multiple coordinate ratios between the target PCB board and the first PCB board according to multiple coordinate points to calculating the similarity value between the target PCB board and the first PCB board according to the weight value and the target ratio, to obtain multiple similarity values ​​between the target PCB board and all first PCB boards; Determine whether the similarity value between the target PCB board and each first PCB board is less than a preset value; If the similarity between the target PCB board and at least one other first PCB board is less than a preset value, the first PCB board corresponding to the first PCB board less than the preset value is used as a shape set; The order information corresponding to the first PCB board in the shape set is obtained, and the order information is associated with the shape set to generate a corresponding relationship table.

3. The control method for automatic layout and splicing of PCB boards according to claim 1, It is characterized in that The step of inputting order information corresponding to different shape sets into different shape digital twins based on the correspondence table to obtain different PCB digital twins includes: Acquire at least one order information corresponding to different shape sets based on the correspondence table, wherein the order information includes layer number information, hole position information, and electronic component layout information of the second PCB board, wherein the hole position information is associated with the electronic component layout information; Generate corresponding numbers of layers and hole positions in corresponding digital twins of different shapes according to the number of layers and hole position information of the second PCB board to obtain different basic digital twins; According to the correlation between the electronic component layout information and the hole position information, corresponding electronic components are generated in different basic digital twins to obtain different PCB digital twins.

4. The control method for automatic layout and splicing of PCB boards according to claim 1, It is characterized in that The step of simulating and merging the PCB digital twin based on multiple typesetting results to generate multiple merging results includes: Acquire corresponding multiple merge types based on multiple typesetting results, wherein the merge types include V-CUT merge and stamp hole merge; Obtaining a merge distance between each of the PCB digital twins based on a merge type; The PCB digital twin is simulated and merged based on the layout result, the merge type and the merge distance to generate a merge result corresponding to the layout result.

5. The control method for automatic layout and splicing of PCB boards according to claim 1, It is characterized in that The step of selecting at least one merging result from a plurality of merging results according to a preset condition as the merging specification of the PCB board comprises: Determine whether the blank area where the PNL digital twin in each of the merged results is located meets the preset conditions, wherein the preset conditions include the area and corresponding number of the blank areas; If there is at least one blank area where the PNL digital twin in the merged result satisfies a preset condition, a PCB digital twin corresponding to the area of ​​the blank area is obtained, and the corresponding PCB digital twin is mirrored into the PNL digital twin as the target digital twin to obtain a target merged result; The target merging result is output as the merging specification of the PCB board.

6. A control system for automatic layout and splicing of PCB boards. It is characterized in that include: An order acquisition module is used to acquire multiple order information, wherein the order information includes PCB board parameter information and shape information; A classification module, used for classifying the plurality of order information based on the shape information to obtain a plurality of shape sets, and constructing a corresponding relationship table between each shape set and the plurality of order information; A first construction module is used to construct a corresponding plurality of shape digital twins based on a plurality of the shape sets; An input module, used to input order information corresponding to different shape sets into different shape digital twins based on a correspondence table to obtain different PCB digital twins; A PNL board parameter acquisition module is used to acquire multiple PNL board parameter information and input the multiple PNL board parameter information into each of the PCB digital twins, wherein the PCB digital twin searches for optimal PNL board parameter information from the multiple PNL board parameter information and generates a corresponding layout quantity according to the optimal PNL board parameter information; The second building module is used to build the PNL digital twin based on the optimal PNL plate parameter information; A layout module, used for mirroring the corresponding PCB digital twin to the PNL digital twin based on the layout quantity to perform simulation layout and obtain multiple layout results; A merging module, used for simulating the merging of the PCB digital twin based on multiple layout results to generate multiple merging results; An output module is used to select at least one merging result from a plurality of merging results according to a preset condition as a merging specification of a PCB board for output, so that the PCB board is automatically laid out and merged; The module for obtaining the PNL board parameters includes a PCB digital twin unit, and the PCB digital twin unit is used to obtain the shape information of the PCB board according to the corresponding order information, and to construct the process edge according to the shape information to obtain the shape information with the process edge; The PCB digital twin unit is also used to calculate the required area of ​​the PCB board according to the shape information with the process edge; The PCB digital twin unit is also used to obtain the quantity requirement of the PCB board according to the corresponding order information; The PCB digital twin unit is also used to obtain dimension information from multiple PNL board parameter information; The PCB digital twin unit is also used to calculate the PNL board matching value according to the quantity requirement, the PCB board required area and the PNL board size information, and to search for the optimal PNL board parameter information from the multiple PNL board parameter information according to the PNL matching value; The calculation formula is: ; Where M represents the PNL board matching value corresponding to the optimal PNL board parameter information, represents the size information of the PNL board numbered 1, S2 represents the size information of the PNL board numbered 2, and Si represents the size information of the PNL board numbered i. represents the required area of ​​the PCB board corresponding to the PCB digital twin numbered p, and n represents the required number of PCB boards; The PCB digital twin unit is also used to obtain PNL board size information in the optimal PNL board parameter information; The PCB digital twin unit is also used to obtain the required area of ​​the PCB board; The PCB digital twin unit is also used to generate a corresponding layout quantity according to the required area of ​​the PCB board and the size information of the PNL board; The typesetting module includes a typesetting unit, and the typesetting unit is used to obtain shape information corresponding to the PCB digital twin; The typesetting unit is further used to obtain corresponding at least two typesetting types according to the shape information; The typesetting unit is also used to mirror the corresponding PCB digital twin to the PNL digital twin for simulated typesetting based on the typesetting type, shape information of the PCB digital twin, typesetting quantity, required area of ​​the PCB board and size information of the PNL board, and generate multiple typesetting results corresponding to the typesetting type.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.