Method for adjusting direction silk-screen of PCB component, electronic equipment and storage medium
By obtaining component information on the PCB board and automatically adjusting the direction silk screen printing, the problem of inefficient adjustment of component direction silk screen printing on the PCB board is solved, automatic adjustment is achieved, and production efficiency is improved.
Patent Information
- Application Number
- CN202311122178.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, the adjustment efficiency of the screen printing of components on PCB boards is inefficient, and a large number of manual adjustments are required, resulting in low efficiency and possible errors.
By obtaining the packaging names and bit numbers of all components in the PCB board, determine the information table of components, and adjust the position and shape of the direction screen printing according to the welding direction requirements, and automatically judge and adjust the direction screen printing to avoid interference risks.
Automatically adjust the direction of components, silk screen printing is realized, adjustment efficiency is improved, manual errors are reduced, and the production efficiency of PCB boards is improved.
Smart Images

Figure CN119545679A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of PCB design, and more specifically, to a method for adjusting the direction of silk screen printing of PCB components, an electronic device and a storage medium. Background Art
[0002] The PCB (Printed Circuit Board) of electronic devices is generally made of multiple layers of copper foil and dielectric materials laminated together. With the increasing complexity of electronic products and the continuous increase in functional modules, there are more and more components on the PCB, especially some data center communication products, which have hundreds or thousands of components on a PCB board. Among these hundreds of components, some components need to be distinguished in direction during production and assembly. In order to guide production and assembly, component direction indicator symbols need to be placed on the PCB design to guide the placement direction of assembled components. This direction symbol is generally on the silk screen layer and is called component direction silk screen.
[0003] During PCB layout design, after the component package is placed, the component direction screen is manually adjusted according to the free area. PCB boards are usually small in size, and the default direction screen position and size of the component package on the board are generally not suitable, so manual adjustment is required. Since there may be dozens or hundreds of component direction screens on a PCB board, the manual adjustment workload is huge, resulting in low adjustment efficiency. Summary of the invention
[0004] The purpose of the present application is to provide a method for adjusting the direction silk screen of PCB components, an electronic device and a storage medium, which can improve the adjustment efficiency of the direction silk screen in the PCB board.
[0005] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for adjusting the direction of silk screen printing of PCB components, the method comprising:
[0007] Get the package names and position numbers of all components on the PCB board;
[0008] Based on the package names and corresponding bit numbers, determine the information table of all components in the PCB board;
[0009] For each package name in the information table, determining whether the package name has a welding direction requirement;
[0010] When the package name has a welding direction requirement, determining at least one bit number corresponding to the package name;
[0011] Determine the package name corresponds to the indicated pin number;
[0012] Based on each of the bit numbers, determining a component position of the component in the PCB;
[0013] Determining the direction indication pin position of the component according to the position and the indication pin number;
[0014] Based on the position of the direction indicating pin, generating a predetermined query area;
[0015] When there is a component direction screen printing in the predetermined query area, determining whether there is an interference risk in the component direction screen printing;
[0016] When there is a risk of interference in the direction of the silk screen printing of the components, the direction of the silk screen printing of the components is adjusted.
[0017] In an optional implementation, the step of determining, for each package name in the information table, whether the package name has a welding direction requirement includes:
[0018] For each of the package names in the information table, query a predetermined database, wherein the predetermined database contains a correspondence between each first preset package name and component information;
[0019] Determine component information corresponding to the package name from the established database;
[0020] Determine from the component information whether the package name has a soldering direction requirement.
[0021] In an optional implementation, the step of determining the package name corresponding to the indicated pin number includes:
[0022] querying the established database for the package name;
[0023] Determine component information corresponding to the package name from the established database;
[0024] Determine the indicated pin number corresponding to the package name from the component information.
[0025] In an optional implementation, the step of determining the information table of all components in the PCB board based on each of the package names and corresponding bit numbers includes:
[0026] For each of the package names, query a predetermined information table, wherein the predetermined information table includes a correspondence between each package name and a bit number;
[0027] When the bit number corresponding to the package name is found in the established information table, it is added to the bit number queue of the package name to form an information table;
[0028] When the bit number corresponding to the package name is not found in the established information table, the package name and the corresponding bit number are added to the established information table to form an information table.
[0029] In an optional implementation, when there is a component direction screen printing in the predetermined query area, the step of determining whether there is an interference risk in the component direction screen printing includes:
[0030] When there is a component direction silk screen in the predetermined query area, determining whether there is another direction silk screen in the predetermined query area;
[0031] When there are other directional silk screens in the predetermined query area, determining a first distance between the component directional silk screen and the other directional silk screens;
[0032] When the first distance is less than a preset distance, it is determined that there is a risk of interference in the silk-screen printing of the component direction.
[0033] In an optional implementation, when there is a component direction screen printing in the predetermined query area, the step of determining whether there is an interference risk in the component direction screen printing includes:
[0034] When there is a component direction silk screen in the predetermined query area, determining the pads in the predetermined query area;
[0035] Determine a second distance between the component direction silk screen and the pad;
[0036] When the second distance is less than a preset distance, it is determined that there is an interference risk in the silk-screen printing of the component direction.
[0037] In an optional implementation, when there is a risk of interference in the silk screen printing of the component direction, the step of adjusting the silk screen printing of the component direction includes:
[0038] When there is a risk of interference in the silk screen printing of the component direction, moving the silk screen printing of the component direction;
[0039] Determine whether there is a risk of interference in the silk screen printing direction of the components after the movement;
[0040] When there is a risk of interference in the direction of the silk screen of the component after the movement, changing the shape of the silk screen in the direction of the component;
[0041] Determine whether there is a risk of interference in the silk screen printing direction of the component after the shape is changed;
[0042] When there is a risk of interference in the silk-screen printing of the direction of the component after the shape is changed, the radius of the silk-screen printing of the direction of the component after the shape is changed is reduced.
[0043] In an optional embodiment, the method further comprises:
[0044] The first ID information of each component direction silk screen in each predetermined query area is stored in the component direction silk screen table;
[0045] Traversing all the silk screens on the PCB board to determine whether the silk screen is a directional silk screen;
[0046] When the silk screen is directional silk screen, determining the second ID information of the silk screen;
[0047] Matching the second ID information of the silk screen with each first ID information in the silk screen direction table of components;
[0048] When there is no first ID information consistent with the second ID information in the component direction silk screen table, the silk screen is deleted.
[0049] In a second aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for adjusting the direction of silk screen printing of PCB components when executing the computer program.
[0050] In a third aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for adjusting the direction of silk screen printing of PCB components.
[0051] This application has the following beneficial effects:
[0052] The present application obtains the package names and bit numbers of all components in the PCB board, determines the information table of all components in the PCB board based on each package name and the corresponding bit number, determines whether the package name has a welding direction requirement for each package name in the information table, determines at least one bit number corresponding to the package name when the package name has a welding direction requirement, determines the package name corresponding to the indication pin number, determines the position of the component in the PCB based on each bit number, determines the direction indication pin position of the component based on the position and the indication pin number, generates a predetermined query area based on the direction indication pin position, determines whether there is an interference risk in the direction silk screen of the component when there is a component direction silk screen in the predetermined query area, and adjusts the direction silk screen of the component when there is an interference risk in the direction silk screen of the component. The present application can automatically traverse the components on the PCB board, and determines whether the components have a direction silk screen, and automatically determines whether the direction silk screen has an interference risk based on a predetermined method, and automatically adjusts the direction silk screen when there is an interference risk in the direction silk screen, without manual intervention, thereby improving the efficiency of adjusting the direction silk screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A block diagram of an electronic device provided in an embodiment of the present application;
[0055] Figure 2 One of the flow diagrams of a method for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application;
[0056] Figure 3 A second flow chart of a method for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application;
[0057] Figure 4 A third flow chart of a method for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application;
[0058] Figure 5 A fourth flow chart of a method for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application;
[0059] Figure 6 A fifth flow chart of a method for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application;
[0060] Figure 7 A sixth flow chart of a method for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application;
[0061] Figure 8 A seventh flow chart of a method for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application;
[0062] Fig. 9 A structural block diagram of a device for adjusting the direction of silk screen printing of PCB components provided in an embodiment of the present application. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0064] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0065] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0066] In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0067] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0068] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0069] After extensive research, the inventors found that when making component packages, the component direction silk screen is made into a circular, triangular and other shapes, and placed near the predetermined pins of the package. When designing the PCB, when calling the component package, the component direction silk screen is imported at the same time. When designing the PCB layout, after the component package is placed, the component direction silk screen is manually adjusted according to the free area position. PCB boards are usually small in area, and the default direction silk screen position and size of the component package on the board are generally not adaptable, and manual adjustment is required. Manual adjustment includes changing the component direction silk screen position, reducing the component direction silk screen pattern, deleting the component direction silk screen, replacing the component direction silk screen pattern, and drawing a new component direction silk screen pattern.
[0070] This method is to manually complete the search, judgment, deletion, replacement, addition, pattern making and other tasks. Since a PCB board may have dozens or hundreds of component direction silk screens, the workload is huge. It is also easy to be negligent, resulting in unsightly component direction silk screens, mistaken deletion, missing placement, multiple placement, unreasonable patterns, and wrong position placement. The aforementioned errors will directly affect the production and processing of PCBA. In severe cases, it will cause the reflow soldering and wave soldering production lines of the processing factory to stop. Or the PCBA produced by the factory is unusable and needs to be reworked. The aforementioned problems will increase labor costs, rework costs, design cycles, and project production cycles.
[0071] In view of the discovery of the above problems, the present embodiment provides a method for adjusting the directional silk screen of PCB components, an electronic device and a storage medium. The method can obtain the package names and bit numbers of all components on the PCB board, determine the information table of all components on the PCB board based on each package name and the corresponding bit number, determine whether the package name has a welding direction requirement for each package name in the information table, when the package name has a welding direction requirement, determine at least one bit number corresponding to the package name, determine the indicator pin number corresponding to the package name, determine the position of the component in the PCB based on each bit number, determine the position of the direction indicator pin of the component according to the position and the indicator pin number, generate a predetermined query area based on the direction indicator pin position, and when there is a component directional silk screen in the predetermined query area, determine whether there is an interference risk in the component directional silk screen, and when there is an interference risk in the component directional silk screen, adjust the component directional silk screen. It can automatically traverse the components on the PCB board, and determine whether the components have directional silk screen, and automatically determine whether the directional silk screen has an interference risk based on an established method, and automatically adjust the directional silk screen when there is an interference risk of the directional silk screen, without the need for manual intervention, thereby improving the efficiency of adjusting the directional silk screen. The solution provided in this embodiment is described in detail below.
[0072] This embodiment provides an electronic device that can adjust the direction of silk screen printing of PCB components. In a possible implementation, the electronic device can be a user terminal, for example, the electronic device can be, but is not limited to, a server, a smart phone, a PC (Personal Computer), a tablet computer, a PDA (Personal Digital Assistant), a MID (Mobile Internet Device), etc.
[0073] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application. The electronic device 100 may also include Figure 1More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0074] The electronic device 100 includes a PCB component direction screen printing device 110 , a memory 120 and a processor 130 .
[0075] The software for adjusting the silk screen direction of PCB components is installed in the electronic device, and the PCB board and the electronic device interact through the setting ports of the PCB board and the electronic device, so that the electronic device can obtain the information of each component from the PCB board for adjusting the silk screen direction of the PCB components.
[0076] The components of the memory 120 and the processor 130 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The device 110 for adjusting the direction of silk screen printing of PCB components includes at least one software function module that can be stored in the memory 120 in the form of software or firmware or solidified in the OS (operating system) of the electronic device 100. The processor 130 is used to execute the executable modules stored in the memory 120, such as the software function modules and computer programs included in the device 110 for adjusting the direction of silk screen printing of PCB components.
[0077] The memory 120 may be, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc. The memory 120 is used to store programs, and the processor 130 executes the programs after receiving the execution instruction.
[0078] Please refer to Figure 2 , Figure 2 For application Figure 1 A flowchart of a method for adjusting the direction of silk screen printing of a PCB component of an electronic device 100 is provided, and the method including each step is described in detail below.
[0079] S201: Obtain the package names and position numbers of all components in the PCB board.
[0080] S202: Based on each package name and corresponding bit number, determine the information table of all components in the PCB board.
[0081] S203: For each package name in the information table, determine whether the package name has a welding direction requirement.
[0082] S204: When the package name has a welding direction requirement, determine at least one bit number corresponding to the package name.
[0083] S205: Determine the package name corresponding to the indicated pin number.
[0084] S206: Based on each bit number, determine the position of the component in the PCB.
[0085] S207: Determine the direction indicator pin position of the component according to the position and the indicator pin number.
[0086] S208: Generate a predetermined query area based on the position of the direction indication pin.
[0087] S209: When there is a component direction silk screen in the predetermined query area, determine whether there is an interference risk in the component direction silk screen.
[0088] S210: When there is a risk of interference in the silk screen printing direction of components, adjust the silk screen printing direction of components.
[0089] Traverse all components on the PCB board and grab the package name and bit number of each component. There are many ways to implement the information table of all components on the PCB board based on each package name and corresponding bit number. In one implementation, Figure 3 As shown, the following steps are included:
[0090] S202-1: Query a predetermined information table for each package name.
[0091] The established information table includes the correspondence between each package name and bit number.
[0092] S202-2: When the bit number corresponding to the package name is found in the established information table, it is added to the bit number queue of the package name to form an information table.
[0093] S202-3: When the bit number corresponding to the package name is not found in the established information table, the package name and the corresponding bit number are added to the established information table to form an information table.
[0094] In one example, before storing with "package name" as the keyword and "bit number" as the data unit, it is necessary to first determine whether there is a queue with the current "package name" as the keyword in the established information table. If not, create a queue with the current "package name" as the keyword, and then store the bit number corresponding to the current package name in the queue corresponding to the package name to form an information table. If it exists, locate the queue with the same "package name" keyword in the established information table, and store the "bit number" corresponding to the current package name in the queue in an appended manner to form an information table.
[0095] In another example, before storing the data unit with the "package name" as the keyword and the hash value of the "bit number", it is necessary to first determine whether there is a queue with the current "package name" as the keyword in the established information table. If it does not exist, create a queue with the current "package name" as the keyword, and then store the hash value corresponding to the bit number corresponding to the current package name in the queue corresponding to the package name to form a hash table. If it exists, locate the queue with the same "package name" keyword in the established information table, and store the hash value corresponding to the "bit number" corresponding to the current package name in the queue in an appended manner to form a hash table.
[0096] The package names of all components in the PCB board are traversed, and it is determined whether there is a welding direction requirement for the package name, and the indicator pin position is determined based on the bit number corresponding to the package name, and a predetermined query area is generated based on the indicator pin position. When there is a component direction silk screen in the predetermined query area, it is determined by a predetermined method whether there is an interference risk in the component direction silk screen. When there is an interference risk, the component direction silk screen is adjusted by the established method to eliminate the interference risk.
[0097] In one example, the current package name is determined, and it is determined that the current package name has a welding direction requirement, the A position number corresponding to the current package name is determined, the indicator pin number corresponding to the current package name is determined, and the position of the component with the A position number in the PCB is determined. According to the position of the component with the A position number in the PCB board and the indicator pin number, the direction indicator pin position of the component is determined, and based on the direction indicator pin position, a predetermined query area is generated. When there is a component direction silk screen in the predetermined query area and there is a risk of interference in the component direction silk screen, the component direction silk screen is adjusted.
[0098] In another instance, when the current package name corresponds to multiple bit numbers, the position of the component of each bit number in the PCB board is determined for each bit number, and based on the position of the component and the indicator pin number of each bit number in the PCB board, multiple directional indicator pin positions of the component are determined, and based on the multiple directional indicator pin positions, multiple established query areas are generated. For each established query area, it is determined whether there is a directional silk screen of the component. When there is a directional silk screen of the component in the established query area, it is determined whether there is an interference risk for the directional silk screen of the component in the established query area, and each directional silk screen of the component with an interference risk is adjusted.
[0099] When there is no component orientation silk screen in a given query area, a new component orientation silk screen is set in the given query area.
[0100] For each package name in the information table, there are multiple ways to determine whether the package name has a welding direction requirement. In one implementation, for example Figure 4 As shown, the following steps are included:
[0101] S203-1: For each package name in the information table, query a predetermined database.
[0102] The established database includes the corresponding relationship between each first preset package name and component information.
[0103] S203-2: Determine component information corresponding to the package name from a predetermined database.
[0104] S203-3: Determine from the component information whether the package name has any soldering direction requirements.
[0105] Traverse each package name in the information table, that is, for each queue in the information table, grab the queue keyword, that is, the package name.
[0106] Compare the currently captured package name with the package names stored in the established database one by one. When there is a package name in the established database that is consistent with the currently captured package name, obtain the field value of whether there is a welding direction requirement corresponding to the matched package name, return the field value as the parsing result, and terminate this round of comparison and capture queue keywords. When the package name corresponding to the current package name is not matched in the established database, the next package name in the information table is captured until all package names in the information table are traversed.
[0107] It should be noted that the above-mentioned established database is a component management library. The library stores all component information. The component information includes the corresponding relationship between the package name, whether there is a welding direction requirement, the welding direction indication pin number and other information.
[0108] There are many ways to determine the package name corresponding to the indicated pin number. In one implementation, for example Figure 5 As shown, the following steps are included:
[0109] S205-1: Query a predetermined database for the package name.
[0110] S205-2: Determine component information corresponding to the package name from a predetermined database.
[0111] S205-3: Determine the indicated pin number corresponding to the package name from the component information.
[0112] Since the established data contains the correspondence between the package name and the pin number indicating the welding direction, the currently captured package name is compared one by one with each package name stored in the established database. When there is a package name corresponding to the currently captured package name in the established database, the indicating pin number in the component information of the matching package name is determined.
[0113] When there is a component orientation screen in a given query area, there are multiple ways to determine whether there is an interference risk in the component orientation screen. In one implementation, for example Figure 6 As shown, the following steps are included:
[0114] S209-1: When there is a component direction silk screen in the established query area, determine whether there is another direction silk screen in the established query area.
[0115] S209-2: When there are other directional silk screens in the predetermined query area, determine a first distance between the component directional silk screen and the other directional silk screens.
[0116] S209-3: When the first distance is less than the preset distance, it is determined that there is a risk of interference in the silk screen printing of the component direction.
[0117] When a predetermined query area is generated based on the direction indicator pin position, a circular area with a center coordinate point of the direction indicator pin position as a circle point and a preset distance as a radius is used as the predetermined query area.
[0118] It should be noted that the preset distance can be set to 1mm, 1.5mm, 2mm, etc., and the embodiment of the present application does not impose any specific limitation on this.
[0119] Search whether there is a specific parameter feature in the established query area, the specific parameter feature is used to indicate the direction silk screen of the component. When the specific parameter feature exists in the established query area, it is determined that there is a direction silk screen of the component in the established query area. When the specific parameter feature does not exist in the established query area, it is determined that there is no direction silk screen of the component in the established query area.
[0120] When there is a component directional silk screen in a given query area, query whether the given query area contains other directional silk screens. When other directional silk screens are contained in the given query area, the component directional silk screen and the other silk screens may interfere with each other, thereby affecting the performance of the final PCB board. It is necessary to determine the first distance between the component directional silk screen and the other silk screens, and determine whether there is an interference risk for the component directional silk screen based on the first distance.
[0121] As for the method of determining the first distance, the distance between the center point of the silk screen in the direction of the component and the center point of other silk screens can be used as the first distance. By comparing the first distance with the preset distance, when the first distance is less than the preset distance, it is determined that there is an interference risk in the silk screen in the direction of the component, and the silk screen in the direction of the component needs to be adjusted.
[0122] Another way to determine whether there is an interference risk for the component directional silk screen is as follows: when there is a component directional silk screen in a given query area, determine the pads in the given query area, determine a second distance between the component directional silk screen and the pads, and when the second distance is less than a preset distance, determine that there is an interference risk for the component directional silk screen.
[0123] Determine whether there is a solder pad in a given query area. When there is a solder pad in the given query area, the vertical distance between the center of the component directional silk screen and the solder pad can be used as the second distance, and the second distance can be compared with the preset distance. When the second distance is less than the preset distance, it is determined that there is an interference risk in the component directional silk screen; when the second distance is greater than or equal to the preset distance, it is determined that there is no interference risk in the component directional silk screen.
[0124] When there is a risk of interference in the direction of the silk screen printing of components, there are many ways to adjust the direction of the silk screen printing of components. In one implementation method, Figure 7 As shown, the following steps are included:
[0125] S210-1: When there is a risk of interference in the silk screen printing of the component direction, move the silk screen printing of the component direction.
[0126] S210-2: Determine whether there is a risk of interference in the silk screen printing direction of the moved components.
[0127] S210-3: When there is a risk of interference in the direction of the silk screen of the moved component, change the shape of the silk screen in the direction of the component.
[0128] S210-4: Determine whether there is a risk of interference in the silk screen direction of the component after the shape is changed.
[0129] S210-5: When there is a risk of interference in the silk screen printing direction of the component after the shape is changed, reduce the radius of the silk screen printing direction of the component after the shape is changed.
[0130] Exemplarily, when there is a risk of interference in the silk screen printing in the direction of components, adjustment is performed by at least one of moving the silk screen printing in the direction of components, changing the shape of the silk screen printing in the direction of components, and reducing the radius of the silk screen printing in the direction of components.
[0131] When there is a risk of interference in the component direction silk screen, it can be adjusted by moving the component direction silk screen, changing the shape of the component direction silk screen, or reducing the radius of the component direction silk screen.
[0132] In another example, the adjustment can be made in the order of moving the component directional silk screen, changing the shape of the component directional silk screen, and reducing the radius of the component directional silk screen. For example: when there is a risk of interference in the component directional silk screen, the shape of the component directional silk screen can be changed first to determine whether there is an interference risk in the component directional silk screen after the shape change. If there is no interference risk, the next package name in the information table is obtained for judgment. When there is an interference risk, the component directional silk screen after the shape change is moved, and it is determined again whether there is an interference risk in the component directional silk screen after the movement. If there is an interference risk, the radius of the component directional silk screen after the movement is reduced to avoid the interference risk of the component directional silk screen.
[0133] In another example, when there is a risk of interference in the component directional silk screen, the component directional silk screen can be moved first to determine whether there is still a risk of interference. When there is a risk of interference in the component directional silk screen after the move, the shape of the original component directional silk screen is changed to determine whether there is still a risk of interference. If there is still a risk of interference after changing the shape of the original component directional silk screen, the radius of the original component directional silk screen is reduced to reduce the component directional silk screen and determine whether there is still a risk of interference. If not, the next package name in the information table is obtained for judgment.
[0134] It should be noted that the embodiment of the present application does not impose any specific restrictions on the method of adjusting the silk screen of the component direction. It can be a combination of moving the silk screen of the component direction, changing the shape of the silk screen of the component direction, or reducing the radius of the silk screen of the component direction, as well as specifying the execution order of moving the silk screen of the component direction, changing the shape of the silk screen of the component direction, or reducing the radius of the silk screen of the component direction.
[0135] There are many ways to process the redundant silk screen in the PCB board. In one implementation, Figure 8 As shown, the following steps are included:
[0136] S301: The first ID information of the direction silk screen of each component in each predetermined query area is stored in the component direction silk screen table.
[0137] S302: Traverse all silk screens on the PCB board to determine whether the silk screen is a directional silk screen.
[0138] S303: When the silk screen printing is directional silk screen printing, determine the second ID information of the silk screen printing.
[0139] S304: Match the silk-screened second ID information with each first ID information in the component direction silk-screen table.
[0140] S305: When there is no first ID information consistent with the second ID information in the component direction silk screen table, the silk screen is deleted.
[0141] Determine whether there is a component direction silk screen in the established query area. If not, set a new component direction silk screen in the established query area, determine the first ID information of the new component direction silk screen, and store it in the component direction silk screen table. If there is a component direction silk screen in the established query area, determine the first ID information of the component direction silk screen and store it in the component direction silk screen table. Get all silk screens on the PCB board, determine all direction silk screens in each silk screen, and determine the second ID information of each direction silk screen. For each second ID information, match the second ID information with each first ID information in the component direction silk screen table. If the first ID information corresponding to the current second ID information does not exist in the component direction silk screen table, the current second ID information is considered to be redundant with the device direction silk screen, and the current direction silk screen is deleted. Avoid redundant component direction silk screens from misleading subsequent PCB processing operations.
[0142] Please refer to Fig. 9 The present application embodiment also provides an application Figure 1 The device 110 for adjusting the direction of screen printing of PCB components of the electronic device 100 includes:
[0143] The acquisition module 111 is used to obtain the package names and bit numbers of all components on the PCB board;
[0144] The determination module 112 is used to determine the information table of all components in the PCB board based on each package name and the corresponding bit number; for each package name in the information table, determine whether the package name has a welding direction requirement; when the package name has a welding direction requirement, determine at least one bit number corresponding to the package name; determine the indicator pin number corresponding to the package name; based on each bit number, determine the position of the component in the PCB; determine the direction indicator pin position of the component according to the position and the indicator pin number;
[0145] A generating module 113, configured to generate a predetermined query area based on the position of the direction indicating pin;
[0146] A judgment module 114 is used to judge whether there is an interference risk in the direction silk screen of a component when there is a direction silk screen of a component in the predetermined query area;
[0147] The adjustment module 115 is used to adjust the silk screen printing in the direction of the component when there is a risk of interference in the silk screen printing in the direction of the component.
[0148] The present application also provides an electronic device 100, which includes a processor 130 and a memory 120. The memory 120 stores computer executable instructions, and when the computer executable instructions are executed by the processor 130, the method for adjusting the direction of the PCB component screen printing is implemented.
[0149] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by the processor 130, the method for adjusting the direction of the silk screen printing of the PCB components is implemented.
[0150] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0151] In addition, each functional module in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.
[0152] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0153] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for adjusting the direction of screen printing of PCB components, characterized in that: The method comprises: Get the package names and position numbers of all components on the PCB board; Based on the package names and corresponding bit numbers, determine the information table of all components in the PCB board; For each package name in the information table, determining whether the package name has a welding direction requirement; When the package name has a welding direction requirement, determining at least one bit number corresponding to the package name; Determine the package name corresponds to the indicated pin number; Based on each of the bit numbers, determining a component position of the component in the PCB; Determining the direction indication pin position of the component according to the position and the indication pin number; Based on the position of the direction indicating pin, generating a predetermined query area; When there is a component direction screen printing in the predetermined query area, determining whether there is an interference risk in the component direction screen printing; When there is a risk of interference in the direction of the silk screen printing of the components, the direction of the silk screen printing of the components is adjusted.
2. The method according to claim 1, characterized in that The step of determining, for each package name in the information table, whether the package name has a welding direction requirement comprises: For each of the package names in the information table, query a predetermined database, wherein the predetermined database contains a correspondence between each first preset package name and component information; Determine component information corresponding to the package name from the established database; Determine from the component information whether the package name has a soldering direction requirement.
3. The method according to claim 2, characterized in that The step of determining the pin number corresponding to the package name includes: querying the established database for the package name; Determine component information corresponding to the package name from the established database; Determine the indicated pin number corresponding to the package name from the component information.
4. The method according to claim 1, characterized in that The step of determining the information table of all components in the PCB board based on each package name and corresponding bit number includes: For each of the package names, query a predetermined information table, wherein the predetermined information table includes a correspondence between each package name and a bit number; When the bit number corresponding to the package name is found in the established information table, it is added to the bit number queue of the package name to form an information table; When the bit number corresponding to the package name is not found in the established information table, the package name and the corresponding bit number are added to the established information table to form an information table.
5. The method according to claim 1, characterized in that When there is a component direction screen printing in the predetermined query area, the step of judging whether there is an interference risk in the component direction screen printing comprises: When there is a component direction silk screen in the predetermined query area, determining whether there is another direction silk screen in the predetermined query area; When there are other directional silk screens in the predetermined query area, determining a first distance between the component directional silk screen and the other directional silk screens; When the first distance is less than a preset distance, it is determined that there is a risk of interference in the silk-screen printing of the component direction.
6. The method according to claim 1, characterized in that When there is a component direction screen printing in the predetermined query area, the step of judging whether there is an interference risk in the component direction screen printing comprises: When there is a component direction silk screen in the predetermined query area, determining the pads in the predetermined query area; Determine a second distance between the component direction silk screen and the pad; When the second distance is less than a preset distance, it is determined that there is an interference risk in the silk-screen printing of the component direction.
7. The method according to claim 1, characterized in that When there is a risk of interference in the silk screen printing of the component direction, the step of adjusting the silk screen printing of the component direction comprises: When there is a risk of interference in the silk screen printing of the component direction, moving the silk screen printing of the component direction; Determine whether there is a risk of interference in the silk screen printing direction of the components after the movement; When there is a risk of interference in the direction of the silk screen of the component after the movement, changing the shape of the silk screen in the direction of the component; Determine whether there is a risk of interference in the silk screen printing direction of the component after the shape is changed; When there is a risk of interference in the silk-screen printing of the direction of the component after the shape is changed, the radius of the silk-screen printing of the direction of the component after the shape is changed is reduced.
8. The method according to claim 1, characterized in that The method further comprises: The first ID information of each component direction silk screen in each predetermined query area is stored in the component direction silk screen table; Traversing all the silk screens on the PCB board to determine whether the silk screen is a directional silk screen; When the silk screen is directional silk screen, determining the second ID information of the silk screen; Matching the second ID information of the silk screen with each first ID information in the silk screen direction table of components; When there is no first ID information consistent with the second ID information in the component direction silk screen table, the silk screen is deleted.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, 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 8 are implemented.
Citation Information
Cited By
PCB screen printing configuration method and device and computer equipment
CN119767547A