CN111401028A - Automatic comparison method and device for RPS software version of nuclear power station - Google Patents
Automatic comparison method and device for RPS software version of nuclear power station Download PDFInfo
- Publication number
- CN111401028A CN111401028A CN202010195255.3A CN202010195255A CN111401028A CN 111401028 A CN111401028 A CN 111401028A CN 202010195255 A CN202010195255 A CN 202010195255A CN 111401028 A CN111401028 A CN 111401028A
- Authority
- CN
- China
- Prior art keywords
- variable
- configuration information
- equipment
- algorithm
- comparison
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000007792 addition Methods 0.000 description 4
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 235000002020 sage Nutrition 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000011144 upstream manufacturing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000003169 central nervous system Anatomy 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/219—Managing data history or versioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2255—Hash tables
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0639—Performance analysis of employees; Performance analysis of enterprise or organisation operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/06—Electricity, gas or water supply
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Abstract
The invention relates to an automatic comparison method and device for RPS software versions of nuclear power stations, belongs to the technical field of industrial control software configuration, and solves the problems of low comparison efficiency and poor accuracy of the existing method. Acquiring engineering files of two different versions to be compared; analyzing the two engineering files respectively to obtain corresponding engineering information, wherein the engineering information comprises equipment configuration information, algorithm configuration information, variable configuration information and picture configuration information; and respectively comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent, generating a report according to a comparison result and outputting the report to a corresponding position. The efficiency and the accuracy of comparison between engineering files of different versions are improved.
Description
Technical Field
The invention relates to the technical field of industrial control software configuration, in particular to an automatic comparison method and device for RPS software versions of a nuclear power station.
Background
The control system is a central nervous system for operation, operation and monitoring of the nuclear power station, is important equipment for ensuring safe and reliable operation of the nuclear power station, and helps to adjust and meet the requirements of operation and maintenance of the nuclear power station. Currently, about 40% of the operating reactors throughout the world have been completely upgraded or contain parts of the digital instrumentation system. At present, a nuclear power station under construction or a nuclear power station to be built uses a digital instrument control system.
In the DCS (digital instrumentation and control system) engineering design of an RPS (nuclear power station protection system), development of large engineering projects is often involved, and upstream changes often involve product changes and upgrading. The method comprises the steps of framing the engineering configuration difference between two different versions, wherein the engineering configuration comprises variable configuration, hardware equipment configuration, algorithm configuration, graph configuration and the like, and the storage forms of the data are diversified, so that huge workload is brought to workers comparing engineering of different versions, and the problems of low working efficiency, poor accuracy and the like are caused.
Disclosure of Invention
In view of the foregoing analysis, embodiments of the present invention provide an automated comparison method and apparatus for a nuclear power plant RPS software version, so as to solve the problems of low working efficiency and poor accuracy of the existing method.
On one hand, the embodiment of the invention provides an automatic comparison method for RPS software versions of a nuclear power station, which comprises the following steps:
acquiring engineering files of two different versions to be compared;
analyzing the two engineering files respectively to obtain corresponding engineering information, wherein the engineering information comprises equipment configuration information, algorithm configuration information, variable configuration information and picture configuration information;
and respectively comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent, generating a report according to a comparison result and outputting the report to a corresponding position.
Further, the analyzing the two engineering files respectively to obtain corresponding engineering information includes the following steps:
identifying the engineering file to obtain an equipment list, algorithm information, parameter variables and human-computer interface information;
classifying the equipment list in the engineering file according to equipment types respectively to obtain equipment configuration information of different types of equipment, wherein the equipment configuration information comprises equipment identification, equipment name and equipment model;
identifying a primitive in the algorithm information to obtain a functional algorithm block, reading the algorithm block to obtain an algorithm block name and an algorithm block type, and obtaining algorithm configuration information based on the algorithm block name, the algorithm block type and an algorithm block identifier included in the algorithm block name;
classifying parameter variables in the engineering file according to variable categories to obtain a plurality of different types of variables, reading a variable name and a variable value of each variable, wherein the variable name comprises a variable identifier to obtain variable configuration information, and storing the variable configuration information into a hash table according to the variable name;
and classifying the human-computer interface information in the engineering file according to attributes to obtain lines and buttons, and obtaining line names, line types, button names and button types, wherein the line names comprise line identifications, and the button names comprise button identifications, so as to obtain picture configuration information.
Further, comparing whether the device configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding to each other, specifically comprising the following steps:
respectively obtaining the equipment names and the equipment models corresponding to the same equipment identification, comparing whether the equipment names and the equipment models are corresponding and consistent, and generating an equipment configuration comparison report according to a comparison result;
respectively obtaining algorithm block names and algorithm block types corresponding to the same algorithm block identification, comparing whether the algorithm block names and the algorithm block types are corresponding and consistent, and generating an algorithm configuration comparison report according to a comparison result;
based on the Hash search mode, respectively obtaining the variable name and the variable value corresponding to the same variable identification, judging whether the variable name and the variable value are corresponding and consistent,
respectively obtaining corresponding line names and line types based on the same line identification, and comparing whether the line names and the line types are corresponding and consistent; and meanwhile, obtaining the button name and the button type corresponding to the same button identifier, judging whether the button name and the button type are corresponding and consistent, and generating a picture configuration comparison report according to a comparison result.
Further, for the algorithm configuration information, generating sub-tables according to the comparison result of each category variable by adding, deleting and modifying, and summarizing all the sub-tables to generate a variable configuration comparison report.
Further, the equipment configuration comparison report, the algorithm configuration comparison report, the variable configuration comparison report and the picture configuration comparison report are summarized to obtain a total report.
In another embodiment of the present invention, an automated comparison apparatus for RPS software version of a nuclear power plant is provided, which includes:
the file obtaining module is used for obtaining the project files of two different versions to be compared;
the file analysis module is used for respectively analyzing the two engineering files to obtain corresponding engineering information, and the engineering information comprises a station number, equipment configuration information, algorithm configuration information, variable configuration information and picture configuration information;
and the configuration information comparison module is used for respectively comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent, generating a report according to a comparison result and outputting the report to a corresponding position.
Further, the file parsing module includes:
identifying the engineering file to obtain an equipment list, algorithm information, parameter variables and human-computer interface information;
classifying the equipment list in the engineering file according to equipment types respectively to obtain equipment configuration information of different types of equipment, wherein the equipment configuration information comprises equipment identification, equipment name and equipment model;
identifying a primitive in the algorithm information to obtain a functional algorithm block, reading the algorithm block to obtain an algorithm block name and an algorithm block type, and obtaining algorithm configuration information based on the algorithm block name, the algorithm block type and an algorithm block identifier included in the algorithm block name;
classifying parameter variables in the engineering file according to variable categories to obtain a plurality of different types of variables, reading a variable name and a variable value of each variable, wherein the variable name comprises a variable identifier to obtain variable configuration information, and storing the variable configuration information into a hash table according to the variable name;
and classifying the human-computer interface information in the engineering file according to attributes to obtain lines and buttons, and obtaining line names, line types, button names and button types, wherein the line names comprise line identifications, and the button names comprise button identifications, so as to obtain picture configuration information.
Further, the configuration information comparing module includes:
respectively obtaining the equipment names and the equipment models corresponding to the same equipment identification, comparing whether the equipment names and the equipment models are corresponding and consistent, and generating an equipment configuration comparison report according to a comparison result;
respectively obtaining algorithm block names and algorithm block types corresponding to the same algorithm block identification, comparing whether the algorithm block names and the algorithm block types are corresponding and consistent, and generating an algorithm configuration comparison report according to a comparison result;
based on the Hash search mode, respectively obtaining the variable name and the variable value corresponding to the same variable identification, judging whether the variable name and the variable value are corresponding and consistent,
respectively obtaining corresponding line names and line types based on the same line identification, and comparing whether the line names and the line types are corresponding and consistent; and meanwhile, obtaining the button name and the button type corresponding to the same button identifier, judging whether the button name and the button type are corresponding and consistent, and generating a picture configuration comparison report according to a comparison result.
Further, for the comparison result of the algorithm configuration information, generating sub-tables according to the comparison result of each category variable by adding, deleting and modifying, and summarizing all the sub-tables to generate a variable configuration comparison report.
Further, the system also comprises a comparison result summarizing module which is used for summarizing the equipment configuration comparison report, the algorithm configuration comparison report, the variable configuration comparison report and the picture configuration comparison report to obtain a total report.
Compared with the prior art, the invention can realize at least one of the following beneficial effects:
1. the automatic comparison method for the RPS software version of the nuclear power station provided by the embodiment solves the problems of low efficiency and poor accuracy of the existing comparison method, realizes the automatic comparison of different versions of the application software of the nuclear power station protection system, improves the comparison efficiency, and ensures the accuracy of the comparison quality.
2. By comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent or not, the comparison of various configurations among engineering files of different versions is realized, meanwhile, the comparison method presents the comparison result completely, accurately and visually, and the satisfaction degree of a user is improved.
3. The total report is generated by summarizing all the independent reports, so that the summary of comparison results is realized, the total report can more quickly position and change the position and the change range, manual intervention is not needed, and the working efficiency of workers is improved.
In the invention, the technical schemes can be combined with each other to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, wherein like reference numerals are used to designate like parts throughout.
FIG. 1 is a flow chart of a method for implementing automated comparison of RPS software versions in a nuclear power plant in accordance with an embodiment of the present invention;
fig. 2 is a structural diagram of an automated comparison device for implementing the software version of the RPS of the nuclear power plant according to an embodiment of the present invention.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.
A digital instrument control system of a nuclear power plant protection system relates to the development of large-scale engineering projects, and often relates to the change and upgrading of products due to upstream change. The digital instrumentation and control system relates to engineering configuration, wherein the engineering configuration comprises variable configuration, equipment configuration, algorithm configuration and picture configuration, and the engineering configuration difference between two different versions is defined, so that the safety of the digital instrumentation and control system and the quality of products are influenced, and the configuration difference of engineering files of the two different versions needs to be compared.
The embodiment of the invention discloses an automatic comparison method for RPS software versions of a nuclear power station, which comprises the following steps as shown in FIG. 1:
and S1, obtaining two different versions of project files to be compared.
The engineer station is a source of large project development of the nuclear power station, and the engineer station has engineering files of different versions, including equipment configuration, algorithm configuration, variable configuration and picture configuration. Besides all functions of the operation station, the engineer station can perform functions of configuration uploading, downloading, modification and the like on the digital instrument control system, and can configure the control station. In this embodiment, two different versions of the engineering files in the ENP format are selected, and the configuration difference items of the two different versions of the engineering files are compared in the following manner.
And S2, analyzing the two engineering files respectively to obtain corresponding engineering information, wherein the engineering information comprises equipment configuration information, algorithm configuration information, variable configuration information and picture configuration information.
Analyzing two different versions of engineering documents is the premise and basis for later comparison of equipment configuration, algorithm configuration, variable configuration and picture configuration. According to the different parts of the configuration module content, the configuration module is analyzed into corresponding configuration data, and the comparison between the configuration variables can be realized.
Specifically, the method for analyzing the two engineering files respectively to obtain the corresponding engineering information includes the following steps:
s201, identifying the engineering file to obtain an equipment list, algorithm information, parameter variables and human-computer interface information, and specifically comprising the following steps:
acquiring the same station number and station type based on two engineering files with different versions;
reading the file content under the same station number and station type by taking the station number and the station type as the basis;
classifying the obtained file contents according to configuration categories to obtain and store equipment information, algorithm information, parameter variables and human-computer interface information;
and storing the equipment information in a list form to obtain an equipment list.
S202, classifying the equipment list in the engineering file according to equipment types respectively to obtain equipment configuration information of different types of equipment, wherein the equipment configuration information comprises equipment identification, equipment name and equipment model. Specifically, the device types include a cabinet, a chassis, a board card type, and a network card type. The classification of the equipment list in the engineering file is to classify the contents in the equipment list into four categories, namely, a cabinet, a case, a board card type and a network card type, wherein each kind of equipment has corresponding identification, name and model.
Specifically, the algorithm information in the engineering file is presented in the form of an algorithm configuration diagram in an XM L format, and the functional algorithm block can be obtained by identifying a graphic unit in the algorithm configuration diagram, wherein the identification of the graphic unit in the algorithm configuration diagram is a common method and can be realized by computer programming.
Classifying the parameter variables in the engineering file according to variable categories to obtain a plurality of different types of variables, reading the variable name and the variable value of each variable, wherein the variable name comprises a variable identifier to obtain variable configuration information, and storing the variable configuration information into a hash table according to the variable name. The hash table is a data structure and can store various types of data. The hash table can realize the corresponding relationship between the key words and the storage positions, in this embodiment, the variable names are used as the key words, the variable configuration information of different variable names is stored in the hash table, and each different variable name has a one-to-one corresponding relationship with the storage position. Specifically, the variable categories include an analog input quantity AI, an analog output quantity AO, a digital input quantity DI, and a digital output quantity DO. Classifying the parameter variables by the variable categories to obtain four types of variables of different types; based on each type of variable, reading a variable name, a variable type and a variable value, wherein the variable name comprises a variable identifier, and then obtaining variable configuration information.
And classifying the human-computer interface information in the engineering file according to attributes to obtain lines and buttons, and obtaining line names, line types, button names and button types, wherein the line names comprise line identifications, and the button names comprise button identifications, so as to obtain picture configuration information.
And S3, respectively comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent, generating a report according to the comparison result and outputting the report to a corresponding position.
Specifically, while acquiring two different versions of project files to be compared, setting storage paths of comparison results of device configuration information, algorithm configuration information, variable configuration information and screen configuration information under each station number, sequentially including DEV _ Result, A L G _ Result, A L G _ Result and SAGE _ RESU L T, after all configuration information under each station number is compared, generating a device configuration comparison report, an algorithm configuration comparison report, a variable configuration comparison report and a screen configuration comparison report, and outputting configuration comparison results to corresponding positions (DEV _ Result, A L G _ Result, A L G _ Result and SAGE _ RESU L T) and storing the configuration comparison results according to the station numbers until all configuration information under all station numbers are compared.
Compared with the prior art, the automatic comparison method for the RPS software version of the nuclear power station provided by the embodiment solves the problems of low efficiency and poor accuracy of the existing comparison method, realizes the automatic comparison of different versions of the application software of the nuclear power station protection system, improves the comparison efficiency, and ensures the accuracy of the comparison quality.
Preferably, the step of comparing whether the device configuration information, the algorithm configuration information, the variable configuration information and the screen configuration information are corresponding to each other includes the following steps:
respectively obtaining the equipment names and the equipment types corresponding to the same equipment identification, comparing whether the equipment names and the equipment types are corresponding and consistent, and generating an equipment configuration comparison report according to a comparison result;
respectively obtaining primitive names and primitive types corresponding to the same primitive identification, comparing whether the primitive names and the primitive types are corresponding and consistent or not, and generating an algorithm configuration comparison report according to a comparison result;
based on the Hash search mode, respectively obtaining the variable name, the variable type and the variable value corresponding to the same variable identification, judging whether the variable name, the variable type and the variable value are corresponding and consistent,
respectively obtaining corresponding line names and line types based on the same line identification, and comparing whether the line names and the line types are corresponding and consistent; and meanwhile, obtaining the button name and the button type corresponding to the same button identifier, judging whether the button name and the button type are corresponding and consistent, and generating a picture configuration comparison report according to a comparison result.
Specifically, in the nuclear power plant protection system engineering configuration, the contents to be compared are comprehensive, the contents to be compared include variable configuration, hardware equipment configuration, algorithm configuration, picture configuration and the like, the storage forms of the data are diversified, huge workload is brought to personnel comparing different versions of engineering, and an accurate and unique visual report is lacked.
After the comparison is completed, the method stores the generated equipment configuration comparison report, algorithm configuration comparison report, variable configuration comparison report and picture configuration comparison report to corresponding positions (DEV _ Result, A L G _ Result and SAGE _ RESU L T) according to the station number.
After the comparison of the algorithm configuration information is completed, the comparison difference items are boxed in the algorithm configuration comparison report (A L G _ Result) according to the modification categories (addition, deletion, modification), wherein the addition items and the modification items are boxed by solid line rectangles, and the deletion items are boxed by dotted line rectangles.
By comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent or not, the comparison of various configurations among engineering files of different versions is realized, meanwhile, the comparison method presents the comparison result completely, accurately and visually, and the satisfaction degree of a user is improved.
Preferably, for the algorithm configuration information, the comparison result of each category variable is generated into sub-tables according to addition, deletion and modification, all the sub-tables are collected to generate a variable configuration comparison report, and all the sub-tables are collected to generate the variable configuration comparison report.
Specifically, the sub-tables generated by comparing the variables of all the categories are collected to generate a variable configuration comparison report, and the variable configuration comparison report is stored in the corresponding intermediate file VAR _ RESU L T.
Preferably, the equipment configuration comparison report, the algorithm configuration comparison report, the variable configuration comparison report and the picture configuration comparison report are summarized to obtain a total report.
In an exemplary embodiment, DEV _ Result, a L G _ Result, VAR _ RESU L T and SAGE _ RESU L T are summarized to generate the total report, and meanwhile, the report can be output in files of various formats, such as excel, pdf and the like, so as to facilitate later viewing and editing.
The total report is generated by summarizing all the independent reports, so that the summary of comparison results is realized, the total report can more quickly position and change the position and the change range, manual intervention is not needed, and the working efficiency of workers is improved.
Another embodiment of the present invention discloses an automatic comparison device for RPS software versions in a nuclear power plant, as shown in fig. 2, including:
the file obtaining module is used for obtaining the project files of two different versions to be compared;
the file analysis module is used for respectively analyzing the two engineering files to obtain corresponding engineering information, and the engineering information comprises a station number, equipment configuration information, algorithm configuration information, variable configuration information and picture configuration information;
and the configuration information comparison module is used for respectively comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent, generating a report according to a comparison result and outputting the report to a corresponding position.
By the aid of the automatic comparison device for the RPS software version of the nuclear power station, the problems of low efficiency and poor accuracy of an existing comparison method are solved, automatic comparison of different versions of application software of a nuclear power station protection system is achieved, comparison efficiency is improved, and accuracy of comparison quality is guaranteed.
Preferably, the file parsing module includes:
identifying the engineering file to obtain an equipment list, algorithm information, parameter variables and human-computer interface information;
classifying the equipment list in the engineering file according to equipment types respectively to obtain equipment configuration information of different types of equipment, wherein the equipment configuration information comprises equipment identification, equipment name and equipment model;
identifying a primitive in the algorithm information to obtain a functional algorithm block, reading the algorithm block to obtain an algorithm block name and an algorithm block type, and obtaining algorithm configuration information based on the algorithm block name, the algorithm block type and an algorithm block identifier included in the algorithm block name;
classifying parameter variables in the engineering file according to variable categories to obtain a plurality of different types of variables, reading a variable name and a variable value of each variable, wherein the variable name comprises a variable identifier to obtain variable configuration information, and storing the variable configuration information into a hash table according to the variable name;
and classifying the human-computer interface information in the engineering file according to attributes to obtain lines and buttons, and obtaining line names, line types, button names and button types, wherein the line names comprise line identifications, and the button names comprise button identifications, so as to obtain picture configuration information.
Through the file analysis module, the conversion from the text data to the configuration data is realized, support and foundation are provided for the comparison of the later configuration, and the comparison accuracy is improved.
Preferably, the configuration information comparing module includes:
respectively obtaining the equipment names and the equipment models corresponding to the same equipment identification, comparing whether the equipment names and the equipment models are corresponding and consistent, and generating an equipment configuration comparison report according to a comparison result;
respectively obtaining algorithm block names and algorithm block types corresponding to the same algorithm block identification, comparing whether the algorithm block names and the algorithm block types are corresponding and consistent, and generating an algorithm configuration comparison report according to a comparison result;
based on the Hash search mode, respectively obtaining the variable name and the variable value corresponding to the same variable identification, judging whether the variable name and the variable value are corresponding and consistent,
respectively obtaining corresponding line names and line types based on the same line identification, and comparing whether the line names and the line types are corresponding and consistent; and meanwhile, obtaining the button name and the button type corresponding to the same button identifier, judging whether the button name and the button type are corresponding and consistent, and generating a picture configuration comparison report according to a comparison result.
By comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent or not, the comparison of various configurations among engineering files of different versions is realized, meanwhile, the comparison method presents the comparison result completely, accurately and visually, and the satisfaction degree of a user is improved.
Preferably, for the comparison result of the algorithm configuration information, the comparison result of each category variable is generated into sub-tables according to addition, deletion and modification, and all the sub-tables are collected to generate a variable configuration comparison report.
Preferably, the system further includes a comparison result summarizing module for summarizing the device configuration comparison report, the algorithm configuration comparison report, the variable configuration comparison report, and the screen configuration comparison report to obtain a total report.
The total report is generated by summarizing all the independent reports, so that the summary of comparison results is realized, the total report can more quickly position and change the position and the change range, manual intervention is not needed, and the working efficiency of workers is improved.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium, to instruct related hardware. The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.
Claims (10)
1. An automatic comparison method for RPS software versions of nuclear power stations is characterized by comprising the following steps:
acquiring engineering files of two different versions to be compared;
analyzing the two engineering files respectively to obtain corresponding engineering information, wherein the engineering information comprises equipment configuration information, algorithm configuration information, variable configuration information and picture configuration information;
and respectively comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent, generating a report according to a comparison result and outputting the report to a corresponding position.
2. The method according to claim 1, wherein the parsing the two engineering documents to obtain corresponding engineering information comprises:
identifying the engineering file to obtain an equipment list, algorithm information, parameter variables and human-computer interface information;
classifying the equipment list in the engineering file according to equipment types respectively to obtain equipment configuration information of different types of equipment, wherein the equipment configuration information comprises equipment identification, equipment name and equipment model;
identifying a primitive in the algorithm information to obtain a functional algorithm block, reading the algorithm block to obtain an algorithm block name and an algorithm block type, and obtaining algorithm configuration information based on the algorithm block name, the algorithm block type and an algorithm block identifier included in the algorithm block name;
classifying parameter variables in the engineering file according to variable categories to obtain a plurality of different types of variables, reading a variable name and a variable value of each variable, wherein the variable name comprises a variable identifier to obtain variable configuration information, and storing the variable configuration information into a hash table according to the variable name;
and classifying the human-computer interface information in the engineering file according to attributes to obtain lines and buttons, and obtaining line names, line types, button names and button types, wherein the line names comprise line identifications, and the button names comprise button identifications, so as to obtain picture configuration information.
3. The method of claim 2, wherein comparing whether the device configuration information, the algorithm configuration information, the variable configuration information, and the screen configuration information are consistent respectively comprises:
respectively obtaining the equipment names and the equipment models corresponding to the same equipment identification, comparing whether the equipment names and the equipment models are corresponding and consistent, and generating an equipment configuration comparison report according to a comparison result;
respectively obtaining algorithm block names and algorithm block types corresponding to the same algorithm block identification, comparing whether the algorithm block names and the algorithm block types are corresponding and consistent, and generating an algorithm configuration comparison report according to a comparison result;
based on the Hash search mode, respectively obtaining the variable name and the variable value corresponding to the same variable identification, judging whether the variable name and the variable value are corresponding and consistent,
respectively obtaining corresponding line names and line types based on the same line identification, and comparing whether the line names and the line types are corresponding and consistent; and meanwhile, obtaining the button name and the button type corresponding to the same button identifier, judging whether the button name and the button type are corresponding and consistent, and generating a picture configuration comparison report according to a comparison result.
4. The method of claim 3, wherein for the algorithm configuration information, the comparison result of each category variable is added, deleted and modified to generate sub-tables, and all sub-tables are collected to generate a variable configuration comparison report.
5. The method of claim 4, wherein the equipment configuration comparison report, the algorithm configuration comparison report, the variable configuration comparison report, and the screen configuration comparison report are summarized to obtain a total report.
6. An automated comparison device for RPS software versions in nuclear power plants, the system comprising:
the file obtaining module is used for obtaining the project files of two different versions to be compared;
the file analysis module is used for respectively analyzing the two engineering files to obtain corresponding engineering information, and the engineering information comprises equipment configuration information, algorithm configuration information, variable configuration information and picture configuration information;
and the configuration information comparison module is used for respectively comparing whether the equipment configuration information, the algorithm configuration information, the variable configuration information and the picture configuration information are corresponding and consistent, generating a report according to a comparison result and outputting the report to a corresponding position.
7. The apparatus of claim 6, wherein the file parsing module comprises:
identifying the engineering file to obtain an equipment list, algorithm information, parameter variables and human-computer interface information;
classifying the equipment list in the engineering file according to equipment types respectively to obtain equipment configuration information of different types of equipment, wherein the equipment configuration information comprises equipment identification, equipment name and equipment model;
identifying a primitive in the algorithm information to obtain a functional algorithm block, reading the algorithm block to obtain an algorithm block name and an algorithm block type, and obtaining algorithm configuration information based on the algorithm block name, the algorithm block type and an algorithm block identifier included in the algorithm block name;
classifying parameter variables in the engineering file according to variable categories to obtain a plurality of different types of variables, reading a variable name and a variable value of each variable, wherein the variable name comprises a variable identifier to obtain variable configuration information, and storing the variable configuration information into a hash table according to the variable name;
and classifying the human-computer interface information in the engineering file according to attributes to obtain lines and buttons, and obtaining line names, line types, button names and button types, wherein the line names comprise line identifications, and the button names comprise button identifications, so as to obtain picture configuration information.
8. The apparatus of claim 7, wherein the configuration information comparison module comprises:
respectively obtaining the equipment names and the equipment models corresponding to the same equipment identification, comparing whether the equipment names and the equipment models are corresponding and consistent, and generating an equipment configuration comparison report according to a comparison result;
respectively obtaining algorithm block names and algorithm block types corresponding to the same algorithm block identification, comparing whether the algorithm block names and the algorithm block types are corresponding and consistent, and generating an algorithm configuration comparison report according to a comparison result;
based on the Hash search mode, respectively obtaining the variable name and the variable value corresponding to the same variable identification, judging whether the variable name and the variable value are corresponding and consistent,
respectively obtaining corresponding line names and line types based on the same line identification, and comparing whether the line names and the line types are corresponding and consistent; and meanwhile, obtaining the button name and the button type corresponding to the same button identifier, judging whether the button name and the button type are corresponding and consistent, and generating a picture configuration comparison report according to a comparison result.
9. The apparatus of claim 8, wherein for the algorithm configuration information, the comparison result of each category variable is added, deleted and modified to generate sub-tables, and all sub-tables are collected to generate a variable configuration comparison report.
10. The apparatus of claim 9, further comprising a comparison result summarization module for summarizing the device configuration comparison report, the algorithm configuration comparison report, the variable configuration comparison report, and the screen configuration comparison report to obtain a total report.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010195255.3A CN111401028B (en) | 2020-03-19 | 2020-03-19 | Automatic comparison method and device for RPS software versions of nuclear power station |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010195255.3A CN111401028B (en) | 2020-03-19 | 2020-03-19 | Automatic comparison method and device for RPS software versions of nuclear power station |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111401028A true CN111401028A (en) | 2020-07-10 |
CN111401028B CN111401028B (en) | 2023-12-26 |
Family
ID=71428877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010195255.3A Active CN111401028B (en) | 2020-03-19 | 2020-03-19 | Automatic comparison method and device for RPS software versions of nuclear power station |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111401028B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112596770A (en) * | 2020-12-24 | 2021-04-02 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN113156902A (en) * | 2021-04-13 | 2021-07-23 | 西安热工研究院有限公司 | Configuration consistency checking and processing method of DCS (distributed control system) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107341646A (en) * | 2017-05-31 | 2017-11-10 | 北京广利核系统工程有限公司 | Configuration software coordination management system and method |
US20180314519A1 (en) * | 2017-04-26 | 2018-11-01 | Hyundai Motor Company | Method and apparatus for analyzing impact of software change |
CN109558163A (en) * | 2018-11-09 | 2019-04-02 | 中国核动力研究设计院 | A kind of version generation and management method based on operating file in controller |
CN109634854A (en) * | 2018-12-04 | 2019-04-16 | 北京广利核系统工程有限公司 | A kind of method of inspection software Engineering Algorithm configuration exception |
CN110244936A (en) * | 2019-04-28 | 2019-09-17 | 北京广利核系统工程有限公司 | Method and apparatus for supporting VISIO flow chart to be automatically imported DCS algorithm configuration software |
-
2020
- 2020-03-19 CN CN202010195255.3A patent/CN111401028B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180314519A1 (en) * | 2017-04-26 | 2018-11-01 | Hyundai Motor Company | Method and apparatus for analyzing impact of software change |
CN107341646A (en) * | 2017-05-31 | 2017-11-10 | 北京广利核系统工程有限公司 | Configuration software coordination management system and method |
CN109558163A (en) * | 2018-11-09 | 2019-04-02 | 中国核动力研究设计院 | A kind of version generation and management method based on operating file in controller |
CN109634854A (en) * | 2018-12-04 | 2019-04-16 | 北京广利核系统工程有限公司 | A kind of method of inspection software Engineering Algorithm configuration exception |
CN110244936A (en) * | 2019-04-28 | 2019-09-17 | 北京广利核系统工程有限公司 | Method and apparatus for supporting VISIO flow chart to be automatically imported DCS algorithm configuration software |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112596770A (en) * | 2020-12-24 | 2021-04-02 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112596770B (en) * | 2020-12-24 | 2023-08-18 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN113156902A (en) * | 2021-04-13 | 2021-07-23 | 西安热工研究院有限公司 | Configuration consistency checking and processing method of DCS (distributed control system) |
Also Published As
Publication number | Publication date |
---|---|
CN111401028B (en) | 2023-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103778107B (en) | Method and platform for quickly and dynamically generating form based on EXCEL | |
US20030037076A1 (en) | Method, computer program and system for style sheet generation | |
CN102087657B (en) | IO (Input/output) to point method and IO (Input/output) to point for nuclear power plant simulation platform | |
US20020199168A1 (en) | Automatic program generation apparatus | |
CN112286512A (en) | UI management subsystem of avionics simulation test platform | |
JP2013507712A (en) | Excel-based analysis report creation system and method | |
CN110108955A (en) | A kind of new-energy grid-connected performance automatic test analysis platform and detection method | |
CN109389326B (en) | Monitoring event-oriented object modeling method, device and system | |
US7107284B1 (en) | Method of generating user customized document incorporating at least a portion of discovery information recorded in the system of record database in data warehouse environment | |
CN108762743A (en) | Data table operation code generation method and device | |
CN111401028B (en) | Automatic comparison method and device for RPS software versions of nuclear power station | |
CN111881579B (en) | Complex dynamic data model management method | |
CN109614143B (en) | Development method for automatically generating fault flow chart in IETM browser | |
CN108877806B (en) | Test verification system for test instruction type voice control system | |
CN112949018A (en) | System and method for establishing direct current power transmission control and protection platform model and testing and verifying direct current power transmission control and protection platform model | |
CN103810243A (en) | Innovative hotspot pre-warning recognition system and method | |
CN116126443A (en) | Method and system for dynamically configuring electronic experiment record and report | |
CN1973284A (en) | Document processing method and device | |
EP1744271A1 (en) | Document processing device | |
CN105824684B (en) | A kind of implementation method of multi-mode big data software simulator | |
CN112416367A (en) | Application resource change influence analysis system based on software reverse disassembly and analysis | |
CN112764396B (en) | Configuration method and device | |
CN111459904B (en) | TPM document automatic management system and method | |
CN108628606A (en) | A kind of the WEB webmaster application program generation methods and system of embedded device | |
CN110968996B (en) | Document making method, device, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |