Coordinate file generation method, device and storage medium
By obtaining the bit number and attribute information of printed circuit board devices, determining the target attribute information, and generating table format coordinate files, the problem of not being able to automatically generate coordinate files that match the production machine in the prior art is solved, and the work efficiency of designers is improved.
Patent Information
- Application Number
- CN202111212966.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-18
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-10-18
AI Technical Summary
Existing printed circuit board design software cannot generate table format coordinate files that match the production machine, resulting in designers having to make it manually, reducing work efficiency.
By obtaining the bit number and attribute information of the printed circuit board device, the target attribute information matching the production machine is determined, and a coordinate file in table format is generated based on the bit number and target attribute information.
It realizes automatic generation of table format coordinate files matching the production machine, which improves the work efficiency of designers and reduces the need for manual production.
Smart Images

Figure CN113962204B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printed circuit board design, and in particular to a method, device and storage medium for generating a coordinate file. Background Art
[0002] At present, the coordinate files that match the production machines of printed circuit board devices are in a tabular format. However, the existing printed circuit board design software does not support the generation of coordinate files of printed circuit board devices in a tabular format. In order to obtain the coordinate files of printed circuit board devices that can match the production machines, designers are usually required to manually create the coordinate files of printed circuit board devices in a tabular format, which greatly reduces the work efficiency of designers. Summary of the invention
[0003] The main purpose of the present invention is to provide a method, device and storage medium for generating a coordinate file, aiming to automatically generate a coordinate file of a printed circuit board device in a table format, thereby improving the work efficiency of designers.
[0004] To achieve the above object, the present invention provides a method for generating a coordinate file, the method comprising:
[0005] Obtaining the bit number of the printed circuit board component and the attribute information corresponding to the bit number;
[0006] Determining target attribute information matching a production machine of the printed circuit board device according to the attribute information;
[0007] A coordinate file of the printed circuit board component is generated according to the bit number and the target attribute information, wherein the coordinate file is in a table format and is used to control the production machine.
[0008] Optionally, the target attribute information includes at least one of coding information, height information, coordinate information, direction information, mounting surface information, plug-in or patch status information, plug-in or patch material information, and packaging information of the printed circuit board device.
[0009] Optionally, the step of generating a coordinate file of the printed circuit board device according to the bit number and the target attribute information includes:
[0010] Generate a text file of the printed circuit board device according to the bit number and the target attribute information;
[0011] The bit number and the target attribute information in the text file are imported into a table to obtain a coordinate file of the printed circuit board component.
[0012] Optionally, the step of importing the bit number and the target attribute information in the text file into a table to obtain a coordinate file of the printed circuit board device includes:
[0013] Obtaining the bit number and the arrangement of the target attribute information in the table;
[0014] The bit number and the target attribute information in the text file are imported into a table according to the arrangement method to obtain a coordinate file of the printed circuit board component.
[0015] Optionally, before the step of obtaining the arrangement of the bit number and the target attribute information in the table, the method further includes:
[0016] Opening a text file of the printed circuit board device;
[0017] Determining whether the text file includes the bit number and the target attribute information;
[0018] When the text file includes the bit number and the target attribute information, performing the step of obtaining the arrangement of the bit number and the target attribute information in the table;
[0019] When the text file does not include the bit number and the target attribute information, the step of generating the text file of the printed circuit board device according to the bit number and the target attribute information is returned to be executed.
[0020] Optionally, after the step of importing the bit number and the target attribute information in the text file into a table according to the arrangement mode to obtain the coordinate file of the printed circuit board device, the step further includes:
[0021] Opening a coordinate file of the printed circuit board device;
[0022] Determine whether the coordinate file includes the bit number and the target attribute information;
[0023] When the bit number and the target attribute information are included in the coordinate file, determining whether the arrangement of the bit number and the target attribute information is correct;
[0024] When the arrangement is correct, the coordinate file of the printed circuit board component is saved.
[0025] Optionally, when the coordinate file includes the bit number and the target attribute information, after the step of determining whether the arrangement of the target attribute information is correct, the step further includes:
[0026] When the arrangement is incorrect, return to the step of obtaining the position number and the arrangement of the target attribute information in the table.
[0027] In addition, to achieve the above-mentioned purpose, the present invention also provides a coordinate file generation device, the coordinate file generation device comprising:
[0028] An acquisition module, used to acquire the bit number of the printed circuit board component and the attribute information corresponding to the bit number;
[0029] A determination module, configured to determine target attribute information matching a production machine of the printed circuit board device according to the attribute information;
[0030] A generation module is used to generate a coordinate file of the printed circuit board device according to the bit number and the target attribute information, wherein the format of the coordinate file is a table format, and the coordinate file is used to control the production machine.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a coordinate file generation device, which includes a memory, a processor, and a coordinate file generation program stored in the memory and executable on the processor, and the coordinate file generation program, when executed by the processor, implements the steps of the coordinate file generation method described in any one of the above items.
[0032] In addition, to achieve the above purpose, the present invention also provides a readable storage medium, on which a coordinate file generation program is stored, and when the coordinate file generation program is executed by a processor, the steps of any of the above-mentioned coordinate file generation methods are implemented.
[0033] The present invention proposes a method, device and readable storage medium for generating a coordinate file, by obtaining the bit number of a printed circuit board device and the attribute information corresponding to the bit number, determining the target attribute information matching the production machine of the printed circuit board device according to the attribute information, and generating the coordinate file of the printed circuit board device according to the bit number and the target attribute information, wherein the format of the coordinate file is a table format, and the coordinate file is used to control the production machine of the printed circuit board. This scheme can automatically generate a coordinate file in a table format of the printed circuit board device, and the generated coordinate file can be directly connected to the production machine, without the need for designers to manually prepare the coordinate file in a table format, thereby improving the work efficiency of designers. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the hardware architecture of a coordinate file generation device involved in an embodiment of the present invention;
[0035] Figure 2is a flow chart of a first embodiment of a method for generating a coordinate file of the present invention;
[0036] Figure 3 is a flow chart of a second embodiment of a method for generating a coordinate file of the present invention;
[0037] Figure 4 It is a schematic diagram of the module structure of a coordinate file generation device involved in an embodiment of the present invention.
[0038] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0039] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0040] As an implementation, please refer to Figure 1 , Figure 1 is a schematic diagram of the hardware architecture of a coordinate file generation device involved in an embodiment of the present invention. Figure 1 As shown, the coordinate file generation device may include a processor 101, such as a CPU, a memory 102, and a communication bus 103, wherein the communication bus 103 is used to realize connection and communication between these modules.
[0041] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 As shown, the memory 102 as a computer-readable storage medium may include a program for generating a coordinate file; and the processor 101 may be used to call the program for generating a coordinate file stored in the memory 102, and perform the following operations:
[0042] Obtaining the bit number of the printed circuit board component and the attribute information corresponding to the bit number;
[0043] Determining target attribute information matching a production machine of the printed circuit board device according to the attribute information;
[0044] A coordinate file of the printed circuit board component is generated according to the bit number and the target attribute information, wherein the coordinate file is in a table format and is used to control the production machine.
[0045] Further, the processor 101 may be used to call a program for generating a coordinate file stored in the memory 102, and perform the following operations:
[0046] Generate a text file of the printed circuit board device according to the bit number and the target attribute information;
[0047] The bit number and the target attribute information in the text file are imported into a table to obtain a coordinate file of the printed circuit board component.
[0048] Further, the processor 101 may be used to call a program for generating a coordinate file stored in the memory 102, and perform the following operations:
[0049] Obtaining the bit number and the arrangement of the target attribute information in the table;
[0050] The bit number and the target attribute information in the text file are imported into a table according to the arrangement method to obtain a coordinate file of the printed circuit board component.
[0051] Further, the processor 101 may be used to call a program for generating a coordinate file stored in the memory 102, and perform the following operations:
[0052] Opening a text file of the printed circuit board device;
[0053] Determining whether the text file includes the bit number and the target attribute information;
[0054] When the text file includes the bit number and the target attribute information, performing the step of obtaining the arrangement of the bit number and the target attribute information in the table;
[0055] When the text file does not include the bit number and the target attribute information, the step of generating the text file of the printed circuit board device according to the bit number and the target attribute information is returned to be executed.
[0056] Further, the processor 101 may be used to call a program for generating a coordinate file stored in the memory 102, and perform the following operations:
[0057] Opening a coordinate file of the printed circuit board device;
[0058] Determine whether the coordinate file includes the bit number and the target attribute information;
[0059] When the bit number and the target attribute information are included in the coordinate file, determining whether the arrangement of the bit number and the target attribute information is correct;
[0060] When the arrangement is correct, the coordinate file of the printed circuit board component is saved.
[0061] Further, the processor 101 may be used to call a program for generating a coordinate file stored in the memory 102, and perform the following operations:
[0062] When the arrangement is incorrect, return to the step of obtaining the position number and the arrangement of the target attribute information in the table.
[0063] Please refer to Figure 2 , Figure 2 1 is a flow chart of a first embodiment of a method for generating a coordinate file according to the present invention. The method for generating a coordinate file comprises the following steps:
[0064] Step S10, obtaining the bit number of the printed circuit board component and the attribute information corresponding to the bit number;
[0065] In this embodiment, the execution subject of the coordinate file generation method is a coordinate file generation device. Optionally, the coordinate file generation device may be a terminal device, for example, the terminal device may be a computer with printed circuit board design software. Of course, in other embodiments, the coordinate file generation device may also be determined according to actual needs, which is not limited in this embodiment.
[0066] In this embodiment, the coordinate file generation device can obtain the position number (RefDesignator) of the printed circuit board component and the attribute information corresponding to the position number, wherein the attribute information includes but is not limited to the coding information (PartType) of the printed circuit board component, height information (Height), coordinate information (including X coordinate and Y coordinate), direction information (Orientation), mounting surface information (Side), plug-in or patch status information (SMD), plug-in or patch material information (PartDecal) and packaging information (Package), etc.
[0067] Optionally, after the designer has designed the printed circuit board through the printed circuit board design software on the coordinate file generation device, when it is necessary to generate the coordinate file of the printed circuit board device, the coordinate file generation device can receive a trigger instruction to generate the coordinate file of the printed circuit board device. After receiving the trigger instruction, the coordinate file generation device can obtain the bit number of the printed circuit board device, and then obtain the attribute information of the printed circuit board device corresponding to the bit number. It should be noted that the attribute information obtained through the bit number is all the attribute information of the printed circuit board device.
[0068] Optionally, the trigger instruction for the coordinate file generating device to generate the coordinate file of the printed circuit board device can be a preset click operation. For example, a function button is set on the function interface of the printed circuit board design software to trigger the coordinate file generating device to generate the coordinate file of the printed circuit board device. After the designer designs the printed circuit board through the printed circuit board design software, he can click the function button to trigger the coordinate file generating device to obtain the position number of the printed circuit board device, and then obtain all the attribute information of the printed circuit board device corresponding to the position number.
[0069] Step S20, determining target attribute information matching the production machine of the printed circuit board device according to the attribute information;
[0070] After obtaining the position number of the printed circuit board component and the attribute information corresponding to the position number, the coordinate file generating device can determine the target attribute information that matches the production machine of the printed circuit board component based on the attribute information, wherein the target attribute information refers to the attribute information of the printed circuit board component required by the production machine.
[0071] Optionally, the target attribute information may include at least one of coding information, height information, coordinate information, direction information, mounting surface information, plug-in or patch status information, plug-in or patch material information, and packaging information of the printed circuit board device.
[0072] Optionally, designers can pre-set the attribute information required by the production machine according to the needs of the production machine of the printed circuit board device. After obtaining the position number of the printed circuit board device and the attribute information corresponding to the position number, the coordinate file generation device can extract the attribute information that matches the production machine from the attribute information to obtain the target attribute information.
[0073] Step S30, generating a coordinate file of the printed circuit board component according to the bit number and the target attribute information, wherein the coordinate file is in a table format and is used to control the production machine.
[0074] After the coordinate file generating device determines the target attribute information matching the printed circuit board production machine based on the attribute information, it can generate the coordinate file of the printed circuit board component based on the target attribute information and the position number of the printed circuit board component. The format of the generated coordinate file is a table format, which is used to control the production machine.
[0075] Optionally, when the designed printed circuit board includes multiple printed circuit board components, the coordinate file generating device can obtain the position numbers and attribute information corresponding to the position numbers of all printed circuit board components at one time, determine the target attribute information matching the production machine based on the attribute information, and generate the coordinate file of the printed circuit board components based on the position numbers and the target attribute information.
[0076] Assuming that the target attribute information is the coding information, height information, coordinate information, direction information, mounting surface information, plug-in or patch status information, and plug-in or patch material information of the printed circuit board device, the generated coordinate file of the printed circuit board device can be shown in the following table.
[0077] RefDesignator PartType Height X Y Orientation Side SMD PartDecal C1 05025203 0.55 78.806 61.326 180 BOTTOM YES SC0402 C2 05020049 1.3 140.65 36.5 202 BOTTOM YES SC0603 C3 05020330 71.879 71.51 270 TOP YES SC0402 C4 05020330 104.11 78.506 180 BOTTOM YES SC0402
[0078] Optionally, after generating the coordinate file of the printed circuit board, the coordinate file generating device may import the coordinate file into a production machine of the printed circuit board device to control the production machine of the printed circuit board device.
[0079] In the technical solution provided by this embodiment, by obtaining the bit number of the printed circuit board device and the attribute information corresponding to the bit number, the target attribute information matching the production machine of the printed circuit board device is determined according to the attribute information, and the coordinate file of the printed circuit board device is generated according to the bit number and the target attribute information, wherein the format of the coordinate file is a table format, and the coordinate file is used to control the production machine. This solution can automatically generate a coordinate file in a table format of the printed circuit board device, and the generated coordinate file can be directly connected to the production machine, without the need for designers to manually make a coordinate file in a table format, thereby improving the work efficiency of designers.
[0080] Please refer to Figure 3 , Figure 3 is a flow chart of a second embodiment of the method for generating a coordinate file of the present invention. Based on the first embodiment, the step S30 includes:
[0081] Step S31, generating a text file of the printed circuit board device according to the bit number and the target attribute information;
[0082] In this embodiment, after the coordinate file generating device determines the target attribute information that matches the production machine of the printed circuit board device based on the attribute information, it can generate a text file of the printed circuit board device based on the position number and the target attribute information, wherein the text file is a coordinate file of the printed circuit board device in text format.
[0083] Assuming that the target attribute information is the coding information, height information, coordinate information, direction information, mounting surface information, plug-in or patch status information, and plug-in or patch material information of the printed circuit board device, the generated text file of the printed circuit board device is as follows.
[0084]
[0085] Step S32, importing the bit number and the target attribute information in the text file into a table to obtain a coordinate file of the printed circuit board device, wherein the coordinate file is in a table format and is used to control the production machine.
[0086] After acquiring the text file of the printed circuit board component, the coordinate file generating device can import the bit number and target attribute information of the printed circuit board component in the text file into the table to obtain the coordinate file of the printed circuit board component.
[0087] Optionally, the coordinate file generation device can obtain the arrangement of the bit number and the target attribute information in the table, import the bit number and the target attribute information in the text file into the table according to the arrangement, and obtain the coordinate file of the printed circuit board device, wherein the arrangement of the bit number and the target attribute information in the table can be bit number-coding information-height information-coordinate information-direction information-installation surface information-plug-in or patch status information-plug-in or patch material information, which can be specifically referred to the table in the first embodiment. In other embodiments, the arrangement of the bit number and the target attribute information in the table can be determined according to actual needs, and this embodiment does not limit this.
[0088] Optionally, after obtaining the text file of the printed circuit board device, the coordinate file generation device can open the text file of the printed circuit board device, determine whether the text file includes the bit number and target attribute information, and when the text file includes the bit number and target attribute information, obtain the arrangement of the bit number and target attribute information in the table; when the text file does not include the bit number and target attribute information, return to execute the step of generating the text file of the printed circuit board device according to the bit number and target attribute information. By opening the text file of the printed circuit board device to determine whether the text file includes the bit number and target attribute information of the printed circuit board device, it can be ensured that the generated text file of the printed circuit board device is normal and error-free.
[0089] Optionally, after the coordinate file generation device imports the bit number and target attribute information in the text file into the table according to the arrangement mode to obtain the coordinate file of the printed circuit board device, the coordinate file generation device can open the coordinate file of the printed circuit board device, determine whether the bit number and target attribute information are included in the coordinate file, and when the bit number and target attribute information are included in the coordinate file, determine whether the arrangement mode of the bit number and target attribute information is correct. When the arrangement mode is correct, save the coordinate file of the printed circuit board device; when the arrangement mode is incorrect, return to execute the step of obtaining the arrangement mode of the bit number and target attribute information in the table. By opening the coordinate file of the printed circuit board device to determine whether the coordinate file includes the bit number and target attribute information of the printed circuit board device, it can be ensured that the coordinate file of the generated printed circuit board device is normal and error-free.
[0090] In the technical solution provided by this embodiment, a text file of a printed circuit board device is generated according to the bit number and target attribute information, and the bit number and target attribute information in the text file are imported into a table to obtain a coordinate file of the printed circuit board device. Due to the obstacle of the data format, it is impossible to directly generate a coordinate file of a printed circuit board device according to the bit number and target attribute information of the printed circuit board. Therefore, this solution first generates a text file of the printed circuit board device, and then obtains the coordinate file of the printed circuit board device according to the text file, so that the coordinate file of the printed circuit board device can be accurately and conveniently obtained, while improving efficiency.
[0091] Based on the above embodiment, the present invention further provides a coordinate file generation device, the coordinate file generation device comprising:
[0092] The acquisition module 100 is used to acquire the bit number of the printed circuit board component and the attribute information corresponding to the bit number;
[0093] A determination module 200, configured to determine target attribute information matching a production machine of the printed circuit board device according to the attribute information;
[0094] The generation module 300 is used to generate a coordinate file of the printed circuit board device according to the bit number and the target attribute information, wherein the format of the coordinate file is a table format, and the coordinate file is used to control the production machine.
[0095] Based on the above embodiments, the present invention further provides a device for generating a coordinate file. The device for generating a coordinate file may include a memory, a processor, and a coordinate file generation program stored in the memory and executable on the processor. When the processor executes the coordinate file generation program, the steps of the coordinate file generation method described in any of the above embodiments are implemented.
[0096] Based on the above embodiments, the present invention further provides a readable storage medium on which a coordinate file generation program is stored. When the coordinate file generation program is executed by a processor, the steps of the coordinate file generation method described in any of the above embodiments are implemented.
[0097] 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.
[0098] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0099] 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 invention is essentially 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 ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (which can be a smart TV, mobile phone, computer, etc.) to execute the methods described in each embodiment of the present invention.
[0100] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for generating a coordinate file, characterized in that: The method for generating the coordinate file comprises: Obtaining the bit number of the printed circuit board component and the attribute information corresponding to the bit number; Determining target attribute information matching a production machine of the printed circuit board device according to the attribute information; Generate a text file of the printed circuit board device according to the bit number and the target attribute information; Obtaining the arrangement of the bit number and the target attribute information in the table, wherein the arrangement is: bit number, coding information, height information, coordinate information, direction information, mounting surface information, plug-in or patch status information, and plug-in or patch material information; Importing the bit number and the target attribute information in the text file into a table according to the arrangement mode to obtain a coordinate file of the printed circuit board device, wherein the coordinate file is in a table format and is used to control the production machine; Opening a coordinate file of the printed circuit board device; Determine whether the coordinate file includes the bit number and the target attribute information; When the bit number and the target attribute information are included in the coordinate file, determining whether the arrangement of the bit number and the target attribute information is correct; When the arrangement is correct, the coordinate file of the printed circuit board component is saved.
2. The method for generating a coordinate file according to claim 1, wherein: The target attribute information includes at least one of the coding information, height information, coordinate information, direction information, mounting surface information, plug-in or patch status information, plug-in or patch material information, and packaging information of the printed circuit board device.
3. The method for generating a coordinate file according to claim 1, wherein: Before the step of obtaining the arrangement of the bit number and the target attribute information in the table, the method further includes: Opening a text file of the printed circuit board device; Determining whether the text file includes the bit number and the target attribute information; When the text file includes the bit number and the target attribute information, performing the step of obtaining the arrangement of the bit number and the target attribute information in the table; When the text file does not include the bit number and the target attribute information, the step of generating the text file of the printed circuit board device according to the bit number and the target attribute information is returned to be executed.
4. The method for generating a coordinate file according to claim 1, wherein: After the step of determining whether the arrangement of the target attribute information is correct when the bit number and the target attribute information are included in the coordinate file, the step further includes: When the arrangement is incorrect, return to the step of obtaining the position number and the arrangement of the target attribute information in the table.
5. A coordinate file generation device, characterized in that: The coordinate file generating device comprises: An acquisition module, used to acquire the bit number of the printed circuit board component and the attribute information corresponding to the bit number; A determination module, configured to determine target attribute information matching a production machine of the printed circuit board device according to the attribute information; A generating module, used for generating a text file of the printed circuit board device according to the bit number and the target attribute information; Obtaining the arrangement of the bit number and the target attribute information in the table, wherein the arrangement is: bit number, coding information, height information, coordinate information, direction information, mounting surface information, plug-in or patch status information, and plug-in or patch material information; Importing the bit number and the target attribute information in the text file into a table according to the arrangement mode to obtain a coordinate file of the printed circuit board device, wherein the coordinate file is in a table format and is used to control the production machine; Opening a coordinate file of the printed circuit board device; Determine whether the coordinate file includes the bit number and the target attribute information; When the bit number and the target attribute information are included in the coordinate file, determining whether the arrangement of the bit number and the target attribute information is correct; When the arrangement is correct, the coordinate file of the printed circuit board component is saved.
6. A coordinate file generation device, characterized in that: The coordinate file generation device includes a memory, a processor, and a coordinate file generation program stored in the memory and executable on the processor. When the coordinate file generation program is executed by the processor, the steps of the coordinate file generation method according to any one of claims 1 to 4 are implemented.
7. A readable storage medium, characterized in that: The readable storage medium stores a coordinate file generation program, and when the coordinate file generation program is executed by a processor, the steps of the coordinate file generation method according to any one of claims 1 to 4 are implemented.