Adding method, device and equipment for bit number screen printing and medium
By using skill program and mouse operation in Allegro software, automatically attaching and placing PCB bit number silk screen printing, the problem of low efficiency and accuracy of adding bit number silk screen printing in the prior art is solved, and efficient and accurate bit number silk screen printing is achieved.
Patent Information
- Application Number
- CN202510118270.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2045-01-24
AI Technical Summary
The prior art has low efficiency and accuracy when adding PCB bit numbers to screen printing, and requires deletion or manual input of device bit numbers.
By starting the Allegro software, importing the PCB design file, displaying all devices, responding to the skill program call commands entered by the user, displaying option boxes, and obtaining placement parameters. The user clicks on the device and the target position with the mouse to achieve automatic attachment and placement of the bit number screen printing.
Improve the efficiency and accuracy of adding bit number silk screen printing. Users can complete the addition of bit number silk screen printing with just a simple mouse operation, reducing human errors.
Smart Images

Figure CN119584433A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of PCB design, and provides a method, device, equipment and medium for adding position number silk screen. Background Art
[0002] With the development of technology, more and more devices are used in electronic products. In order to more clearly identify the devices and facilitate assembly guidance, testing and debugging, modification and replacement, engineers need to add the device number silk screen to the printed circuit board (PCB). Due to the excessive number of devices and the limited size of the PCB board, if the number silk screen of all devices is printed on the PCB board, the PCB board will appear messy. Therefore, most engineers only print the number silk screen of some devices.
[0003] Due to the functional limitations of the software, there are currently two ways to add bit number silk screens to some devices. The first way is to display the bit number silk screens of all devices, and then the engineer deletes the unnecessary silk screen bit numbers one by one. This method requires deleting a lot of bit number silk screens, and the bit number silk screens of the remaining devices need to be adjusted one by one, resulting in low efficiency in adding bit number silk screens. The second way is not to add the default silk screen layer of the software, and use the Add Text command to add the bit number silk screens of some devices that need to be displayed one by one in the Ref Des Silkscreen layer. This method requires manually entering the bit numbers of the devices one by one, which is prone to errors and results in low accuracy in adding bit number silk screens. Summary of the invention
[0004] The present application provides a method, device, equipment and medium for adding position number silk screen, which are used to solve the problem of low efficiency and accuracy of adding position number silk screen in the prior art.
[0005] In a first aspect, a method for adding a position number silk screen is provided, comprising: Start Allegro software, import the design file of the printed circuit board, and display all the components of the printed circuit board; In response to a call instruction of a skill program input by a user, an option box is displayed; In response to a setting operation of the user in the option box, obtaining placement parameters; In response to a first click operation of a user on a target device among all the devices using a mouse, attaching a silk screen of a bit number of the target device to the mouse; In response to a second click operation of the user at the target position using the mouse, the position number silk screen of the target device is placed at the target position according to the placement parameters.
[0006] Optionally, the design file includes a netlist file; in response to a user clicking a target device among all the devices using a mouse for the first time, attaching a silk screen of a bit number of the target device to the mouse, comprises: In response to a first click operation performed by a user using a mouse, obtaining a click position of the mouse; According to the click position, determining a target device from all the devices; The bit number silk screen of the target device is read from the Ref Des Silkscreen layer, and the bit number silk screen of the target device is attached to the mouse; the bit number silk screens of all devices in the Ref Des Silkscreen layer are automatically generated after the netlist file is imported.
[0007] Optionally, the design file further includes a layout file; and determining the target device from all the devices according to the click position includes: Determining the packaging range of all the devices according to the layout file; The click position is compared with the packaging ranges of all the devices, and the device where the click position is located is determined as the target device.
[0008] Optionally, the step of reading the bit number silk screen of the target device from the Ref Des Silkscreen layer and attaching the bit number silk screen of the target device to the mouse includes: Determining whether the target device is a fake device; If not, the bit number silk screen of the target device is read from the Ref Des Silkscreen layer, and the bit number silk screen of the target device is attached to the mouse.
[0009] Optionally, determining whether the target device is a fake device includes: If the target device does not have a bit number attribute, the target device is determined to be a fake device; the bit number attributes of all devices are generated after the netlist file is imported; If the target device has a bit number attribute, it is determined that the target device is not a fake device.
[0010] Optionally, after determining whether the target device is a fake device, the method further includes: If so, a reminder message is displayed; the reminder message is used to indicate that the target device has no bit number.
[0011] Optionally, before starting the Allegro software, importing the design file of the printed circuit board, and displaying all the components of the printed circuit board, the method further includes: Encapsulate the skill program written by the user into a .il program file, and put the .il program file into the folder pointed to by the environment variable value; Use Notepad to open the allegro.ilinit file in the folder; Add an instruction to call the .il program file through the load function in the allegro.ilinit file.
[0012] In a second aspect, a device for adding a position number screen printing is provided, comprising: A startup module is used to start the Allegro software, import the design file of the printed circuit board, and display all the components of the printed circuit board; A display module, used for displaying an option box in response to a call instruction of a skill program input by a user; An acquisition module, used for acquiring placement parameters in response to a setting operation of a user in the option box; An attachment module, configured to attach a position number silk screen of the target device to the mouse in response to a first click operation of a user on a target device among all the devices through a mouse; The placement module is used to place the position number silk screen of the target device at the target position according to the placement parameters in response to a second click operation of the user at the target position through the mouse.
[0013] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method for adding position number silk screen as described in the second aspect.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and a processor executes the computer program to implement the method for adding a position number silk screen as described in the second aspect.
[0015] Compared with the prior art, the present invention has the following beneficial effects: The present application provides a method for adding a position number silk screen, the method comprising: starting Allegro software, importing a design file of a printed circuit board, and displaying all devices of the printed circuit board; in response to a call instruction of a skill program input by a user, displaying an option box; in response to a setting operation of the user in the option box, obtaining placement parameters; in response to a first click operation of the user on a target device among all devices through a mouse, attaching the position number silk screen of the target device to the mouse; in response to a second click operation of the user on the target position through the mouse, placing the position number silk screen of the target device at the target position according to the placement parameters.
[0016] In this application, the user only needs to add the position number silk screen of some devices. Compared with the first method in the prior art, there is no need to delete unnecessary position number silk screens from all position number silk screens one by one, which improves the efficiency of adding position number silk screens. And in this application, the user only needs to click the mouse. Compared with the second method in the prior art, there is no need to enter the position number of the device one by one, which improves the accuracy of adding position number silk screens. Subsequent engineers, designers or technicians can quickly and accurately identify and locate each device on the PCB based on the position number silk screen during manufacturing, testing and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0018] Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present application; Figure 2 A schematic diagram of a process for adding a position number silk screen provided in an embodiment of the present application; Figure 3 A schematic diagram of an interface for inputting a call instruction in a command box provided in an embodiment of the present application; Figure 4 A schematic diagram of the interface of the Options box provided in an embodiment of the present application; Figure 5 A schematic diagram of the interface of the reminder information provided in the embodiment of the present application; Figure 6 A partial code schematic diagram of a method for adding a position number silk screen provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of a device for adding a position number silk screen provided in an embodiment of the present application.
[0019] Markings in the figure: 101 - processor, 102 - communication bus, 103 - network interface, 104 - user interface, 105 - memory. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0021] The bit number silk screen refers to the unique symbol or number marked on the PCB to identify the electronic device. There are currently two ways to add bit number silk screen to some devices. The specific steps of the first method are as follows: S1.1. Add the default silkscreen layer (Ref Des Silkscreen) of the Allegro software to the layer corresponding to the gerber file to be output. When the gerber file is output, the position numbers of all devices in this layer will be printed on the PCB.
[0022] S1.2. Delete the silk screen of the position numbers of the components that do not need to be printed one by one.
[0023] S1.3. For the reserved device number silk screen, adjust the font format, rotate it to the appropriate direction, and move it to the appropriate position.
[0024] The specific steps of the second method are as follows: S2.1. Click Add Text command in Allegro software to bring up the silk screen printing instruction.
[0025] S2.2. Adjust the silkscreen font format, direction, placement layer, etc.
[0026] S2.3. Click at the appropriate location and enter the bit number of the device.
[0027] S2.4. Repeat S2.3 next to the next device until all required devices are added. Click Done on the right mouse button to end the command.
[0028] The first method requires a lot of bit number silk screens to be deleted, and the format, direction, and position of the bit number silk screens of the remaining devices need to be adjusted one by one, resulting in low efficiency in adding bit number silk screens. The second method requires manually entering the bit numbers of the devices one by one, which is prone to errors and results in low accuracy in adding bit number silk screens.
[0029] In view of this, the present application embodiment provides a method for adding a position number silk screen, which can be executed by a computer device, please refer to Figure 1 , which is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present application.
[0030] like Figure 1 As shown, the computer device may include: a processor 101, such as a central processing unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 104 may include a standard wired interface and a wireless interface. The network interface 103 may include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 105 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 105 may optionally also be a storage device independent of the aforementioned processor 101.
[0031] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0032] like Figure 1 As shown, the memory 105 as a storage medium may include an operating system, a network communication module, a user interface module, and a device for adding a bit number silk screen.
[0033] exist Figure 1 In the computer device shown, the network interface 103 is mainly used for data communication with the network server; the user interface 104 is mainly used for data interaction with the user; the processor 101 and the memory 105 in the computer device of the present invention can be set in the computer device, and the computer device calls the position number silk screen adding device stored in the memory 105 through the processor 101, and executes the position number silk screen adding method provided in the embodiment of the present application.
[0034] It should be noted that Figure 1The computer device shown is installed with Allegro software, which can execute the method for adding the position number silk screen provided in the embodiment of the present application. Allegro is a powerful, flexible and efficient electronic design software, which is widely used in various fields of PCB and package design. It has an interface that is convenient for users to conduct secondary development and a relatively complete development language library. Users can conduct secondary development according to their needs on this basis.
[0035] based on Figure 1 The computer equipment shown below Figure 2 The following is an introduction to a method of adding a position number silk screen.
[0036] S201. Start the Allegro software, import the design file of the printed circuit board, and display all the components of the printed circuit board.
[0037] In the specific implementation process, after starting the Allegro software, the user can manually import the design file of the printed circuit board. The Allegro software displays all the components of the printed circuit board according to the user's settings, such as resistors, capacitors, etc. Among them, the design file includes a netlist file and a layout file. The netlist file is a data file that describes the various components in the printed circuit board and the connection relationship between them. The layout file is a data file that describes the physical location information and package size of each component in the printed circuit board.
[0038] S202: In response to a skill program calling instruction input by a user, an option box is displayed.
[0039] In the specific implementation process, in order to enable the existing Allegro software to execute the method for adding the position number silk screen provided in the embodiment of the present application, the method for adding the position number silk screen provided in the embodiment of the present application is written as a skill program. The user can enter the call instruction of the skill program in the command box of the Allegro software and press the Enter key to confirm. The Allegro software will display the option box (Options), the filter box (Find), etc. The option box (Options) is used for the user to set the placement parameters of the position number silk screen, and the filter box (Find) is used for the user to set the filter conditions. By default, only Symbols is checked in the Find box, indicating that only the device can be selected at present to eliminate interference.
[0040] Please refer to Figure 3 , is a schematic diagram of an interface for inputting a call instruction in a command box provided in an embodiment of the present application, wherein the last line "ads" is a call instruction, and the remaining lines are historical operation records.
[0041] S203: In response to the user's setting operation in the option box, obtain placement parameters.
[0042] In the specific implementation process, there are a variety of parameters in the Options box for users to freely set, including the font placement layer, size, direction and position. When the user completes the settings in the Options box, the Allegro software can obtain the placement parameters of the bit number silk screen. Of course, the parameters in the Options box have default values. When the user does not change the parameters in the Options box, the Allegro software can obtain the default placement parameters.
[0043] Please refer to Figure 4 , which is a schematic diagram of the interface of the Options box provided in the embodiment of the present application. It can be seen that the placement layer is set to the Board Geometry Silkscreen layer by default, Rotae indicates the rotation angle of the font, Rotae=0 means that the font is not rotated, Text block indicates the font size, Text block=2 means that the font is set to size 2, Text just indicates the reference point for placing the silk screen, and Text just=Left means that the left edge of the font is used as the reference point when moving the font.
[0044] It should be noted that Text just can also be set to Center or Right. If Text just=Center, it means that the center line of the font is used as the reference point when moving the font. If Text just=Right, it means that the right edge of the font is used as the reference point when moving the font.
[0045] S204 , in response to a first click operation of the user on a target device among all the devices using a mouse, attaching a silk screen of a bit number of the target device to the mouse.
[0046] During the specific implementation process, the user can move the mouse and perform a first click operation on the target device, such as a single click operation, a double click operation, a triple click operation, a long press operation, etc. At this time, the Allegro software will attach the target device's bit number silk screen to the mouse.
[0047] S205 , in response to a second click operation of the user at the target position using the mouse, placing the target device's bit number silk screen at the target position according to the placement parameters.
[0048] During the specific implementation process, the user can move the mouse and perform a second click operation on the target position, such as a single-click operation, a double-click operation, a triple-click operation, a long press operation, etc. If the second click operation is a double-click operation, the position of the second mouse click is determined as the target position; if the second click operation is a triple-click operation, the position of the third mouse click is determined as the target position. At this time, the Allegro software will place the target device's position number silk screen at the target position according to the placement parameters.
[0049] The first click operation and the second click operation can be the same, for example, both the first click operation and the second click operation are single-click operations. Considering that if the first click operation and the second click operation are both set as single-click operations, after the user clicks the device, he or she may accidentally click the page again before finding the target position, causing the position number silk screen to be placed in the wrong position. Therefore, in a possible embodiment, the first click operation and the second click operation may also be different, for example, the first click operation is a single-click operation, and the second click operation is a double-click operation. Different click operations are bound to different tasks. This design can help users distinguish different operation intentions, thereby reducing unnecessary misoperations and improving the accuracy of operations. The system can effectively reduce the probability of misoperations.
[0050] It should be noted that after executing S201-S205, the user can continue to click on the next device and continue to add the position number silk screen of the next device. The Allegro software repeats S204-S205. Alternatively, the user can reset the parameters and add the position number silk screen of the next device. The Allegro software repeats S203-S205. After all the required devices are added, the user can click Done on the right button of the mouse to end the command and export the file with the position number silk screen of some devices added.
[0051] In order to implement the method for adding a bit number silk screen provided in the embodiment of the present application in the Allegro software, in a possible embodiment, before executing S201, the method may further include the following steps: Encapsulate the skill program written by the user into a .il program file, and put the .il program file into the folder pointed to by the environment variable value; use Notepad to open the allegro.ilinit file in the folder; add instructions to call the .il program file through the load function in the allegro.ilinit file.
[0052] In the specific implementation process, first, the user can write the method for adding the position number silk screen provided in the embodiment of the present application into a skill program, and encapsulate the skill program written by the user into a .il program file. The skill program needs to set a program call entry shortcut key to facilitate the Allegro software call. Secondly, you can check the environment variable value of the computer device, find the folder pointed to by the environment variable value, and put the .il program file into the folder pointed to by the environment variable value.
[0053] Next, find the allegro.ilinit file in the folder pointed to by the environment variable value. The allegro.ilinit file is the interface file. Use Notepad to open the allegro.ilinit file and add instructions to call the .il program file through the load function in the allegro.ilinit file, for example: load " / path / to / allegro / scripts / my_script.il", / path / to / allegro / scripts / my_script.il is the actual storage location of the .il program file. Finally, restart the Allegro software. When the user enters the call instruction of the skill program in the command box, the Allegro software will load all the instructions in the allegro.ilinit file and execute the load function to call the .il program file according to the folder path pointed to by the environment variable.
[0054] In the embodiment of the present application, the method for adding the position number silk screen provided in the embodiment of the present application is written based on the skill program and implanted into the Allegro software. The skill program is called by rewriting the system interface file so that the Allegro software can execute the skill program. Skill language is a high-level programming language based on C language and LISP language built into the Cadence Allegro software, which can make good use of the rich interactive functions of the Cadence Allegro software. Using the Skill language as an auxiliary tool for writing can greatly improve work efficiency.
[0055] In a possible embodiment, S204 may specifically include the following steps: In response to the first click operation performed by the user through the mouse, the mouse click position is obtained; according to the click position, the target device is determined from all devices; the position number silk screen of the target device is read from the Ref Des Silkscreen layer, and the position number silk screen of the target device is attached to the mouse; the position number silk screen of all devices in the Ref Des Silkscreen layer is automatically generated after the netlist file is imported.
[0056] In the specific implementation process, all devices on the printed circuit board include devices that require printing of position number silk screen (such as manually installed plug-in and interface devices, devices that need frequent debugging or replacement), and devices that do not need printing of position number silk screen (such as standard SMD devices that are automatically mounted by machines). Users can select any device as the target device that requires printing of position number silk screen.
[0057] If the first click operation is a double-click operation, the position of the second mouse click is determined as the mouse click position. If the first click operation is a triple-click operation, the position of the third mouse click is determined as the mouse click position. There are two ways to determine the target device from all devices based on the click position, which are introduced below.
[0058] The first method is to determine the center points of all devices according to the layout file in the design file; calculate the distance between the click position and the center points of all devices, and determine the device closest to the click position as the target device.
[0059] In the specific implementation process, the package positions and package sizes of all devices on the printed circuit board can be obtained according to the layout file, and the positions of the center points of all devices are calculated according to the package positions and package sizes of all devices. Then, the distance between the click position of the mouse and the center points of all devices is calculated to obtain multiple distances, and the device corresponding to the minimum value of the multiple distances is determined as the target device.
[0060] In the embodiment of the present application, for a circuit board with a simple design, large device spacing, and regular package shape, the method of determining the target device based on the device center point has higher calculation efficiency and can quickly find the target device.
[0061] The second method is to determine the package range of all devices according to the layout file in the design file; compare the click position with the package range of all devices, and determine the device at the click position as the target device.
[0062] In the specific implementation process, the package positions and package sizes of all devices on the printed circuit board can be obtained according to the layout file, and the package range of all devices can be calculated according to the package positions and package sizes of all devices. The click position of the mouse is compared with the package range of all devices. If the click position is within the package range of a certain device, the device is determined as the target device selected by the user. If the click position is not within the package range of all devices, no response is made.
[0063] In the embodiment of the present application, for circuit boards with complex designs, compact layouts, and irregular packaging, the method of determining the target device based on the packaging range is more accurate and can find the target device more accurately.
[0064] In a possible embodiment, in order to prevent the user from accidentally selecting the wrong device, after the target device is determined from all devices according to the click position, the target device can also be highlighted to provide clear visual feedback so that the user can confirm whether the highlighted target device is the device selected by the user. If not, the user can click again on the device to which the bit number silk screen is to be added.
[0065] In a possible embodiment, reading the bit number silk screen of the target device from the Ref Des Silkscreen layer and attaching the bit number silk screen of the target device to the mouse includes: Determine whether the target device is a fake device; if not, read the target device's bit number silk screen from the Ref Des Silkscreen layer, and attach the target device's bit number silk screen to the mouse.
[0066] In the specific implementation process, the dummy device is a device without a bit number, connection information, or network information, such as a screw hole, that is placed by the user as needed. After importing the netlist file of the printed circuit board, the Allegro software automatically generates the bit number silk screen of all devices in the RefDes Silkscreen layer. After determining that the target device is not a dummy device, the bit number silk screen of the target device is read from the RefDes Silkscreen layer and the bit number silk screen of the target device is attached to the mouse.
[0067] In a possible embodiment, if the target device does not have a bit number attribute, the target device is determined to be a fake device; the bit number attributes of all devices are generated after importing the netlist file; if the target device has a bit number attribute, the target device is determined not to be a fake device.
[0068] In the specific implementation process, after importing the netlist file of the printed circuit board, Allegro software automatically generates the bit number attributes of all devices. If the bit number attribute of the target device is read, it means that the target device is not a fake device. If the bit number attribute of the target device cannot be read, it means that the target device is a fake device. The bit number attribute is the inherent attribute of the device, such as R1 and SW2. Bit number silk screen refers to displaying the bit number attribute in the form of characters on a certain layer.
[0069] In a possible embodiment, after determining whether the target device is a fake device, the method further includes: if so, displaying a reminder message; the reminder message is used to indicate that the target device has no bit number.
[0070] In the specific implementation process, if the user clicks on a fake device, since the fake device has no bit number, a reminder message "Device name is empty!" will be displayed in the command box. Please refer to Figure 5 , which is a schematic diagram of the reminder information interface provided in an embodiment of the present application, wherein last pick: 3256.55 5044.48 indicates that the position coordinates of the last mouse click are (3256.55, 5044.48).
[0071] In the embodiment of the present application, the user is promptly reminded through reminder information that there is a problem of missing bit number of the target device, so as to avoid the user continuing the operation and wasting the user's time.
[0072] Figure 6 This is a partial code diagram of the method for adding a position number silk screen provided in an embodiment of the present application. It can be seen that the code mainly includes the following steps: 1. Use the axlSingleSelectPoint and car functions to obtain the properties of the target device clicked by the user.
[0073] 2. Use axlFormGetField to obtain the placement parameters set by the user.
[0074] 3. Use if(id->refdes != ""&&id->refdes != nil) to determine whether the target device is a fake device.
[0075] 4. Use axlDBCreateText(strcat("[" id->refdes "]")) to get the device bit number and create the bit number silk screen.
[0076] 5. Use axlDynamicsObject to attach the bit number silkscreen to the mouse.
[0077] 6. Use axlTransformObject to place the position number silk screen at the target location clicked by the user.
[0078] 7. Use the printf function to indicate that the device name is empty.
[0079] In summary, the embodiment of the present application provides a method for adding a position number silk screen. After setting up the environment, the user inputs a call command and only needs to click on the device to attach the position number silk screen of the device on the mouse. Then click on the appropriate position to place the silk screen position number of the device at that position. The user operation is simple and convenient to use. At the same time, the method of adding the position number silk screen is accurate and efficient.
[0080] Based on the same inventive concept, Figure 7 As shown, the embodiment of the present application also provides a device for adding a position number silk screen, including: The startup module is used to start the Allegro software, import the design file of the printed circuit board, and display all the components of the printed circuit board; A display module, used for displaying an option box in response to a call instruction of a skill program input by a user; An acquisition module, used for acquiring placement parameters in response to a setting operation of a user in an option box; An attachment module, used for attaching the target device's bit number silk screen to the mouse in response to a user's first click operation on the target device among all the devices through the mouse; The placement module is used to place the target device's bit number silk screen at the target location according to the placement parameters in response to a second click operation of the user at the target location through the mouse.
[0081] It should be noted that each module in the device for adding position number silk screen in this embodiment corresponds one by one to each step in the method for adding position number silk screen in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned method for adding position number silk screen, which will not be repeated here.
[0082] In addition, in one embodiment, the present application also provides a computer device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the aforementioned method of adding position number silk screen when executed by the processor.
[0083] In addition, in one embodiment, the present application also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the aforementioned method for adding a position number silk screen is implemented.
[0084] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0085] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0086] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0087] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0088] 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, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0089] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not indicate the advantages or disadvantages of the embodiments.
[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a disk, or an optical disk), and includes a number of instructions for a multimedia terminal device to execute the methods described in each embodiment of the present application.
[0091] The above are only preferred embodiments of the present application, and are not intended to 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 method for adding a position number screen printing, characterized in that: The method comprises: Start Allegro software, import the design file of the printed circuit board, and display all the components of the printed circuit board; In response to a call instruction of a skill program input by a user, an option box is displayed; In response to a setting operation of the user in the option box, obtaining placement parameters; In response to a first click operation of a user on a target device among all the devices using a mouse, attaching a silk screen of a bit number of the target device to the mouse; In response to a second click operation of the user at the target position using the mouse, the position number silk screen of the target device is placed at the target position according to the placement parameters.
2. The method for adding a position number screen printing according to claim 1, characterized in that: The design file includes a netlist file; in response to a user's first click operation on a target device among all the devices through a mouse, attaching a silk screen of a bit number of the target device to the mouse, comprising: In response to a first click operation performed by a user using a mouse, obtaining a click position of the mouse; According to the click position, determining a target device from all the devices; The bit number silk screen of the target device is read from the Ref Des Silkscreen layer, and the bit number silk screen of the target device is attached to the mouse; the bit number silk screens of all devices in the Ref Des Silkscreen layer are automatically generated after the netlist file is imported.
3. The method for adding a position number screen printing according to claim 2, characterized in that: The design file also includes a layout file; and determining a target device from all the devices according to the click position includes: Determining the packaging range of all the devices according to the layout file; The click position is compared with the packaging ranges of all the devices, and the device where the click position is located is determined as the target device.
4. The method for adding a position number screen printing according to claim 2, characterized in that: The step of reading the bit number silk screen of the target device from the Ref Des Silkscreen layer and attaching the bit number silk screen of the target device to the mouse comprises: Determining whether the target device is a fake device; If not, the bit number silk screen of the target device is read from the Ref Des Silkscreen layer, and the bit number silk screen of the target device is attached to the mouse.
5. The method for adding a position number screen printing according to claim 4, characterized in that: The determining whether the target device is a fake device includes: If the target device does not have a bit number attribute, the target device is determined to be a fake device; the bit number attributes of all devices are generated after the netlist file is imported; If the target device has a bit number attribute, it is determined that the target device is not a fake device.
6. The method for adding a position number screen printing according to claim 4, characterized in that: After determining whether the target device is a fake device, the method further includes: If so, a reminder message is displayed; the reminder message is used to indicate that the target device has no bit number.
7. The method for adding a position number screen printing according to claim 1, characterized in that: Before starting the Allegro software, importing the design file of the printed circuit board, and displaying all the components of the printed circuit board, the method further includes: Encapsulate the skill program written by the user into a .il program file, and put the .il program file into the folder pointed to by the environment variable value; Use Notepad to open the allegro.ilinit file in the folder; Add an instruction to call the .il program file through the load function in the allegro.ilinit file.
8. A device for adding position number silk screen printing, characterized in that: include: A startup module is used to start the Allegro software, import the design file of the printed circuit board, and display all the components of the printed circuit board; A display module, used for displaying an option box in response to a call instruction of a skill program input by a user; An acquisition module, used for acquiring placement parameters in response to a setting operation of a user in the option box; An attachment module, configured to attach a position number silk screen of the target device to the mouse in response to a first click operation of a user on a target device among all the devices through a mouse; The placement module is used to place the position number silk screen of the target device at the target position according to the placement parameters in response to a second click operation of the user at the target position through the mouse.
9. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method for adding a position number silk screen according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the method for adding a position number silk screen according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method for adjusting silk-screen placement of components of multi-site ATE items
CN114117997A
Test method and system based on PCB diagram, storage medium and equipment
CN114299077A
Information processing method and device of circuit board, storage medium and processor
CN115510797A
Bonding pad positioning method and device based on circuit board screen printing, medium and equipment
CN117596778A
Information processor and information processing method
JP1996181847A
Cited By
Method, device and equipment for checking no bit number of device and medium
CN119886049A
Word size determination method and device of PCB, equipment and medium
CN120087328A