Nuclear power logical configuration automatic conversion method and system
By building the mapping relationship between the logic diagram module and the configuration diagram module, the rapid conversion of logic diagram to the configuration diagram is realized, which solves the shortcomings of automatic conversion between logic diagram and logic configuration diagram in the NuCON instrumentation control platform, and improves the conversion accuracy and Efficiency, supports many-to-one and one-to-many mapping.
Patent Information
- Application Number
- CN202411531332.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, the NuCON instrumentation control platform has not yet realized automatic conversion between logic diagrams and logical configuration diagrams. Experienced technicians require a large number of manual identification. The mapping relationship between logic diagrams and logical configuration diagrams is limited, so it is impossible to Implement one-to-many or many-to-one mapping.
By constructing the mapping relationship between the logic diagram module and the configuration diagram module, the rapid conversion of the logic diagram to the configuration diagram is realized, including obtaining and traversing the logic diagram to be converted, identifying and decomposing the logic diagram module information, building the module mapping rules, and generating parameters Map tables and write XML configuration files to realize automatic connection between the logic diagram module and the configuration diagram module.
It realizes rapid conversion of logic diagrams into logical configuration diagrams, improves conversion accuracy, realizes 1:1 object conversion, reduces configuration "reprocessing", and supports many-to-one and one-to-many mappings, covering complex logic diagrams to group The situation of the schema reduces the repeated modification of the logical configuration caused by changes in demand.
Smart Images

Figure CN119442658A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of nuclear power plants, and in particular relates to a method and system for automatic conversion of nuclear power logic configuration. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] The controller is used to run the control algorithm. The logic configuration runs in the controller and is an important part of the operator's remote execution of equipment control. The logic configuration receives instructions from the display screen, executes instructions according to process conditions, and sends instructions to the I / O side. At the same time, the logic configuration also performs automatic control of the equipment, alarms, and transmits signals to the display screen.
[0004] In the power industry, control logic Figure 1 Generally, the design institute uses graphic drawing tools to complete the design, and then the design is handed over to the DCIS supplier for configuration through the cross-company capital raising business process, which is usually in the form of file transfer and form circulation. The most notable features of this working method are: 1) There is a weak coupling between design data and DCIS supplied products. DCIS suppliers artificially understand upstream funding, which is partially or fully reflected in the product. The funding process is separate from the development of supplied products and cannot be coordinated; 2) A lot of man-hours are spent on DCIS configuration. Due to manual configuration, various human errors are inevitable; 3) There are a lot of intermediate iterations during the implementation process, such as clarification and document upgrades.
[0005] The digital instrumentation and control system of a nuclear power plant is the information exchange center and control brain of all levels of the nuclear power plant, and plays a vital role in ensuring the safe and reliable operation of the nuclear power plant. The domestic nuclear power control platform NuCON is a digital instrumentation and control system designed and developed to meet the needs of large pressurized water reactors.
[0006] At present, the NuCON instrumentation and control platform has not yet realized the automatic conversion between logic diagrams and logic group diagrams, and experienced technicians still need to perform a lot of manual identification. At the same time, the mapping relationship design between logic diagrams and logic configuration diagrams is limited. When designing logic diagrams, only the schematic diagram of functions, the flow of signal input and output, etc. are considered, and the signal processing method with deep logic configuration is not drawn, including but not limited to the processing of signal priority, signal locking, signal unpacking / packaging, and the processing of alarm signals generated by internal logic. Therefore, in the current conversion process from logic diagrams to configuration diagrams, one-to-many or many-to-one mapping cannot be achieved. Summary of the invention
[0007] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a method and system for automatic conversion of nuclear power logic configuration, which realizes rapid conversion of logic diagram to configuration diagram by constructing a mapping relationship between logic diagram module and configuration diagram module, thereby improving conversion accuracy.
[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions: A first aspect of the present invention provides a method for automatic conversion of nuclear power logic configuration, comprising: Construct logic diagram module and configuration diagram module; Obtain and traverse the logic diagram to be converted and its page information to obtain the corresponding logic diagram module information; Identify and decompose the corresponding logic diagram module information to obtain decomposed logic diagram module elements; Constructing module mapping rules, based on the decomposed logic diagram module elements, mapping the logic diagram module with the configuration diagram module; According to the formed mapping relationship, a parameter mapping table is constructed and written into the XML configuration file to realize the automatic connection between the logic diagram module and the configuration diagram module, and obtain the converted logic configuration diagram legend; Converting the converted logic configuration legend into a logic configuration diagram based on an automatic sorting rule; Output logic configuration diagram.
[0009] A second aspect of the present invention provides a nuclear power logic configuration automatic conversion system, comprising: The logic diagram acquisition module is configured to construct a logic diagram module and a configuration diagram module; Obtain and traverse the logic diagram to be converted and its page information to obtain the corresponding logic diagram module information; An element identification module is configured to identify and decompose the corresponding logic diagram module information to obtain decomposed logic diagram module elements; A mapping rule module is configured to construct a module mapping rule and form a mapping relationship between the logic diagram module and the configuration diagram module based on the decomposed logic diagram module elements; The automatic sorting module is configured to construct a parameter mapping table according to the formed mapping relationship and write it into an XML configuration file to realize automatic connection between the logic diagram module and the configuration diagram module to obtain a converted logic configuration diagram legend; Converting the converted logic configuration legend into a logic configuration diagram based on an automatic sorting rule; The output module is configured to output the logic configuration diagram.
[0010] The third aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in a method as described in the second aspect of the present invention are implemented.
[0011] A fourth aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in a method as described in the second aspect of the present invention.
[0012] A fifth aspect of the present invention provides a computer program product comprising instructions, which, when running on a computer, enables the computer program to implement the steps in a method as described in the second aspect of the present invention when executed by a processor.
[0013] One or more of the above technical solutions have the following beneficial effects: In the present invention, it is possible to quickly convert a logic diagram into a logic configuration diagram, and to completely convert the information on the logic diagram that needs to be reflected in the configuration, thereby improving the conversion accuracy, achieving 1:1 conversion of objects, and avoiding configuration "reprocessing" as much as possible.
[0014] In the present invention, many-to-one and one-to-many mappings between logic diagrams and logic configuration diagrams can be achieved. In addition to the typical one-to-one module conversion from logic diagrams to configuration diagrams, many-to-one and one-to-many mappings can cover all complex logic diagram conversions to configuration diagrams, and changes in design requirements can be achieved by modifying stamps and re-converting the configuration, thereby reducing repeated modifications of logic configurations due to changes in requirements.
[0015] In the present invention, a large number of intermediate link iterations such as clarification and file upgrades in the implementation process can be reduced, thereby greatly improving the efficiency of the project.
[0016] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0018] Figure 1 This is a flow chart of a method for automatic conversion of nuclear power logic configuration according to a first embodiment of the present invention; Figure 2 This is a flow chart from a logic diagram to a logic configuration diagram in accordance with an embodiment of the present invention; Figure 3 This is a schematic diagram of a one-to-one mapping logic conversion in the first embodiment of the present invention; Figure 4 This is a schematic diagram of the logical conversion of many-to-one mapping in the first embodiment of the present invention; Figure 5 This is a schematic diagram of the logical conversion of one-to-many mapping in the first embodiment of the present invention; Figure 6 This is a schematic diagram of the ConfigurationsXML configuration interface in Embodiment 1 of the present invention; Figure 7 This is a schematic diagram of automatic sorting rules in Embodiment 1 of the present invention; Figure 8 This is a brief schematic diagram of the logic diagram before conversion of the first embodiment of the present invention; Fig. 9 It is a brief comparison diagram after the logical configuration conversion of the first embodiment of the present invention. DETAILED DESCRIPTION
[0019] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0020] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0021] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other. Embodiment 1 This embodiment discloses a method for automatically converting a nuclear power logic configuration. Figure 1 To more clearly illustrate this embodiment, the following specific description is provided: Step 1: construct a logic diagram module and a configuration diagram module; Step 2: Obtain and traverse the logic diagram to be converted and its page information to obtain the corresponding logic diagram module information.
[0022] In this embodiment, the logic diagram to be converted is the drawing information of the control logic diagram in the form of data under the tree structure. The drawing information of the control logic diagram is generally designed by a design institute using a graphic drawing tool.
[0023] Obtain and traverse the logical diagram to be converted and its page information, including: Information of the logic diagram: the names of all modules on the logic diagram, the pins of the modules, the block numbers of the modules, the properties of the modules, the child nodes under the modules, the associated objects of the modules, etc.
[0024] Page information of the logic diagram: execution cycle, execution sequence number, page number, page size, page description, etc.
[0025] Since the current drawing information of the control logic diagram belongs to the design file, it will not provide a very clear and detailed connection relationship. Therefore, by obtaining the detailed information of the control logic diagram, it can facilitate the subsequent more detailed conversion of the logic configuration diagram.
[0026] Step 3: Identify and decompose the corresponding logic diagram module information to obtain decomposed logic diagram module elements; In this embodiment, elements in the logic diagram to be converted and its page information are extracted, and the elements are decomposed to obtain decomposed logic diagram module elements so that they can form a mapping relationship with the NuCON instrumentation and control platform.
[0027] The logic diagram module elements are decomposed into categories: the names of all modules on the logic diagram, the pins of the modules, the block numbers of the modules, the properties of the modules, the child nodes under the modules, the associated objects of the modules, etc.
[0028] By identifying and decomposing the module elements in the logic diagram, the conversion accuracy can be improved, the complete conversion of information can be achieved, and the 1:1 conversion of objects can be realized. At the same time, the efficiency of subsequent automated conversion can be improved.
[0029] Step 4: construct module mapping rules, and form a mapping relationship between the logic diagram module and the configuration diagram module based on the decomposed logic diagram module elements; In this embodiment, the module mapping rules are as follows: 1) One-to-one mapping: Indicates that a single module of the logic diagram is directly mapped to a single module of the configuration diagram; by configuring the mapping relationship between the names of all modules on the logic diagram and the names of the modules in the configuration diagram, the module-to-module mapping is achieved during conversion; For example, Figure 3 As shown, when the logic diagram module is and, the function block corresponding to its configuration diagram is And.
[0030] 2) Many-to-one mapping: It means that multiple modules of the logic diagram are directly mapped to a single module of the configuration diagram, but the parameters of the mapped objects are different. Specifically, it can be explained that the configuration diagram symbol mapped from multiple different logic diagram symbols is the same, but the parameter attributes behind the configuration diagram symbol are different.
[0031] For example, Figure 4 As shown, when the logic diagram modules are and3, and4, or3, or4: the corresponding EB function blocks are all: Qor8, but the mapped Qor8 attribute Num is 3, 4, 1, 1 respectively, among which or3 and or4 use different numbers of pins, using Z1~Z3 and Z1~Z4 respectively.
[0032] 3) One-to-many mapping: A stamp that represents a single module of a logic diagram and multiple modules of a configuration diagram is mapped. It is applicable to human-machine interface blocks, device interface modules, and diesel engine load modules, etc.
[0033] Among them, the stamp refers to the pre-configuration of multiple configuration diagram function blocks, that is, multiple identical or different configuration diagram modules are arranged, connected and grouped according to requirements to form a fixed combination form.
[0034] For example, when the logic diagram module is AIRV1: its corresponding EB function block is a stamp, and there are multiple configuration diagram modules on this stamp, and the connection relationship between each module is connected in a fixed way.
[0035] The addition of many-to-one and one-to-many mapping rules can cover all situations where complex logic diagrams are converted to configuration diagrams. In addition, the design requirements can be changed by modifying the stamp and re-converting the configuration, reducing repeated modifications to the logic configuration due to changes in requirements.
[0036] Step 5: According to the formed mapping relationship, construct a parameter mapping table and write it into the XML configuration file to realize automatic connection between the logic diagram module and the configuration diagram module to obtain the converted logic configuration diagram.
[0037] In this embodiment, a parameter mapping table is constructed according to the mapping relationship formed in step 3 and written into the XML configuration file. That is, the XML configuration file is a parameter mapping table, which completes the "one-to-one", "many-to-one", and "one-to-many" configuration of step 3 in advance, and also includes parameter mapping requirements, automatic signal binding, etc.
[0038] Automatic wiring is based on the configuration file. It maps the wiring relationship of the modules on the logic diagram to the wiring of the modules on the configuration diagram. For example, if the Xth pin of module A on the logic diagram is connected to the Yth pin of module B, the specific pin of module A will be connected to the specific pin of module B on the configuration diagram.
[0039] In this embodiment, the underlying data used by the logic diagram is automatically read according to the design requirements, and the mapping relationship between the data and the configuration diagram data is configured.
[0040] XML configuration file, the program name is "ConfigurationsXML"; The specific steps to complete the automatic wiring of the mapping relationship are as follows: a) Read the logic symbols in the graphic template and the configuration symbols in the specification library; b) Select logical symbols and configuration symbols for mapping; c) Select the logic symbol pins and configuration symbol pins for mapping; d) Select logical symbol attributes and configuration symbol attributes for mapping; Among them, pins can realize one-to-many mapping; attributes can realize one-to-many and many-to-one mapping; attributes can be filled with fixed values into configuration symbols; The conversion of logical symbols to configuration symbols can map the corresponding configuration symbols through fixed values; The connection relationship on the logic diagram is reflected by the pins of the logic diagram module. There is a mapping relationship between the pins of the configuration diagram and the pins of the logic diagram. After converting to the configuration diagram, the lines can be automatically connected on the configuration diagram according to the connection relationship of the logic diagram.
[0041] For example, there are two modules A and B on the logic diagram. The mass transfer attribute of module A is or transfer, and the mass transfer attribute of module B is not transfer. The Xth output pin of module A is connected to the Yth input pin of module B. The converted configuration diagram maps module A to a and module B to b. The mass transfer attribute of module A is or transfer, and the mass transfer attribute of module B is not transfer. The specific pin of module A is connected to the specific pin of module B.
[0042] Therefore, through the XML configuration file, the automatic connection of the mapping relationship can be realized, the mapping from the logic diagram to the configuration diagram can be completed, the module to the module is automatically converted, and the converted logic configuration diagram is obtained.
[0043] Through XML configuration files, logic diagrams can be quickly and automatically converted into logic configuration diagrams, reducing a large number of intermediate iterations such as clarification and file upgrades during the implementation process, greatly improving project efficiency.
[0044] Step 6: Convert the converted logic configuration legend into a logic configuration diagram based on automatic sorting rules.
[0045] In this embodiment, the automatic sorting rules are as follows: After completing the conversion of all legends, process one or more logic configuration diagram legends with the same "initial block number" in order from small to large according to the "initial block number" of the logic diagram module. If there is only one logic configuration diagram legend with the same "initial block number", then take the maximum block number value of the current drawing legend plus 10 as the block number of the legend; if there are multiple logic configuration diagram legends with the same "initial block number", then assign block numbers in sequence according to the automatic sorting rules of the block numbers. To facilitate subsequent manual adjustment, the interval between block numbers between legends is 10.
[0046] In the logical configuration, all modules have block number and serial number attributes. Each block number in each configuration page is unique and is used to distinguish the identity of the module. The serial number in the module indicates the operation order of the module in this configuration page, so the correctness of these two parameters is crucial. If the configuration is done manually, the block number may be repeated and the serial number sequence may be wrong. Automatic sorting can avoid such problems and greatly improve configuration efficiency.
[0047] Step 7: Output the logic configuration diagram.
[0048] Embodiment 2 The purpose of this embodiment is to provide a nuclear power logic configuration automatic conversion system, including: a logic diagram acquisition module, configured to construct a logic diagram module and a configuration diagram module; Obtain and traverse the logic diagram to be converted and its page information to obtain the corresponding logic diagram module information; An element identification module is configured to identify and decompose the corresponding logic diagram module information to obtain decomposed logic diagram module elements; A mapping rule module is configured to construct a module mapping rule and form a mapping relationship between the logic diagram module and the configuration diagram module based on the decomposed logic diagram module elements; The automatic sorting module is configured to construct a parameter mapping table according to the formed mapping relationship and write it into an XML configuration file to realize automatic connection between the logic diagram module and the configuration diagram module to obtain a converted logic configuration diagram legend; Converting the converted logic configuration legend into a logic configuration diagram based on an automatic sorting rule; The output module is configured to output the logic configuration diagram.
[0049] Embodiment 3 The purpose of this embodiment is to provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.
[0050] Embodiment 4 The purpose of this embodiment is to provide a computer-readable storage medium.
[0051] A computer-readable storage medium stores a computer program, which executes the steps of the above method when executed by a processor.
[0052] Embodiment 5 The purpose of this embodiment is to provide a computer program product containing instructions, which, when running on a computer, enables the computer to execute the methods and functions involved in any of the above embodiments. The steps involved in the apparatus of the above embodiment correspond to the method embodiment 1, and the specific implementation method can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0053] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0054] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A method for automatic conversion of nuclear power logic configuration, characterized in that: The method comprises the following steps: constructing a logic diagram module and a configuration diagram module; Obtain and traverse the logic diagram to be converted and its page information to obtain the corresponding logic diagram module information; Identify and decompose the corresponding logic diagram module information to obtain decomposed logic diagram module elements; Constructing module mapping rules, based on the decomposed logic diagram module elements, mapping the logic diagram module with the configuration diagram module; According to the formed mapping relationship, a parameter mapping table is constructed and written into the XML configuration file to realize the automatic connection between the logic diagram module and the configuration diagram module, and obtain the converted logic configuration diagram legend; Converting the converted logic configuration legend into a logic configuration diagram based on an automatic sorting rule; Output logic configuration diagram.
2. A method for automatic conversion of nuclear power logic configuration as claimed in claim 1, characterized in that: The method of obtaining and traversing the logic diagram to be converted and its page information to obtain the corresponding logic diagram module information, specifically including: information of the logic diagram: the names of all modules on the logic diagram, the pins of the modules, the block numbers of the modules, the attributes of the modules, the sub-nodes under the modules, and the associated objects of the modules; Page information of the logic diagram: execution cycle, execution sequence number, page number, page size, and page description.
3. A method for automatic conversion of nuclear power logic configuration as claimed in claim 1, characterized in that: The module mapping rules specifically include: one-to-one mapping, many-to-one mapping and one-to-many mapping.
4. A method for automatic conversion of nuclear power logic configuration as claimed in claim 3, characterized in that: The one-to-one mapping means that a single module of the logic diagram is directly mapped to a single module of the configuration diagram; by configuring the mapping relationship between the module name on the logic diagram and the module name on the configuration diagram, the module-to-module mapping is realized during the conversion; The many-to-one mapping means that multiple modules of the logic diagram are directly mapped to a single module of the configuration diagram, and the parameter attributes behind the configuration diagram symbols are different; The one-to-many mapping represents mapping a single module of the logic diagram to a stamp consisting of multiple modules of the configuration diagram; there are multiple configuration diagram modules on the stamp, and the connection relationship between each module is connected in a fixed manner.
5. A method for automatic conversion of nuclear power logic configuration as claimed in claim 1, characterized in that: The automatic connection between the logic diagram module and the configuration diagram module is realized, and the specific steps include: reading the logic symbols in the graphic template and the configuration symbols in the specification library; selecting the logic symbols and the configuration symbols for mapping, mapping the logic symbol pins and the configuration symbol pins, and mapping the logic symbol attributes and the configuration symbol attributes, and automatically connecting.
6. A method for automatic conversion of nuclear power logic configuration as claimed in claim 1, characterized in that: The automatic sorting rule specifically includes: after completing the conversion of all legends, processing one or more logic configuration diagram legends with the same initial block number in order from small to large according to the initial block number of the logic diagram module; when there is only one logic configuration diagram legend with the same initial block number, taking the maximum block number value of the current drawing legend plus 10 as the block number of the legend; when there are multiple logic configuration diagram legends with the same initial block number, assigning block numbers in order according to the block number sorting rule; The interval between block numbers in legends is 10.
7. A nuclear power logic configuration automatic conversion system, characterized in that: include: The logic diagram acquisition module is configured to construct a logic diagram module and a configuration diagram module; Obtain and traverse the logic diagram to be converted and its page information to obtain the corresponding logic diagram module information; An element identification module is configured to identify and decompose the corresponding logic diagram module information to obtain decomposed logic diagram module elements; A mapping rule module is configured to construct a module mapping rule and form a mapping relationship between the logic diagram module and the configuration diagram module based on the decomposed logic diagram module elements; The automatic sorting module is configured to construct a parameter mapping table according to the formed mapping relationship and write it into an XML configuration file to realize automatic connection between the logic diagram module and the configuration diagram module to obtain a converted logic configuration diagram legend; Converting the converted logic configuration legend into a logic configuration diagram based on an automatic sorting rule; The output module is configured to output the logic configuration diagram.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are performed.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Project downloadable file generation method and device, equipment and medium
CN121255734A