XML-based PCB engineering drilling data manufacturing system

By exporting the PCB's material number information into XML files and processing it using XML to LINQ technology, the bottlenecks of the performance of existing PCB drilling programs, code complexity and high license costs are solved, and the effects of fast writing, smooth operation and low-cost operation are achieved.

CN119807472APending Publication Date: 2025-04-11AOSHIKANG TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411864768.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing PCB drilling and production programs, whether based on the built-in rules of pre-PCB engineering systems or implemented through API programming, have their own limitations and challenges, including performance bottlenecks, code complexity and high license costs.

Method used

Provides a PCB engineering drilling data production system based on XML. By exporting the PCB material number information into XML files and using XML to LINQ technology for efficient processing, it realizes the rapid writing, smooth operation and low-cost operation of the drilling production program.

Benefits of technology

The system significantly improves processing speed, simplifies the code structure, reduces the cost of license, improves the flexibility of the system and user's work efficiency, and solves the problems of performance bottlenecks, code complexity and high cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807472A_ABST
    Figure CN119807472A_ABST
Patent Text Reader

Abstract

The invention provides a PCB engineering drilling data manufacturing system based on XML. The PCB engineering drilling data manufacturing system comprises the following steps: S1, exporting data; s2, data processing and drill bit selection; s3, storing and importing a result; and after the drill bit is selected, the program stores the updated information as the XML file again, and the XML structure during storage is in accordance with the exported XML. According to the PCB engineering drilling data manufacturing system based on the XML, the material number of the PCB is exported as the XML file, efficient processing is carried out through the XML to LINQ technology, and therefore rapid writing, smooth running and low-cost operation of a drilling manufacturing program are achieved, the processing speed is greatly increased, the code structure is simplified, and the method has the advantages of being high in practicability and easy to popularize and use. And the whole process is independent of the original system, so that the License cost is effectively reduced, the flexibility of the system and the working efficiency of a user are improved, and a method which not only keeps the simplicity and usability of a built-in rule of a similar system, but also avoids the inherent performance bottleneck of the system is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of PCB processing and manufacturing, and in particular to an XML-based PCB engineering drilling data making system. Background Art

[0002] In the manufacturing process of PCB (printed circuit board), drilling material preparation (selecting drill bit, adding tool hole, adding tail hole, and arranging cutters) is a key step to ensure drilling accuracy and efficiency.

[0003] In the process of PCB manufacturing, drilling is one of the key steps, and choosing the appropriate drilling data production program is crucial to ensure the quality and efficiency of drilling. Traditional PCB drilling data programs mainly include two implementation methods: programs based on built-in rules of PCB pre-engineering systems (such as InPlan, etc.) and programs implemented through API programming. System built-in rules: These rules are simple and intuitive, and even people without programming experience can easily get started. However, for complex designs, due to the need to process a large number of loops and logical judgments, the calculation process is also slow because it involves a large number of background operations. At the same time, due to the limitations of the system itself, the code becomes lengthy and difficult to maintain; API programming implementation: With the increasing complexity of PCB design, many engineers turn to using API interfaces to write custom drilling production programs. This approach can utilize the powerful functions of high-level programming languages ​​​​(such as Python, C#, etc.) to meet the customization needs of specific projects. Although this method provides higher flexibility and performance, there are still problems such as limited saving speed and poor code readability, and it relies on the API of the original system, resulting in the need to occupy expensive license resources.

[0004] In the existing technology, the method of using API for custom development allows engineers to write special drilling production programs according to the needs of specific projects, thereby overcoming the limitations of the system's built-in rules when facing complex designs. Through API, engineers can directly access and operate the underlying data structure, optimize the drill selection logic, and improve processing speed and accuracy. In addition, the use of high-level programming languages ​​can also simplify code logic and enhance the maintainability and scalability of the program. However, even the best practice API development method still cannot completely solve problems such as performance bottlenecks, code complexity, and license costs. Therefore, although API development provides a certain degree of improvement for drilling production programs, it is not an ideal solution, especially when large-scale efficient processing and cost control are required. In summary, the existing PCB drilling production programs, whether based on the built-in rules of the PCB pre-engineering system (such as InPlan, etc.) or implemented through API programming, have their own limitations and challenges. The drilling production program either relies too much on the system's built-in rules, which limits flexibility; or relies on API, which improves flexibility but fails to completely solve performance and cost issues.

[0005] Therefore, it is necessary to provide an XML-based PCB engineering drilling data production system to solve the above technical problems. Summary of the invention

[0006] The present invention provides an XML-based PCB engineering drilling data production system, which solves the existing PCB drilling production program. Whether it is based on the built-in rules of the PCB pre-production engineering system (such as InPlan, etc.) or implemented through API programming, there are respective limitations and challenges. The drilling production program either relies too much on the built-in rules of the system, which limits flexibility; or relies on API, which improves flexibility but fails to completely solve the problems of performance and cost.

[0007] In order to solve the above technical problems, the present invention provides an XML-based PCB engineering drilling data production system, which includes the following steps: S1: data export; the user first completes the design work in the PCB design software, and then exports the material number information in the design into an XML file in a standard format;

[0008] S2: Data processing and drill bit selection; the exported XML file contains all the design information of the material number, such as surface treatment, number of layers, hole diameter, number of holes and tolerance. The programming language C# is used in combination with XML to LINQ technology to directly operate the XML file. The program efficiently traverses the XML nodes according to the pre-set rules and logic, selects the drill bit, adds tool holes and arranges the cutters, and realizes complex conditional judgment;

[0009] S3: Save and import results; after completing the drill bit selection, the program will save the updated information as an XML file again. The XML structure when saving is based on the exported XML.

[0010] Preferably, the data export in S1 includes the following steps: S11: Design closing and verification: After the user completes the layout, wiring and electrical rule checking of all design elements in the PCB design software, a final design integrity check is performed, including but not limited to whether all components are correctly placed and electrically connected, whether the lines of each layer meet the design specifications, and whether there are isolated copper foils and unconnected networks; run the design rule check (DRC) tool provided by the design software, carefully review the DRC report, and fix any illegal design problems to ensure that the design is in an exportable and correct state;

[0011] S12: XML export settings: Find the "Export" option in the file menu of the design software, select "XML format", and set the exported XML file path and file name according to the software prompts. Make sure the path is accessible and the file name has a clear identification, including the project name, version number and export date information, and configure the parameters for XML export in detail; for more complex attributes accessed with LINQ to XML, first save it to the system material number in the "Material Number Property Editing" interface of the design software, and then start the XML file export operation;

[0012] S13: Export execution and confirmation: Click the "Export" button to start the XML file export process. During the export process, the software will display a progress bar and related prompt information. After the export is completed, the system will automatically pop up a prompt box to inform that the export is successful, and display detailed information of the exported file, including file size and storage path. Users can quickly locate the exported XML file through the file browser, check whether the file exists and whether the size is as expected, and preliminarily confirm the correctness of the data export.

[0013] Preferably, the S2 data processing and drill bit selection includes the following steps: S21: XML data loading and parsing: using C# language to write a program, first creating an XML document object, reading the exported XML file through the file stream, and loading it into the XML Document Object Model (DOM) in the memory; using XML to LINQ technology, converting the XML data into a queryable LINQ data source;

[0014] S22: Implementation of drill bit selection logic: According to the pre-set drill bit selection rules, write conditional judgment statements in the LINQ query. The rules can be stored in an independent configuration file or database for flexible modification and expansion. When selecting the drill bit, calculate the number of drill bits required for each drilling. Considering the wear and spare requirements of the drill bit, a certain margin coefficient can be set. According to the expected number of holes to be drilled and the service life of the drill bit, calculate the total number of drill bits that need to be prepared and record it in the data structure for subsequent tool arrangement and tool management.

[0015] S23: Add tool holes and tool arrangement processing: Determine the location and type of tool holes, add tool hole information during XML data processing according to the size, shape and processing requirements of the PCB; perform tool arrangement operations, optimize the arrangement order of drill bits in the tool magazine according to the drill bit selection results and processing sequence; use greedy algorithms or other optimization algorithms to minimize the number of tool changes.

[0016] Preferably, the S3 result saving and importing comprises the following steps: S31: updating XML data: integrating the drill bit selection, adding tool holes and tool arrangement processing results into the original XML data structure, creating new XML elements and modifying the attributes of existing elements to store these result information, adding a "DrillToolSelection" element in XML, whose sub-elements include the drill bit model and quantity information corresponding to each drill hole; adding a "ToolHole" element to describe the position and aperture of the tool hole; adding a "ToolSequence" element to record the tool arrangement sequence; when updating XML data, following the XML syntax specifications and data structure requirements to ensure the integrity and correctness of the data, verifying the newly added and modified data, checking whether the drill bit model is within the legal range, and whether the tool hole position matches the PCB size;

[0017] S32: Save the result XML: Use the Save method of the XML document object to save the updated XML file to the specified path. During the saving process, confirm the correctness of the saving path and the writability of the file again. After saving, back up the saved XML file to prevent data loss or damage. You can create a "backup" folder in the same directory, copy the original XML file and the updated XML file to the folder respectively, and name them according to the date and version number to facilitate subsequent tracing and recovery.

[0018] S33: Import to PCB design software: Open the "Import" function in the PCB design software and select the saved result XML file; the software will automatically parse the data in the XML file and apply it to the drilling process; during the import process, the software will display a progress bar and related prompt information, such as the element type being imported and the amount of data imported.

[0019] Preferably, the software will display a progress bar and related prompt information including the design elements being processed and the amount of data exported.

[0020] Preferably, in the S21XML data loading and parsing, after loading the XML file using the XDocument.Load method, the XML elements and attributes are accessed through the LINQ query expression, var query = from element inXDocument.Load("filename.xml").Descendants("elementName")select element; a collection of specific elements can be easily obtained for subsequent processing.

[0021] Preferably, in the implementation of the S22 drill bit selection logic, a suitable drill bit model is selected according to the hole diameter range, and if the hole diameter is between 0.1-0.2 mm, a specific model of drill bit is selected.

[0022] Preferably, in the implementation of the S22 drill bit selection logic, the drilling requirements of different layers are taken into consideration. Different types of drill bits may be required for the surface layer and the inner layer. The drill bit selection is refined in the LINQ query in combination with the layer number information. When the number of surface layers is 1, a drill bit with better surface finish is selected; when the number of layers is greater than 1, the corresponding drill bit is selected according to the material properties and aperture requirements of the inner layer.

[0023] Preferably, in the S23 adding tool holes and the row cutter processing, when the PCB is rectangular, positioning tool holes are added at appropriate positions of the four corners and edges, and the hole diameter and depth are determined according to the requirements of the processing equipment.

[0024] Preferably, the S33 is imported into the PCB design software. After the import is completed, the system automatically pops up a prompt box to inform that the import is successful, and displays a summary of the imported data, including the number of holes and drill information; the user can view the final effect of the drilling in the design software, whether the drilling position and hole diameter marking are correct, and confirm the accuracy and completeness of the entire drilling process.

[0025] Compared with the related art, the XML-based PCB engineering drilling data production system provided by the present invention has the following beneficial effects:

[0026] The present invention provides an XML-based PCB engineering drilling data production system, which exports the material number of the PCB as an XML file and uses the XMLtoLINQ technology for efficient processing, thereby realizing the rapid writing, smooth operation and low-cost operation of the drilling production program. This method not only greatly improves the processing speed and simplifies the code structure, but also because the whole process is independent of the original system, it effectively reduces the license cost, improves the flexibility of the system and the work efficiency of users, and provides a method that not only maintains the simplicity and ease of use of similar system built-in rules, but also avoids its inherent performance bottleneck. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of a flow chart of a first embodiment of an XML-based PCB engineering drilling data production system provided by the present invention;

[0028] Figure 2 To complete the design schematic in the PCB design software;

[0029] Figure 3 Grid view for exporting XML documents;

[0030] Figure 4 A comparison diagram of using XML to LINQ and system rules;

[0031] Figure 5 This is a sample image of a drilling XML file to be imported;

[0032] Figure 6 Import the XML file back into the PCB design software as a schematic. DETAILED DESCRIPTION

[0033] The present invention will be further described below in conjunction with the accompanying drawings and implementation modes.

[0034] First embodiment

[0035] Please refer to Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 and Figure 6 ,in Figure 1 A schematic diagram of a flow chart of a first embodiment of an XML-based PCB engineering drilling data production system provided by the present invention; Figure 2 To complete the design schematic in the PCB design software; Figure 3 Grid view for exporting XML documents;

[0036] Figure 4 A comparison diagram of using XML to LINQ and system rules; Figure 5This is a sample image of a drilling XML file to be imported; Figure 6 Schematic diagram of re-importing XML files into PCB design software. A PCB engineering drilling data production system based on XML includes the following steps: S1: data export; the user first completes the design work in the PCB design software, and then exports the material number information in the design into a standard format XML file;

[0037] S2: Data processing and drill bit selection; the exported XML file contains all the design information of the material number, such as surface treatment, number of layers, hole diameter, number of holes and tolerance. The programming language C# is used in combination with XML to LINQ technology to directly operate the XML file. The program efficiently traverses the XML nodes according to the pre-set rules and logic, selects the drill bit, adds tool holes and arranges the cutters, and realizes complex conditional judgment;

[0038] S3: Save and import results; after completing the drill bit selection, the program will save the updated information as an XML file again. The XML structure when saving is based on the exported XML.

[0039] The working principle of the XML-based PCB engineering drilling data production system provided by the present invention is as follows:

[0040] When working, we first export the PCB material number as an XML file and process it using XML to LINQ technology, which simplifies the data operation process and significantly improves the operating efficiency of the drilling production program. The import and export process is completed within a few seconds, which improves the processing speed.

[0041] Using XML files as the processing basis avoids a large number of loops and redundant codes, making code writing simpler and easier to use, similar to the experience of built-in system rules, while maintaining the powerful functions of high-level programming languages ​​and simplifying the code structure.

[0042] The entire processing process is independent of the original system and does not rely on API, so there is no need to occupy expensive software licenses, which greatly reduces operating costs and reduces costs.

[0043] Users can complete the development and testing of drilling production programs without connecting to the original system, which greatly improves the flexibility and convenience of work, while also reducing dependence on specific software environments and enhancing flexibility and independence.

[0044] It solves the problems of low performance, complex code and high cost in the existing technology, and also provides a more efficient, flexible and economical new way for PCB drilling production program selection.

[0045] Compared with the related art, the XML-based PCB engineering drilling data production system provided by the present invention has the following beneficial effects:

[0046] The present invention provides an XML-based PCB engineering drilling data production system, which exports the material number of the PCB as an XML file and uses the XMLtoLINQ technology for efficient processing, thereby realizing the rapid writing, smooth operation and low-cost operation of the drilling production program. This method not only greatly improves the processing speed and simplifies the code structure, but also because the whole process is independent of the original system, it effectively reduces the license cost, improves the flexibility of the system and the work efficiency of users, and provides a method that not only maintains the simplicity and ease of use of similar system built-in rules, but also avoids its inherent performance bottleneck.

[0047] Second embodiment

[0048] Based on the XML-based PCB engineering drilling data production system provided by the first embodiment of the present application, the second embodiment of the present application proposes another XML-based PCB engineering drilling data production system. The second embodiment is only a preferred method of the first embodiment, and the implementation of the second embodiment will not affect the independent implementation of the first embodiment.

[0049] Specifically, the difference of the XML-based PCB engineering drilling data production system provided by the second embodiment of the present application is that, in the XML-based PCB engineering drilling data production system, the data export in S1 includes the following steps: S11: Design closing and verification: After the user completes the layout, wiring and electrical rule checking of all design elements in the PCB design software, the final design integrity verification is performed, and the inspection content includes but is not limited to whether all components are correctly placed and electrically connected, whether the lines of each layer meet the design specifications, and whether there are isolated copper foils and unconnected networks; run the design rule checking (DRC) tool provided by the design software, carefully review the DRC report, fix any illegal design problems, and ensure that the design is in an exportable and correct state;

[0050] S12: XML export settings: Find the "Export" option in the file menu of the design software, select "XML format", and set the exported XML file path and file name according to the software prompts. Make sure the path is accessible and the file name has a clear identification, including the project name, version number and export date information, and configure the parameters for XML export in detail; for more complex attributes accessed with LINQ to XML, first save it to the system material number in the "Material Number Property Editing" interface of the design software, and then start the XML file export operation;

[0051] S13: Export execution and confirmation: Click the "Export" button to start the XML file export process. During the export process, the software will display a progress bar and related prompt information. After the export is completed, the system will automatically pop up a prompt box to inform that the export is successful, and display detailed information of the exported file, including file size and storage path. Users can quickly locate the exported XML file through the file browser, check whether the file exists and whether the size is as expected, and preliminarily confirm the correctness of the data export.

[0052] The S2 data processing and drill bit selection includes the following steps: S21: XML data loading and parsing: Use C# language to write a program, first create an XML document object, read the exported XML file through the file stream, and load it into the XML document object model (DOM) in the memory; use XML to LINQ technology to convert the XML data into a queryable LINQ data source;

[0053] S22: Implementation of drill bit selection logic: According to the pre-set drill bit selection rules, write conditional judgment statements in the LINQ query. The rules can be stored in an independent configuration file or database for flexible modification and expansion. When selecting the drill bit, calculate the number of drill bits required for each drilling. Considering the wear and spare requirements of the drill bit, a certain margin coefficient can be set. According to the expected number of holes to be drilled and the service life of the drill bit, calculate the total number of drill bits that need to be prepared and record it in the data structure for subsequent tool arrangement and tool management.

[0054] S23: Add tool holes and tool arrangement processing: Determine the location and type of tool holes, add tool hole information during XML data processing according to the size, shape and processing requirements of the PCB; perform tool arrangement operations, optimize the arrangement order of drill bits in the tool magazine according to the drill bit selection results and processing sequence; use greedy algorithms or other optimization algorithms to minimize the number of tool changes.

[0055] The S3 result saving and importing comprises the following steps: S31: updating XML data:

[0056] Integrate the results of drill selection, tool hole addition and cutter arrangement into the original XML data structure, create new XML elements and modify the attributes of existing elements to store these result information, add the "DrillToolSelection" element in the XML, and its sub-elements include the drill model and quantity information corresponding to each drill hole; add the "ToolHole" element to describe the position and aperture of the tool hole; add the "ToolSequence" element to record the cutter arrangement sequence; when updating the XML data, follow the XML syntax specifications and data structure requirements to ensure the integrity and correctness of the data, verify the newly added and modified data, check whether the drill model is within the legal range, and whether the tool hole position matches the PCB size;

[0057] S32: Save the result XML: Use the Save method of the XML document object to save the updated XML file to the specified path. During the saving process, confirm the correctness of the saving path and the writability of the file again. After saving, back up the saved XML file to prevent data loss or damage. You can create a "backup" folder in the same directory, copy the original XML file and the updated XML file to the folder respectively, and name them according to the date and version number to facilitate subsequent tracing and recovery.

[0058] S33: Import to PCB design software: Open the "Import" function in the PCB design software and select the saved result XML file; the software will automatically parse the data in the XML file and apply it to the drilling process; during the import process, the software will display a progress bar and related prompt information, such as the element type being imported and the amount of data imported.

[0059] The software will display a progress bar and related prompts including the design elements being processed and the amount of data exported.

[0060] In the S21XML data loading and parsing, after using the XDocument.Load method to load the XML file, the XML elements and attributes are accessed through the LINQ query expression, var query = from element in XDocument.Load ("filename.xml").Descendants ("elementName") select element; a collection of specific elements can be easily obtained for subsequent processing.

[0061] In the implementation of the S22 drill bit selection logic, a suitable drill bit model is selected according to the hole diameter range. If the hole diameter is between 0.1-0.2 mm, a specific drill bit model is selected.

[0062] In the implementation of the S22 drill bit selection logic, the drilling requirements of different layers are taken into consideration. Different types of drill bits may be required for the surface layer and the inner layer. The drill bit selection is refined in the LINQ query in combination with the layer number information. When the number of surface layers is 1, a drill bit with better surface finish is selected; when the number of layers is greater than 1, the corresponding drill bit is selected according to the material properties and aperture requirements of the inner layer.

[0063] When the S23 tool hole adding and tool row processing is performed, when it is a rectangular PCB, positioning tool holes are added at appropriate positions of the four corners and edges, and the hole diameter and depth are determined according to the requirements of the processing equipment.

[0064] The S33 is imported into the PCB design software. After the import is completed, the system automatically pops up a prompt box to inform that the import is successful, and displays a summary of the imported data, including the number of holes and drill information; the user can check the final effect of the drilling in the design software, whether the drilling position and hole diameter marking are correct, and confirm the accuracy and completeness of the entire drilling process.

[0065] The working principle of the XML-based PCB engineering drilling data production system provided by the present invention is as follows:

[0066] When working, first of all, in the data export stage, the user first carefully completes all design details in the PCB design software, and ensures the accuracy and completeness of the design through strict design rule checks. Then, the material number information is exported in XML format according to the export function of the software. In this process, the export parameters can be finely configured and complex attributes can be pre-processed to ensure that the exported XML file contains comprehensive design information and meets the requirements of subsequent data processing.

[0067] In the data processing and drill bit selection stage, a program written in C# language is used to read the XML file and convert it into a data structure that can be efficiently queried with the help of XML toLINQ technology. By writing precise conditional judgment statements in the LINQ query, based on the preset drill bit selection rules and combining key factors such as hole diameter and number of layers, accurate selection of drill bits can be achieved. At the same time, considering the wear and processing efficiency of the drill bit, the required number of drill bits is calculated and reasonable tool hole addition and tool arrangement operations are performed. The entire process operates on XML data in memory, avoiding frequent interactions with the original design system and greatly improving processing speed and flexibility.

[0068] During the result saving and importing stage, the result information such as drill bit selection, tool hole addition and tool sequence generated during the data processing process is integrated back into the XML data structure, and strict data update and verification are carried out in accordance with the XML syntax specifications. The updated XML file is then saved to the specified path, and backup work is done to ensure data security. Finally, the XML file is re-imported into the PCB design software, and the software automatically parses and applies the data therein to complete the entire drilling processing flow, so that key information such as drilling position and drill bit use can be accurately presented and applied in the design software.

[0069] Compared with the related art, the XML-based PCB engineering drilling data production system provided by the present invention has the following beneficial effects:

[0070] The present invention provides a PCB engineering drilling data production system based on XML. The data export and import process is fast, and only takes a few seconds respectively. Compared with the traditional method of using API, the data transmission and preparation time is greatly shortened, and the whole drilling production process is accelerated. Except for the initial export and the final import, the rest of the operations in the whole drilling production process are independent of the PCB pre-production engineering system, which reduces the occupation of system resources, means that users no longer need to continue to hold expensive software licenses, reduces the cost of software procurement and use, improves the accuracy of drill bit selection and processing efficiency, reduces unnecessary loss and waste of drill bits, and reduces tool costs. At the same time, the efficient production process also reduces the time cost of manual intervention and debugging, and further The overall production cost is reduced step by step. Through precise XML data processing and drill selection algorithm, the most suitable drill model and parameters can be selected according to the specific design requirements of PCB (such as hole diameter, number of layers, surface treatment, etc.), ensuring the accuracy and quality of drilling, reducing drilling defects caused by improper drill selection, and improving the yield rate of products. In the process of data processing, all calculations and operations are strictly verified and optimized to ensure the rationality of the position of tool holes added and the efficiency of the tool sequence, thereby improving the stability and accuracy of the entire drilling process, which is conducive to improving the overall quality and performance of PCB products. Developers can more easily modify the drill selection rules and add new functional modules according to project requirements, which improves the reuse rate and flexibility of the code.

[0071] The above descriptions are merely 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 PCB engineering drilling data production system based on XML, characterized in that: The following steps are involved: S1: Data export: The user first completes the design work in the PCB design software, and then exports the material number information in the design into a standard format XML file; S2: Data processing and drill bit selection; the exported XML file contains all the design information of the material number, such as surface treatment, number of layers, hole diameter, number of holes and tolerance. The programming language C# is used in combination with XML to LINQ technology to directly operate the XML file. The program efficiently traverses the XML nodes according to the pre-set rules and logic, selects the drill bit, adds tool holes and arranges the cutters, and realizes complex conditional judgment; S3: Save and import results; after completing the drill bit selection, the program will save the updated information as an XML file again. The XML structure when saving is based on the exported XML.

2. According to the XML-based PCB engineering drilling data production system of claim 1, it is characterized in that: The data export in S1 includes the following steps: S11: Design closing and verification: After the user completes the layout, wiring and electrical rule checking of all design elements in the PCB design software, a final design integrity check is performed, including but not limited to whether all components are correctly placed and electrically connected, whether the lines of each layer meet the design specifications, and whether there are isolated copper foils and unconnected networks; Run the design rule check (DRC) tool that comes with the design software, carefully review the DRC report, and fix any design violations to ensure that the design is exportable and error-free. S12: XML export settings: Find the "Export" option in the file menu of the design software, select "XML format", and set the exported XML file path and file name according to the software prompts. Make sure the path is accessible and the file name has clear identification, including the project name, version number and export date information, and configure the parameters for XML export in detail; for more complex properties accessed with LINQ toXML, first save them to the system material number in the "Material Number Property Editing" interface of the design software, and then start the XML file export operation; S13: Export execution and confirmation: Click the "Export" button to start the XML file export process. During the export process, the software will display a progress bar and related prompt information; After the export is completed, the system automatically pops up a prompt box to inform that the export is successful and displays detailed information of the exported file, including the file size and storage path. Users can quickly locate the exported XML file through the file browser, check whether the file exists and whether the size is as expected, and preliminarily confirm the correctness of the data export.

3. The XML-based PCB engineering drilling data production system according to claim 1, characterized in that: S2 data processing and drill bit selection The method comprises the following steps: S21: XML data loading and parsing: using C# language to write a program, firstly creating an XML document object, reading the exported XML file through a file stream, and loading it into an XML document object model (DOM) in memory; using XML to LINQ technology, converting the XML data into a queryable LINQ data source; S22: Drill bit selection logic implementation: According to the pre-set drill bit selection rules, write conditional judgment statements in LINQ queries. The rules can be stored in an independent configuration file or database for flexible modification and expansion. When selecting drill bits, calculate the number of drill bits required for each drilling. Considering the wear and spare requirements of the drill bits, a certain margin coefficient can be set. According to the expected number of holes to be drilled and the service life of the drill bits, calculate the total number of drill bits to be prepared and record them in the data structure for subsequent tool arrangement and tool management. S23: Add tool holes and tool arrangement processing: Determine the location and type of tool holes, add tool hole information during XML data processing according to the size, shape and processing requirements of the PCB; perform tool arrangement operations, optimize the arrangement order of drill bits in the tool magazine according to the drill bit selection results and processing sequence; use greedy algorithms or other optimization algorithms to minimize the number of tool changes.

4. The XML-based PCB engineering drilling data production system according to claim 1, characterized in that: The S3 result saving and importing includes the following steps: S31: updating XML data: integrating the drill bit selection, tool hole addition and cutter arrangement processing results into the original XML data structure, creating new XML elements and modifying the attributes of existing elements to store these result information, adding a "DrillToolSelection" element in the XML, and its sub-elements include the drill bit model and quantity information corresponding to each drill hole; Add "ToolHole" element to describe the position and diameter of the tool hole; add "ToolSequence" element to record the tool sequence; when updating XML data, follow the XML syntax specification and data structure requirements to ensure the integrity and correctness of the data, verify the newly added and modified data, check whether the drill bit model is within the legal range, and whether the tool hole position matches the PCB size; S32: Save the result XML: Use the Save method of the XML document object to save the updated XML file to the specified path. During the saving process, confirm the correctness of the saving path and the writability of the file again; After saving, back up the saved XML file to prevent data loss or damage. You can create a "backup" folder in the same directory, copy the original XML file and the updated XML file to the folder, and name them according to the date and version number to facilitate subsequent tracing and recovery. S33: Import to PCB design software: Open the "Import" function in the PCB design software and select the saved result XML file; the software will automatically parse the data in the XML file and apply it to the drilling process; During the import process, the software will display a progress bar and relevant prompt information, such as the type of elements being imported and the amount of data imported.

5. The XML-based PCB engineering drilling data production system according to claim 2, characterized in that: The software will display a progress bar and related prompts including the design elements being processed and the amount of data exported.

6. The XML-based PCB engineering drilling data production system according to claim 3 is characterized in that: In the S21XML data loading and parsing, after using the XDocument.Load method to load the XML file, the XML elements and attributes are accessed through the LINQ query expression, var query = from element in XDocument.Load ("filename.xml"). Descendants ("elementName") select element; a collection of specific elements can be easily obtained for subsequent processing.

7. The XML-based PCB engineering drilling data production system according to claim 3, characterized in that: In the implementation of the S22 drill bit selection logic, a suitable drill bit model is selected according to the hole diameter range. If the hole diameter is between 0.1-0.2 mm, a specific drill bit model is selected.

8. The XML-based PCB engineering drilling data production system according to claim 3 is characterized in that: In the implementation of the S22 drill bit selection logic, the drilling requirements of different layers are taken into consideration. Different types of drill bits may be required for the surface layer and the inner layer. The drill bit selection is refined by combining the layer number information in the LINQ query. When the number of surface layers is 1, a drill bit with better surface finish is selected. When the number of layers is greater than 1, select the corresponding drill bit according to the material properties of the inner layer and the hole diameter requirements.

9. The XML-based PCB engineering drilling data production system according to claim 3, characterized in that: When the S23 tool hole adding and tool row processing is performed, when it is a rectangular PCB, positioning tool holes are added at appropriate positions of the four corners and edges, and the hole diameter and depth are determined according to the requirements of the processing equipment.

10. The XML-based PCB engineering drilling data production system according to claim 4, characterized in that: The S33 is imported into the PCB design software. After the import is completed, the system automatically pops up a prompt box to inform that the import is successful, and displays a summary of the imported data, including the number of holes and drill information; the user can check the final effect of the drilling in the design software, whether the drilling position and hole diameter marking are correct, and confirm the accuracy and completeness of the entire drilling process.