Method and device for generating digital drawing of secondary complex loop model of power system

By creating model library files and legend libraries, based on SDD model files and traditional drawings, digital drawing generation and automatic update of secondary complex loop models of power system is realized, solving the problem of inefficient traditional drawing processing and improving the efficiency of drawing production and Flexibility of model changes.

CN118965469APending Publication Date: 2024-11-15广西电网有限责任公司桂林供电局
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202411032185.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Traditional power system drawing processing methods are inefficient, error-prone, and maintenance is time-consuming and labor-intensive. They cannot ensure that the digital drawings are consistent with the latest data, resulting in confusion in version management.

Method used

By creating model library files and legend libraries, based on SDD model files and traditional drawings, the generation and automatic update of digital drawings are realized, and the XML format and SDL language are used to generate standardized digital drawings.

Benefits of technology

It improves the efficiency of drawing production, reduces manual intervention and errors, realizes automatic update of digital drawings, enhances the flexibility and adaptability of model changes, and simplifies drawing maintenance and update.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965469A_ABST
    Figure CN118965469A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for generating a digital drawing of a secondary complex loop model of a power system, relates to the technical field of power systems, and solves the problems that a traditional drawing processing method in the prior art is low in efficiency and easy to make mistakes, and the maintenance of the traditional drawing is time-consuming and labor-consuming. Comprising the following steps: creating a model library file and a legend library; loading the SDD model file; establishing association mapping between the SDD model file and the model library file, establishing association mapping between the SDD model file and the legend library, and establishing association mapping between the model library file and the legend library; processing data; and establishing association mapping of the SDD model file and the legend library based on the steps to generate a digital drawing. The method is completely based on the existing SDD model file and the traditional drawing, on the basis of not changing the hierarchical architecture of the existing SDD model file and the design habit of the traditional drawing, the generation of the digital drawing is realized, and a method support is provided for automatically realizing the updating and maintenance of the drawing when a subsequent model is changed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power systems, and in particular to a method and device for generating digital drawings of a secondary complex loop model of an electric power system. Background Art

[0002] As the scale and complexity of power systems continue to expand, traditional DWG or PDF format drawings can no longer meet the needs of modern power systems in terms of drawing verification and maintenance. Driven by digital big models, digital drawings have brought revolutionary changes to the fields of secondary circuit monitoring, protection, control and communication of power systems.

[0003] In traditional drawing processing methods, correctness verification relies almost entirely on manual inspection, which covers various aspects such as dimensions, annotations, and views, which is inefficient and prone to errors. Moreover, the maintenance of traditional drawings involves multiple links such as modification, updating, and storage. These tasks are time-consuming and laborious, and version management is prone to confusion. It is impossible to ensure that digital drawings are always consistent with the latest data, and it is not conducive to efficient version control and management.

[0004] In view of this, a method and device for generating digital drawings of secondary complex circuit models of power systems are needed. Summary of the invention

[0005] In view of the problems in the prior art that the traditional drawing processing method is inefficient and prone to errors, and the maintenance of traditional drawings is time-consuming and laborious, the present invention provides a method and device for generating digital drawings of secondary complex circuit models of power systems, which can be completely based on existing SDD model files and traditional drawings, without changing the existing SDD model file hierarchical structure and traditional drawing design habits, to achieve the generation of digital drawings, and provide method support for automatically updating and maintaining drawings when subsequent models are changed. The specific technical solution is as follows:

[0006] In order to achieve the above technical objectives, the first aspect of the present invention provides a method for processing data of a secondary complex circuit model of a power system and generating a digital drawing, the method comprising the following steps:

[0007] 1.1 Create model library files and legend library;

[0008] 1.2 Load the SDD model file;

[0009] 1.3 Establish the association mapping between SDD model files and model library files, establish the association mapping between SDD model files and legend library, and establish the association mapping between model library files and legend library;

[0010] 1.4 Data processing;

[0011] 1.5 Generate digital drawings based on the above steps.

[0012] Furthermore, the model library file created in step 1.1 specifically includes the following contents:

[0013] 1) Define the model library file structure:

[0014] The model library file is based on the XML format and uses the SDL language. The hierarchical structure includes a Board element; the Board element is composed of multiple Template elements; the Template element is composed of multiple CircuitDesc elements, multiple TypeGroup elements, and multiple Pin elements; the TypeGroup element is composed of multiple MatchPin elements.

[0015] Among them, the attributes of the Board element include the board name name, and the board name name is named according to the rule of "manufacturer abbreviation_board model_board plug-in function type_total number of terminals_total number of ports_total number of network ports"; the attributes of the Template element include the template name under the board; the attributes of the CircuitDesc element include the circuit function serial number name, horizontal axis row, vertical axis col, and circuit function description desc; the attributes of the TypeGroup element include the circuit type group name name; the attributes of the Pin element include the connection point serial number name, the connection point pin name pinPath, the next connection point pin name connected to the connection point neighbor, the horizontal axis row, the vertical axis col, and the connection point type type; the attributes of the MatchPin element include the connection point serial number name of the matching relationship, the input connection point path in of the template, and the output connection point path out of the template.

[0016] 2) Get the model library file data:

[0017] The data source of the model library file is the secondary schematic diagram in the substation secondary panel cabinet manufacturer's drawings, and other data sources are automatically generated by computer.

[0018] The secondary schematic diagram in the manufacturer's drawing is the factory drawing data provided by the panel cabinet manufacturer when the panel cabinet is designed and shipped. It is stored in the DWG file format and adopts the method of establishing a component recognition primitive library. Through the component objects in the preset primitive library, all component objects in the DWG file are automatically traversed one by one, matching the same graphic shape as the budget primitive library, and automatically retrieving the nearest text object near the graphic representing the matching component primitive as the attribute name of the component. Among them, the secondary schematic diagram needs to automatically add inflection points and functional text description recognition and judgment during recognition. Whether the connecting lines cross is used as the judgment basis, and circular inflection points are automatically added at the intersection; a virtual horizontal line is drawn at the location of the functional text description, and the matching component primitives crossed by the virtual horizontal line are automatically added with this functional text description.

[0019] At the same time, the lower left corner of the drawing frame is used as the origin of coordinate calculation, and a virtual rectangular frame is created at the outermost edge of each matched component graphic shape. The lower left and upper right points of the virtual rectangular frame are taken respectively, and the horizontal and vertical coordinates of these two points to the origin are automatically calculated.

[0020] Through the secondary schematic diagram, you can obtain the circuit function description desc attribute value, horizontal coordinate row, vertical coordinate col of the CircuitDesc element, the connection point pin name pinPath of the Pin element, the next connection point pin name neighbor connected to the connection point, the horizontal coordinate row, vertical coordinate col and the connection point type type, and you can obtain the input connection point path in of the template of the MatchPin element and the output connection point path out of the template.

[0021] The template name attribute value under the board of the Template element, the circuit function serial number name attribute value of the CircuitDesc element, the circuit type group name attribute value of the TypeGroup element, the connection point serial number name attribute value of the Pin element, and the connection point serial number name attribute value of the pairing relationship of the MatchPin element are all named with a unified four-digit number, which are automatically generated by the computer in the order of arrangement in the elements of the same level in the model library file.

[0022] Furthermore, the legend library is created in step 1.1, specifically including the following contents:

[0023] The legend library includes three types: component legend, inflection point legend and functional text description legend. The component legend describes the shape, position and connection point of each component object in the secondary circuit; the inflection point legend describes the intersection of the connecting lines between components in the secondary circuit; the functional text description legend describes the functional description corresponding to each component object in the secondary circuit.

[0024] 1) The component legend includes a model attribute type, a line direction attribute direction, and a type attribute class. The model attribute type is classified according to the number of connection points, and can be divided into single-connection point components, double-connection point components, three-connection point components, four-connection point components, and n-connection point components. The line direction attribute direction indicates the directions of the four lines of the connection points of the component legend, up_n indicates that the line of the connection point is upward, down_n indicates that the line of the connection point is downward, left_n indicates that the line of the connection point is left, and right_n indicates that the line of the connection point is right, where _n indicates the same direction. The order of the line of the connection point is arranged from top to bottom and from left to right. The direction attribute value filling rule is:

[0025] "up_1,...,up_n; down_1,...,down_n; left_1,...,left_n; right_1,...,right_n"; the type attribute class includes AC current sampling component JLDLCY, AC current output component JLDLSC, AC voltage sampling component JLDYCY, AC voltage output component JLDYSC, DC voltage sampling component ZLDYCY, DC voltage output component ZLDYSC, DC current sampling component ZLDLCY, DC current output component ZLDLSC, input element Component KR, normally open output component CKKC, normally closed output component CBKC, serial port 232 component RS232, terminal component DZ, serial port 485 component function RSS485, network port component WK, optical fiber receiving port component RX, optical fiber transmitting port component TX, optical fiber transceiver port component RXTX, grounding component GND, circuit breaker component DLQ, fuse component RDQ, relay action coil component DZJDQ, 3-connection point magnetic latching relay coil component CBCJDQ_3, 4-connection point magnetic latching relay coil component CBCJDQ_4, pull-in delay relay coil component XHJDQ, delay Reset relay coil element XHJDQ, normally open contact element CKCD, normally closed contact element CBCD, contactor normally open contact element JCQCKCD, contactor normally closed contact element JCQCBCD, disconnection delay conversion contact element DKYSZH, pull-in delay conversion contact element XHYSZH, conversion switch normally open contact element ZHKGCK, limit switch normally open contact element XWKGCK, limit switch normally closed contact element XWKGCB, DC power input element ZLDYSR, DC power output element ZLDYOUT, AC power input element JLDYSR, AC power output Output component JLDYOUT, AC current input component JLDLSR_4, AC voltage output component JLDYOUT_4, AC / DC universal power supply input component JZLDYSR, button normally open contact component ANCKCD, button normally closed contact component ANCBCD, busbar component MX, resistance component R, variable resistance component KBDZ, capacitance component DR, lightning arrester component FLQ, indicator light component ZSD, light emitting diode component FGEJG, semiconductor diode component EJG, current transformer secondary winding component DLHGQ2, voltage transformer secondary winding component DYHGQ2.

[0026] The inflection point legend includes the type attribute class and the line direction attribute direction. The type attribute class can be classified into L-type inflection point legend, T-type inflection point legend and cross-type inflection point legend according to the shape. The line direction attribute direction indicates the direction of the four lines of the connection point of the inflection point legend. The inflection point line is upward with up_n, the inflection point line is downward with down_n, the inflection point line is left with left_n, and the inflection point line is right with right_n, where _n indicates the same direction. The order of the connection points from top to bottom and from left to right is arranged. The direction attribute value filling rule is:

[0027] “up_1,...,up_n;down_1,...,down_n;left_1,...,left_n;right_1,...,right_n”, where the shape of the inflection point legend combined with the direction of the line connecting the point can determine how the inflection point is drawn.

[0028] The functional text description legend includes the type attribute class, which can be divided into level 1 functional text description, level 2 functional text description, level 3 functional text description and level n functional text description according to the hierarchical classification.

[0029] Furthermore, the SDD model file is loaded in step 1.2, specifically including the following contents:

[0030] The SDD model file is based on the XML format and uses the SDL language. The hierarchical structure includes a Substation (substation) element, which is composed of one or more Region (region in the substation) elements, one or more Cable (cable or optical cable between cabinets) elements and one or more Bay (interval) elements; the Region element contains one or more Cubicle (cabinet) elements; the Cubicle element contains one or more Device (device) elements, one or more IntCore (internal connection) elements and Cable (cable in the cabinet) elements in turn; the Device element contains zero or more Board (board) elements, zero or more Port (terminal) elements, zero or more EAI (material attributes), zero or more EComponent (component in the device or board) elements, zero or more EFunction (component function) elements and zero or more EConnection (internal connection relationship of the device) elements; the EFunction element contains one or more EFuncPin (connection point of component function) elements.

[0031] The attributes of the Device element include the device manufacturer vendor, the attributes of the Board element include the board name name and board model type, the attributes of the Port element include the connection point number name and connection point type class, and the attribute of the EFunction element includes the component type class.

[0032] Furthermore, the association mapping between the SDD model file and the model library file in step 1.3 specifically includes the following contents:

[0033] The association mapping adopts the NLP method based on linguistic rules. It parses the SDD model file through a predefined set of rules. According to the multiple key information obtained from the analysis, all files in the model library are automatically traversed one by one, and multiple files with key information are retrieved. Each module library file uses the attribute board name of the Board element as the only retrieval condition; due to the uniqueness of the model library, each key information can only retrieve one file in the model library; since a key information can appear multiple times in the SDD model file, a model library file can correspond to a key information at different positions in the SDD model file.

[0034] The set of predefined rules for key information includes:

[0035] 1) Identify the beginning and ending marks of each key information in the SDD model file; the Device element under the Cubicle element in the SDD model file is both the beginning mark and the ending mark of the key information.

[0036] 2) Define the key attribute combination for parsing the key information of the SDD model file; take "manufacturer abbreviation_board model_board plug-in function type_total number of terminals_total number of ports_total number of network ports" as the key attribute combination of key information, where the manufacturer abbreviation is taken from the vendor device manufacturer attribute of the Device element in the SDD model file, the board model is taken from the type board model attribute of the Board element in the SDD model file, the board plug-in function type is taken from the class board type of the Board element in the SDD model file, the total number of terminals is taken from the class terminal type attribute of the Port element in the SDD model file, and the value is the total number of terminals TD, the total number of ports is taken from the class terminal type attribute of the Port element in the SDD model file, and the value is the total number of ports FP, and the total number of network ports is taken from the class terminal type attribute of the Port element in the SDD model file, and the value is the total number of network ports EP.

[0037] Furthermore, the association mapping between the SDD model file and the legend library in step 1.3 mainly lies in the association between the component legend and the inflection point legend, and specifically includes the following contents:

[0038] The association of component legends must meet two association conditions:

[0039] 1) The component type class attribute value of the EFunction element in the SDD model file must be consistent with the type class attribute value of the component legend.

[0040] 2) The total number of EFuncPin elements contained in a single EFunction element in the SDD model file corresponds to the model type attribute value of the component legend. The total number is 1 EFuncPin element corresponding to the single connection point component, the total number is 2 EFuncPin elements corresponding to the double connection point component, the total number is 3 EFuncPin elements corresponding to the three connection point component, the total number is 4 EFuncPin elements corresponding to the four connection point component, and the total number is n EFuncPin elements corresponding to the n connection point component.

[0041] The association of the inflection point legend must satisfy the requirement that the component type class attribute value of the EFunction element in the SDD model file must be consistent with the type class attribute value of the inflection point legend.

[0042] Furthermore, the association mapping between the model library file and the legend library in step 1.3 mainly lies in the association of the functional text description legend, which specifically includes the following contents:

[0043] The association of the functional text description must satisfy the correspondence between the circuit functional description desc attribute value of the CircuitDesc element in the model library file and the type class attribute of the functional text description legend. The circuit functional description desc attribute value format of the CircuitDesc element is "n-level functional file description.n-1-level functional file description...1-level functional file description".

[0044] Furthermore, the data processing in step 1.4 mainly includes data cleaning, data integration, data location arrangement and data association, which specifically includes the following contents:

[0045] Data cleaning includes standardizing the data format and removing duplicate or invalid data in the SDD model file. Standardizing the data format check is to check whether the attribute values ​​of each element in the entire SDD model file meet the standard format requirements, and to give an error prompt for data that does not meet the format requirements. Removing duplicate or invalid data is to check the duplication of the unique identification number attribute value representing each element in the entire SDD model file, and to give an error prompt for duplicate data.

[0046] Data integration includes data combination of attribute values ​​of multiple elements for the "key attribute combination that defines key information of the SDD model file for parsing" stated in claim 5, and data calculation of the total number of elements for the "total number of EFuncPin elements contained in a single EFunction element in the SDD model file corresponds to the model type attribute value of the component legend" stated in claim 6.

[0047] Data position arrangement includes connection point position arrangement and circuit function description position arrangement. Connection point element position arrangement is arranged according to the horizontal coordinate row attribute and vertical coordinate col attribute of the connection point Pin element. Circuit function description position arrangement is arranged according to the horizontal coordinate row attribute and vertical coordinate col attribute of the circuit function CircuitDesc element.

[0048] Data association includes data association and data call of the element attributes that need to be associated in claim 5, claim 6 and claim 7, and adding connection lines to form a diagram in sequence according to the data location arrangement, the line direction attribute direction and the next connection point pin name neighbor attribute value connected to the connection point Pin element.

[0049] A second aspect of the present invention provides a device for processing data of a secondary complex circuit model of a power system and generating a digital drawing, comprising:

[0050] A first storage module is used to store pre-created model library files and legend libraries;

[0051] The first acquisition module is used to acquire the SDD model file to be prepared;

[0052] The first processing module is used for association mapping between the SDD model file and the model library file;

[0053] The second processing module is used for associative mapping between the SDD model file and the legend library;

[0054] The third processing module is used for associative mapping between the model library file and the legend library;

[0055] A fourth processing module, used for data processing;

[0056] The first generation module is used for digital drawing generation.

[0057] Compared with the related art, the present invention has the following beneficial effects:

[0058] 1. By creating a model library file and a legend library, the present invention realizes the standardized storage of secondary complex circuit data of the power system, which is conducive to the reuse of data, reduces data redundancy, and improves the efficiency of data management;

[0059] 2. By establishing the association mapping between the SDD model file and the model library file and the legend library, the present invention realizes the automatic association and mapping of data, and significantly improves the automation degree of data processing. On this basis, the present invention can automatically generate digital drawings, significantly improve the efficiency of drawing production, and reduce manual intervention and errors;

[0060] 3. The present invention is based on the existing SDD model files and traditional drawings, so it can realize the generation of digital drawings without changing the existing file hierarchy and traditional design habits. This means that when the model changes, only the SDD model file needs to be updated, and the digital drawings can be automatically updated, which greatly enhances the flexibility and adaptability of model changes.

[0061] 4. The method and device of the present invention have good scalability. As the power system develops and changes, the model library and legend library can be easily expanded to adapt to new needs and changes. At the same time, due to the automatic generation of digital drawings, the maintenance and update of drawings become simpler and more convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0063] Figure 1 It is a flow chart of the implementation of the method for processing data of a secondary complex circuit model of a power system and generating a digital drawing provided by an embodiment of the present invention;

[0064] Figure 2 It is a schematic diagram of the structure of a model library file of a method for processing data of a secondary complex circuit model of a power system and generating digital drawings provided by an embodiment of the present invention;

[0065] Figure 3 It is a partial schematic diagram of a legend library in a method for processing data of a secondary complex loop model of a power system and generating digital drawings provided by an embodiment of the present invention;

[0066] Figure 4 It is a schematic diagram of the SDD model file structure of the method for processing data of a secondary complex circuit model of a power system and generating digital drawings provided by an embodiment of the present invention;

[0067] Figure 5 It is a digital processing schematic diagram of a method for processing data of a secondary complex circuit model of a power system and generating digital drawings provided by an embodiment of the present invention;

[0068] Figure 6It is a schematic diagram of the structure of a device for processing data of a secondary complex circuit model of a power system and generating a digital drawing provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0071] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.

[0072] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0073] Figure 1 The present invention is a flowchart of a method for processing data of a secondary complex circuit model of a power system and generating a digital drawing, which includes the following steps:

[0074] 1.1 Create model library files and legend library;

[0075] 1.2 Load the SDD model file;

[0076] 1.3 Establish the association mapping between SDD model files and model library files, establish the association mapping between SDD model files and legend library, and establish the association mapping between model library files and legend library;

[0077] 1.4 Data processing;

[0078] 1.5 Generate digital drawings based on the above steps.

[0079] Figure 2 It is a schematic diagram of the structure of the model library file provided by an embodiment of the present invention, which includes the following contents:

[0080] 1) Define the model library file structure:

[0081] In this embodiment, the model library file is based on the XML format and adopts the SDL language. The hierarchical structure includes a Board element; the Board element is composed of multiple Template elements; the Template element is composed of multiple CircuitDesc elements, multiple TypeGroup elements and multiple Pin elements; the TypeGroup element is composed of multiple MatchPin elements.

[0082] Among them, the attributes of the Board element include the board name name, and the board name name is named according to the rule of "manufacturer abbreviation_board model_board plug-in function type_total number of terminals_total number of ports_total number of network ports"; the attributes of the Template element include the template name under the board; the attributes of the CircuitDesc element include the circuit function serial number name, horizontal axis row, vertical axis col, and circuit function description desc; the attributes of the TypeGroup element include the circuit type group name name; the attributes of the Pin element include the connection point serial number name, the connection point pin name pinPath, the next connection point pin name connected to the connection point neighbor, the horizontal axis row, the vertical axis col, and the connection point type type; the attributes of the MatchPin element include the connection point serial number name of the matching relationship, the input connection point path in of the template, and the output connection point path out of the template.

[0083] 2) Get the model library file data:

[0084] In this embodiment, the data source of the model library file is the secondary schematic diagram in the drawings of the transformer substation secondary panel cabinet manufacturer, and other data sources are automatically generated by a computer.

[0085] The secondary schematic diagram in the manufacturer's drawing is the factory drawing data provided by the panel cabinet manufacturer when the panel cabinet is designed and shipped. It is stored in the DWG file format and adopts the method of establishing a component recognition primitive library. Through the component objects in the preset primitive library, all component objects in the DWG file are automatically traversed one by one, matching the same graphic shape as the budget primitive library, and automatically retrieving the nearest text object near the graphic representing the matching component primitive as the attribute name of the component. Among them, the secondary schematic diagram needs to automatically add inflection points and functional text description recognition and judgment during recognition. Whether the connecting lines cross is used as the judgment basis, and circular inflection points are automatically added at the intersection; a virtual horizontal line is drawn at the location of the functional text description, and the matching component primitives crossed by the virtual horizontal line are automatically added with this functional text description.

[0086] At the same time, the lower left corner of the drawing frame is used as the origin of coordinate calculation, and a virtual rectangular frame is created at the outermost edge of each matched component graphic shape. The lower left and upper right points of the virtual rectangular frame are taken respectively, and the horizontal and vertical coordinates of these two points to the origin are automatically calculated.

[0087] Through the secondary schematic diagram, you can obtain the circuit function description desc attribute value, horizontal coordinate row, vertical coordinate col of the CircuitDesc element, the connection point pin name pinPath of the Pin element, the next connection point pin name neighbor connected to the connection point, the horizontal coordinate row, vertical coordinate col and the connection point type type, and you can obtain the input connection point path in of the template of the MatchPin element and the output connection point path out of the template.

[0088] The template name attribute value under the board of the Template element, the circuit function serial number name attribute value of the CircuitDesc element, the circuit type group name attribute value of the TypeGroup element, the connection point serial number name attribute value of the Pin element, and the connection point serial number name attribute value of the pairing relationship of the MatchPin element are all named with a unified four-digit number, which are automatically generated by the computer in the order of arrangement in the elements of the same level in the model library file.

[0089] See also Figure 3 In this embodiment, the legend library is created in step 1.1, including the following contents:

[0090] The legend library includes three types: component legend, inflection point legend and functional text description legend. The component legend describes the shape, position and connection point of each component object in the secondary circuit; the inflection point legend describes the intersection of the connecting lines between components in the secondary circuit; the functional text description legend describes the functional description corresponding to each component object in the secondary circuit.

[0091] 1) The component legend includes the model attribute type, the line direction attribute direction and the type attribute class. The model attribute type is classified according to the number of connection points, and can be divided into single connection point components, double connection point components, three connection point components, four connection point components and n connection point components. The line direction attribute direction indicates the direction of the four lines of the connection point of the component legend. The connection point line is upward with up_n, the connection point line is downward with down_n, the connection point line is left with left_n, and the connection point line is right with right_n, where _n indicates the same direction. The order of the connection point lines arranged from top to bottom and from left to right is as follows:

[0092] "up_1,...,up_n; down_1,...,down_n; left_1,...,left_n; right_1,...,right_n"; the type attribute class includes AC current sampling component JLDLCY, AC current output component JLDLSC, AC voltage sampling component JLDYCY, AC voltage output component JLDYSC, DC voltage sampling component ZLDYCY, DC voltage output component ZLDYSC, DC current sampling component ZLDLCY, DC current output component ZLDLSC, input element Component KR, normally open output component CKKC, normally closed output component CBKC, serial port 232 component RS232, terminal component DZ, serial port 485 component function RSS485, network port component WK, optical fiber receiving port component RX, optical fiber transmitting port component TX, optical fiber transceiver port component RXTX, grounding component GND, circuit breaker component DLQ, fuse component RDQ, relay action coil component DZJDQ, 3-connection point magnetic latching relay coil component CBCJDQ_3, 4-connection point magnetic latching relay coil component CBCJDQ_4, pull-in delay relay coil component XHJDQ, delay Reset relay coil element XHJDQ, normally open contact element CKCD, normally closed contact element CBCD, contactor normally open contact element JCQCKCD, contactor normally closed contact element JCQCBCD, disconnection delay conversion contact element DKYSZH, pull-in delay conversion contact element XHYSZH, conversion switch normally open contact element ZHKGCK, limit switch normally open contact element XWKGCK, limit switch normally closed contact element XWKGCB, DC power input element ZLDYSR, DC power output element ZLDYOUT, AC power input element JLDYSR, AC power output Output component JLDYOUT, AC current input component JLDLSR_4, AC voltage output component JLDYOUT_4, AC / DC universal power supply input component JZLDYSR, button normally open contact component ANCKCD, button normally closed contact component ANCBCD, busbar component MX, resistance component R, variable resistance component KBDZ, capacitance component DR, lightning arrester component FLQ, indicator light component ZSD, light emitting diode component FGEJG, semiconductor diode component EJG, current transformer secondary winding component DLHGQ2, voltage transformer secondary winding component DYHGQ2.

[0093] The inflection point legend includes the type attribute class and the line direction attribute direction. The type attribute class can be classified into L-type inflection point legend, T-type inflection point legend and cross-type inflection point legend according to the shape. The line direction attribute direction indicates the direction of the four lines of the connection point of the inflection point legend. The inflection point line is upward with up_n, the inflection point line is downward with down_n, the inflection point line is left with left_n, and the inflection point line is right with right_n, where _n indicates the same direction. The order of the connection points from top to bottom and from left to right is arranged. The direction attribute value filling rule is:

[0094] “up_1,...,up_n;down_1,...,down_n;left_1,...,left_n;right_1,...,right_n”, where the shape of the inflection point legend combined with the direction of the line connecting the point can determine how the inflection point is drawn.

[0095] The functional text description legend includes the type attribute class, which can be divided into level 1 functional text description, level 2 functional text description, level 3 functional text description and level n functional text description according to the hierarchical classification.

[0096] See also Figure 4 In this embodiment, the SDD model file is loaded in step 1.2, which specifically includes the following contents:

[0097] The SDD model file is based on the XML format and uses the SDL language. The hierarchical structure includes a Substation (substation) element, which is composed of one or more Region (region in the substation) elements, one or more Cable (cable or optical cable between cabinets) elements and one or more Bay (interval) elements; the Region element contains one or more Cubicle (cabinet) elements; the Cubicle element contains one or more Device (device) elements, one or more IntCore (internal connection) elements and Cable (cable in the cabinet) elements in turn; the Device element contains zero or more Board (board) elements, zero or more Port (terminal) elements, zero or more EAI (material attributes), zero or more EComponent (component in the device or board) elements, zero or more EFunction (component function) elements and zero or more EConnection (internal connection relationship of the device) elements; the EFunction element contains one or more EFuncPin (connection point of component function) elements.

[0098] The attributes of the Device element include the device manufacturer vendor, the attributes of the Board element include the board name name and board model type, the attributes of the Port element include the connection point number name and connection point type class, and the attribute of the EFunction element includes the component type class.

[0099] In this embodiment, the association mapping between the SDD model file and the model library file in step 1.3 specifically includes the following contents:

[0100] The association mapping adopts the NLP method based on linguistic rules. It parses the SDD model file through a predefined set of rules. According to the multiple key information obtained from the analysis, all files in the model library are automatically traversed one by one, and multiple files with key information are retrieved. Each module library file uses the attribute board name of the Board element as the only retrieval condition; due to the uniqueness of the model library, each key information can only retrieve one file in the model library; since a key information can appear multiple times in the SDD model file, a model library file can correspond to a key information at different positions in the SDD model file.

[0101] The set of predefined rules for key information includes:

[0102] 1) Identify the beginning and ending marks of each key information in the SDD model file; the Device element under the Cubicle element in the SDD model file is both the beginning mark and the ending mark of the key information.

[0103] 2) Define the key attribute combination for parsing the key information of the SDD model file; take "manufacturer abbreviation_board model_board plug-in function type_total number of terminals_total number of ports_total number of network ports" as the key attribute combination of key information, where the manufacturer abbreviation is taken from the vendor device manufacturer attribute of the Device element in the SDD model file, the board model is taken from the type board model attribute of the Board element in the SDD model file, the board plug-in function type is taken from the class board type of the Board element in the SDD model file, the total number of terminals is taken from the class terminal type attribute of the Port element in the SDD model file, and the value is the total number of terminals TD, the total number of ports is taken from the class terminal type attribute of the Port element in the SDD model file, and the value is the total number of ports FP, and the total number of network ports is taken from the class terminal type attribute of the Port element in the SDD model file, and the value is the total number of network ports EP.

[0104] In this embodiment, the association mapping between the SDD model file and the legend library in step 1.3 mainly lies in the association between the component legend and the inflection point legend, and specifically includes the following contents:

[0105] The association of component legends must meet two association conditions:

[0106] 1) The component type class attribute value of the EFunction element in the SDD model file must be consistent with the type class attribute value of the component legend.

[0107] 2) The total number of EFuncPin elements contained in a single EFunction element in the SDD model file corresponds to the model type attribute value of the component legend. The total number is 1 EFuncPin element corresponding to the single connection point component, the total number is 2 EFuncPin elements corresponding to the double connection point component, the total number is 3 EFuncPin elements corresponding to the three connection point component, the total number is 4 EFuncPin elements corresponding to the four connection point component, and the total number is n EFuncPin elements corresponding to the n connection point component.

[0108] The association of the inflection point legend must satisfy the requirement that the component type class attribute value of the EFunction element in the SDD model file must be consistent with the type class attribute value of the inflection point legend.

[0109] In this embodiment, the association mapping between the model library file and the legend library in step 1.3 mainly lies in the association of the functional text description legend, which specifically includes the following contents:

[0110] The association of the functional text description must satisfy the correspondence between the circuit functional description desc attribute value of the CircuitDesc element in the model library file and the type class attribute of the functional text description legend. The circuit functional description desc attribute value format of the CircuitDesc element is "n-level functional file description.n-1-level functional file description...1-level functional file description".

[0111] join Figure 5 In this embodiment, the data processing in step 1.4 mainly includes data cleaning, data integration, data location arrangement and data association, which specifically includes the following contents:

[0112] Data cleaning includes standardizing the data format and removing duplicate or invalid data in the SDD model file. Standardizing the data format check is to check whether the attribute values ​​of each element in the entire SDD model file meet the standard format requirements, and to give an error prompt for data that does not meet the format requirements. Removing duplicate or invalid data is to check the duplication of the unique identification number attribute value representing each element in the entire SDD model file, and to give an error prompt for duplicate data.

[0113] Data integration includes data combination of attribute values ​​of multiple elements for the "key attribute combination that defines key information of the SDD model file for parsing" stated in claim 5, and data calculation of the total number of elements for the "total number of EFuncPin elements contained in a single EFunction element in the SDD model file corresponds to the model type attribute value of the component legend" stated in claim 6.

[0114] Data position arrangement includes connection point position arrangement and circuit function description position arrangement. Connection point element position arrangement is arranged according to the horizontal coordinate row attribute and vertical coordinate col attribute of the connection point Pin element. Circuit function description position arrangement is arranged according to the horizontal coordinate row attribute and vertical coordinate col attribute of the circuit function CircuitDesc element.

[0115] Data association includes data association and data call of the element attributes that need to be associated in claim 5, claim 6 and claim 7, and adding connection lines to form a diagram in sequence according to the data location arrangement, the line direction attribute direction and the next connection point pin name neighbor attribute value connected to the connection point Pin element.

[0116] join Figure 6 , a device for processing data of a secondary complex circuit model of a power system and generating digital drawings disclosed in an embodiment of the present invention comprises:

[0117] A first storage module is used to store pre-created model library files and legend libraries;

[0118] The first acquisition module is used to acquire the SDD model file to be prepared;

[0119] The first processing module is used for association mapping between the SDD model file and the model library file;

[0120] The second processing module is used for associative mapping between the SDD model file and the legend library;

[0121] The third processing module is used for associative mapping between the model library file and the legend library;

[0122] A fourth processing module, used for data processing;

[0123] The first generation module is used for digital drawing generation.

[0124] In summary, the present invention realizes the standardized storage of secondary complex circuit data of the power system by creating a model library file and a legend library, which is conducive to the reuse of data, reduces data redundancy, and improves the efficiency of data management; moreover, the present invention realizes the automatic association and mapping of data by establishing the association mapping between the SDD model file and the model library file and the legend library, and significantly improves the automation degree of data processing. On this basis, the present invention can automatically generate digital drawings, significantly improve the efficiency of drawing production, and reduce manual intervention and errors. In addition, the present invention is based on the existing SDD model file and traditional drawings, so it can realize the generation of digital drawings without changing the existing file hierarchy architecture and traditional design habits. This means that when the model changes, only the SDD model file needs to be updated, and the digital drawings can be automatically updated, which greatly enhances the flexibility and adaptability of the model change. At the same time, due to the automatic generation of digital drawings, the maintenance and update of the drawings become simpler and more convenient.

[0125] Those of ordinary skill in the art will appreciate that the units of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0126] In the embodiments provided by the present invention, it should be understood that the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored, etc.

[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-0nlyMemory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disk or optical disk, etc., which can store program code.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A method for generating digital drawings of secondary complex circuit models of power systems, characterized in that: The following steps are involved: Define the model library file structure, obtain the model library file data, and create the model library file; Create a legend library, which includes three types: component legend, inflection point legend and function text description legend. The component legend describes the shape, position and connection point of each component object in the secondary circuit; the inflection point legend describes the intersection of the connection lines between components in the secondary circuit; the function text description legend describes the function description corresponding to each component object in the secondary circuit; Load the SDD model file; Establish association mapping between SDD model files and model library files, establish association mapping between SDD model files and legend libraries, and establish association mapping between model library files and legend libraries; Data processing, including data cleaning, which includes checking the standardized data format of the data in the SDD model file and removing duplicate or invalid data; Generate digital drawings.

2. A method for generating digital drawings of a secondary complex circuit model of a power system according to claim 1, characterized in that: The structure of the model library file is as follows: The model library file is based on XML format and adopts SDL language. The hierarchical structure includes a Board element; the Board element is composed of multiple Template elements; the Template element is composed of multiple CircuitDesc elements, multiple TypeGroup elements and multiple Pin elements; the TypeGroup element is composed of multiple MatchPin elements.

3. The method for generating digital drawings of a secondary complex circuit model of a power system according to claim 2, characterized in that: The steps to create a model library file are as follows: Define the model library file structure; Obtaining the model library file data, specifically: reading the model library file data stored in the DWG file format from the factory drawing data attached when leaving the factory; By establishing a component recognition primitive library, all component objects in the DWG file are automatically traversed one by one through the component objects in the preset primitive library, matching the same graphic shape as the budget primitive library, and automatically retrieving the nearest text object near the graphic representing the matching component primitive to be defined as the attribute name of the component; Take the lower left corner of the drawing frame as the origin of coordinate calculation, virtualize a rectangular frame at the outermost edge of each matched component graphic shape, take the lower left corner and upper right corner of the virtual rectangular frame respectively, and automatically calculate the horizontal and vertical coordinates of these two points to the origin; The circuit function description desc attribute value, horizontal coordinate row, and vertical coordinate col of the CircuitDesc element are obtained through the model library file data. The connection point pin name pinPath of the Pin element, the next connection point pin name neighbor connected to the connection point, the horizontal coordinate row, the vertical coordinate col, and the connection point type type can be obtained, and then the input connection point path in of the template of the MatchPin element and the output connection point path out of the template can be obtained.

4. The method for generating digital drawings of a secondary complex circuit model of a power system according to claim 1, characterized in that: The component legend includes a model attribute type, an outgoing line direction attribute direction, and a type attribute class, wherein the model attribute type is classified according to the number of connection points, and can be divided into single-connection point components, double-connection point components, three-connection point components, four-connection point components, and n-connection point components; the outgoing line direction attribute direction indicates the directions of the four outgoing lines of the connection points of the component legend, up_n indicates that the outgoing line of the connection point is upward, down_n indicates that the outgoing line of the connection point is downward, left_n indicates that the outgoing line of the connection point is left, and right_n indicates that the outgoing line of the connection point is right, wherein _n indicates the same direction, and the outgoing line order of the connection points is arranged from top to bottom and from left to right; The inflection point legend includes a type attribute class and an outgoing line direction attribute direction, wherein the type attribute class can be classified into an L-type inflection point legend, a T-type inflection point legend and a cross-type inflection point legend according to the shape; the outgoing line direction attribute direction indicates the directions of the four outgoing lines of the connection point of the inflection point legend, the inflection point outgoing line upward is indicated by up_n, the inflection point outgoing line downward is indicated by down_n, the inflection point outgoing line to the left is indicated by left_n, and the inflection point outgoing line to the right is indicated by right_n, wherein _n indicates the same direction, and the order of the outgoing lines of the connection points arranged from top to bottom and from left to right; The functional text description legend includes a type attribute class, which is classified into level 1 functional text description, level 2 functional text description, level 3 functional text description and level n functional text description according to the level classification.

5. The method for generating digital drawings of a secondary complex circuit model of a power system according to claim 1, characterized in that: The SDD model file is based on the XML format and uses the SDL language. The hierarchical structure includes a Substation element, which is composed of one or more Region elements, one or more Cable elements and one or more Bay elements; the Region element contains one or more Cubicle elements; the Cubicle element contains one or more Device elements, one or more IntCore elements and Cable elements in turn; the Device element contains zero or more Board elements, zero or more Port elements, zero or more EAIs, zero or more EComponent elements, zero or more EFunction elements and zero or more EConnection elements; the EFunction element contains one or more EFuncPin elements.

6. The method for generating digital drawings of a secondary complex circuit model of a power system according to claim 1, characterized in that: The association mapping adopts the NLP method based on linguistic rules. It parses the SDD model file through a predefined set of rules. According to the multiple key information obtained from the analysis, it automatically traverses all files in the model library one by one, and retrieves multiple files with key information. Each module library file uses the attribute board name of the Board element as the only retrieval condition. Each key information can only retrieve one file in the model library.

7. The method for generating digital drawings of a secondary complex circuit model of a power system according to claim 1, characterized in that: Data processing includes data cleaning, data integration, data location arrangement and data association, including: Data cleaning includes standardizing the data format and removing duplicate or invalid data in the SDD model file. Standardizing the data format is to check whether the attribute value of each element in the entire SDD model file meets the standard format requirements, and to give an error prompt for data that does not meet the format requirements. Removing duplicate or invalid data is to check the duplication of the attribute value of the unique identification number representing each element in the entire SDD model file, and to give an error prompt for duplicate data. Data integration includes combining the attribute values ​​of multiple elements and calculating the total number of elements; The data position arrangement includes connection point position arrangement and circuit function description position arrangement. The connection point element position arrangement is arranged according to the horizontal coordinate row attribute and the vertical coordinate col attribute of the connection point Pin element, and the circuit function description position arrangement is arranged according to the horizontal coordinate row attribute and the vertical coordinate col attribute of the circuit function CircuitDesc element; The data association includes data association and data call for element attributes that need to be associated, and adding connection lines in sequence to form a diagram according to the data location arrangement, the line direction attribute direction, and the next connection point pin name neighbor attribute value connected to the connection point Pin element.

8. A device for generating digital drawings of secondary complex circuit models of power systems, characterized in that: The method applied to any one of claims 1 to 6 comprises: A first storage module is used to store pre-created model library files and legend libraries; The first acquisition module is used to acquire the SDD model file to be prepared; The first processing module is used for association mapping between the SDD model file and the model library file; The second processing module is used for associative mapping between the SDD model file and the legend library; The third processing module is used for associative mapping between the model library file and the legend library; A fourth processing module, used for data processing; The first generation module is used for digital drawing generation.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the method for generating digital drawings of secondary complex circuit models of power systems as described in any one of claims 1 to 7.

10. A processor, characterized in that: The processor is used to run a program, wherein when the program is run, the method for generating a digital drawing of a secondary complex circuit model of a power system as described in any one of claims 1 to 7 is executed.

Citation Information

Cited By

  • Digital model construction method of relay protection secondary circuit

    CN119272632A

  • A method for constructing a digital model of a relay protection secondary circuit

    CN119272632B

  • Method and system for generating three-dimensional model based on planar graph and medium

    CN119808221A

  • Standardized digital graph conversion method and electronic equipment

    CN119903824A

  • Method and device for automatically designing gas path diagram

    CN120974674A