An engineering downloadable file generation method, device, equipment and medium
By identifying and converting the PID control design schematic diagram files in the nuclear instrumentation and control system, and using database mapping relationships to generate engineering configuration files, the problems of high error rate and long cycle caused by manual configuration are solved, realizing automated configuration and efficient engineering implementation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA NUCLEAR CONTROL SYST ENG
- Filing Date
- 2025-12-05
- Publication Date
- 2026-06-02
AI Technical Summary
In nuclear instrumentation and control systems, the design of PID control logic is complex. The existing manual configuration method results in a large workload and high error rate in engineering configuration implementation. Furthermore, as the PID control design schematic files provided by the design institute are upgraded and updated, manual logic analysis and modification are required repeatedly, leading to long implementation cycles and low efficiency.
This paper provides a method for generating downloadable engineering files. By identifying and converting the correctness and completeness of PID control design schematic drawings, it converts them into engineering configuration files using database mapping relationships. This supports automated configuration, optimizes function block layout, and reduces manual workload.
It has enabled automated configuration of nuclear instrumentation and control system engineering projects, improved the accuracy and quality of engineering configuration files, supported batch processing, shortened the implementation cycle, and reduced manual workload.
Smart Images

Figure CN121255734B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of nuclear power technology, and in particular to a method, apparatus, equipment and medium for generating downloadable engineering files. Background Technology
[0002] In nuclear instrumentation and control systems, PID control logic is highly complex, and the equipment information in the PID control design schematic file provided by the design institute cannot be matched one-to-one with the configuration modules in the engineering software. Currently, in the implementation of specific engineering projects, a manual configuration method is used to convert the PID control schematic into a downloadable engineering file. Specifically, engineers first outline the specific logic based on the PID control schematic, and then perform information matching and configuration by combining it with the existing configuration modules, i.e., logic function blocks, in the engineering software.
[0003] However, the development workload of manual configuration methods is large, and the error rate of the initial engineering version is high, resulting in heavy verification tasks. In addition, with the upgrade and update of the PID control design schematic files provided by the design institute, it is necessary to manually repeat the logic analysis and manual modification for each changed version. Therefore, the overall engineering configuration implementation cycle consumes a lot of manual time, resulting in low engineering configuration implementation efficiency and a long overall engineering configuration implementation cycle. Summary of the Invention
[0004] The purpose of this application is to provide a method, apparatus, equipment and medium for generating downloadable engineering files, which can improve the accuracy of generating downloadable engineering files in nuclear instrumentation and control systems, improve the efficiency of engineering configuration implementation, and shorten the engineering configuration implementation cycle.
[0005] To achieve the above objectives, this application provides the following solution:
[0006] Firstly, this application provides a method for generating downloadable project files, including:
[0007] Read the schematic diagram file of the PID control design to be converted;
[0008] Verify the correctness and completeness of the PID control design schematic diagram and drawing files to be converted;
[0009] If the PID control design schematic drawing file to be converted is correct and complete, the PID control design schematic drawing file to be converted is converted based on the mapping relationship between each symbol in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software, so as to obtain the engineering configuration file.
[0010] Optionally, the identification of the correctness and completeness of the PID control design schematic drawing file to be converted specifically includes:
[0011] Verify that the PID control design schematic drawing file to be converted is a complete Extensible Markup Language (XML) format file;
[0012] Verify whether the labels in the schematic diagram drawing file of the PID controller to be converted contain the specified label content;
[0013] Verify that the PID control design schematic drawing file to be converted is a schematic drawing file;
[0014] Verify whether the schematic diagram drawing file of the PID control design to be converted contains the corresponding content label for each symbol.
[0015] Optionally, the mapping relationship includes: function block conversion rules, variable conversion rules, constant conversion rules, and pin and connection conversion rules;
[0016] The process involves converting the PID control design schematic drawing file based on the mapping relationship between the symbols in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software. Specifically, this includes:
[0017] Based on the symbol attribute information of each symbol in the schematic diagram drawing file of the PID controller to be converted, the symbols in the schematic diagram drawing file are converted into corresponding symbols in the engineering configuration file through symbol conversion rules; and based on the predecessor, successor, and connection attributes of each symbol in the schematic diagram drawing file of the PID controller to be converted, the pin connections of each symbol in the schematic diagram drawing file are converted into the corresponding pin connections of the corresponding symbols in the engineering configuration file through pin and connection conversion rules; wherein, the symbol conversion rules include function block conversion rules, variable conversion rules, or constant conversion rules.
[0018] Optionally, the method for generating downloadable project files further includes:
[0019] If the PID control design schematic drawing file to be converted is incomplete or the conversion fails due to design problems, an error message indicating that the PID control design schematic drawing file to be converted is incomplete or the design has problems will be displayed on the front end and recorded in the log file.
[0020] Optionally, the method for generating downloadable project files further includes:
[0021] Optimize the layout of function blocks in the project configuration file.
[0022] Optionally, the optimized function block layout of the engineering configuration file specifically includes:
[0023] For overlapping first and second function blocks in the engineering configuration file, move the center of the covered first function block to the target coordinate point to move the first function block out of the coverage area of the second function block.
[0024] Secondly, this application provides an apparatus for generating downloadable engineering files, comprising:
[0025] The database is used to establish and store the mapping relationship between each symbol in the symbol library of PID control design schematic diagram drawing files and the symbols in the symbol library of engineering configuration software;
[0026] The recognition and conversion module is used for:
[0027] Read the schematic diagram file of the PID control design to be converted;
[0028] Verify the correctness and completeness of the PID control design schematic diagram and drawing files to be converted;
[0029] If the PID control design schematic drawing file to be converted is correct and complete, the PID control design schematic drawing file to be converted is converted based on the mapping relationship between each symbol in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software, so as to obtain the engineering configuration file.
[0030] Optionally, the project downloadable file generation device further includes:
[0031] The layout optimization module is used to optimize the functional block layout of the project configuration file;
[0032] The log notification module is used to visually represent error messages in the front-end log display area when the PID control design schematic drawing file to be converted is incomplete or the conversion fails due to design problems, and to record them in the log file.
[0033] Thirdly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of the method for generating downloadable files of any of the above-described projects.
[0034] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the method for generating downloadable engineering files as described above.
[0035] According to the specific embodiments provided in this application, the following technical effects are disclosed:
[0036] This application provides a method, apparatus, equipment, and medium for generating downloadable engineering configuration files. It can identify PID control design schematic diagram files of nuclear instrumentation and control systems and convert them into engineering configuration files recognizable by the control system. This enables automated configuration of PID control design schematic diagram files for nuclear instrumentation and control system engineering projects, avoiding errors that may occur with manual configuration and improving the accuracy and quality of engineering configuration files. It also supports batch processing of engineering configurations for multiple PID control design schematic diagram files, significantly reducing manual workload and shortening the overall engineering configuration implementation cycle while improving engineering configuration efficiency. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 A flowchart illustrating a method for generating downloadable engineering files according to an embodiment of this application;
[0039] Figure 2 This is a schematic diagram of a graphic label provided in an embodiment of this application;
[0040] Figure 3 A schematic diagram of a PID control design principle with the symbol name FF_CAL_3 provided for an embodiment of this application;
[0041] Figure 4 A schematic diagram of a PID control design principle with the symbol name FF_CAL_4 provided for an embodiment of this application;
[0042] Figure 5 A schematic diagram of the engineering configuration file symbol AMNEB provided in an embodiment of this application;
[0043] Figure 6 A schematic diagram of a PID control design principle with the symbol name FF_CAL_1 provided for an embodiment of this application;
[0044] Figure 7 A schematic diagram of a PID control design principle with the symbol name FF_CAL_2 provided for an embodiment of this application;
[0045] Figure 8 A schematic diagram of the STPEB diagram provided in an embodiment of this application;
[0046] Figure 9A schematic diagram of a PID control design principle, with the symbol name CAL_PID, provided for an embodiment of this application;
[0047] Figure 10 A schematic diagram of the engineering configuration file symbol PIDA provided in an embodiment of this application;
[0048] Figure 11 A schematic diagram of the functional modules of an engineering downloadable file generation device provided in an embodiment of this application;
[0049] Figure 12 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0051] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0052] In one exemplary embodiment, such as Figure 1 As shown, a method for generating downloadable project files is provided. This method is executed by a computer device, specifically by a terminal or other computer device alone, or by a terminal and a server together. In this embodiment, the method is described using a terminal device as an example, including the following steps 101 to 105. Wherein:
[0053] Step 101: Read the schematic diagram file of the PID control design to be converted.
[0054] In this embodiment, after the user inputs the PID control design schematic diagram file to be converted, the file is read for subsequent processing. The PID control design schematic diagram file is an XML file specifically used to show how the PID (proportional-integral-derivative) controller connects with other components in the controlled system (such as sensors, actuators, etc.), as well as the information flow and control logic of the entire control system, helping engineers understand the working principle of the control system.
[0055] Step 102: Verify the correctness and completeness of the schematic diagram drawing file of the PID control design to be converted.
[0056] In this embodiment, the correctness of the PID control design schematic drawing file to be converted is identified, that is, whether the read file is indeed a PID control design schematic drawing file. The integrity of the PID control design schematic drawing file to be converted is also identified, that is, whether the read PID control design schematic drawing file to be converted is complete. The correctness and integrity of the PID control design schematic drawing file to be converted can be verified through an XML parser or other XML file parsing function blocks.
[0057] Step 103: If the PID control design schematic diagram drawing file to be converted is correct and complete, based on the mapping relationship between each symbol in the symbol library of the PID control design schematic diagram drawing file read from the database and the symbols in the symbol library of the engineering configuration software, the PID control design schematic diagram drawing file to be converted is converted to obtain the engineering configuration file.
[0058] In this embodiment of the application, the project configuration file is an XML format file that can be read and edited in the project configuration software, i.e., a downloadable project file.
[0059] By implementing steps 101 to 103 above, the PID control design schematic diagram files of the nuclear instrumentation and control system can be identified and converted into engineering configuration files that can be recognized by the control system (such as a distributed control system (DCS)). This enables automated configuration of the PID control design schematic diagram files of the nuclear instrumentation and control system engineering project, avoiding errors that may be caused by manual configuration and improving the accuracy and quality of the engineering configuration files. It also supports batch processing of engineering configuration of multiple PID control design schematic diagram files, significantly reducing manual workload and shortening the overall engineering configuration implementation cycle while improving engineering configuration efficiency.
[0060] In another exemplary embodiment of this application, to improve the identification effect of the correctness and completeness of the schematic diagram drawing file of the PID control design to be converted, the above step 102 is replaced by the following steps 201 to 204. Wherein:
[0061] Step 201: Verify whether the PID control design schematic drawing file to be converted is a complete Extensible Markup Language (XML) format file.
[0062] Step 202: Verify whether each symbol label in the schematic diagram drawing file of the PID control design to be converted contains the specified label content.
[0063] In this embodiment of the application, verifying whether the tags of the PID control design schematic drawing file to be converted contain the prescribed tag content specifically includes:
[0064] Verify that the syntax format of the PID control design schematic drawing file to be converted is the XML file syntax format;
[0065] Verify that each symbol label in the schematic diagram drawing file of the PID control design to be converted contains attribute information such as symbol name and symbol safety level (safe or non-safe).
[0066] The syntax of the PID control design schematic drawing file to be converted must conform to the syntax of an XML file. The symbol tags in the XML file must contain attribute information such as the corresponding symbol name and the symbol's safety level (safe or non-safe). Therefore, if the syntax of the PID control design schematic drawing file to be converted is XML, and each symbol tag in the PID control design schematic drawing file contains attribute information such as the symbol name and the symbol's safety level (safe or non-safe), then it means that each symbol tag in the PID control design schematic drawing file to be converted contains the specified tag content.
[0067] The schematic diagram file for the PID controller to be converted is an XML file obtained by converting the schematic diagram. The control logic represented by the two is completely consistent. Since each symbol (device) in the schematic diagram file corresponds to a functional block in the schematic diagram, the schematic diagram file contains multiple symbol labels.
[0068] Step 203: Verify whether the schematic drawing file of the PID control design to be converted is a schematic drawing file.
[0069] In this embodiment of the application, the attributes of the drawing are identified in the specific tags of the XML file, and the attributes can be read to determine whether it is a schematic drawing file.
[0070] Step 204: Verify whether the schematic diagram drawing file of the PID control design to be converted contains the corresponding content of each symbol.
[0071] In this embodiment of the application, verifying whether the schematic diagram drawing file of the PID control design to be converted contains the corresponding content for each symbol specifically includes:
[0072] Verify that each symbol label contains attribute information such as symbol name, ID, control system to which it belongs, functional block category, and functional partition (security level partition or non-security level partition);
[0073] Verify whether the lines between symbols in the schematic diagram of the PID control design to be converted are missing;
[0074] Verify that the data types at both ends of the lines connecting each symbol in the PID control design schematic drawing file to be converted are consistent.
[0075] Symbol labels (such as)Figure 2 The symbol labels shown need to include the symbol name, ID, control system to which it belongs, functional block category, and functional partition (security level partition or non-security level partition) of the corresponding symbol.
[0076] The lines between symbols must not be missing, and the data types at both ends of the symbols must be consistent. Therefore, if each symbol label contains attribute information such as the symbol name, ID, control system to which it belongs, functional block category, and functional partition (safety level partition or non-safety level partition), and the lines between symbols are not missing, and the data types at both ends of each symbol connection are consistent, then it means that the PID control design schematic drawing file to be converted contains the corresponding content of each symbol.
[0077] In another exemplary embodiment of this application, the above-mentioned method for generating downloadable engineering files further includes steps 301 to 302 before converting the PID control design schematic drawing file to be converted, based on the mapping relationship between each symbol in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software. Wherein:
[0078] Step 301: Read the mapping relationship between each symbol in the pre-configured PID control design schematic diagram drawing file symbol library and the symbol library of the engineering configuration software from the database and store it in memory.
[0079] Step 302: Process the PID control design schematic diagram file to be converted into a memory object, and read the symbol attribute information, predecessor and successor, connection attributes and other information of each symbol in the PID control design schematic diagram file to be converted in order to convert the PID control design schematic diagram.
[0080] In this embodiment, "predecessor" and "successor" refer to the attribute information of the symbols connected to each symbol before it and the attribute information of the symbols connected to it after it. Connection attributes include, but are not limited to, the names, IDs, and pin connection information of the preceding and following symbols.
[0081] There is no specific restriction on the order of steps 301 and 302. You can execute step 301 first and then step 302, or you can execute step 302 first and then step 301, or you can execute steps 301 and 302 at the same time. You can set it according to your actual needs.
[0082] In another exemplary embodiment of this application, the mapping relationship between each symbol in the PID regulation design schematic drawing file symbol library configured in the database and the symbols in the engineering configuration software symbol library includes: variable conversion rules, constant conversion rules, function block conversion rules, and pin and connection conversion rules.
[0083] Accordingly, based on the mapping relationship between the symbols in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software, the PID control design schematic drawing file to be converted is converted, specifically including:
[0084] Based on the symbol attribute information of each symbol in the schematic diagram drawing file of the PID controller to be converted, the symbols in the schematic diagram drawing file are converted into corresponding symbols in the engineering configuration file through symbol conversion rules; and based on the predecessor, successor, and connection attributes of each symbol in the schematic diagram drawing file of the PID controller to be converted, the pin connections of each symbol in the schematic diagram drawing file are converted into the corresponding pin connections of the corresponding symbols in the engineering configuration file through pin and connection conversion rules; wherein, the symbol conversion rules include function block conversion rules, variable conversion rules, or constant conversion rules.
[0085] In this embodiment of the application, the database stores the conversion rules of each symbol in the symbol library of the PID control design schematic diagram drawing file. For example, the corresponding symbol is converted into the corresponding function block of the engineering configuration file through the function block conversion rule, the corresponding symbol is converted into a specific constant through the constant conversion rule, or the corresponding symbol is converted into a specific variable through the variable conversion rule.
[0086] The database also stores the names of the symbols in the PID control design schematic drawing file and their corresponding pin information, as well as the names of the symbols in the corresponding engineering configuration file and their corresponding pin information. This allows the database to obtain the corresponding pin information of the engineering configuration file symbols based on the pin information of each symbol in the PID control design schematic drawing file to be converted, and then connect the pins according to the corresponding pin information of the engineering configuration file symbols.
[0087] A PID control schematic diagram contains three parts: a handheld controller, a setpoint, and the PID control logic. The information contained in the PID control logic varies under different operating conditions, making it highly complex and subject to numerous classifications. Different permutations and combinations in the PID control schematic diagram to be converted will produce different results during the conversion process. Different conversion rules need to be formulated based on different classifications, and then the conversion should be performed according to these rules. For example, if the PID control schematic diagram to be converted contains function block A+B, it will be converted to function block A. Or, if the PID control schematic diagram to be converted contains function block A+C, it will be converted to function block C.
[0088] For example, the schematic diagrams of PID control design principles named FF_CAL_3, FF_CAL_4, S_CAL_4_MAU_LOC, S_CAL_4_INDI_LOC, and S_CAL_4_TRANS_LOC are converted into the corresponding engineering configuration file symbol AMNEB according to preset mapping rules, representing manual control adjustment. Similarly, the schematic diagrams of PID control design principles named FF_CAL_1 and FF_CAL_2 are converted into the corresponding engineering configuration file symbol STPEB according to preset mapping rules, representing setpoint adjustment. Finally, the schematic diagram of PID control design principles named CAL_PID is converted into the corresponding engineering configuration file symbol PIDA according to preset mapping rules, representing PID self-tuning.
[0089] For the PID control design schematic diagram drawing file symbol named FF_CAL_ANALOG SIGNAL GENERATOR, convert it into the corresponding constant according to the preset mapping rules.
[0090] For example, Figure 3 The schematic diagram of the PID control design shown is named FF_CAL_3 in the XML file. Figure 4 The schematic diagram of the PID control design shown is named FF_CAL_4 in the XML file. According to the preset mapping rules, it is converted to... Figure 5 The engineering configuration file symbol AMNEB. Figure 6 The schematic diagram of the PID control design shown is named FF_CAL_1 in the XML file. Figure 7 The schematic diagram of the PID control design shown is named FF_CAL_2 in the XML file. According to the preset mapping rules, it is converted to... Figure 8 The engineering configuration file symbol STPEB. Figure 9 The schematic diagram of the PID control design shown is named CAL_PID in the XML file. According to the preset mapping rules, it is converted to... Figure 10 The engineering configuration file symbol PIDA.
[0091] In another exemplary embodiment of this application, the above-mentioned method for generating downloadable files further includes:
[0092] For PID control design schematic diagram files that cannot be fully recognized, an error log is generated and specific error information is marked.
[0093] For example, it can identify error messages in schematic files such as unknown symbols, missing connections, symbols with the same name, and mismatched pin data types.
[0094] The testing and verification process shows that the method of this application embodiment can correctly identify more than 95% of drawings, has the characteristics of full functionality and ease of use, and can be well applied to the engineering configuration implementation of nuclear instrumentation and control systems.
[0095] In another exemplary embodiment of this application, the above-described method for generating downloadable project files further includes:
[0096] Step 401: If the PID control design schematic drawing file to be converted is incomplete or the conversion fails due to design problems (such as missing wiring, mismatched pin input / output types, duplicate devices, etc.), the error information of the incomplete PID control design schematic drawing file to be converted or the design problems (such as missing wiring, mismatched pin input / output types, duplicate function blocks, etc.) will be visualized in the front-end log display area and recorded in the log file.
[0097] In another exemplary embodiment of this application, the above-described method for generating downloadable project files further includes:
[0098] Step 501: If the conversion fails due to design problems (such as missing wiring, mismatched pin input / output types, duplicate devices, etc.), mark the conversion failure status in the conversion result list.
[0099] In another exemplary embodiment of this application, since the size and layout of the symbols in the schematic diagram drawing file of the PID control design to be converted do not correspond one-to-one with the size and layout of the symbols in the engineering configuration file, in order to ensure that the layout of the symbols in the engineering configuration file is reasonable and correct, and that the overall layout of the functional blocks in the engineering configuration file is consistent with the relative position of the reference drawing, while ensuring that the functional blocks in the converted drawing do not overlap, the above-mentioned engineering downloadable file generation method further includes, before step 104:
[0100] Step 601: Optimize the function block layout of the project configuration file.
[0101] In another exemplary embodiment of this application, step 601 specifically includes:
[0102] Step 701: For the first and second functional blocks that overlap in the project configuration file, move the center of the covered first functional block to the target coordinate point so as to move the first functional block out of the coverage area of the second functional block.
[0103] In this embodiment of the application, when the center of the first functional block is moved to the target coordinate point, the first functional block and the second functional block no longer overlap.
[0104] In another exemplary embodiment of this application, the movement of the center of the covered first functional block to the target coordinate point specifically includes:
[0105] Step 7011: Calculate the offset based on the center coordinates of the first and second function blocks and their sizes.
[0106] Step 7012: Based on the above offset, move the center of the first functional block to the target coordinate point.
[0107] In another exemplary embodiment of this application, the above-mentioned method for generating downloadable files further includes:
[0108] Step 801: Visualize the accuracy of the converted files and the location and cause of errors.
[0109] In this embodiment, the accuracy rate is calculated based on the ratio of the number of successfully converted drawings to the total number of converted drawings. The log display area of the software interface shows the location and cause of errors (error information).
[0110] In another exemplary embodiment of this application, the above-mentioned method for generating downloadable files further includes:
[0111] Step 104: Import the project configuration file into the configuration software and compile and download it directly to the controller.
[0112] In this embodiment of the application, the logical relationship and connection relationship between the schematic diagram in the generated engineering configuration file and the schematic diagram in the drawing file of the PID control design to be converted are the same.
[0113] Based on the same inventive concept, this application also provides an apparatus for generating downloadable engineering files to implement the above-described method for generating downloadable engineering files. The solution provided by this apparatus is similar to the solution described in the above-described method. Therefore, the specific limitations of one or more embodiments of the apparatus for generating downloadable engineering files provided below can be found in the limitations of the method for generating downloadable engineering files described above, and will not be repeated here.
[0114] In one exemplary embodiment, such as Figure 11 As shown, a downloadable engineering file generation device 90 is provided, comprising:
[0115] Database 901 is used to establish and store the mapping relationship between each symbol in the symbol library of the PID control design schematic drawing file and the symbol library of the engineering configuration software;
[0116] The recognition and conversion module 902 is used for:
[0117] Read the schematic diagram file of the PID control design to be converted;
[0118] Verify the correctness and completeness of the PID control design schematic diagram and drawing files to be converted;
[0119] If the PID control design schematic drawing file to be converted is correct and complete, the PID control design schematic drawing file to be converted is converted based on the mapping relationship between each symbol in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the engineering configuration file library, thus obtaining the engineering configuration file.
[0120] In another exemplary embodiment of this application, the identification and conversion module 902 described above is further configured to:
[0121] Verify that the PID control design schematic drawing file to be converted is a complete Extensible Markup Language (XML) format file;
[0122] Verify that each symbol label in the schematic drawing file of the PID control design to be converted contains the specified label content;
[0123] Verify that the PID control design schematic drawing file to be converted is a schematic drawing file;
[0124] Verify whether the schematic diagram drawing file of the PID controller to be converted contains the corresponding content for each symbol.
[0125] In this embodiment of the application, the verification of whether the schematic diagram drawing file of the PID control design to be converted is a complete Extensible Markup Language (XML) format file, the verification of whether each symbol tag of the schematic diagram drawing file of the PID control design to be converted contains the specified tag content, the verification of whether the schematic diagram drawing file of the PID control design to be converted is a schematic diagram drawing file, and the verification of whether the schematic diagram drawing file of the PID control design to be converted contains the corresponding content of each symbol are detailed in the description of the above method embodiments, and will not be repeated here.
[0126] In another exemplary embodiment of this application, the identification and conversion module 902 described above is further configured to:
[0127] The mapping relationship between each symbol in the pre-configured PID control design schematic diagram drawing file symbol library and the symbol library of the engineering configuration software is read from the database and stored in memory.
[0128] Based on the symbol attribute information of each symbol in the schematic diagram drawing file of the PID controller to be converted, the symbols in the schematic diagram drawing file are converted into corresponding symbols in the engineering configuration file through symbol conversion rules; and based on the predecessor, successor, and connection attributes of each symbol in the schematic diagram drawing file of the PID controller to be converted, the pin connections of each symbol in the schematic diagram drawing file are converted into the corresponding pin connections of the corresponding symbols in the engineering configuration file through pin and connection conversion rules; wherein, the symbol conversion rules include function block conversion rules, variable conversion rules, or constant conversion rules.
[0129] In this embodiment of the application, the database stores the conversion rules of each symbol in the symbol library of the PID control design schematic diagram drawing file. For example, the corresponding symbol is converted into the corresponding function block of the engineering configuration file through the function block conversion rule, the corresponding symbol is converted into a specific constant through the constant conversion rule, or the corresponding symbol is converted into a specific variable through the variable conversion rule.
[0130] The database also stores the names of the symbols in the PID control design schematic drawing file and their corresponding pin information, as well as the names of the symbols in the corresponding engineering configuration file and their corresponding pin information. This allows the database to obtain the corresponding pin information of the engineering configuration file symbols based on the pin information of each symbol in the PID control design schematic drawing file to be converted, and then connect the pins according to the corresponding pin information of the engineering configuration file symbols.
[0131] A PID control schematic diagram contains three parts: a handheld controller, a setpoint, and the PID control logic. The information contained in the PID control logic varies under different operating conditions, making it highly complex and subject to numerous classifications. Different permutations and combinations in the PID control schematic diagram to be converted will produce different results during the conversion process. Different conversion rules need to be formulated based on different classifications, and then the conversion should be performed according to these rules. For example, if the PID control schematic diagram to be converted contains function block A+B, it will be converted to function block A. Or, if the PID control schematic diagram to be converted contains function block A+C, it will be converted to function block C.
[0132] For example, the schematic diagrams of PID control design principles named FF_CAL_1 and FF_CAL_2 are converted into the corresponding engineering configuration file symbol STPEB according to the preset mapping rules, representing setpoint adjustment; the schematic diagrams of PID control design principles named FF_CAL_3, FF_CAL_4, S_CAL_4_MAU_LOC, S_CAL_4_INDI_LOC, and S_CAL_4_TRANS_LOC are converted into the corresponding engineering configuration file symbol AMNEB according to the preset mapping rules, representing manual control adjustment; and the schematic diagram of PID control design principles named CAL_PID is converted into the corresponding engineering configuration file symbol PIDA according to the preset mapping rules, representing PID self-tuning.
[0133] For example, for the PID control design schematic diagram drawing file symbol named FF_CAL_ANALOG SIGNAL GENERATOR, it is converted into the corresponding constant according to the preset mapping rules.
[0134] In another exemplary embodiment of this application, the above-described engineering downloadable file generation device 90 further includes:
[0135] The layout optimization module 903 is used to optimize the layout of function blocks in the project configuration file.
[0136] In another exemplary embodiment of this application, the layout optimization module 903 is further configured to:
[0137] For overlapping first and second function blocks in the engineering configuration file, the center of the covered first function block is moved to the target coordinate point to remove the first function block from the coverage area of the second function block. In this embodiment, when the center of the first function block is moved to the target coordinate point, the first and second function blocks no longer overlap.
[0138] In another exemplary embodiment of this application, the layout optimization module 903 is further configured to:
[0139] The offset is calculated based on the center coordinates of the first and second function blocks, combined with their sizes.
[0140] Based on the aforementioned offset, the center of the first functional block is moved to the target coordinate point.
[0141] In another exemplary embodiment of this application, the above-described engineering downloadable file generation device 90 further includes:
[0142] The log prompt module 904 is used to generate error logs and mark specific error information for PID control design schematic diagram files that cannot be fully recognized.
[0143] In another exemplary embodiment of this application, the log notification module 904 described above is further configured to:
[0144] When the conversion fails due to incomplete schematic diagram files of the PID controller design to be converted or due to design problems, error messages indicating incomplete characterization files or design problems will be recorded in the log file.
[0145] In another exemplary embodiment of this application, the above-described engineering downloadable file generation device 90 further includes:
[0146] The visualization module is used to visualize error messages in the front-end log display area, indicating that the PID control design schematic drawing file is incomplete or that there are design problems.
[0147] In another exemplary embodiment of this application, the identification and conversion module 902 described above is further configured to:
[0148] If the conversion fails due to design problems (such as missing wiring, mismatched pin input / output types, duplicate devices, etc.), the conversion failure status will be marked in the conversion result list.
[0149] In another exemplary embodiment of this application, the visualization module described above is further used for:
[0150] Visualize the accuracy of the converted files and the location and cause of errors.
[0151] In this embodiment, the accuracy rate is calculated based on the ratio of the number of successfully converted drawings to the total number of converted drawings. The log display area of the software interface shows the location and cause of errors (error information).
[0152] In another exemplary embodiment of this application, the identification and conversion module 902 described above is further configured to:
[0153] Import the engineering configuration file into the configuration software and compile and download it directly to the controller.
[0154] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 12As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data for generating downloadable project files. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for generating downloadable project files.
[0155] Those skilled in the art will understand that Figure 12 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0156] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0157] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0158] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0160] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0161] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0162] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0163] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for generating downloadable project files, characterized in that, The method for generating downloadable files for the project includes: Read the schematic diagram file of the PID control design to be converted; Identify the correctness and completeness of the schematic diagram drawing file of the PID control design to be converted, including verifying the symbol security classification, functional block classification, and functional partition of each symbol, wherein the functional partition includes security level partition or non-security level partition; If the PID control design schematic drawing file to be converted is correct and complete, the PID control design schematic drawing file to be converted is converted based on the mapping relationship between each symbol in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software, so as to obtain the engineering configuration file. If the PID control design schematic drawing file to be converted is incomplete or the conversion fails due to design problems, the error message indicating incomplete representation or design problems will be displayed on the front end and recorded in the log file. The mapping relationship includes function block conversion rules, variable conversion rules, constant conversion rules, and pin and connection conversion rules; The process involves converting the PID control design schematic drawing file based on the mapping relationship between the symbols in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software. Specifically, this includes: Based on the symbol attribute information of each symbol in the schematic diagram of the PID control design to be converted, the symbols in the schematic diagram drawing file are converted into corresponding symbols in the engineering configuration file through symbol conversion rules. Furthermore, based on the predecessor, successor, and connection attributes of each symbol in the schematic diagram of the PID control design to be converted, the pin connections of each symbol in the schematic diagram drawing file are converted into corresponding pin connections of the corresponding symbols in the engineering configuration file through pin and connection conversion rules. The symbol conversion rules include function block conversion rules, variable conversion rules, or constant conversion rules. The predecessor and successor refer to the attribute information of the symbols connected to each symbol before it and the attribute information of the symbols connected to it after it. The connection attributes include the name, ID, and pin connection information of the preceding and following symbols. The function block conversion rules include: For the PID control design schematic diagram drawing file symbols named FF_CAL_3, FF_CAL_4, S_CAL_4_MAU_LOC, S_CAL_4_INDI_LOC, and S_CAL_4_TRANS_LOC, according to the preset mapping rules, they are converted into the corresponding engineering configuration file symbols AMNEB, representing manual controller control; For the schematic diagrams of PID control design with names FF_CAL_1 and FF_CAL_2, according to the preset mapping rules, they are converted into the corresponding engineering configuration file symbols STPEB, which represent setpoint control. For the PID tuning design schematic diagram drawing file symbol named CAL_PID, according to the preset mapping rules, it is converted into the corresponding engineering configuration file symbol PIDA, which represents PID self-tuning; The process of converting the pin connections of each symbol in the schematic diagram of the PID control design to be converted into the corresponding pin connections of the symbols in the corresponding engineering configuration file, using pin-to-connection conversion rules, specifically includes: Based on the names of the symbols in the PID control design schematic diagram drawing file and their corresponding pin information, as well as the names of the symbols in the corresponding engineering configuration file, stored in the database, the corresponding pin information of the corresponding engineering configuration file symbols is obtained according to the pin information of each symbol in the PID control design schematic diagram drawing file to be converted. Then, according to the corresponding pin information of the engineering configuration file symbols, the connections are made according to the pin correspondence.
2. The method for generating downloadable project files according to claim 1, characterized in that, The identification of the correctness and completeness of the PID control design schematic drawing file to be converted specifically includes: Verify that the PID control design schematic drawing file to be converted is a complete Extensible Markup Language (XML) format file; Verify whether the labels in the schematic diagram drawing file of the PID controller to be converted contain the specified label content; Verify that the PID control design schematic drawing file to be converted is a schematic drawing file; Verify whether the schematic diagram drawing file of the PID control design to be converted contains the corresponding content label for each symbol.
3. The method for generating downloadable project files according to claim 1, characterized in that, Also includes: Optimize the layout of function blocks in the project configuration file.
4. The method for generating downloadable project files according to claim 3, characterized in that, The optimized engineering configuration file's functional block layout specifically includes: For overlapping first and second function blocks in the engineering configuration file, move the center of the covered first function block to the target coordinate point to move the first function block out of the coverage area of the second function block.
5. A device for generating downloadable engineering files, characterized in that, The device for generating downloadable files for the project includes: The database is used to establish and store the mapping relationship between each symbol in the symbol library of PID control design schematic diagram drawing files and the symbols in the symbol library of engineering configuration software; The recognition and conversion module is used for: Read the schematic diagram file of the PID control design to be converted; Verify the correctness and completeness of the PID control design schematic diagram and drawing files to be converted; If the PID control design schematic drawing file to be converted is correct and complete, the PID control design schematic drawing file to be converted is converted based on the mapping relationship between each symbol in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software, so as to obtain the engineering configuration file. The log prompt module is used to visually represent error messages about incomplete PID control design schematic drawings or design problems in the front-end log display area when the conversion fails due to incomplete drawings or design problems, and to record them in the log file. The process of identifying the correctness and completeness of the schematic diagram of the PID control design to be converted includes verifying the security classification, functional block classification, and functional partitioning of each symbol. The functional partitioning includes security-level partitioning or non-security-level partitioning. The mapping relationship includes function block conversion rules, variable conversion rules, constant conversion rules, and pin and connection conversion rules; The process involves converting the PID control design schematic drawing file based on the mapping relationship between the symbols in the symbol library of the PID control design schematic drawing file read from the database and the symbols in the symbol library of the engineering configuration software. Specifically, this includes: Based on the symbol attribute information of each symbol in the schematic diagram of the PID control design to be converted, the symbols in the schematic diagram drawing file are converted into corresponding symbols in the engineering configuration file through symbol conversion rules. Furthermore, based on the predecessor, successor, and connection attributes of each symbol in the schematic diagram of the PID control design to be converted, the pin connections of each symbol in the schematic diagram drawing file are converted into corresponding pin connections of the corresponding symbols in the engineering configuration file through pin and connection conversion rules. The symbol conversion rules include function block conversion rules, variable conversion rules, or constant conversion rules. The predecessor and successor refer to the attribute information of the symbols connected to each symbol before it and the attribute information of the symbols connected to it after it. The connection attributes include the name, ID, and pin connection information of the preceding and following symbols. The function block conversion rules include: For the PID control design schematic diagram drawing file symbols named FF_CAL_3, FF_CAL_4, S_CAL_4_MAU_LOC, S_CAL_4_INDI_LOC, and S_CAL_4_TRANS_LOC, according to the preset mapping rules, they are converted into the corresponding engineering configuration file symbols AMNEB, representing manual controller control; For the schematic diagrams of PID control design with names FF_CAL_1 and FF_CAL_2, according to the preset mapping rules, they are converted into the corresponding engineering configuration file symbols STPEB, which represent setpoint control. For the PID tuning design schematic diagram drawing file symbol named CAL_PID, according to the preset mapping rules, it is converted into the corresponding engineering configuration file symbol PIDA, which represents PID self-tuning; The process of converting the pin connections of each symbol in the schematic diagram of the PID control design to be converted into the corresponding pin connections of the symbols in the corresponding engineering configuration file, using pin-to-connection conversion rules, specifically includes: Based on the names of the symbols in the PID control design schematic diagram drawing file and their corresponding pin information, as well as the names of the symbols in the corresponding engineering configuration file, stored in the database, the corresponding pin information of the corresponding engineering configuration file symbols is obtained according to the pin information of each symbol in the PID control design schematic diagram drawing file to be converted. Then, according to the corresponding pin information of the engineering configuration file symbols, the connections are made according to the pin correspondence.
6. The engineering downloadable file generation device according to claim 5, characterized in that, Also includes: The layout optimization module is used to optimize the functional block layout of the project configuration file.
7. A computer device, comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of the method for generating an engineering downloadable file according to any one of claims 1-4.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the method for generating downloadable files according to any one of claims 1-4.
Citation Information
Patent Citations
Cross-platform automatic identification conversion method and system of nuclear power plant instrument control system
CN115982799A