CN111353335A - Method for converting control layer logic diagram into simulation system configuration file - Google Patents
Method for converting control layer logic diagram into simulation system configuration file Download PDFInfo
- Publication number
- CN111353335A CN111353335A CN201811569584.9A CN201811569584A CN111353335A CN 111353335 A CN111353335 A CN 111353335A CN 201811569584 A CN201811569584 A CN 201811569584A CN 111353335 A CN111353335 A CN 111353335A
- Authority
- CN
- China
- Prior art keywords
- file
- configuration
- image
- logic
- steps
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010586 diagram Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000004088 simulation Methods 0.000 title claims abstract description 31
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 239000003086 colorant Substances 0.000 claims description 6
- 238000013519 translation Methods 0.000 claims description 3
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 230000007547 defect Effects 0.000 abstract description 2
- 238000011161 development Methods 0.000 abstract description 2
- 238000012795 verification Methods 0.000 abstract description 2
- 238000005094 computer simulation Methods 0.000 description 7
- 238000012937 correction Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/40—Document-oriented image-based pattern recognition
- G06V30/41—Analysis of document content
- G06V30/413—Classification of content, e.g. text, photographs or tables
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/40—Document-oriented image-based pattern recognition
- G06V30/41—Analysis of document content
- G06V30/414—Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
Abstract
The invention relates to the technical field of nuclear power simulation, in particular to a method for converting a control layer logic diagram into a simulation system configuration file. At present, a manual modeling method is mostly adopted for a configuration logic diagram in a nuclear power station, and an engineer carries out forward configuration modeling according to a control logic drawing of the nuclear power station. The method has the main defects of large development workload, high configuration error rate and heavy verification task. The invention comprises the following steps: the method comprises the following steps: converting a logic configuration image document; step two: image recognition; step three: recognizing and alarming; step four: establishing an image recognition library; step five: generating a file; step six: and (6) importing the file. The invention can realize the function of converting image files into pictures, the function of identifying the system logic diagram images and the function of alarming, is used for recording and identifying abnormal positions and abnormal information and the function of generating the configuration file, and improves the efficiency and the accuracy.
Description
Technical Field
The invention relates to the technical field of nuclear power simulation, in particular to a method for converting a control layer logic diagram into a simulation system configuration file.
Background
The nuclear power simulator is mainly used for nuclear power plant operator training, nuclear power teaching, design data verification, optimization and other work. The nuclear power simulation platform comprises a plurality of simulators with different purposes, and the simulation system platform used in the method is RINSIM2.0 which is an integrated simulation platform of the nuclear power station developed by nuclear power operation research institute.
In order to develop a full-range simulator of a nuclear power station, simulation modeling needs to be performed on an instrument control system, a control layer in the instrument control system is also called as a layer, and a configuration logic diagram of the instrument control system has the characteristics of rich regularity and large quantity of diagrams. Currently, a manual modeling method is mostly adopted, and engineers perform forward configuration modeling according to a control logic drawing of the nuclear power station. The method has the main defects of large development workload, high configuration error rate and heavy verification task. Furthermore, as the engineering data is updated, manual modifications are required for each change, ultimately resulting in a long overall simulation modeling period.
Disclosure of Invention
Firstly, the purpose is as follows:
the method for converting the image file of the nuclear power plant control layer logic into the simulation system configuration file is provided, and the simulation machine control layer configuration image recognition software realized based on the method can be used for modeling simulation of the control system, avoids errors caused by manual modeling, and improves the overall simulation efficiency.
The technical scheme is as follows:
a method for converting a control layer logic diagram into a simulation system configuration file comprises the following steps: the method comprises the following steps: converting a logic configuration image document; step two: image recognition; step three: recognizing and alarming; step four: establishing an image recognition library; step five: generating a file; step six: and (6) importing the file.
The method comprises the following steps: the logic configuration image document conversion method specifically comprises the following steps: and converting the logic configuration image document of the designer into a single-picture format, and generating a picture file for each logic configuration picture in the document.
Step two: the image recognition specifically comprises the following steps: (1) the logic diagram image recognition module carries out image recognition on the generated image file, firstly, the recognition of information such as diagram names and the like is carried out, the position of the content to be recognized is obtained according to a color threshold value, character recognition is carried out, the obtained information is classified according to the position, and the image number information and the control algorithm module information are obtained; (2) after the position of the part is positioned, character recognition is carried out, the name and the position of an input/output port in the part are confirmed, and the purpose is to find out the information of the corresponding input/output port when the connection is recognized; (3) and finally, identifying the connecting line, tracing back from each input port of the component, increasing inflection point information in the process until reaching an output port, and finishing identification.
Step three: the identification alarm specifically comprises the following steps: and recording specific content and position of the generated problems in the step two, and simultaneously representing the problems in the graph translation by specific colors on a system interface. If the identification problem does not occur in the second step, the third step is not carried out, and the step four is directly carried out; if there is a problem, go back to step one.
Step four: establishing an image recognition library, which specifically comprises the following steps: inputting a sample picture into the logic diagram image recognition module, extracting characteristic points in the sample picture, defining and forming an image recognition library; when other pictures are identified, comparing the picture with an image identification library by adopting a comparison mode of whether the pixel colors of the fixed point positions are consistent; if the two are consistent, the fourth step is carried out; if not, adding the image into the image recognition library, and returning to the step one.
Step five: generating a file, specifically comprising the following steps: the configuration file generating module generates a file format which can be read by the simulation system according to the information obtained by identification; the file comprises the diagram name and the system name of the logic diagram, the name and the position information of all the components in the configuration diagram, the connection information between the components and the text information.
Step six: the file importing method specifically comprises the following steps: and importing the generated configuration file into the simulation system, wherein the generated configuration file is consistent with the layout of the original logic diagram and has the same logic relationship with the original logic diagram, and modifying and compiling the generated configuration file in the simulation system.
Thirdly, the effect is as follows:
the simulator machine control layer configuration image recognition software system based on the method can recognize the logic diagram of the control system and generate a corresponding simulation system configuration file. The system is dynamic and visual, and can visually display the conversion accuracy and accurately position and identify the position and reason of the error. The configuration file obtained by conversion by the method is consistent with the arrangement of the identified logic diagram, so that the error check and correction can be conveniently carried out subsequently. The software system can accurately and efficiently carry out the simulation modeling of the control layer logic of the nuclear power station, avoids errors possibly caused by manual configuration, improves the quality of a simulation configuration diagram, reduces the manual workload and shortens the time consumption of the whole simulation modeling.
The simulator instrument control layer configuration image identification software system based on the method is applied to simulation modeling of a control layer of a Karah odd nuclear power station. Practical application shows that the system can correctly identify more than 95% of logic diagrams, can also give an alarm and mark specific error information for parts which cannot be completely identified, has the characteristics of complete functions and convenience in use, and can be well applied to simulation modeling of control layer logic of the nuclear power station.
Drawings
FIG. 1 is a block diagram of a relationship diagram
FIG. 2 simulation system configuration diagram
Detailed Description
As shown in FIG. 1, the whole system of the module relation diagram comprises an image document conversion module, a logic diagram image identification module, an alarm module and a simulation system configuration file generation module.
A method for converting a control layer logic diagram into a simulation system configuration file comprises the following steps: the method comprises the following steps: converting a logic configuration image document; step two: image recognition; step three: recognizing and alarming; step four: establishing an image recognition library; step five: generating a file; step six: and (6) importing the file.
The method comprises the following steps: the logic configuration image document conversion method specifically comprises the following steps: and converting the logic configuration image document of the designer into a single-picture format, and generating a picture file for each logic configuration picture in the document.
Step two: the image recognition specifically comprises the following steps: (1) the logic diagram image recognition module carries out image recognition on the generated image file, firstly, the recognition of information such as diagram names and the like is carried out, the position of the content to be recognized is obtained according to a color threshold value, character recognition is carried out, the obtained information is classified according to the position, and the image number information and the control algorithm module information are obtained; (2) after the position of the part is positioned, character recognition is carried out, the name and the position of an input/output port in the part are confirmed, and the purpose is to find out the information of the corresponding input/output port when the connection is recognized; (3) and finally, identifying the connecting line, tracing back from each input port of the component, increasing inflection point information in the process until reaching an output port, and finishing identification.
Step three: the identification alarm specifically comprises the following steps: and recording specific content and position of the generated problems in the step two, and simultaneously representing the problems in the graph translation by specific colors on a system interface. If the identification problem does not occur in the second step, the third step is not carried out, and the step four is directly carried out; if there is a problem, go back to step one.
Step four: establishing an image recognition library, which specifically comprises the following steps: inputting a sample picture into the logic diagram image recognition module, extracting characteristic points in the sample picture, defining and forming an image recognition library; when other pictures are identified, comparing the picture with an image identification library by adopting a comparison mode of whether the pixel colors of the fixed point positions are consistent; if the two are consistent, the fourth step is carried out; if not, adding the image into the image recognition library, and returning to the step one.
Step five: generating a file, specifically comprising the following steps: the configuration file generating module generates a file format which can be read by the simulation system according to the information obtained by identification; the file comprises the diagram name and the system name of the logic diagram, the name and the position information of all the components in the configuration diagram, the connection information between the components and the text information.
Step six: the file importing method specifically comprises the following steps: and importing the generated configuration file into the simulation system, wherein the generated configuration file is consistent with the layout of the original logic diagram and has the same logic relationship with the original logic diagram, and modifying and compiling the generated configuration file in the simulation system. As shown in fig. 2.
The method identifies the graph name, the control algorithm module and the connecting line between the control algorithm modules contained in the control layer logic image file of the nuclear power station, converts the graph name, the control algorithm module and the connecting line between the control algorithm modules into a configuration file which can be read by a simulation system through mapping, and realizes the simulation modeling of the control logic layer of the nuclear power station. The method mainly realizes the following core functions:
1) and the image file to picture function is used for reading the image file of the system control logic and then converting the image file into a file format which can be used for image recognition.
2) And the system logic diagram image identification function is used for identifying the diagram name in the control system logic diagram, the control algorithm module and a connecting line between the control algorithm modules.
3) And the alarm function is used for recording and identifying the abnormal position and the abnormal information.
4) And a configuration file generating function for generating a file format which can be read and edited in the simulation system according to the read logic diagram information. The number and layout of algorithm modules, the connection relation between text information and each algorithm module, the number of inflection points in the connection and the coordinates of the inflection points in the generated file are controlled to be consistent with those of the actual logic diagram file.
The four steps of the method can be processed in parallel, so that the execution efficiency is improved, and the analysis time required by the whole configuration is shortened.
Claims (7)
1. A method for converting a control layer logic diagram into a simulation system configuration file is characterized in that: the method comprises the following steps: the method comprises the following steps: converting a logic configuration image document; step two: image recognition; step three: recognizing and alarming; step four: establishing an image recognition library; step five: generating a file; step six: importing a file; wherein, the step two: the image recognition specifically comprises the following steps: (1) the logic diagram image recognition module carries out image recognition on the generated image file, firstly, the recognition of information such as diagram names and the like is carried out, the position of the content to be recognized is obtained according to a color threshold value, character recognition is carried out, the obtained information is classified according to the position, and the image number information and the control algorithm module information are obtained; (2) after the position of the part is positioned, character recognition is carried out, the name and the position of an input/output port in the part are confirmed, and the purpose is to find out the information of the corresponding input/output port when the connection is recognized; (3) and finally, identifying the connecting line, tracing back from each input port of the component, increasing inflection point information in the process until reaching an output port, and finishing identification.
2. The method of claim 1, wherein the method comprises: the first step is as follows: the logic configuration image document conversion method specifically comprises the following steps: and converting the logic configuration image document of the designer into a single-picture format, and generating a picture file for each logic configuration picture in the document.
3. The method of claim 1, wherein the method comprises: the fourth step is that: establishing an image recognition library, which specifically comprises the following steps: inputting a sample picture into the logic diagram image recognition module, extracting characteristic points in the sample picture, defining and forming an image recognition library; when other pictures are identified, comparing the picture with an image identification library by adopting a comparison mode of whether the pixel colors of the fixed point positions are consistent; if the two are consistent, the fourth step is carried out; if not, adding the image into the image recognition library, and returning to the step one.
4. The method of claim 1, wherein the method comprises: the fifth step is as follows: generating a file, specifically comprising the following steps: the configuration file generating module generates a file format which can be read by the simulation system according to the information obtained by identification; the file comprises the diagram name and the system name of the logic diagram, the name and the position information of all the components in the configuration diagram, the connection information between the components and the text information.
5. The method of claim 1, wherein the method comprises: the sixth step is as follows: the file importing method specifically comprises the following steps: and importing the generated configuration file into the simulation system, wherein the generated configuration file is consistent with the layout of the original logic diagram and has the same logic relationship with the original logic diagram, and modifying and compiling the generated configuration file in the simulation system.
6. The method of claim 1, wherein the method comprises: the third step is that: the identification alarm specifically comprises the following steps: and recording specific content and position of the generated problems in the step two, and simultaneously representing the problems in the graph translation by specific colors on a system interface.
7. The method of claim 6, wherein the method comprises: the third step is that: identifying and alarming, if the identification problem does not occur in the step two, not performing the step three, and directly entering the step four; if there is a problem, go back to step one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811569584.9A CN111353335A (en) | 2018-12-21 | 2018-12-21 | Method for converting control layer logic diagram into simulation system configuration file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811569584.9A CN111353335A (en) | 2018-12-21 | 2018-12-21 | Method for converting control layer logic diagram into simulation system configuration file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111353335A true CN111353335A (en) | 2020-06-30 |
Family
ID=71195307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811569584.9A Pending CN111353335A (en) | 2018-12-21 | 2018-12-21 | Method for converting control layer logic diagram into simulation system configuration file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111353335A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115185238A (en) * | 2022-05-23 | 2022-10-14 | 中核核电运行管理有限公司 | Method for converting ICC configuration of nuclear power station DCS system into IEE graphical configuration |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104536400A (en) * | 2014-12-13 | 2015-04-22 | 国核自仪系统工程有限公司 | Nuclear power station DCS simulation modeling method |
CN104950696A (en) * | 2015-07-15 | 2015-09-30 | 上海核工程研究设计院 | System and method for converting control logic design data into control logic simulation verification platform files |
CN105824969A (en) * | 2016-03-31 | 2016-08-03 | 大连文森特软件科技有限公司 | Online graphical game producing system for decomposing and storing images based on frame differentiation method |
CN107423501A (en) * | 2017-07-17 | 2017-12-01 | 南京邮电大学 | A kind of array automatic detection and method for numbering serial based on photovoltaic plant logic chart |
-
2018
- 2018-12-21 CN CN201811569584.9A patent/CN111353335A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104536400A (en) * | 2014-12-13 | 2015-04-22 | 国核自仪系统工程有限公司 | Nuclear power station DCS simulation modeling method |
CN104950696A (en) * | 2015-07-15 | 2015-09-30 | 上海核工程研究设计院 | System and method for converting control logic design data into control logic simulation verification platform files |
CN105824969A (en) * | 2016-03-31 | 2016-08-03 | 大连文森特软件科技有限公司 | Online graphical game producing system for decomposing and storing images based on frame differentiation method |
CN107423501A (en) * | 2017-07-17 | 2017-12-01 | 南京邮电大学 | A kind of array automatic detection and method for numbering serial based on photovoltaic plant logic chart |
Non-Patent Citations (1)
Title |
---|
刘开城;殷中平;王岩;史觊;张学刚;文剑波;: "基于Matlab & Simulink & GUI对核电厂数字化事故程序逻辑设计的仿真与验证" * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115185238A (en) * | 2022-05-23 | 2022-10-14 | 中核核电运行管理有限公司 | Method for converting ICC configuration of nuclear power station DCS system into IEE graphical configuration |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109934227A (en) | System for recognizing characters from image and method | |
CN103678737B (en) | A kind of lever system dummy assembly method | |
CN109446689A (en) | DC converter station electrical secondary system drawing recognition methods and system | |
CN112181854B (en) | Method, device, equipment and storage medium for generating process automation script | |
US9378315B1 (en) | Method for semiconductor process corner sweep simulation based on value selection function | |
Back et al. | A study for production simulation model generation system based on data model at a shipyard | |
CN115952758A (en) | Chip verification method and device, electronic equipment and storage medium | |
US20150242296A1 (en) | Analyzing behavior of a device under test | |
CN115311130A (en) | Method, system and terminal for migrating styles of Chinese, calligraphy and digital images in multiple lattices | |
CN111353335A (en) | Method for converting control layer logic diagram into simulation system configuration file | |
KR20140042126A (en) | Dcs logic diagram simulation apparatus for power plant and the method thereof | |
CN110502735B (en) | Method and system for quickly manufacturing universal process file of electronic equipment | |
CN111736815A (en) | Test file script modular development tool, system and method | |
CN101183400B (en) | Debugging and checking method and system in graph hardware design | |
CN108021353B (en) | Device, method, equipment and storage medium for generating description document of software product | |
CN114692383B (en) | Modeling method and device for full-range analog machine simulation object and computer equipment | |
US20220058530A1 (en) | Method and device for optimizing deep learning model conversion, and storage medium | |
CN113435168A (en) | Method, system, terminal and medium for automatically editing rubber picture | |
CN112861455A (en) | FPGA modeling verification system and method | |
CN110647986A (en) | Road damage image generation method based on countermeasure type generation network | |
CN112579431A (en) | Cross-platform script recording and playback method based on image recognition | |
JP4355930B2 (en) | Semiconductor integrated circuit power supply model creation method, program, and information processing apparatus | |
CN113569419B (en) | Rapid generation system and method for three-dimensional final assembly model of liquid rocket engine | |
JP6146224B2 (en) | Determination method, determination program, and determination apparatus | |
JP7010364B2 (en) | Data creation device, data classification device, data processing system, data creation method, data classification method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200630 |