A yard one-time wiring diagram automatic generation method and system thereof
By parsing the SCD configuration file of the substation, the primary wiring diagram of the substation in SVG format is generated, which solves the problems of low efficiency and insufficient accuracy of manual drawing. It realizes the generation of fast, standardized and accurate wiring diagrams, which conforms to the technical specifications of the State Grid's new generation of substation secondary systems that are independently controllable.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANJING DIANYAN ELECTRIC POWER AUTOMATION
- Filing Date
- 2022-10-28
- Publication Date
- 2026-05-05
AI Technical Summary
The manual drawing of primary wiring diagrams within substations in existing technologies is inefficient and difficult to guarantee accuracy, failing to meet the requirements of the State Grid Corporation's technical specifications for the new generation of independently controllable substation secondary systems.
By parsing the SCD configuration file of the station, the station bay information is obtained, and the typical bay library is called according to the bay type and wiring method to generate the station primary wiring diagram in SVG format. The SVG source code is stored in the form of a plug-in to improve scalability.
It enables the rapid generation of primary wiring diagrams for substations, ensuring standardization and accuracy, meeting the requirements of the State Grid's independently controllable new generation of substation secondary system technical specifications, and possessing strong scalability.
Smart Images

Figure CN116797686B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrical or electronic system control technology, and in particular to a method and system for automatically generating primary wiring diagrams for power stations. Background Technology
[0002] Currently, most substation primary wiring diagrams are generated manually. However, manual drawing is inefficient and its standardization and accuracy are difficult to guarantee. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to address the above-mentioned shortcomings of the prior art by providing a method and system for automatically generating primary wiring diagrams of a power station. This method can automatically generate primary wiring diagrams of power stations quickly and efficiently, while ensuring standardization and accuracy.
[0004] In a first aspect, the present invention provides a method for automatically generating a primary wiring diagram for a power station, the method comprising:
[0005] S1: Define typical intervals according to interval type and interval wiring method, and then store the SVG code corresponding to each typical interval in the initial typical interval library in the form of a plugin to form a typical interval library;
[0006] S2: Obtain the SCD file of the station configuration and parse the station bays in the SCD file to obtain the parsing result of the SCD file;
[0007] S3: Parse the departure station interval type from the SCD file parsing results;
[0008] S4: Traverse all primary equipment in the station bay according to the station bay type to obtain the station bay topology;
[0009] S5: Analyze the topology of the station bays and determine the wiring method of the station bays;
[0010] S6: Call the typical bay library according to the bay type and bay wiring method, and draw the SVG format primary wiring diagram of the station according to the station bay topology.
[0011] Furthermore, the interval type is obtained by classifying the power equipment into interval types, and the interval wiring method is obtained by classifying the power equipment into interval wiring methods;
[0012] The interval types specifically include:
[0013] Main transformer bay, and / or, busbar bay, and / or, line switch bay, and / or, capacitor switch bay, and / or, reactor switch bay, and / or, bus tie switch bay, and / or, line bay.
[0014] The interval wiring method in step S1 specifically includes:
[0015] Single busbar connection method, single busbar segmented connection method, double busbar connection method, double busbar segmented connection method, bypass busbar connection method, 3 / 2 busbar connection method.
[0016] Furthermore, the initial typical interval library in step S1 specifically includes:
[0017] Three-winding transformer bay, two-winding transformer bay, double busbar switch bay, double busbar line switch bay, single busbar switch bay, single busbar capacitor switch bay, single busbar reactor switch bay, single busbar station service transformer switch bay, single busbar line switch bay, double busbar bus tie switch bay, single busbar bus tie switch bay, bypass busbar switch bay, 3 / 2 busbar switch bay, single busbar bay, double busbar bay, sectional double busbar bay, bypass busbar bay, 3 / 2 busbar bay.
[0018] Furthermore, the substation bay type in step S3 is determined according to the bay naming rules stipulated in the "Technical Specifications for Secondary Systems of Independently Controllable New Generation Substations" published by the State Grid Corporation of China, specifically as follows:
[0019] A bay containing busbar equipment is a busbar bay; a bay containing transformer equipment is a main transformer bay; a bay containing switchgear and lines is a line switchgear bay; a bay containing switchgear and station service transformer equipment is a station service transformer switchgear bay; a bay containing switchgear and capacitor equipment is a capacitor switchgear bay; a bay containing switchgear and reactor equipment is a reactor switchgear bay; and a bay containing line equipment is a line bay.
[0020] Furthermore, step S4 includes the following specific steps:
[0021] S4.1: Traverse all primary equipment in all bays within the station according to the bay type;
[0022] S4.2: Obtain the connection relationships of the primary equipment; the connection relationships of the primary equipment are obtained based on the interval connection judgment: when the name of the interval with terminal connection in the primary equipment is different from the current interval name, it indicates that there is a connection relationship between the current station interval and the station interval with terminal connection;
[0023] S4.3: Based on the connection relationships of the primary equipment, obtain the topology relationship of the station bay.
[0024] Furthermore, in step S5, the topological relationship of the station bays is analyzed to determine the bay wiring method, specifically including:
[0025] If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are the same, then the wiring method of the switch compartment CBR is determined to be a double bus wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are double bus wiring methods.
[0026] If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are different, then the wiring method of the switch compartment CBR is determined to be a single bus segmented wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are single bus segmented wiring methods.
[0027] If a switch bay CBR is connected to the first switch bay CBR1 and the second switch bay CBR2 respectively, and the first switch bay CBR1 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, and the second switch bay CBR2 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, then it is determined that the switch bay CBR, the first switch bay CBR1, the second switch bay CBR2, the first bus bay Bus1 and the second bus bay Bus2 are all 3 / 2 bus connection methods;
[0028] If a switch bay CBR is connected to only one bus bay, then both the switch bay CBR and the bus bay are determined to be single-bus connection methods.
[0029] Furthermore, in step S6, a typical bay library is called according to the bay type and bay wiring method, and a primary wiring diagram of the station in SVG format is drawn according to the station bay topology. The specific steps include the following:
[0030] S6.1: Create an SVG file with the same name as the station name in the station bay attribute information, and import the SVG plugin library source code for all typical bays and the color configuration for different voltage levels in the header of the SVG file;
[0031] S6.2: Determine the voltage level layout based on the number of voltage levels in the station bay attribute information;
[0032] S6.3: Obtain the number and type of main transformers from the parsing results of the SCD file, distribute the main transformers evenly within the main transformer area of the SVG diagram, and set the coil class attribute of the main transformer according to the voltage level connected to each coil of the main transformer to generate the SVG code of the main transformer;
[0033] S6.4: Add bus bay SVG source code according to the number of buses and bus connection method on different voltage sides of the station, and set the class attribute of the bus element according to the voltage level of each bus to generate the corresponding bus bay SVG code;
[0034] S6.5: Configure the SVG file switch interval according to the SCD file parsing result and generate the switch interval SVG code. The SVG file switch interval includes 3 / 2 wiring switch interval, double bus wiring switch interval, single bus wiring switch interval and side bus wiring switch interval.
[0035] S6.6: Based on the SCD file parsing results, obtain all bay names, equipment types, and equipment names of the station, and generate annotation text SVG code; among which, equipment types include switches, disconnectors, and handcarts;
[0036] S6.7 generates a primary wiring diagram based on the SVG code of the main transformer, the SVG code of the bus bay, the SVG code of the switch bay, and the SVG code of the annotation text.
[0037] Furthermore, in step S6.5, configuring the line switch interval using the SVG file specifically includes the following steps:
[0038] 6.5.1: Traverse all 3 / 2 connection switch bays under the substation, configure the class attribute of the 3 / 2 connection switch bay according to the voltage level, and determine the coordinates and size of the 3 / 2 switch bays according to the substation topology and the coordinates of the relevant buses obtained by parsing the SCD file, so that the 3 / 2 connection switch bays are evenly distributed among the buses of the 3 / 2 connection method.
[0039] 6.5.2: Traverse all double busbar switch bays under the station, configure the class attribute of the double busbar switch bay according to the voltage level, and determine the coordinates and size of the double busbar switch bays according to the station topology obtained by parsing the SCD file and the coordinates of the relevant buses, so that the double busbar switch bays are evenly distributed between the double busbars connected to them.
[0040] 6.5.3: Traverse all single busbar connection switch bays under the substation, configure the class attribute of the single busbar connection switch bay according to the voltage level, and determine the coordinates and size of the single busbar connection switch bay according to the substation topology obtained by parsing the SCD file and the coordinates of the relevant busbars, so that the single busbar connection switch bays are evenly distributed among the busbars connected to them.
[0041] This invention proposes an automatic generation method for primary wiring diagrams of power substations, based on the power substation SCD configuration file. Firstly, it solves the problems of low efficiency and insufficient accuracy associated with manual drawing methods. Secondly, in accordance with the technical specifications for the independently controllable new generation of substation secondary systems proposed by the State Grid Corporation of China, this invention uses the substation bay as the basic unit. It obtains all bay information by parsing the substation SCD configuration file, and then calls a typical bay library to draw the primary wiring diagram based on the bay type and wiring method obtained from the parsed SCD configuration file. The method adopted in this invention fully complies with the requirements of the State Grid's independently controllable new generation of substation secondary system technical specifications. Furthermore, the SVG source code for typical bays is stored in the typical bay library as a plugin, exhibiting strong scalability.
[0042] Secondly, the present invention provides an automatic generation system for primary wiring diagrams of power stations, the system comprising:
[0043] Predefined units are used to define typical bays according to bay type and bay wiring method. Then, the SVG code corresponding to each type of station bay is stored in the initial typical bay library as a plugin to form a typical bay library.
[0044] The SCD file acquisition unit is connected to the predefined unit and is used to acquire SCD files;
[0045] The parsing unit, connected to the SCD file acquisition unit, is used to parse the station intervals in the SCD file to obtain the SCD file parsing result, and is also used to parse the station interval type from the SCD file parsing result;
[0046] The topology unit is connected to the predefined unit and the parsing unit respectively, and is used to traverse all primary equipment in the station interval according to the station interval type to obtain the station interval topology relationship.
[0047] The determining unit, connected to the parsing unit, is used to parse the topological relationship of the station bay and determine the wiring method of the station bay;
[0048] The drawing unit is connected to the predefined unit, the parsing unit, the topology unit, and the determining unit respectively. It is used to call the typical bay library according to the bay type and bay wiring method, and draw the SVG format primary wiring diagram of the station according to the station bay topology relationship.
[0049] Furthermore, the determining unit also includes a judging module, which is connected to the parsing unit and is used to determine the interval wiring method, specifically including the following process:
[0050] If a switch compartment CBR is connected to the first bus compartment (bus1) and the second bus compartment (bus2) respectively, and the connected logic nodes are the same, then the wiring method of the switch compartment CBR is determined to be a double bus wiring method, and the first bus compartment (bus1) and the second bus compartment (bus2) are double bus wiring methods for each other.
[0051] If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are different, then the wiring method of the switch compartment CBR is determined to be a single bus segmented wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are both single bus segmented wiring methods.
[0052] If a switch bay CBR is connected to the first switch bay CBR1 and the second switch bay CBR2 respectively, and the first switch bay CBR1 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, and the second switch bay CBR2 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, then it is determined that the switch bay CBR, the first switch bay CBR1, the second switch bay CBR2, the first bus bay Bus1 and the second bus bay Bus2 are all 3 / 2 bus connection methods;
[0053] If a switch bay CBR is connected to only one bus bay, then both the switch bay CBR and the bus bay are determined to be single-bus connection methods.
[0054] This invention proposes an automatic generation system for primary wiring diagrams of power substations, based on the power substation SCD configuration file. Firstly, it solves the problems of low efficiency and insufficient accuracy associated with manual drawing methods. Secondly, in accordance with the technical specifications for the independently controllable new generation of substation secondary systems proposed by the State Grid Corporation of China, this invention uses the substation bay as the basic unit. It obtains all bay information by parsing the substation SCD configuration file, and then calls a typical bay library to draw the primary wiring diagram based on the bay type and wiring method obtained from the parsed SCD configuration file. The method used in this invention fully complies with the requirements of the State Grid's independently controllable new generation of substation secondary system technical specifications. Furthermore, the SVG source code for typical bays is stored in the typical bay library as a plugin, exhibiting strong scalability. Attached Figure Description
[0055] Figure 1 Automatically generate flowchart for the primary wiring diagram of the station in the embodiments of the present invention;
[0056] Figure 2 This is a schematic diagram of a typical SCD interval library in an embodiment of the present invention;
[0057] Figure 3This is the SCD parsing process in an embodiment of the present invention;
[0058] Figure 4 This is a schematic diagram of the voltage level distribution of the power station in an embodiment of the present invention;
[0059] Figure 5 This refers to the location of the main transformer at the configuration station in this embodiment of the invention;
[0060] Figure 6 This is a schematic diagram illustrating the configuration of the station bus bay in an embodiment of the present invention;
[0061] Figure 7 A schematic diagram of the configuration of the 3 / 2 wiring switch bay in the embodiment of the present invention;
[0062] Figure 8 This is a schematic diagram of the configuration of the double-wired switch bay in the embodiment of the invention;
[0063] Figure 9 This is a schematic diagram of the configuration of a single-wire switch bay in a station according to an embodiment of the invention;
[0064] Figure 10 This is a schematic diagram illustrating the configuration of station bay equipment in an embodiment of the invention. Detailed Implementation
[0065] To enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0066] It is understood that the specific embodiments and accompanying drawings described herein are merely for explaining the invention and are not intended to limit the invention.
[0067] It is understood that, without conflict, the various embodiments and features in the embodiments of the present invention can be combined with each other.
[0068] It is understood that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings, while the parts unrelated to the present invention are not shown in the drawings.
[0069] It is understood that each unit or module involved in the embodiments of the present invention may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units or modules may be integrated into one entity structure.
[0070] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of this invention may occur in a different order than that marked in the accompanying drawings.
[0071] It is understood that the flowcharts and block diagrams of this invention illustrate the possible architecture, functions, and operations of systems, apparatuses, devices, and methods according to various embodiments of this invention. Each block in the flowchart or block diagram may represent a unit, module, program segment, or code, containing executable instructions for implementing the specified function. Furthermore, each block or combination of blocks in the block diagram and flowchart can be implemented using a hardware-based system to achieve the specified function, or using a combination of hardware and computer instructions.
[0072] It is understood that the units and modules involved in the embodiments of the present invention can be implemented by software or by hardware. For example, the units and modules can be located in a processor.
[0073] Currently, the State Grid Corporation of China generates primary wiring diagrams for substations in two ways: one is by drawing them manually, which is inefficient and makes it difficult to guarantee standardization and accuracy.
[0074] The inventors also studied generating primary wiring diagrams based on busbar connection mode templates within each voltage level. This method largely compensates for the inefficiency of manual drawing. However, the State Grid Corporation's technical specifications for the new generation of substation secondary systems with independent and controllable technology clearly require generating primary wiring diagrams based on the substation's SCD configuration file. This method cannot meet this requirement. Furthermore, this method uses voltage levels as templates, which has significant limitations in scalability.
[0075] The method of generating a primary wiring diagram of a power station by analyzing the topology of all primary equipment within the station has high algorithm complexity and often performs poorly when a power station is large or has a large number of primary equipment.
[0076] Therefore, the inventors proposed an automatic generation method and system for substation primary wiring diagrams. First, it solves the problems of low efficiency and insufficient accuracy of manual drawing methods. Second, based on the technical specifications for the independent and controllable new generation substation secondary systems proposed by the State Grid Corporation of China, this technical solution uses typical SCD bays as the basic unit. It obtains all bay information of the substation by parsing the substation SCD file, and then calls the typical bay library to draw the substation primary wiring diagram according to the bay type and bay wiring method based on the results of SCD file parsing. This technical solution fully complies with the requirements of the technical specifications for the independent and controllable new generation substation secondary systems of the State Grid Corporation of China. Moreover, the SVG source code of the typical bays is stored in the typical bay library in the form of plug-ins, which has strong scalability.
[0077] This invention proposes an automatic generation system for primary wiring diagrams of power substations, based on the power substation SCD configuration file. Firstly, it solves the problems of low efficiency and insufficient accuracy associated with manual drawing methods. Secondly, in accordance with the technical specifications for the independently controllable new generation of substation secondary systems proposed by the State Grid Corporation of China, this invention uses the substation bay as the basic unit. It obtains all bay information by parsing the substation SCD configuration file, and then calls a typical bay library to draw the primary wiring diagram based on the bay type and wiring method obtained from the parsed SCD configuration file. The method used in this invention fully complies with the requirements of the State Grid's independently controllable new generation of substation secondary system technical specifications. Furthermore, the SVG source code for typical bays is stored in the typical bay library as a plugin, exhibiting strong scalability.
[0078] Example 1:
[0079] like Figure 1 As shown in the figure, this embodiment provides a method for automatically generating primary wiring diagrams for power stations. The method includes:
[0080] S1: Define typical bays according to bay type and bay wiring method, and then store the SVG code corresponding to each typical bay in the form of a plugin in the initial typical bay library to form a typical bay library; wherein, the bay type is obtained by dividing the power equipment into bay types, and the bay wiring method is obtained by dividing the power equipment into bay wiring methods.
[0081] Specifically, this embodiment classifies interval types (i.e., the interval types in step S1) according to common interval types as follows:
[0082] Main transformer bay, and / or, busbar bay, and / or, line switch bay, and / or, capacitor switch bay, and / or, reactor switch bay, and / or, bus tie switch bay, and / or, line bay.
[0083] Specifically, this embodiment divides the wiring methods as follows:
[0084] Single busbar connection method, single busbar segmented connection method, double busbar connection method, double busbar segmented connection method, bypass busbar connection method, 3 / 2 busbar connection method.
[0085] Specifically, this embodiment defines a typical interval based on the connection method and interval type, as shown in the following formula:
[0086] Typical bay = Wiring method + Bay type;
[0087] Each typical bay is considered the smallest graphic element; that is, all bays of the same type and wiring method are displayed using the same graphic element (except for annotation information). The SVG code corresponding to each typical bay is stored as a plugin in the typical bay library (currently supported typical bays include: Figure 2 As shown), for ease of future maintenance and expansion, this invention currently supports three-winding transformer bays, two-winding transformer bays, double busbar switch bays, double busbar line switch bays, single busbar switch bays, single busbar capacitor switch bays, single busbar reactor switch bays, single busbar station service transformer switch bays, single busbar line switch bays, double busbar tie switch bays, single busbar tie switch bays, bypass busbar switch bays, 3 / 2 busbar switch bays, single busbar bays, double busbar bays, segmented double busbar bays, bypass busbar bays, and 3 / 2 busbar bays. Some typical bay elements (excluding busbar bays) are shown in the diagram. Figure 2 As shown.
[0088] S2: Obtain the SCD file of the station configuration and parse the station bays in the SCD file to obtain the parsing result of the SCD file;
[0089] Specifically, the description of primary power equipment in the SCD file is defined in... <substation>Within the label, the hierarchy and subordinate relationships are arranged according to substation-voltage level-bay-equipment-terminal node, such as... Figure 3 As shown, the analysis proceeds from top to bottom, parsing the attribute information of each station element, such as name, description, and type.
[0090] S3: Parse the departure station interval type from the SCD file parsing results;
[0091] Specifically, the bay type is determined according to the bay naming rules stipulated in the "Technical Specifications for Secondary Systems of Independent and Controllable New Generation Substations" published by the State Grid Corporation of China.
[0092] Bus bay (including busbar equipment)
[0093] The bay containing transformer equipment: main transformer bay
[0094] The bay includes switching equipment and lines: line switch bay
[0095] Bays including switchgear and station service transformer equipment: Station service transformer switchgear
[0096] The space includes switching equipment and capacitor equipment: capacitor switching space
[0097] The bay includes switching equipment and reactor equipment: reactor switching bay
[0098] The section containing line equipment: line bay.
[0099] S4: Traverse all power equipment corresponding to the substation bay according to the substation bay type, and construct the substation bay topology;
[0100] Step S4 includes the following specific steps:
[0101] S4.1: Traverse all primary equipment in all bays within the station according to the bay type;
[0102] S4.2: Obtain the connection relationships of the primary equipment; the connection relationships of the primary equipment are obtained based on the interval connection: when the name of the interval with terminal connection in the primary equipment is different from the current interval name, it indicates that there is a connection relationship between the current station interval and the station interval with terminal connection.
[0103] S4.3: Based on the connection relationships of the primary equipment, obtain the topology relationship of the station bay.
[0104] Specifically, the bay connection judgment condition is as follows: when there is a terminal connection bay in the primary equipment with a name different from the current bay name, it indicates that the current bay is connected to the terminal connection bay. For example, if a terminal T1 of the primary equipment (disconnector) in a certain switch bay (CBR5021) is connected to the EBUS500kVIM bus bay, it is determined that the switch bay CBR5051 is connected to the logic node C1 of the bus bay EBUS500kVIM through logic node C1.
[0105] By traversing all primary devices in all bays within the site, the topological connections between all bays can be obtained.
[0106] S5: Analyze the topology of the station bays to determine the bay wiring method;
[0107] Specifically, the algorithm for determining the interval connection method is as follows:
[0108] If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are the same, then the wiring method of the switch compartment CBR is determined to be a double bus wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are double bus wiring methods.
[0109] If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are different, then the wiring method of the switch compartment CBR is determined to be a single bus segmented wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are single bus segmented wiring methods.
[0110] If a switch bay CBR is connected to the first switch bay CBR1 and the second switch bay CBR2 respectively, and the first switch bay CBR1 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, and the second switch bay CBR2 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, then it is determined that the switch bay CBR, the first switch bay CBR1, the second switch bay CBR2, the first bus bay Bus1 and the second bus bay Bus2 are all 3 / 2 bus connection methods;
[0111] If a switch bay CBR is connected to only one bus bay, then both the switch bay CBR and the bus bay are determined to be single-bus connection methods.
[0112] S6: Call the typical bay library according to the bay type and bay wiring method, and draw the primary wiring diagram of the substation according to the substation bay topology and substation bay wiring method.
[0113] Specifically, the detailed steps for drawing the wiring diagram in step S6 are as follows:
[0114] S6.1: Create an SVG file with the same name as the station in the station element attribute information (station interval attributes include station element attributes), and import the SVG plugin library source code for all typical intervals and the color configuration for different voltage levels in the header of the SVG file;
[0115] Specifically, create an SVG file with the same name as the substation name parsed from the SCD file. In the header of the SVG, include the source code of the SVG plugin library for all typical bays and the color configuration for different voltage levels (as specified in the technical specifications of the State Grid Corporation's independently controllable new generation substation monitoring system, as shown below).
[0116] <style type="text css">
[0117] <![CDATA[.kv1000{stroke:rgb(0,0,255);fill:none}
[0118] .kv750{stroke:rgb(250,128,10);fill:none}
[0119] .kv500{stroke:rgb(250,0,0);fill:none}
[0120] .kv330{stroke:rgb(30,144,255);fill:none}
[0121] .kv220{stroke:rgb(128,0,128);fill:none}
[0122] .kv110{stroke:rgb(240,65,85);fill:none}
[0123] .kv66{stroke:rgb(255,204,0);fill:none}
[0124] .kv35{stroke:rgb(255,255,0);fill:none}
[0125] .kv20{stroke:rgb(226,172,6);fill:none}
[0126] .kv10{stroke:rgb(0,210,0);fill:none}
[0127] .kv6{stroke:rgb(0,0,139);fill:none}
[0128] .v400{stroke:rgb(210,180,140);fill:none}
[0129] .kv0{stroke:rgb(128,128,128);fill:none}
[0130] ]]>
[0131] < / style>
[0132] S6.2: Determine the voltage level layout based on the number of voltage levels in the station element attribute information;
[0133] Specifically, such as Figure 4 As shown, first determine the number of voltage levels in the station. If the station contains two voltage levels, the primary wiring diagram adopts a dual voltage level layout. If the station contains three voltage levels, the primary wiring diagram adopts a three voltage level layout.
[0134] S6.3: Obtain the number and type of main transformers from the parsing results of the SCD file, distribute the main transformers evenly within the main transformer area of the SVG diagram, and set the coil class attribute of the main transformer according to the voltage level connected to each coil of the main transformer to generate the SVG code of the main transformer;
[0135] Specifically, based on the number and type of main transformers obtained from parsing the SCD file, the main transformers are evenly distributed within the main transformer area of the SVG diagram. The class attribute of each transformer coil is set according to its voltage level, and the SVG instantiation code for the main transformer is generated and added to the SVG file.<g id="PowerTransformerClass"> Inside the label.
[0136] The SVG code is shown below. The first-level GID represents the element ID of the main transformer bay, the second-level GID represents the element ID of the coil device, x and y represent the horizontal and vertical coordinates of the coil, width and height represent the width and height of the coil, class represents the type of coil (voltage level), and objectName represents the coil name. The SVG vector graphic display effect is as follows: Figure 5 As shown:
[0137]
[0138]
[0139] S6.4: Add bus bay SVG source code according to the number of buses and bus connection method on different voltage sides of the station, and set the class attribute of the bus element according to the voltage level of each bus to generate the corresponding bus bay SVG code;
[0140] Specifically, SVG source code for bus bays (including grounding equipment under the bus bays) is added according to the number and connection method of the high-voltage, medium-voltage, and low-voltage busbars in the power station. The class attribute of the busbar elements is set according to the voltage level of each busbar, and the corresponding bus bay SVG instance code is generated and added to the SVG file.<g id="BusbarSectionClass"> Inside the tag, add the bus grounding SVG example code to the SVG file.<g id="EarthSwitch"> Inside the label.
[0141] The SVG code for the bus bay is as follows. The bus bay consists of a busbar and a grounding element. The SVG code for the busbar is a line segment, where `class` represents the voltage level of the busbar, and `ObjectName` represents the busbar name. The SVG code for the grounding element references the grounding SVG primitive, where `x` and `y` represent the horizontal and vertical coordinates of the grounding element, `width` and `height` represent the width and height of the grounding element, `class` represents the voltage level of the grounding element, `transform` represents the offset and rotation information of the grounding element, and `ObjectName` represents the name of the grounding switch. The SVG vector graphic display effect is shown below. Figure 6 As shown.
[0142]
[0143]
[0144] S6.5: Configure the SVG file switch interval according to the SCD file parsing result and generate the switch interval SVG code. The SVG file switch interval includes 3 / 2 wiring switch interval, double bus wiring switch interval, single bus wiring switch interval and side bus wiring switch interval.
[0145] Specifically, configuring the switch interval in the SVG file includes the following steps:
[0146] 6.5.1: Traverse all 3 / 2 connection switch bays under the substation, configure the class attribute of the 3 / 2 connection switch bay according to the voltage level, and determine the coordinates and size of the 3 / 2 switch bays according to the substation topology and the coordinates of the relevant buses obtained by parsing the SCD file, so that the 3 / 2 connection switch bays are evenly distributed among the buses of the 3 / 2 connection method.
[0147] Traverse all 3 / 2 connection switch bays under the substation, configure the type (class attribute) of the 3 / 2 connection switch bay according to the voltage level, and determine the coordinates and dimensions (x, y, width, height attributes) of the 3 / 2 switch bays according to the substation topology obtained by parsing the SCD file and the coordinates of the relevant buses, so that the 3 / 2 connection switch bays are evenly distributed between the 3 / 2 connection buses.
[0148] The SVG instantiation code for generating the corresponding 3 / 2 wired switch bay is shown below. Here, `id` represents the bay identifier within the SVG file, `x` and `y` represent the horizontal and vertical coordinates of the typical bay instance, `width` and `height` represent the width and height of the typical bay instance, `transform` represents the position offset and rotation angle of the typical bay instance, `class` represents the voltage type of the typical bay instance, and `ObjectName` represents the name of the typical bay instance. The SVG vector graphic display effect is shown below. Figure 7 As shown.
[0149]
[0150] 6.5.2: Traverse all double busbar connection switch bays under the station, configure the class attribute of the double busbar connection switch bay according to the voltage level, and determine the coordinates and size of the double busbar connection switch bay according to the station topology relationship and the coordinates of the relevant busbars obtained by parsing the SCD file, so that the double busbar connection switch bays are evenly distributed between the double busbars connected to them.
[0151] Specifically, all double busbar connected switch bays under the substation are traversed, and the type (class attribute) of the double busbar connected switch bays is configured according to the voltage level. The coordinates and dimensions (x, y, width, height attributes) of the double busbar connected switch bays are determined according to the substation topology obtained by parsing the SCD file and the coordinates of the relevant buses, so that the double busbar connected switch bays are evenly distributed between the double busbars connected to them.
[0152] The SVG instantiation code for generating the corresponding double-busbar switch bay is shown below. Here, `id` represents the bay identifier within the SVG file, `x` and `y` represent the horizontal and vertical coordinates of the typical bay instance, `width` and `height` represent the width and height of the typical bay instance, `transform` represents the position offset and rotation angle of the typical bay instance, `class` represents the voltage type of the typical bay instance, and `ObjectName` represents the name of the typical bay instance. The SVG vector graphic display effect is shown below. Figure 8 As shown.
[0153]
[0154]
[0155] 6.5.3: Traverse all single busbar connection switch bays under the substation, configure the class attribute of the single busbar connection switch bay according to the voltage level, and determine the coordinates and size of the single busbar connection switch bay according to the substation topology obtained by parsing the SCD file and the coordinates of the relevant busbars, so that the single busbar connection switch bays are evenly distributed among the busbars connected to them.
[0156] Specifically, all single-busbar connected switch bays under the substation are traversed, and the type (class attribute) of the single-busbar connected switch bay is configured according to the voltage level. The coordinates and dimensions (x, y, width, height attributes) of the single-busbar connected switch bay are determined according to the substation topology obtained by parsing the SCD file and the coordinates of the relevant buses, so that the single-busbar connected switch bays are evenly distributed among the buses connected to them.
[0157] The SVG instantiation code for generating the corresponding single-busbar switch bay is shown below. Here, `id` represents the bay identifier within the SVG file, `x` and `y` represent the horizontal and vertical coordinates of the typical bay instance, `width` and `height` represent the width and height of the typical bay instance, `transform` represents the position offset and rotation angle of the typical bay instance, `class` represents the voltage type of the typical bay instance, and `ObjectName` represents the name of the typical bay instance. The SVG vector graphic display effect is shown below. Figure 9 As shown.
[0158]
[0159] S6.6: Based on the SCD file parsing results, obtain all bay names, equipment types, and equipment names in the station bays, and generate annotation text SVG code; among which, equipment types include switches, disconnectors, and handcarts;
[0160] Specifically, based on the SCD file parsing results, the names of each bay and the names of key equipment within each bay (including equipment names such as switches, disconnectors, and handcarts) are obtained. Text SVG example code is then generated and added to the SVG file.<g id="TextClass"> Inside the label.
[0161] S6.7 generates a primary wiring diagram based on the SVG code of the main transformer, the SVG code of the bus bay, the SVG code of the switch bay, and the SVG code of the annotation text.
[0162] SVG vector graphics display effect as follows Figure 10 As shown, the overall primary wiring diagram for a station is now complete.
[0163] This embodiment proposes an automatic generation method for substation primary wiring diagrams, which is based on the substation SCD configuration file. Firstly, it solves the problems of low efficiency and insufficient accuracy associated with manual drawing methods. Secondly, based on the State Grid Corporation's technical specifications for the independently controllable new generation of substation secondary systems, this embodiment uses substation bays as the basic unit. It obtains all bay information by parsing the substation SCD configuration file, and then calls a typical bay library to draw the substation primary wiring diagram according to the bay type and bay wiring method obtained from the parsed SCD configuration file. The method used in this embodiment fully complies with the requirements of the State Grid's technical specifications for the independently controllable new generation of substation secondary systems. Furthermore, the SVG source code for typical bays is stored in the typical bay library as a plugin, exhibiting strong scalability.
[0164] Example 2:
[0165] This embodiment provides an automatic generation system for primary wiring diagrams of a power station, the system comprising:
[0166] Predefined units are used to define the station bays according to the bay type and bay wiring method. Then, the SVG code corresponding to each type of station bay is stored in the initial typical bay library as a plugin to form a typical bay library.
[0167] The SCD file acquisition unit is connected to a predefined unit and is used to acquire SCD files.
[0168] The parsing unit, connected to the SCD file acquisition unit, is used to parse the station intervals in the SCD file to obtain the SCD file parsing result, and is also used to parse the station interval type from the SCD file parsing result;
[0169] Topology units, connected to predefined units and parsing units respectively, are used to traverse all primary equipment in a station bay according to the station bay type to obtain the station bay topology relationship;
[0170] The determination unit, connected to the analysis unit, is used to analyze the topological relationship of the station bay and determine the wiring method of the station bay.
[0171] The drawing unit is connected to the predefined unit, parsing unit, topology unit, and determination unit respectively. It is used to call the typical bay library according to the bay type and bay wiring method, and draw the SVG format primary wiring diagram of the station according to the station bay topology relationship.
[0172] Furthermore, the determining unit also includes a judgment module, which is connected to the parsing unit and is used to determine the interval wiring method, specifically including the following process:
[0173] If a switch compartment CBR is connected to the first bus compartment (bus1) and the second bus compartment (bus2) respectively, and the connected logic nodes are the same, then the wiring method of the switch compartment CBR is determined to be a double bus wiring method, and the first bus compartment (bus1) and the second bus compartment (bus2) are double bus wiring methods for each other.
[0174] If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are different, then the wiring method of the switch compartment CBR is determined to be a single bus segmented wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are both single bus segmented wiring methods.
[0175] If a switch bay CBR is connected to the first switch bay CBR1 and the second switch bay CBR2 respectively, and the first switch bay CBR1 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, and the second switch bay CBR2 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, then it is determined that the switch bay CBR, the first switch bay CBR1, the second switch bay CBR2, the first bus bay Bus1 and the second bus bay Bus2 are all 3 / 2 bus connection methods;
[0176] If a switch bay CBR is connected to only one bus bay, then both the switch bay CBR and the bus bay are determined to be single-bus connection methods.
[0177] The parts that are the same as in Example 1 will not be described again.
[0178] This embodiment proposes an automatic generation method for substation primary wiring diagrams, which is based on the substation SCD configuration file. Firstly, it solves the problems of low efficiency and insufficient accuracy associated with manual drawing methods. Secondly, based on the State Grid Corporation's technical specifications for the independently controllable new generation of substation secondary systems, this embodiment uses substation bays as the basic unit. It obtains all bay information by parsing the substation SCD configuration file, and then calls a typical bay library to draw the substation primary wiring diagram according to the bay type and bay wiring method obtained from the parsed SCD configuration file. The method used in this embodiment fully complies with the requirements of the State Grid's technical specifications for the independently controllable new generation of substation secondary systems. Furthermore, the SVG source code for typical bays is stored in the typical bay library as a plugin, exhibiting strong scalability.
[0179] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of the present invention, and the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.< / substation>
Claims
1. A method for automatically generating primary wiring diagrams for power stations, characterized in that, The method includes: S1: Define typical intervals according to interval type and interval wiring method, and then store the SVG code corresponding to each typical interval in the initial typical interval library in the form of a plugin to form a typical interval library; S2: Obtain the SCD file of the station configuration and parse the station bays in the SCD file to obtain the parsing result of the SCD file; S3: Parse the departure station interval type from the SCD file parsing results; S4: Traverse all primary equipment in a station bay according to the station bay type to obtain the station bay topology; S5: Analyze the topology of the station bays to determine the wiring method of the station bays; S6: Call the typical bay library according to the bay type and bay wiring method, and draw the SVG format primary wiring diagram of the station according to the station bay topology; In step S6, the typical bay library is called according to the bay type and bay wiring method, and the SVG format primary wiring diagram of the station is drawn according to the station bay topology. The specific steps are as follows: S6.1: Create an SVG file with the same name as the station name in the station bay attribute information, and import the SVG plugin library source code for all typical bays and the color configuration for different voltage levels in the header of the SVG file; S6.2: Determine the voltage level layout based on the number of voltage levels in the station bay attribute information; S6.3: Obtain the number and type of main transformers from the parsing results of the SCD file, distribute the main transformers evenly within the main transformer area of the SVG diagram, and set the coil class attribute of the main transformer according to the voltage level connected to each coil of the main transformer to generate the SVG code of the main transformer; S6.4: Add bus bay SVG source code according to the number of buses and bus connection method on different voltage sides of the station, and set the class attribute of the bus element according to the voltage level of each bus to generate the corresponding bus bay SVG code; S6.5: Configure the switch intervals according to the SCD file parsing results and generate the switch interval SVG code. The switch intervals include 3 / 2 wired switch intervals, double busbar wired switch intervals, single busbar wired switch intervals and bypass busbar wired switch intervals. S6.6: Based on the SCD file parsing results, obtain all bay names, equipment types, and equipment names of the station, and generate annotation text SVG code; among which, equipment types include switches, disconnectors, and handcarts; S6.7 Generate a primary wiring diagram based on the SVG code of the main transformer, the SVG code of the bus bay, the SVG code of the switch bay, and the SVG code of the annotation text.
2. The method for automatically generating primary wiring diagrams for a power station according to claim 1, characterized in that, In step S1, the interval type is obtained by classifying the power equipment into interval types, and the interval wiring method is obtained by classifying the power equipment into interval wiring methods. The interval types specifically include: Main transformer bay, and / or, busbar bay, and / or, line switch bay, and / or, capacitor switch bay, and / or, reactor switch bay, and / or, bus tie switch bay, and / or, line bay.
3. The method for automatically generating primary wiring diagrams for a station according to claim 1, characterized in that, The interval wiring method in step S1 specifically includes: Single busbar connection method, single busbar segmented connection method, double busbar connection method, double busbar segmented connection method, bypass busbar connection method, 3 / 2 busbar connection method.
4. The method for automatically generating primary wiring diagrams for a power station according to claim 1, characterized in that, The initial typical interval library in step S1 specifically includes: Three-winding transformer bay, two-winding transformer bay, double busbar switch bay, double busbar line switch bay, single busbar switch bay, single busbar capacitor switch bay, single busbar reactor switch bay, single busbar station service transformer switch bay, single busbar line switch bay, double busbar bus tie switch bay, single busbar bus tie switch bay, bypass busbar switch bay, 3 / 2 busbar switch bay, single busbar bay, double busbar bay, sectional double busbar bay, bypass busbar bay, 3 / 2 busbar bay.
5. The method for automatically generating primary wiring diagrams for a station according to claim 1, characterized in that, The substation bay type in step S3 is determined according to the bay naming rules stipulated in the "Technical Specifications for Secondary Systems of Independently Controllable New Generation Substations" published by the State Grid Corporation of China, specifically: A bay containing busbar equipment is a busbar bay; a bay containing transformer equipment is a main transformer bay; a bay containing switchgear and lines is a line switchgear bay; a bay containing switchgear and station service transformer equipment is a station service transformer switchgear bay; a bay containing switchgear and capacitor equipment is a capacitor switchgear bay; a bay containing switchgear and reactor equipment is a reactor switchgear bay; and a bay containing line equipment is a line bay.
6. The method for automatically generating primary wiring diagrams for a substation according to claim 1, characterized in that, Step S4 includes the following specific steps: S4.1: Traverse all primary equipment in all bays within the station according to the station bay type; S4.2: Obtain the connection relationships of the primary equipment; the connection relationships of the primary equipment are obtained based on the interval connection judgment: when the name of the interval with terminal connection in the primary equipment is different from the current interval name, it indicates that there is a connection relationship between the current station interval and the station interval with terminal connection. S4.3: Based on the connection relationships of the primary equipment, obtain the station bay topology relationship.
7. The method for automatically generating primary wiring diagrams for a power station according to claim 1, characterized in that, In step S5, the topology of the station bays is analyzed to determine the bay wiring method, specifically including: If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are the same, then the wiring method of the switch compartment CBR is determined to be a double bus wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are double bus wiring methods. If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are different, then the wiring method of the switch compartment CBR is determined to be a single bus segmented wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are single bus segmented wiring methods. If a switch bay CBR is connected to the first switch bay CBR1 and the second switch bay CBR2 respectively, and the first switch bay CBR1 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, and the second switch bay CBR2 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, then it is determined that the switch bay CBR, the first switch bay CBR1, the second switch bay CBR2, the first bus bay Bus1 and the second bus bay Bus2 are all 3 / 2 bus connection methods; If a switch bay CBR is connected to only one bus bay, then both the switch bay CBR and the bus bay are determined to be single-bus connection methods.
8. The method for automatically generating primary wiring diagrams for a station according to claim 1, characterized in that, In step S6.5, the SVG file configures the line switch interval, specifically... Includes the following steps: 6.5.1: Traverse all 3 / 2 connection switch bays under the substation, configure the class attribute of the 3 / 2 connection switch bay according to the voltage level, and determine the coordinates and size of the 3 / 2 switch bays according to the substation topology and the coordinates of the relevant buses obtained by parsing the SCD file, so that the 3 / 2 connection switch bays are evenly distributed among the buses of the 3 / 2 connection method. 6.5.2: Traverse all double busbar switch bays under the station, configure the class attribute of the double busbar switch bay according to the voltage level, and determine the coordinates and size of the double busbar switch bays according to the station topology obtained by parsing the SCD file and the coordinates of the relevant buses, so that the double busbar switch bays are evenly distributed between the double busbars connected to them. 6.5.3: Traverse all single busbar connection switch bays under the substation, configure the class attribute of the single busbar connection switch bay according to the voltage level, and determine the coordinates and size of the single busbar connection switch bay according to the substation topology obtained by parsing the SCD file and the coordinates of the relevant busbars, so that the single busbar connection switch bays are evenly distributed among the busbars connected to them.
9. An automatic generation system for primary wiring diagrams of a power station, characterized in that, The system includes: Predefined units are used to define typical bays according to bay type and bay wiring method. Then, the SVG code corresponding to each typical bay is stored in the initial typical bay library as a plugin to form a typical bay library. The SCD file acquisition unit is connected to the predefined unit and is used to acquire SCD files; The parsing unit, connected to the SCD file acquisition unit, is used to parse the station intervals in the SCD file to obtain the SCD file parsing result, and is also used to parse the station interval type from the SCD file parsing result; The topology unit is connected to the predefined unit and the parsing unit respectively, and is used to traverse all primary equipment in the station interval according to the station interval type to obtain the station interval topology relationship. The determining unit, connected to the parsing unit, is used to parse the topological relationship of the station bay and determine the wiring method of the station bay; The drawing unit is connected to the predefined unit, the parsing unit, the topology unit and the determining unit respectively, and is used to call the typical bay library according to the bay type and bay wiring method, and draw the SVG format primary wiring diagram of the station according to the station bay topology relationship. The process of calling the typical bay library based on bay type and bay wiring method, and drawing the SVG format primary wiring diagram of the station according to the station bay topology, specifically includes: Create an SVG file with the same name as the station name in the station bay attribute information, and import the SVG plugin library source code for all typical bays and the color configuration for different voltage levels in the header of the SVG file. The voltage level layout is determined based on the number of voltage levels in the station bay attribute information; The number and type of main transformers are obtained from the parsing results of the SCD file. The main transformers are evenly distributed in the main transformer area of the SVG diagram. The coil class attribute of the main transformer is set according to the voltage level connected to each coil of the main transformer to generate the SVG code of the main transformer. Add bus bay SVG source code according to the number of buses and bus connection method on different voltage sides of the station, and set the class attribute of the bus element according to the voltage level of each bus to generate the corresponding bus bay SVG code; Configure the switch intervals according to the SCD file parsing results and generate switch interval SVG code. The switch intervals include 3 / 2 wired switch intervals, double busbar wired switch intervals, single busbar wired switch intervals and side busbar wired switch intervals. Based on the SCD file parsing results, the names of all bays, equipment types, and equipment names of the station are obtained, and SVG code for annotation text is generated; among them, equipment types include switches, disconnectors, and handcarts; A primary wiring diagram is generated based on the SVG code of the main transformer, the SVG code of the bus bay, the SVG code of the switch bay, and the SVG code of the annotation text.
10. The automatic generation system for primary wiring diagrams of a station according to claim 9, characterized in that, The determining unit further includes a judging module, which is connected to the parsing unit and is used to determine the interval wiring method, specifically including the following process: If a switch compartment CBR is connected to the first bus compartment (bus1) and the second bus compartment (bus2) respectively, and the connected logic nodes are the same, then the wiring method of the switch compartment CBR is determined to be a double bus wiring method, and the first bus compartment (bus1) and the second bus compartment (bus2) are double bus wiring methods for each other. If a switch compartment CBR is connected to the first bus compartment bus1 and the second bus compartment bus2 respectively, and the connected logic nodes are different, then the wiring method of the switch compartment CBR is determined to be a single bus segmented wiring method, and the first bus compartment bus1 and the second bus compartment bus2 are both single bus segmented wiring methods. If a switch bay CBR is connected to the first switch bay CBR1 and the second switch bay CBR2 respectively, and the first switch bay CBR1 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, and the second switch bay CBR2 has a topological connection relationship with the first bus bay Bus1 and the second bus bay Bus2 respectively, then it is determined that the switch bay CBR, the first switch bay CBR1, the second switch bay CBR2, the first bus bay Bus1 and the second bus bay Bus2 are all 3 / 2 bus connection methods; If a switch bay CBR is connected to only one bus bay, then both the switch bay CBR and the bus bay are determined to be single-bus connection methods.
Citation Information
Patent Citations
Intelligent substation primary-secondary equipment state information visual displaying method based on configuration files and G language
CN105512213A
Template-based automatic generation method for primary wiring diagram of transformer substation
CN113538619A