CN106777644B - Automatic generation method and device for power plant identification system code - Google Patents

Automatic generation method and device for power plant identification system code Download PDF

Info

Publication number
CN106777644B
CN106777644B CN201611123326.9A CN201611123326A CN106777644B CN 106777644 B CN106777644 B CN 106777644B CN 201611123326 A CN201611123326 A CN 201611123326A CN 106777644 B CN106777644 B CN 106777644B
Authority
CN
China
Prior art keywords
power plant
code
plant identification
identification system
primitive
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.)
Active
Application number
CN201611123326.9A
Other languages
Chinese (zh)
Other versions
CN106777644A (en
Inventor
赵平
孙叶柱
雷风仕
王荣彬
江永
孙靖初
孙宇明
刘勇波
申建汛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaneng Power International Inc
Original Assignee
Huaneng Power International Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huaneng Power International Inc filed Critical Huaneng Power International Inc
Priority to CN201611123326.9A priority Critical patent/CN106777644B/en
Publication of CN106777644A publication Critical patent/CN106777644A/en
Application granted granted Critical
Publication of CN106777644B publication Critical patent/CN106777644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply
    • YGENERAL 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS 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/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems 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 provides a method and a device for automatically generating a power plant identification system code, which comprises the following steps: drawing a page according to the selected system diagram, and determining the unit number of the power plant identification system; reading a power plant identification system classification code of a primitive according to the selected primitive matched with the engineering design structure of the power plant equipment; generating a power plant identification system number corresponding to the system diagram for the system diagram drawn by the primitive; generating a power plant identification system code of a system diagram according to the power plant identification system unit number, the power plant identification system classification code and the power plant identification system number; the method can realize automatic generation and automatic labeling of the power plant identification system codes of the system diagram through the computer system, reduce the error rate, the duplication code rate and the labor cost of the codes, improve the digital management and safe operation level and the working efficiency of enterprises, provide uniform, scientific, correct and complete power plant identification system coded data for the application of the system diagram, and further greatly reduce the comprehensive cost of the enterprises.

Description

Automatic generation method and device for power plant identification system code
Technical Field
The invention relates to the technical field of power plant equipment codes, in particular to a method and a device for automatically generating a power plant identification system code.
Background
The power plant identification system code is a code which is used for clearly and uniquely describing a system, equipment and parts in a power plant according to the functions, installation places, installation positions and other characteristics of an identified object, English letters and Arabic numerals and strict, scientific and practical coding rules. The power plant identification system code is mainly applied to aspects of power plant engineering planning, design, construction, acceptance, operation, maintenance, budget, cost control and the like.
With the rapid development of scientific technology, the power plant identification system has become the most widely applied code. At present, the process of generating codes for identified objects in a power plant by applying a power plant identification system code is as follows: and manually coding the identified object on a drawing by a designer according to the function, the action and the dependency relationship of the equipment and the component in the system diagram and manually marking the identified object by using the obtained code so as to realize the generation and marking of the power plant identification system code of the identified object in the enterprise.
However, the method for manually coding the identified object in the power plant by the application is slow in working efficiency, high in requirements on the professional level and the careful degree of designers, multi-professional cooperation, difference area sharing and the like in order to reduce the probability of wrong codes and repeated codes, and long in working period.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide an automatic generation method and an apparatus for a power plant identification system code, which implement automatic generation and automatic labeling of the power plant identification system code for a system diagram through a computer system, reduce error rate, repetition rate and labor cost of the power plant identification system code, and improve digital management and safe operation level and work efficiency of an enterprise.
In a first aspect, an embodiment of the present invention provides an automatic generation method for a power plant identification system code, including:
drawing a page according to the selected system diagram, and determining the unit number of the power plant identification system;
reading a power plant identification system classification code of a selected primitive matched with an engineering design structure of power plant equipment;
generating a power plant identification system number corresponding to a system diagram drawn according to the selected primitive according to a preset number rule; the preset numbering rules comprise one or more of the following rules: a prefix number numbering rule, a system level numbering rule, an equipment level numbering rule and a component level numbering rule;
and generating the power plant identification system code of the system diagram according to the determined power plant identification system unit number, the read power plant identification system classification code and the generated power plant identification system number.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where determining a plant identification system unit number of a power plant according to a selected system diagram drawing page includes:
when a system graph drawing page is detected, extracting a page identification code of the system graph drawing page;
drawing a page identification code in a page according to the system diagram, and determining the power plant identification system unit number of the power plant equipment; the page identification codes correspond to the unit numbers of the power plant identification system one by one.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where reading, according to a selected primitive matched with an engineering design structure of a power plant device, a power plant identification system classification code of the primitive includes:
when a primitive matched with an engineering design structure of the power plant equipment is detected, extracting a primitive identification code of the primitive;
reading the power plant identification system classification codes matched with the primitives according to the primitive identification codes of the primitives; each primitive has a unique primitive identification code, and the primitive identification codes correspond to classification codes of a power plant identification system in a multi-level mode; the plant identification system classification code comprises one or more of the following: system level class code, device level class code, and component level class code.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where reading, according to a primitive identification code of the primitive, a power plant identification system classification code matched with the primitive, includes:
determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
analyzing and processing the first topological structure and the second topological structure to obtain a classification code topological structure; wherein the classified code topology comprises: a system level classified code topology, a device level classified code topology and a component level classified code topology;
reading the power plant identification system classification codes of the primitives according to the classification code topological structures and the primitive identification codes of the primitives; and the database is prestored with the power plant identification system classification codes corresponding to the classification code topological structures.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where, for a system diagram drawn according to a selected primitive, generating a power plant identification system number corresponding to the system diagram according to a preset number rule includes:
determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
analyzing and processing the first topological structure and the second topological structure to obtain a numbered topological structure; wherein the numbering topology comprises: a prefix number topology, a system level numbering topology, a device level numbering topology, and a component level numbering topology;
generating a power plant identification system number corresponding to the system diagram according to the numbering topological structure and a preset numbering rule; wherein, the preset numbering rule comprises: and the corresponding relation between the numbered topological structure and the power plant identification system number.
With reference to the first aspect, or any one of the first possible implementation manner of the first aspect to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein the plant identification system code adopts three levels and seven sets of 13-bit coding rules, and level 0 corresponds to the first set and includes a 1-bit code and a representative set number; the 1-level corresponds to the second group, the third group and the fourth group, respectively comprises 1-digit numbers, 3-digit letters and 2-digit numbers, and respectively represents prefix numbers, system classification codes and system numbers; the 2-level corresponds to a fifth group, a sixth group and a seventh group, respectively comprises 2-bit letters, 3-bit numbers and 1-bit letters, and respectively represents equipment classification codes, equipment numbers and equipment additional codes; wherein the code number comprises: a number or letter; the default values of the unit number, the system number and the device number are complemented with 0.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes:
acquiring a system graph file comprising other structure types;
converting the obtained system diagram file to obtain a system diagram structure; the system diagram structure comprises: the system diagram comprises a system diagram drawing page, a primitive, a layer and a topological structure of the primitive.
With reference to the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the method further includes:
storing the generated power plant identification system codes of the system diagram in a coding database, and establishing index codes of the coding database;
carrying out troubleshooting on the power plant identification system codes in the coding database;
and when the abnormal code is detected, starting an indication prompt of the abnormal code matching.
With reference to the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, where the method further includes:
and establishing a coding frame corresponding to each primitive on the system diagram, and automatically marking a power plant identification system code matched with the primitive on each coding frame.
With reference to the first aspect, an embodiment of the present invention provides a ninth possible implementation manner of the first aspect, where the method further includes:
when generating a power plant identification system code of the system diagram, acquiring a graph difference area of a current system diagram and a template system diagram;
positioning a difference coding region of a power plant identification system code corresponding to the template system diagram according to the graph difference region;
and generating a difference code of the difference coding region of the difference region, and correcting the code of the difference coding region according to the difference code to obtain a power plant identification system code of the current system diagram.
In a second aspect, an embodiment of the present invention further provides an apparatus for automatically generating a power plant identification system code, where the apparatus includes:
the determining module is used for drawing a page according to the selected system diagram and determining the unit number of the power plant identification system;
the reading module is used for reading the power plant identification system classification codes of the primitives according to the selected primitives matched with the engineering design structure of the power plant equipment;
the first generation module is used for generating a power plant identification system number corresponding to a system diagram drawn according to the selected primitive according to a preset number rule; the preset numbering rules comprise one or more of the following rules: a prefix number numbering rule, a system level numbering rule, an equipment level numbering rule and a component level numbering rule;
and the second generation module is used for generating the power plant identification system code of the system diagram according to the determined power plant identification system unit number, the read power plant identification system classification code and the generated power plant identification system number.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the determining module includes:
the first extraction unit is used for extracting a page identification code in a drawing page when the drawing page of the system diagram is detected;
the determining unit is used for determining the power plant identification system unit number of the power plant equipment according to the page identification code in the system diagram drawing page; the page identification codes correspond to the unit numbers of the power plant identification system one by one;
the reading module comprises:
the second extraction unit is used for extracting the primitive identification code of the primitive when the primitive matched with the engineering design structure of the power plant equipment is detected;
the reading unit is used for reading the power plant identification system classification codes matched with the primitives according to the primitive identification codes of the primitives; each primitive has a unique primitive identification code, and the primitive identification codes correspond to classification codes of a power plant identification system in a multi-level mode; the plant identification system classification code comprises one or more of: system level class code, device level class code, and component level class code.
With reference to the first possible implementation manner of the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the reading unit further includes:
the determining subunit is used for determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
the analysis processing subunit is used for analyzing and processing the first topological structure and the second topological structure to obtain a classification code topological structure; wherein the classified code topology comprises: a system level classified code topology, a device level classified code topology and a component level classified code topology;
the reading subunit is used for reading the power plant identification system classification codes of the primitives according to the classification code topological structures and the primitive identification codes of the primitives; and the database is prestored with the power plant identification system classification codes corresponding to the classification code topological structures.
With reference to the second possible implementation manner of the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the first generating module includes:
the determining unit is used for determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
the analysis processing unit is used for analyzing and processing the first topological structure and the second topological structure to obtain a numbered topological structure; wherein the numbering topology comprises: a prefix number topology, a system level numbering topology, a device level numbering topology, and a component level numbering topology;
the generating unit is used for generating a power plant identification system number corresponding to the system diagram according to the numbering topological structure and a preset numbering rule; wherein, the preset numbering rule comprises: and the corresponding relation between the numbered topological structure and the power plant identification system number.
With reference to the second aspect, an embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the first obtaining module is configured to obtain a system diagram file including other structure types;
the conversion processing module is used for carrying out conversion processing on the acquired system graph file to obtain a system graph structure; the system diagram structure comprises: the system diagram comprises a system diagram drawing page, a graphic element, a layer and a topological structure of the graphic element;
the storage module is used for storing the generated power plant identification system codes of the system diagram in an encoding database;
the first establishing module is used for establishing an index code of the coding database;
the troubleshooting processing module is used for carrying out troubleshooting processing on the power plant identification system codes in the coding database;
the starting module is used for starting the indication prompt of abnormal code matching when the abnormal code is detected;
the second establishing module is used for establishing a coding frame corresponding to each primitive on the system diagram;
and the marking module is used for automatically marking the power plant identification system codes matched with the graphic primitives on each coding frame.
With reference to the second aspect, an embodiment of the present invention provides a fifth possible implementation manner of the second aspect, where the method further includes:
the second acquisition module is used for acquiring a graph difference area between the current system diagram and the template system diagram when the power plant identification system code of the system diagram is generated;
the positioning module is used for positioning a difference coding region of the power plant identification system code corresponding to the template system diagram according to the graph difference region;
and the third generation module is used for generating the difference codes of the difference coding regions of the difference regions, and correcting the codes of the difference coding regions according to the difference codes to obtain the power plant identification system codes of the current system diagram.
According to the automatic generation method and device of the power plant identification system code, provided by the embodiment of the invention, a page is drawn according to a selected system diagram, and the unit number of the power plant identification system is determined; reading a power plant identification system classification code of a primitive according to the selected primitive matched with the engineering design structure of the power plant equipment; generating a power plant identification system number corresponding to the system diagram according to a preset number rule for the system diagram drawn according to the selected primitive; compared with the manual generation and marking method in the prior art, the method has slow working efficiency and longer working period, can realize automatic generation and automatic marking of the power plant identification system codes of the system diagram through a computer system, reduces labor cost, improves working efficiency, provides unified, scientific, correct and complete power plant identification system coded data for equipment management ledgers, full life cycle management, defect management, maintenance management, point inspection and repair management and application in a two-ticket management information management system, and greatly reduces the comprehensive cost of enterprises.
Furthermore, the method and the device for automatically generating the power plant identification system code provided by the embodiment of the invention can also automatically perform troubleshooting treatment on the generated power plant identification system code, and automatically start the indication prompt of abnormal code matching when the corresponding error code and the corresponding repeated code are detected, so that the uniqueness and the correctness of all the power plant identification system codes are ensured.
Furthermore, the method and the device for automatically generating the power plant identification system code provided by the embodiment of the invention can automatically generate and label the power plant identification system code for the system diagram while drawing the system diagram, thereby reducing the work period and improving the work efficiency.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flow chart illustrating a method for automatically generating a power plant identification system code according to an embodiment of the present invention;
FIG. 2 illustrates a flow chart of another method for automatically generating a plant identification system code provided by an embodiment of the present invention;
FIG. 3 illustrates a flow chart of another method for automatically generating a plant identification system code provided by an embodiment of the present invention;
FIG. 4 illustrates a flow chart of another method for automatically generating a plant identification system code provided by an embodiment of the present invention;
FIG. 5 illustrates a flow chart of another method for automatically generating a plant identification system code provided by an embodiment of the present invention;
FIG. 6 illustrates a flow chart of another method for automatically generating a plant identification system code provided by an embodiment of the present invention;
FIG. 7 illustrates a flow chart of another method for automatically generating a plant identification system code provided by an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an automatic generation device for a power plant identification system code according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a determination module and a reading module in an automatic generation device of a power plant identification system code according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a reading unit and a first generating module in an automatic generating device of a power plant identification system code according to an embodiment of the present invention.
Description of the main reference numerals:
11. a determination module; 12. a reading module; 13. a first generation module; 14. a second generation module; 111. a first extraction unit; 112. a determination unit; 121. a second extraction unit; 122. a reading unit; 131. a determination unit; 132. an analysis processing unit; 133. a generating unit; 1221. determining a subunit; 1222. an analysis processing subunit; 1223. reading the sub-unit; .
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
With the rapid development of scientific technology, the power plant identification system has become the most widely applied code. The power plant identification system codes are manually coded by design engineers according to the system diagrams and the functions, the functions and the dependencies of equipment and components in the system diagrams, and the marked objects are marked by the power plant identification system codes on drawings.
The method for manually coding the identified object in the power plant by using the power plant identification system coding in the prior art is considered, so that the work efficiency is low, the requirements on the professional level and the degree of care of a designer are high in order to avoid error codes and repeated codes, the work period is long, and the difficulty in manually finding and modifying the error codes and the repeated codes is high. Based on the above, the embodiment of the invention provides an automatic generation method and an automatic generation device for a power plant identification system code, so that the automatic generation and automatic marking of the power plant identification system code on a system diagram are realized through a computer system, the labor cost is reduced, the working efficiency is improved, the generated power plant identification system code can be automatically checked, an indication prompt of abnormal code matching is automatically started when corresponding error codes and coincident codes are detected, and the uniqueness and correctness of all the power plant identification system codes are ensured; and when the system diagram is drawn, the power plant identification system code can be automatically generated and labeled, so that the working period is shortened, and the working efficiency is improved.
The embodiment of the invention provides an automatic generation method of a power plant identification system code, and with reference to fig. 1, the method comprises the following steps:
and S101, drawing a page according to the selected system diagram, and determining the unit number of the power plant identification system.
In the embodiment of the invention, the system diagram to be coded can be a diagram drawn on drawing software or a diagram obtained by converting a picture. For the conversion from pictures, the specific method is as follows: firstly, obtaining system diagram files (the files can be pictures, PDF files and DWG files) with other structure types, and then converting the obtained pictures to obtain a system diagram structure; the system diagram structure comprises: drawing pages, primitives, layers and the topology of the primitives.
Whether the graph is drawn or converted, in the embodiment of the invention, when the system monitors that the system graph draws the page, the system graph extracts the page identification code in the drawing page; then, drawing a page identification code in a page according to a system diagram, and determining the unit number of the power plant identification system; and in a database of the system, the page identification code of the system drawing page corresponds to the unit number of the power plant identification system one by one.
For drawing, the system drawing is mostly drawn by large computer aided design software of CAD series at present. In the embodiment of the invention, the system development can be carried out by utilizing the computer language on the basis of the existing drawing function of the CAD P & ID software, and the functions of automatically generating the power plant identification system code and automatically marking the power plant identification system code on the system drawing are realized.
And S102, reading the power plant identification system classification code of the primitive according to the selected primitive matched with the engineering design structure of the power plant equipment.
Specifically, the engineering design structures of different power plant equipment correspond to different primitives, such as a total diagram of the power plant equipment corresponds to a system level primitive, and a subsystem diagram corresponds to an equipment level primitive or a component level primitive; in the database of the system, the system primitive corresponds to a system level classification code, the equipment primitive corresponds to an equipment level classification code, and the component primitive corresponds to a component level classification code.
S103, generating a power plant identification system number corresponding to the system diagram according to a preset number rule for the system diagram drawn according to the selected primitive; the preset numbering rules comprise one or more of the following rules: prefix number numbering rules, system level numbering rules, device level numbering rules, and component level numbering rules.
When the system diagram is a general diagram, the system number is generated according to a preset number rule, and then the power plant identification system code of the general diagram can be generated according to the unit number, the system classification code and the system number.
When the system diagram is a sub-system diagram, the equipment number is generated according to the preset numbering rule corresponding to the primitive, the equipment classification code and the equipment number are analyzed to determine the system classification code and the system number, and finally the power plant identification system code of the system diagram can be generated according to the unit number, the system classification code, the system number, the equipment classification code and the equipment number.
S104, generating the power plant identification system code of the system diagram according to the determined power plant identification system unit number, the read power plant identification system classification code and the generated power plant identification system number.
When the system diagram is a general diagram, the power plant identification system code of the general diagram can be generated according to the unit number, the system classification code and the system number;
and when the system diagram is a sub-system diagram, generating the power plant identification system code of the system diagram according to the unit number, the system classification code, the system number, the equipment classification code and the equipment number.
The embodiment of the invention provides an automatic generation method of a power plant identification system code, which adopts a computer system to establish a multi-level branch system database of the power plant identification system according to the engineering design relationship of the power plant identification system, acquire the topological structures of a system diagram and a primitive, analyze classification codes and serial numbers and generate a matched power plant identification system code The correct and complete power plant identification system code data greatly reduces the comprehensive cost of enterprises.
Further, different types of primitives correspond to different power plant identification system classification codes, and referring to fig. 2, in step 102, according to the selected primitive matched with the engineering design structure of the power plant equipment, the power plant identification system classification code of the primitive is read, which includes:
s201, when a primitive matched with an engineering design structure of power plant equipment is detected, extracting a primitive identification code of the primitive;
s202, reading a power plant identification system classification code matched with the primitive according to the primitive identification code of the primitive; each primitive has a unique primitive identification code, and the primitive identification codes correspond to classification codes of a power plant identification system in a multi-level mode; the plant identification system classification code comprises one or more of the following: system level class code, device level class code, and component level class code.
The unique primitive identification code of the primitive represents the type of the primitive, namely represents whether the primitive is a system primitive or an equipment primitive or a component primitive, the primitives of different types correspond to different power plant identification system classification codes, namely the system primitive corresponds to a system classification code, and the equipment primitive corresponds to an equipment classification code.
Further, referring to fig. 3, in the automatic generation method of a power plant identification system code provided by the embodiment of the present invention, in step 202, reading the power plant identification system classification code matched with the primitive according to the primitive identification code of the primitive, the method includes:
s301, determining a first topological structure of a system graph drawn by the selected primitives and a second topological structure of the primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
the system diagram drawn by the primitives may be a total diagram or a sub-system diagram. The first topological structure comprises a topological relation structure among all parts in the system diagram, the primitives are basic elements forming the system diagram, each part comprises a plurality of primitives, and the plurality of primitives also correspond to each other to form the topological relation structure.
In the embodiment of the invention, the system firstly determines a first topological structure and a second topological structure which respectively correspond to the system diagram and the diagram elements in the system diagram.
S302, analyzing the first topological structure and the second topological structure to obtain a classified code topological structure; wherein the classified code topology comprises: a system level classified code topology, a device level classified code topology and a component level classified code topology;
s303, reading the power plant identification system classification codes of the primitives according to the classification code topological structures and the primitive identification codes of the primitives; and the database is prestored with the corresponding relation between the classification code topological structure and the power plant identification system classification code.
The database of the system is pre-stored with the corresponding relationship among the primitive identification code, the topological structure of the classification code and the classification code of the power plant identification system, and the classification code of the power plant identification system of the primitive can be determined from the corresponding relationship stored in the database according to the primitive identification code.
Further, referring to fig. 4, in the method for automatically generating a power plant identification system code according to the embodiment of the present invention, in step 104, for a system diagram drawn according to a selected primitive, a power plant identification system number corresponding to the system diagram is generated according to a preset number rule, which includes:
s401, determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
in the embodiment of the present invention, the system diagram drawn by the primitives may be a total diagram or a sub-system diagram. The first topological structure comprises a topological relation structure among all parts in the system diagram, the primitives are basic elements forming the system diagram, each part comprises a plurality of primitives, and the plurality of primitives also correspond to each other to form the topological relation structure.
In the embodiment of the invention, the system firstly determines a first topological structure and a second topological structure which respectively correspond to the system diagram and the diagram elements in the system diagram.
S402, analyzing the first topological structure and the second topological structure to obtain a numbered topological structure; wherein the second topology comprises: a prefix number topology, a system level numbering topology, a device level numbering topology, and a component level numbering topology;
s403, generating a power plant identification system number corresponding to the system diagram according to the number topological structure and a preset number rule; wherein, the preset numbering rule comprises: and the corresponding relation between the numbered topological structure and the power plant identification system number.
Wherein, the preset numbering rule is prestored in a database of the system, and the preset numbering rule is as follows: the power plant identification system number of the primitive can be determined from the preset number rules stored in the database according to the obtained number topological structure.
When the system diagram is a general diagram, generating a power plant identification system number of each system component included by each system graphic element in the general diagram according to a numbering topological structure and a system-level numbering rule; the general graph comprises a plurality of system primitives, and each system primitive comprises a plurality of system components.
Because the general diagram comprises a plurality of system primitives, and each system primitive comprises a plurality of system components, the system number of a system formed by the system primitives can be generated according to the numbering topological structure and the system-level numbering rule, and the power plant identification system code of the general diagram can be generated according to the unit number of the drawing page where the system primitive is located, the system classification code corresponding to the system primitive and the generated system number.
When a system graph drawn according to the selected primitives is a sub-system graph, generating a power plant identification system equipment number of each equipment component included by each equipment primitive in the system graph according to a numbering topological structure and an equipment-level numbering rule; the system comprises a plurality of equipment primitives, and each equipment primitive comprises a plurality of equipment components; in the embodiment of the invention, when the system diagram is a subsystem diagram, the equipment number is generated according to the number topological structure and the equipment level number rule, the system classification code and the system number are determined according to the number topological structure, the equipment classification code and the number, and finally the power plant identification system code of the subsystem diagram can be generated according to the unit number, the system classification code, the system number, the equipment classification code and the equipment number.
When a system graph drawn according to the selected primitives is a sub-system graph and component primitives of the sub-system graph are refined to component-level primitives, generating power plant identification system component numbers of the primitives at each component level in the system graph according to a number topological structure and a component-level number rule on the principle of power plant identification system codes corresponding to the sub-system graph; in the embodiment of the invention, when the system diagram is a subsystem diagram and the primitives are thinned to component level primitives, the component numbers are generated according to the numbering topological structure and the component level numbering rules, the equipment classification codes and the equipment numbers are determined according to the numbering topological structure, the component classification codes and the numbers, the system classification codes and the system numbers are determined according to the numbering topological structure, the equipment classification codes and the numbers, and finally the power plant identification system codes of the subsystem diagram can be generated according to the unit numbers, the system classification codes, the system numbers, the equipment classification codes and the equipment numbers. The coding rules according to the power plant identification system coding in the embodiment of the invention comprise GB/T50549-2010 power plant identification system coding standards and power plant identification system coding implementation rules of enterprise standards, and no matter aiming at a general diagram or a subsystem diagram, the power plant identification system coding is as follows: the power plant identification system codes adopt 13-bit numbering rules of three-level seven groups, wherein the 0 level corresponds to the first group and comprises a 1-bit code and a representative machine group number G (A or N); the level 1 corresponds to the second group, the third group and the fourth group, respectively comprises 1 digit, 3 digits and 2 digits, and respectively represents a prefix number F0(N), a system classification code F1F2F3(AAA) and a system number FN (NN); the level 2 corresponds to the fifth group, the sixth group and the seventh group, and respectively includes 2-digit letters, 3-digit numbers and 1-digit letters, which respectively represent the device classification code A1a2(AA), the device number an (nnn) and the device addition code (a).
The device attach code may or may not exist, and when the device attach code exists, the corresponding 1-bit letter thereof may not be omitted.
In the embodiment of the invention, the N represents an Arabic number which can take a value of 0-9; "A" represents a capital English letter, and may take on letters other than I and O; the default values for the set number, prefix number, system number and device number are completed with 0.
Further, referring to fig. 5, the method for automatically generating a power plant identification system code according to the embodiment of the present invention further includes:
s501, storing the generated power plant identification system codes of the system diagram in an encoding database, and establishing index codes of the encoding database.
And S502, carrying out troubleshooting on the power plant identification system codes in the coding database.
S503, when the abnormal code is detected, starting indication prompt of the abnormal code matching.
With reference to the above steps 501 to 503, in the embodiment of the present invention, the generated power plant identification system code is further stored, an encoding database is established, and an index code of the encoding database is established; wherein the index code at least comprises: a system index code and a device index code.
The power plant identification system coding rules in the database are a database which is established with system index codes, equipment index codes and component index codes meeting future development requirements of the power plant identification system codes according to the national power plant identification system coding standards and enterprise standards, so that matched power plant identification system codes can be generated according to the coding rules. The purpose of indexing the power plant identification system codes stored in the code database is to accelerate the reading speed of data and accelerate the integrity check of the data.
In order to ensure that the codes of the power plant identification systems established by the power plant identification systems meet the requirements, the embodiment of the invention is also provided with a data verification function, so that the system can automatically perform the uniqueness comparison of the coded data of the power plant identification systems and the warning pushing work of repeated data in real time.
Specifically, the system is provided with an inspection standard, and the codes of the power plant identification system are inspected in real time according to the inspection standard, wherein the inspection standard comprises the steps of inspecting whether the codes have repeated codes or not and whether error codes or not; the checking standard includes that each part is preset in the system to correspond to a coding rule, so that when the system detects that two same codes exist, a repeated code is detected; the 'inspection standard' also comprises that the system is preset with unit numbers, if the unit numbers set by the system are only 1, 2 and 3, and the unit number 5 appears in practice, this condition is wrong code; when detecting that the repeated codes and the wrong codes exist, the system can directly send out an alarm to prompt the user, or directly generate characters and give the user a prompt. In addition, aiming at the conditions of repeated codes and wrong codes, the system can also generate corresponding modification opinions according to corresponding checking results, and prompts the modification opinions while starting the prompt so as to facilitate the direct checking and modification of users. Furthermore, the method and the device for automatically generating the power plant identification system code provided by the embodiment of the invention can also automatically perform troubleshooting treatment on the generated power plant identification system code, and automatically start the indication prompt of abnormal code matching when the corresponding error code and the corresponding repeated code are detected, so that the uniqueness and the correctness of all the power plant identification system codes are ensured.
Further, after the code of the power plant identification system is generated according to the coding rule of the power plant identification system, the embodiment of the present invention may also mark the code on the corresponding system diagram, and the specific method includes: and establishing a coding frame corresponding to each primitive on the system diagram, and automatically marking a power plant identification system code matched with the primitive on each coding frame.
Specifically, the system has an annotation function, defines the coding frame which accords with the coding rule of the power plant identification system, and realizes the marking of the coding data of the power plant identification system. In the embodiment of the invention, the coding frame is established at a position which does not influence the visual effect in the system diagram, so that the subsequent coding frame and the power plant identification system code in the coding frame do not influence the beauty of the system diagram.
Furthermore, the automatic generation method and the device for the power plant identification system code provided by the embodiment of the invention can automatically label the system diagram while drawing the system diagram, thereby reducing the working period and improving the working efficiency.
In practice, the power plant identification system code may include a plurality of parts, such as a plurality of units, each unit may include a plurality of systems, and each system may include a plurality of devices, based on which, when the method for automatically generating a power plant identification system code provided by the embodiment of the present invention is used, for a power plant identification system with a higher similarity, such as a system diagram in which only units are different and each part included in a unit is the same, a code may be quickly, simply and efficiently generated by the following method, referring to fig. 6, where the method for automatically generating a power plant identification system code further includes:
s601, acquiring a graph difference area between a current system diagram and a template system diagram when generating a power plant identification system code of the system diagram;
specifically, the number of the graph difference regions may be 1, such as a unit, or may include two or more, such as a unit and a system.
And S602, positioning a difference coding region of the power plant identification system code corresponding to the template system diagram according to the graph difference region.
After the graph difference area (such as the unit number) is determined, the difference coding area between the last power plant identification system and the power plant identification system is positioned according to the graph difference area, so that the purpose is to copy the code of the last power plant identification system subsequently, modify the corresponding difference coding area, and then use the modified code as the code of the current power plant identification system, thereby being convenient and fast and improving the coding efficiency.
And S603, generating a difference code of the difference code region of the difference region, and correcting the code of the difference code region according to the difference code to obtain a power plant identification system code of the current system diagram.
Firstly, generating a difference code of the difference region, and then replacing the original code in the difference code region in the step 402 with the difference code, namely obtaining the power plant identification system code of the current power plant identification system.
For example, the system diagrams of the No. 1 unit water supply system (10LAB) and the No. 2 unit water supply system (20LAB) of a certain thermal power plant are consistent, and the drawing of the system diagram of the No. 2 unit water supply system (20LAB) and the automatic generation and labeling work of the power plant identification system codes can be completed through copying, pasting and modifying.
The automatic generation method of the power plant identification system code provided by the embodiment of the invention can intelligently and automatically realize unified, scientific, correct and complete generation and marking of the power plant identification system code. On one hand, the usability and flexibility of the system are enhanced, the working modes of manual coding and marking are thoroughly changed, wrong codes and repeated codes are avoided, and the labor cost is reduced; on the other hand, unified, scientific, correct and complete power plant identification system codes are provided for all levels of management systems, so that production management is more standardized and standardized, and the comprehensive cost of enterprises is further reduced.
Referring to fig. 7, the following describes an automatic generation method of a power plant identification system code according to an embodiment of the present invention with reference to a specific embodiment:
and S701, configuring and operating system software.
Specifically, configuring the system software includes: carrying out project configuration on system software and carrying out configuration on a topological structure, rules and corresponding relations of a power plant identification system; and after the configuration is finished, the system software can be operated.
S702, drawing a page according to the selected system diagram, and determining a unit number system diagram of the power plant identification system. The system diagram can be drawn manually, and system diagram files of other structure types can be converted into structure files meeting automatic generation of power plant identification system codes through the system.
S703, reading identification codes of the primitives according to the selected primitives matched with the engineering design structure of the power plant equipment, analyzing the topological structure relationship of the primitive identification codes and the power plant identification system classification codes in multilevel correspondence, and generating power plant identification system classification codes; the power plant identification system classification code comprises one or more of the following: system level class code, device level class code, and component level class code.
And S704, generating a power plant identification system number corresponding to the system diagram according to a preset number rule for the system diagram drawn according to the selected primitive. The preset numbering rules include one or more of the following rules: prefix number numbering rules, system level numbering rules, device level numbering rules, and component level numbering rules.
S705, generating a power plant identification system code of the system diagram according to the determined power plant identification system unit number, the read power plant identification system classification code and the generated power plant identification system number.
S706, the codes of the power plant identification system in the coding database are checked, and when the abnormal codes are detected, indication prompt of abnormal code matching is started.
S707, establishing a coding frame corresponding to each graphic element on the system diagram, and automatically marking the power plant identification system coding system diagram matched with the graphic element on each coding frame.
And S708, finishing the drawing of the P & ID version system diagram, the automatic generation of the power plant identification system code and the automatic labeling of the power plant identification system code on the system diagram.
The automatic generation method of the power plant identification system code provided by the embodiment of the invention has the following advantages:
firstly, the method is intelligent, breaks the habit of carrying out manual coding and manual marking by taking complicated system diagrams and equipment inventory as the basis, and leads the coding and the marking to be automatic and intelligent; integrity, namely, a unified, complete and normative automatic coding format is provided according to the power plant identification system rule; the universality is realized, and the power plant identification system is used as a premise, so that the power plant identification system can be applied to power generation enterprises, substations and ports of thermal power, wind power, hydropower, nuclear power and the like; expandability, enough capacity is reserved in the initial design stage to meet the development requirement of a new technology; scientifically, domestic and foreign standards, industry labels and large enterprise standards are used as standard support of automatic numbering rules; the intelligent error correction and duplication checking module processes the power plant identification system codes and automatically warns and pushes problem codes so as to ensure the uniqueness and correctness of all the power plant identification system codes; seventhly, flexibility is achieved, the power plant identification system codes realize single-strip and batch multi-position modification, multi-condition import/export of reports and other convenient and quick operations; and eighthly, the system is easy to use, all users trained in a short period can be flexibly applied, and one designer completes the design of the original system diagram and also completes the generation of the power plant identification system code and the other two tasks of the marking of the power plant identification system code on the system diagram.
The first purpose of the application and popularization of the automatic generation method of the power plant identification system code provided by the embodiment of the invention is to provide a set of automatic generation system of the power plant identification system code, and when the drawing of a system diagram is completed, the only, scientific and complete power plant identification system code data required by intensive management is automatically generated for enterprises; the second purpose is to provide an automatic marking system for the power plant identification system code, when the system diagram is drawn, the power plant identification system code is automatically generated, and the power plant identification system code is also automatically marked on the system diagram, so that a more complete and convenient system diagram is provided for enterprises; the third purpose is to provide a method for automatically generating and marking the code of the power plant identification system; the fourth purpose is to provide a system integrating the power plant identification system and the computer aided design software. Generally, the automatic generation method of the power plant identification system code provided by the embodiment of the invention advances the step of information automation cross-knowledge automation.
An embodiment of the present invention further provides an apparatus for automatically generating a power plant identification system code, where the apparatus is configured to execute the above method for automatically generating a power plant identification system code, and with reference to fig. 8, the apparatus includes:
the determining module 11 is used for drawing a page according to the selected system diagram and determining the unit number of the power plant identification system;
the reading module 12 is configured to read a power plant identification system classification code of a primitive according to the selected primitive matched with the engineering design structure of the power plant equipment;
the first generation module 13 is used for generating a power plant identification system number corresponding to the system diagram according to the system diagram drawn by the selected primitive and a preset number rule; the preset numbering rules include one or more of the following rules: a prefix number numbering rule, a system level numbering rule, an equipment level numbering rule and a component level numbering rule;
and a second generating module 14, configured to generate the power plant identification system code of the system diagram according to the determined power plant identification system unit number, the read power plant identification system classification code, and the generated power plant identification system number.
Further, referring to fig. 9, in the automatic generating device of the power plant identification system code, the determining module 11 includes:
a first extraction unit 111, configured to, when the system drawing page is detected, extract a page identification code in the system drawing page;
the determining unit is used for determining the power plant identification system unit number of the power plant equipment according to the page identification code in the system diagram drawing page; the page identification codes correspond to the unit numbers of the power plant identification system one by one.
A reading module 12 comprising:
the second extraction unit 121 is configured to extract a primitive identification code of a primitive when the primitive matching the engineering design structure of the power plant equipment is detected;
the reading unit 122 is configured to read the power plant identification system classification code matched with the primitive according to the primitive identification code of the primitive; each primitive has a unique primitive identification code, and the primitive identification codes correspond to classification codes of a power plant identification system in a multi-level mode; the power plant identification system classification code comprises one or more of the following: system level class code, device level class code, and component level class code.
Further, in the automatic generating device of the plant identification system code, referring to fig. 10, the reading unit 122 includes:
a determining subunit 1221, configured to determine a first topological structure of a system graph drawn by the selected primitive and a second topological structure of the primitive in the system graph; wherein, the system diagram includes: a general view and a subsystem view;
the analysis processing subunit 1222 is configured to analyze the first topology structure and the second topology structure to obtain a classification code topology structure; wherein, the topological structure of the classification code comprises: a system level classified code topology, a device level classified code topology and a component level classified code topology;
the reading subunit 1223 is configured to read the power plant identification system classification code of the primitive according to the classification code topology structure and the primitive identification code of the primitive; and the database is prestored with the power plant identification system classification codes corresponding to the classification code topological structures.
A first generation module 13 comprising:
the determining unit 131 is configured to determine a first topological structure of a system graph drawn by the selected primitive and a second topological structure of a primitive in the system graph; wherein, the system diagram includes: a general view and a subsystem view;
the analysis processing unit 132 is configured to analyze the first topological structure and the second topological structure to obtain a numbered topological structure; wherein, the numbering topological structure comprises: a prefix number topology, a system level numbering topology, a device level numbering topology, and a component level numbering topology;
the generating unit 133 is configured to generate a power plant identification system number corresponding to the system diagram according to the numbering topological structure and a preset numbering rule; wherein, the preset numbering rule comprises: and the corresponding relation between the numbered topological structure and the power plant identification system number.
Further, the automatic generating device of the power plant identification system code further includes:
the first acquisition module is used for acquiring system graph files comprising other structure types;
the conversion processing module is used for carrying out conversion processing on the acquired system graph file to obtain a system graph structure; the system diagram structure comprises: the system diagram comprises a system diagram drawing page, a primitive, a layer and a topological structure of the primitive.
Further, the automatic generating device of the power plant identification system code further includes:
the storage module is used for storing the generated power plant identification system codes of the system diagram in an encoding database;
the first establishing module is used for establishing an index code of the coding database;
the troubleshooting processing module is used for carrying out troubleshooting processing on the power plant identification system codes in the coding database;
and the starting module is used for starting the indication prompt of the abnormal code matching when the abnormal code is detected.
Further, the automatic generating device of the power plant identification system code further includes:
the second establishing module is used for establishing a coding frame corresponding to each primitive on the system diagram;
and the marking module is used for automatically marking the power plant identification system codes matched with the graphic primitives on each coding frame.
Further, the automatic generating device of the power plant identification system code further includes:
the second acquisition module is used for acquiring a graph difference area between the current system diagram and the template system diagram when the power plant identification system code of the system diagram is generated;
the positioning module is used for positioning a difference coding region of the power plant identification system code corresponding to the template system diagram according to the graph difference region;
and the third generation module is used for generating the difference codes of the difference coding regions of the difference regions, and correcting the codes of the difference coding regions according to the difference codes to obtain the power plant identification system codes of the current system diagram.
Compared with the manual coding method in the prior art, the automatic generation device for the power plant identification system code provided by the embodiment of the invention has slow working efficiency and longer working period, can realize automatic generation and automatic marking of the power plant identification system code on the system diagram through the computer system, reduces the labor cost, improves the working efficiency, provides uniform, scientific, correct and complete power plant identification system code data for equipment management accounts, full-life-cycle management, application in defect management, maintenance management, point inspection and repair management and two-ticket management informatization management systems, and further greatly reduces the comprehensive cost of enterprises.
Furthermore, the automatic generation device for the power plant identification system codes provided by the embodiment of the invention can also automatically perform troubleshooting treatment on the generated power plant identification system codes, and automatically start the indication prompt of abnormal code matching when the corresponding error codes and repeated codes are detected, so that the uniqueness and correctness of all the power plant identification system codes are ensured.
Furthermore, the automatic generation device for the power plant identification system code provided by the embodiment of the invention can automatically label the power plant identification system code on the system diagram while drawing the system diagram, thereby reducing the work period and improving the work efficiency.
The automatic generation device of the power plant identification system code provided by the embodiment of the invention can be specific hardware on equipment or software or firmware installed on the equipment. The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided by the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the present invention in its spirit and scope. Are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (13)

1. An automatic generation method of a power plant identification system code is characterized by comprising the following steps:
drawing a page according to the selected system diagram, and determining the unit number of the power plant identification system;
reading a power plant identification system classification code of a selected primitive matched with an engineering design structure of power plant equipment;
generating a power plant identification system number corresponding to a system diagram drawn according to the selected primitive according to a preset number rule; the preset numbering rules comprise one or more of the following rules: a prefix number numbering rule, a system level numbering rule, an equipment level numbering rule and a component level numbering rule;
generating a power plant identification system code of the system diagram according to the determined power plant identification system unit number, the read power plant identification system classification code and the generated power plant identification system number;
according to the selected primitive matched with the engineering design structure of the power plant equipment, the power plant identification system classification code of the primitive is read, and the method comprises the following steps:
when a primitive matched with an engineering design structure of the power plant equipment is detected, extracting a primitive identification code of the primitive;
reading the power plant identification system classification codes matched with the primitives according to the primitive identification codes of the primitives; each primitive has a unique primitive identification code, and the primitive identification codes correspond to classification codes of a power plant identification system in a multi-level mode; the plant identification system classification code comprises one or more of the following: system level class code, device level class code, and component level class code;
according to the primitive identification code of the primitive, reading the power plant identification system classification code matched with the primitive, comprising:
determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
analyzing and processing the first topological structure and the second topological structure to obtain a classification code topological structure; wherein the classified code topology comprises: a system level classified code topology, a device level classified code topology and a component level classified code topology;
reading the power plant identification system classification codes of the primitives according to the classification code topological structures and the primitive identification codes of the primitives; and the database is prestored with the power plant identification system classification codes corresponding to the classification code topological structures.
2. The method of claim 1, wherein determining the plant identification system group number according to the selected system graph drawing page comprises:
when a system graph drawing page is detected, extracting a page identification code of the system graph drawing page;
drawing a page identification code in a page according to the system diagram, and determining the power plant identification system unit number of the power plant equipment; the page identification codes correspond to the unit numbers of the power plant identification system one by one.
3. The method for automatically generating a power plant identification system code according to claim 1, wherein for a system graph drawn according to the selected primitive, generating a power plant identification system code corresponding to the system graph according to a preset numbering rule comprises:
determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
analyzing and processing the first topological structure and the second topological structure to obtain a numbered topological structure; wherein the numbering topology comprises: a prefix number topology, a system level numbering topology, a device level numbering topology, and a component level numbering topology;
generating a power plant identification system number corresponding to the system diagram according to the numbering topological structure and a preset numbering rule; wherein, the preset numbering rule comprises: and the corresponding relation between the numbered topological structure and the power plant identification system number.
4. The method for automatically generating a plant identification system code according to any of claims 1-3, wherein the plant identification system code employs three levels and seven sets of 13 bit coding rules, wherein level 0 corresponds to the first set comprising a1 bit code number, representing a machine set number; the 1-level corresponds to the second group, the third group and the fourth group, respectively comprises 1-digit numbers, 3-digit letters and 2-digit numbers, and respectively represents prefix numbers, system classification codes and system numbers; the 2-level corresponds to a fifth group, a sixth group and a seventh group, respectively comprises 2-bit letters, 3-bit numbers and 1-bit letters, and respectively represents equipment classification codes, equipment numbers and equipment additional codes; wherein the code number comprises: a number or a letter.
5. The method for automatic generation of a plant identification system code according to claim 1, the method further comprising:
acquiring a system graph file comprising other structure types;
converting the obtained system diagram file to obtain a system diagram structure; the system diagram structure comprises: the system diagram comprises a system diagram drawing page, a primitive, a layer and a topological structure of the primitive.
6. The method for automatic generation of a plant identification system code according to claim 1, the method further comprising:
storing the generated power plant identification system codes of the system diagram in a coding database, and establishing index codes of the coding database;
carrying out troubleshooting on the power plant identification system codes in the coding database;
and when the abnormal code is detected, starting an indication prompt of the abnormal code matching.
7. The method for automatic generation of a plant identification system code according to claim 1, the method further comprising:
and establishing a coding frame corresponding to each primitive on the system diagram, and automatically marking a power plant identification system code matched with the primitive on each coding frame.
8. The method for automatic generation of a plant identification system code according to claim 1, the method further comprising:
when generating a power plant identification system code of the system diagram, acquiring a graph difference area of a current system diagram and a template system diagram;
positioning a difference coding region of a power plant identification system code corresponding to the template system diagram according to the graph difference region;
and generating a difference code of the difference coding region of the difference region, and correcting the code of the difference coding region according to the difference code to obtain a power plant identification system code of the current system diagram.
9. An apparatus for automatically generating a power plant identification system code, comprising:
the determining module is used for drawing a page according to the selected system diagram and determining the unit number of the power plant identification system;
the reading module is used for reading the power plant identification system classification codes of the primitives according to the selected primitives matched with the engineering design structure of the power plant equipment;
the first generation module is used for generating a power plant identification system number corresponding to a system diagram according to the system diagram drawn by the selected primitive and a preset number rule; the preset numbering rules comprise one or more of the following rules: a prefix number numbering rule, a system level numbering rule, an equipment level numbering rule and a component level numbering rule;
the second generation module is used for generating a power plant identification system code of the system diagram according to the determined power plant identification system unit number, the read power plant identification system classification code and the generated power plant identification system number;
the reading module comprises:
the second extraction unit is used for extracting the primitive identification code of the primitive when the primitive matched with the engineering design structure of the power plant equipment is detected;
the reading unit is used for reading the power plant identification system classification codes matched with the primitives according to the primitive identification codes of the primitives; each primitive has a unique primitive identification code, and the primitive identification codes correspond to classification codes of a power plant identification system in a multi-level mode; the plant identification system classification code comprises one or more of the following: system level class code, device level class code, and component level class code;
the reading unit further includes:
the determining subunit is used for determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
the analysis processing subunit is used for analyzing and processing the first topological structure and the second topological structure to obtain a classification code topological structure; wherein the classified code topology comprises: a system level classified code topology, a device level classified code topology and a component level classified code topology;
the reading subunit is used for reading the power plant identification system classification codes of the primitives according to the classification code topological structures and the primitive identification codes of the primitives; and the database is prestored with the power plant identification system classification codes corresponding to the classification code topological structures.
10. The automatic generation device of a plant identification system code according to claim 9, wherein said determination module comprises:
the system drawing device comprises a first extraction unit, a second extraction unit and a control unit, wherein the first extraction unit is used for extracting a page identification code of a system drawing page when the system drawing page is detected;
the determining unit is used for determining the power plant identification system unit number of the power plant equipment according to the page identification code in the system diagram drawing page; the page identification codes correspond to the unit numbers of the power plant identification system one by one.
11. The automatic generation device of a plant identification system code according to claim 9, wherein said first generation module comprises:
the determining unit is used for determining a first topological structure of a system graph drawn by the selected graphic primitives and a second topological structure of the graphic primitives in the system graph; wherein the system graph comprises: a general view and a subsystem view;
the analysis processing unit is used for analyzing and processing the first topological structure and the second topological structure to obtain a numbered topological structure; wherein the numbering topology comprises: a prefix number topology, a system level numbering topology, a device level numbering topology, and a component level numbering topology;
the generating unit is used for generating a power plant identification system number corresponding to the system diagram according to the numbering topological structure and a preset numbering rule; wherein, the preset numbering rule comprises: and the corresponding relation between the numbered topological structure and the power plant identification system number.
12. The automatic generation device of a plant identification system code according to any of claims 9-11, further comprising:
the first acquisition module is used for acquiring system graph files comprising other structure types;
the conversion processing module is used for carrying out conversion processing on the acquired system graph file to obtain a system graph structure; the system diagram structure comprises: the system diagram comprises a system diagram drawing page, a graphic element, a layer and a topological structure of the graphic element;
the storage module is used for storing the generated power plant identification system codes in the coded database;
the first establishing module is used for establishing an index code of the coding database;
the troubleshooting processing module is used for carrying out troubleshooting processing on the power plant identification system codes in the coding database;
the starting module is used for starting the indication prompt of abnormal code matching when the abnormal code is detected;
the second establishing module is used for establishing a coding frame corresponding to each primitive on the system diagram;
and the marking module is used for automatically marking the power plant identification system codes matched with the graphic primitives on each coding frame.
13. The automatic generation device of a plant identification system code according to claim 9, further comprising:
the second acquisition module is used for acquiring a graph difference area between the current system diagram and the template system diagram when the power plant identification system code of the system diagram is generated;
the positioning module is used for positioning a difference coding region of the power plant identification system code corresponding to the template system diagram according to the graph difference region;
and the third generation module is used for generating the difference codes of the difference coding regions of the difference regions, and correcting the codes of the difference coding regions according to the difference codes to obtain the power plant identification system codes of the current system diagram.
CN201611123326.9A 2016-12-08 2016-12-08 Automatic generation method and device for power plant identification system code Active CN106777644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611123326.9A CN106777644B (en) 2016-12-08 2016-12-08 Automatic generation method and device for power plant identification system code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611123326.9A CN106777644B (en) 2016-12-08 2016-12-08 Automatic generation method and device for power plant identification system code

Publications (2)

Publication Number Publication Date
CN106777644A CN106777644A (en) 2017-05-31
CN106777644B true CN106777644B (en) 2020-04-10

Family

ID=58881623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611123326.9A Active CN106777644B (en) 2016-12-08 2016-12-08 Automatic generation method and device for power plant identification system code

Country Status (1)

Country Link
CN (1) CN106777644B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291675B (en) * 2017-06-19 2021-01-26 刘永江 Industry information classification coding management system and method
CN107844665A (en) * 2017-11-24 2018-03-27 青岛鸿瑞电力工程咨询有限公司 A kind of factory's logic chart design method and logic chart
CN108733911B (en) * 2018-05-17 2022-05-17 武汉理工大学 Construction aluminum template construction code design method based on three-dimensional digital model
CN109190157B (en) * 2018-07-26 2023-05-23 中国核电工程有限公司 Refreshing method for object position information of Autodesk AutoCAD P & ID
CN109343480A (en) * 2018-09-18 2019-02-15 国电联合动力技术有限公司 The component names of blower fan system automatically generate the method and its system and application of coding
CN111026917B (en) * 2019-11-07 2021-07-20 中国科学院计算技术研究所 Data packet classification method and system based on convolutional neural network
CN111126811A (en) * 2019-12-16 2020-05-08 湖南大唐先一科技有限公司 Power plant data auxiliary coding system based on improved KKS coding rule
CN111507071B (en) * 2020-04-17 2024-02-27 上海电气风电集团股份有限公司 Encoding method and encoding device for wind power plant and computer readable storage medium
CN111931017A (en) * 2020-08-25 2020-11-13 国家能源集团乌海能源有限责任公司 Intelligent configuration method and system suitable for coal preparation plant
CN112541834B (en) * 2020-12-08 2022-11-15 南方电网调峰调频发电有限公司 Identifier processing method, device and system for hydropower industry digital object
CN112668061B (en) * 2021-01-13 2022-08-12 海信视像科技股份有限公司 Electronic equipment and equipment code reporting method thereof
CN112882717B (en) * 2021-02-23 2022-06-28 南京南瑞继保电气有限公司 Label name duplicate checking method and device, electronic equipment and storage medium
CN112988540B (en) * 2021-03-19 2023-07-04 深圳市安冠科技有限公司 Primitive replacement method, system, computer readable storage medium and terminal device
CN113836611A (en) * 2021-08-25 2021-12-24 通号城市轨道交通技术有限公司 Equipment number file generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731444A (en) * 2005-08-18 2006-02-08 福建英特莱信息技术咨询有限公司 A power network system equipment identification code used in computer and method for generating same in computer
CN200969111Y (en) * 2005-08-18 2007-10-31 福建英特莱信息技术咨询有限公司 Electric network system equipment identification coder for computer
CN103049809A (en) * 2012-08-23 2013-04-17 国电大渡河瀑布沟发电有限公司 Equipment coding method
CN103955869A (en) * 2014-04-29 2014-07-30 河北省电力勘测设计研究院 Automatic KKs code generating method for power plant equipment elements
CN105843847A (en) * 2016-03-14 2016-08-10 长江勘测规划设计研究有限责任公司 Intelligent encoding method for hydropower station equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731444A (en) * 2005-08-18 2006-02-08 福建英特莱信息技术咨询有限公司 A power network system equipment identification code used in computer and method for generating same in computer
CN200969111Y (en) * 2005-08-18 2007-10-31 福建英特莱信息技术咨询有限公司 Electric network system equipment identification coder for computer
CN103049809A (en) * 2012-08-23 2013-04-17 国电大渡河瀑布沟发电有限公司 Equipment coding method
CN103955869A (en) * 2014-04-29 2014-07-30 河北省电力勘测设计研究院 Automatic KKs code generating method for power plant equipment elements
CN105843847A (en) * 2016-03-14 2016-08-10 长江勘测规划设计研究有限责任公司 Intelligent encoding method for hydropower station equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于SAP系统的"集中+分布式"火电厂运行管理系统的设计及研发;杜军,孙靖初等;《2012 电力行业信息化年会论文集》;20121231;全文 *
基于双编码体系的海岛新能源电站设备编码设计;李泽宇;《电工技术》;20160910;全文 *

Also Published As

Publication number Publication date
CN106777644A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106777644B (en) Automatic generation method and device for power plant identification system code
CN111814962A (en) Method and device for acquiring parameters of recognition model, electronic equipment and storage medium
CN104331285A (en) Automatic code generation method and system
CN111159982B (en) Document editing method, device, electronic equipment and computer readable storage medium
CN103473056A (en) Automatic generation method for telemetering configuration files
CN112446207A (en) Title generation method and device, electronic equipment and storage medium
CN113434674A (en) Data analysis method and device, electronic equipment and readable storage medium
CN110851511A (en) Data synchronization method and device
CN112733551A (en) Text analysis method and device, electronic equipment and readable storage medium
CN111625596B (en) Multi-source data synchronous sharing method and system for real-time new energy consumption scheduling
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
CN112783989A (en) Data processing method and device based on block chain
CN116595934A (en) Automatic generation method for configuration of gluing system, electronic device and storage medium
CN111126811A (en) Power plant data auxiliary coding system based on improved KKS coding rule
CN105426676A (en) Drilling data processing method and system
CN116956838A (en) Project determining method and device for engineering quantity list
CN104657340A (en) Expandable script-based Word report generating system and method
CN111460293B (en) Information pushing method and device and computer readable storage medium
CN113419951A (en) Artificial intelligence model optimization method and device, electronic equipment and storage medium
CN113254446A (en) Data fusion method and device, electronic equipment and medium
CN116107971A (en) Model data processing method and device, electronic equipment and storage medium
CN110489109A (en) The method and device of code reuse
CN111881661B (en) Data processing method, device and equipment based on spreadsheet and storage medium
CN104978273B (en) The automatic testing method and automatic detection unit of pad name
CN112287005B (en) Data processing method, device, server and 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