A substation relay protection virtual loop modeling method and system

By dividing the three-half ring connection into intervals and mapping virtual terminals, a standard equipment model was established, which solved the problems of false alarms and verification dead zones in the virtual circuit verification of substation relay protection under the three-half ring connection method, and realized efficient and accurate virtual circuit configuration and verification.

CN122242413APending Publication Date: 2026-06-19SUPER HIGH VOLTAGE BRANCH OF STATE GRID JIANGXI ELECTRIC POWER CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUPER HIGH VOLTAGE BRANCH OF STATE GRID JIANGXI ELECTRIC POWER CO LTD
Filing Date
2026-03-17
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Existing technologies cannot accurately identify the topological relationships between substation equipment in a three-way ring connection configuration, leading to false alarms or misreports during relay protection virtual circuit verification, resulting in verification dead zones and affecting the safe and stable operation of the substation.

Method used

By dividing the three-quarter ring wiring into intervals, a standard equipment model file is established to describe the secondary circuit connection relationship. The virtual terminal mapping file is then used to match the IED device to generate a complete virtual circuit configuration file, thereby achieving automated verification.

Benefits of technology

It improves the configuration accuracy of SCD files and the efficiency of engineering applications, eliminates verification dead zones, and enhances the efficiency and reliability of substation design, commissioning, and acceptance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122242413A_ABST
    Figure CN122242413A_ABST
Patent Text Reader

Abstract

This invention provides a method and system for modeling virtual circuit models of substation relay protection. The method includes: dividing a three-quarter ring connection into bays; establishing a standard equipment model file based on the bay division results and IED naming conventions; establishing a secondary circuit configuration file and a virtual terminal mapping file; matching the standard equipment model corresponding to each IED device in the initial SCD file to be configured; selecting a suitable file from the secondary circuit configuration file based on the standard equipment model to determine the connection relationship between each IED device; and writing the virtual circuit configuration information into the initial SCD file based on the connection relationship and the virtual terminal mapping file to generate a target SCD file containing complete virtual circuit configuration. This invention transforms the tedious manual configuration process into a one-click automatic generation, greatly improving the efficiency and reliability of substation design, commissioning, and acceptance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of virtual loop modeling technology, and in particular to a method and system for modeling virtual loops in substation relay protection. Background Technology

[0002] In the construction of smart substations, the correctness of the System Configuration Description (SCD) file directly affects the reliability of communication between secondary equipment and the correct implementation of protection functions. For conventional substation wiring configurations, existing technologies have developed SCD virtual circuit template modeling and automated verification methods based on bay division. However, the three-half ring connection, as a special main wiring configuration, presents a ring connection between circuit breakers and electrical circuits, making traditional division and verification models based on "series" or "single bay" inapplicable. If existing methods or tools are forcibly applied to this wiring configuration, it is difficult to accurately identify the actual topological relationships between equipment, leading to a high likelihood of false alarms or misreports when verifying relay protection virtual circuits, and the existence of verification dead zones, thus posing a hidden danger to the safe and stable operation of the substation.

[0003] Therefore, in existing technologies, there is a lack of a model-based solution that can accurately reflect the unique topology of a three-half-ring smart substation, especially in the automatic configuration and reliability verification of virtual loops at the process layer, and can completely eliminate verification dead zones. How to establish a standard virtual loop model adapted to three-half-ring connections, and based on this, to automatically generate and ensure the accuracy of relevant configuration parts in the SCD file, has become a pressing technical challenge in this field. Summary of the Invention

[0004] The purpose of this invention is to provide a method and system for modeling virtual circuits for substation relay protection, aiming to solve at least one of the problems in the background art.

[0005] In a first aspect, the present invention provides a method for modeling a virtual circuit model of substation relay protection, the method comprising:

[0006] The two-thirds ring wiring is divided into intervals, and a standard equipment model file is established based on the interval division results and IED naming conventions.

[0007] Establish a secondary loop configuration file that describes the secondary loop connection relationship between each of the standard equipment models, and establish a virtual terminal mapping file that describes the mapping relationship between the virtual terminals of the equipment in the ICD file and the standard virtual terminals in the standard equipment models;

[0008] Match the standard device model corresponding to each IED device in the initial SCD file to be configured, and select the appropriate file from the secondary loop configuration file according to the standard device model to determine the connection relationship between each IED device;

[0009] Based on the connection relationship and the virtual terminal mapping file, the virtual loop configuration information is written into the initial SCD file to generate a target SCD file containing complete virtual loop configuration.

[0010] In some embodiments, the step of dividing the three-quarter ring connection into intervals includes:

[0011] The intervals of the three-half ring connection are divided into line intervals, main transformer intervals, and circuit breaker intervals.

[0012] The circuit breaker bay is classified according to the different types of circuits connected on both sides of it as follows:

[0013] The circuit breaker bay indicates that both circuits on both sides of the circuit breaker are line circuits;

[0014] The main transformer circuit breaker bay indicates that both circuits on both sides of the circuit breaker are main transformer circuits;

[0015] The line transformer circuit breaker bay indicates that the circuits on both sides of the circuit breaker are the line circuit and the main transformer circuit, respectively.

[0016] In some embodiments, the step of establishing a standard device model file based on the interval division results and IED naming conventions includes:

[0017] The naming of the standard equipment model is based on IED type, equipment type, voltage level, and extended attributes;

[0018] The extended attributes are used to distinguish different types of circuit breaker bays, including a first value representing the line transformer circuit breaker bay, a second value representing the line circuit breaker bay, and a third value representing the main transformer circuit breaker bay. For non-circuit breaker equipment, the extended attributes use default values.

[0019] In some embodiments, the step of establishing a virtual terminal mapping file that describes the mapping relationship between device virtual terminals in the ICD file and standard virtual terminals in the standard device model includes:

[0020] Read the name of each IED device in the initial SCD file, and match the corresponding standard device model based on the IED type, device type and voltage level information in the IED name;

[0021] Parse the ICD file corresponding to each IED device to obtain its virtual terminal description and reference address information;

[0022] Match the virtual terminal descriptions in the ICD file with the standard virtual terminal descriptions in the standard device model to establish a mapping relationship between the ICD virtual terminals and the standard virtual terminals, and record it in the virtual terminal mapping file;

[0023] The virtual terminal mapping file is named according to the device manufacturer, model, version number, and checksum information.

[0024] In some embodiments, the step of matching the standard device model corresponding to each IED device in the initial SCD file to be configured includes:

[0025] For circuit breaker devices, based on the device number and device type of all IEDs contained in the IED name in the initial SCD file, the circuit types connected to the left and right sides of the circuit breaker device are determined.

[0026] Based on the determined combination of left and right circuit types, the bay type of the circuit breaker device is determined, and the standard device model with corresponding extended attribute values ​​is matched accordingly.

[0027] In some embodiments, the step of selecting an appropriate file from the secondary circuit configuration file based on the standard device model to determine the connection relationship between each IED device includes:

[0028] The first logic is to determine whether there are both line circuit breaker bays and main transformer circuit breaker bays based on the bay type of all circuit breaker devices in the initial SCD file.

[0029] If both exist, then for the equipment in the line transformer circuit breaker bay, only the connection relationship configuration file between the equipment with the same number as the assigned equipment will be matched;

[0030] If they do not exist simultaneously, then for the equipment in the line transformer circuit breaker bay, it is necessary to match the connection relationship configuration file between the equipment with the same and different equipment numbers;

[0031] The second logic matches only the secondary loop configuration files between devices with the same IED number in the IED name.

[0032] In some embodiments, the step of writing virtual loop configuration information into the initial SCD file according to the connection relationship and the virtual terminal mapping file to generate a target SCD file containing complete virtual loop configuration includes:

[0033] In the initial SCD file, input nodes are created or located under the access points of each IED device model;

[0034] Extract the receiving virtual terminal reference address related to the local IED device from the virtual terminal mapping file and fill it into the corresponding attribute of the input node;

[0035] Based on the connection relationship determined by the secondary circuit configuration file, locate the virtual terminal mapping file corresponding to the peer IED device;

[0036] Extract the sending virtual terminal information mapped to the receiving virtual terminal from the virtual terminal mapping file of the other end, and decompose it into IED name, logical device instance, logical node class, data object name and data attribute name, and fill it into the corresponding attribute of the input node to complete the writing of the virtual loop configuration.

[0037] Secondly, the present invention provides a modeling system for a virtual circuit model of substation relay protection, the system comprising:

[0038] The interval division module is used to divide the three-half ring connection into intervals and to create a standard equipment model file based on the interval division results and IED naming conventions.

[0039] The file construction module is used to create a secondary loop configuration file that describes the secondary loop connection relationship between each of the standard equipment models, and to create a virtual terminal mapping file that describes the mapping relationship between the virtual terminals of the equipment in the ICD file and the standard virtual terminals in the standard equipment models.

[0040] The matching module is used to match the standard device model corresponding to each IED device in the initial SCD file to be configured, and select the appropriate file from the secondary loop configuration file according to the standard device model to determine the connection relationship between each IED device.

[0041] The configuration module is used to write virtual loop configuration information into the initial SCD file according to the connection relationship and the virtual terminal mapping file, and generate a target SCD file containing complete virtual loop configuration.

[0042] Thirdly, the present invention provides a storage medium that stores one or more programs, which, when executed by a processor, implement the above-described method for modeling a virtual circuit model of a substation relay protection system.

[0043] Fourthly, the present invention provides an electronic device, the electronic device comprising a memory and a processor, wherein:

[0044] The memory is used to store computer programs;

[0045] When the processor executes the computer program stored in the memory, it implements the above-mentioned method for modeling a virtual circuit model of substation relay protection.

[0046] Compared with the prior art, the present invention has the following advantages:

[0047] This invention provides an efficient and accurate automated modeling and generation scheme for the configuration of virtual circuits in relay protection systems of three-quarter ring-connected substations, significantly improving the correctness, standardization, and engineering application efficiency of SCD files. Specifically: First, by dividing the three-quarter ring connection into line bays, main transformer bays, and three types of circuit breaker bays (line transformer, line, and main transformer) based on the circuit types on both sides, a precise and standardized model foundation is established for this complex topology, ensuring the correct mapping of physical connections from the source. Second, by establishing a standardized equipment model library, secondary circuit configuration file library, and virtual terminal mapping file library, a reusable and scalable configuration knowledge base system is constructed, achieving separate management of virtual circuit connection logic and specific device models. Finally, an intelligent matching and dynamic writing mechanism was designed: the system can automatically identify equipment types and match standard models based on the standardized IED names in the initial SCD file; intelligently select the correct secondary circuit configuration template through logical rules (such as judging the cross-bay connection relationship based on whether there are line / main transformer circuit breaker bays in the ring network); and finally extract specific parameters from the mapping file to realize fully automatic and error-free injection of virtual circuit configuration information into the SCD file. This method completely solves the verification dead zone and false alarm problems caused by the inability of traditional methods to adapt to ring wiring, transforming the tedious work of manual configuration line by line into one-click automatic generation, greatly improving the efficiency and reliability of substation design, commissioning and acceptance. Attached Figure Description

[0048] Figure 1 This is a flowchart of a modeling method for a virtual circuit model of substation relay protection proposed in an embodiment of the present invention;

[0049] Figure 2 This is a typical structural diagram of a 500kV three-half ring-connected substation;

[0050] Figure 3 This is a typical structural diagram of a 500kV three-half ring-connected substation;

[0051] Figure 4 This is a typical structural diagram of a 500kV three-half ring-connected substation;

[0052] Figure 5 Diagram showing the connection relationship between the main transformer protection and the main transformer circuit breaker protection;

[0053] Figure 6 A schematic diagram of receiving the GOOSE mapping file for the protection virtual terminal of the main transformer circuit breaker;

[0054] Figure 7This is a schematic diagram of a substation relay protection virtual circuit modeling system proposed in an embodiment of the present invention.

[0055] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation

[0056] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Unless otherwise defined, the technical or scientific terms used herein should have the ordinary meaning understood by those skilled in the art. The terms "comprising" and similar expressions used herein mean that the element or object preceding the word covers the element or object listed after the word and its equivalents, but does not exclude other elements or objects.

[0057] like Figures 1 to 6 As shown, an embodiment of the present invention provides a method for modeling a virtual circuit model of substation relay protection, the method including steps S101 to S104, wherein:

[0058] Step S101: Divide the three-half ring wiring into intervals, and establish a standard equipment model file based on the interval division results and IED naming conventions;

[0059] Circuit breaker bays can be divided into line circuit breaker bays, main transformer circuit breaker bays, line transformer circuit breaker bays, etc., to distinguish 3 / 2 ring connection circuit breaker bays.

[0060] The circuit breaker bay indicates that both circuits on both sides of the circuit breaker are line circuits.

[0061] The main transformer circuit breaker bay indicates that both circuits on both sides of the circuit breaker are main transformer circuits.

[0062] The line transformer circuit breaker bay indicates that the circuits on both sides of the circuit breaker are the line circuit and the main transformer circuit, respectively.

[0063] For example, Table 1 shows the bay division results for each piece of equipment in a typical 500kV three-half ring-connected substation:

[0064] Table 1

[0065] Equipment Name Interval division Main Transformer 1 Main transformer interval Main Transformer 2 Main transformer interval Line 1 Line bay Line 2 Line bay Switch 1 Line transformer circuit breaker bay Switch 2 Line transformer circuit breaker bay Switch 3 Line transformer circuit breaker bay Switch 4 Line transformer circuit breaker bay

[0066] Table 2 shows the bay division results for a typical 500kV three-half ring-connected substation:

[0067] Table 2

[0068] Equipment Name Interval division Main Transformer 1 Main transformer interval Main Transformer 2 Main transformer interval Line 1 Line bay Line 2 Line bay Switch 1 Line transformer circuit breaker bay Switch 2 Main transformer circuit breaker bay Switch 3 Line transformer circuit breaker bay Switch 4 Line circuit breaker bay

[0069] Table 3 shows the bay allocation results for a typical 500kV three-half ring-connected substation:

[0070] Table 3

[0071] Equipment Name Interval division Main Transformer 1 Main transformer interval Line 1 Line bay Line 2 Line bay Switch 1 Line transformer circuit breaker bay Switch 2 Line transformer circuit breaker bay Switch 3 Line circuit breaker bay

[0072] Step S102: Establish a secondary loop configuration file describing the secondary loop connection relationship between each of the standard equipment models, and establish a virtual terminal mapping file describing the mapping relationship between the virtual terminals of the equipment in the ICD file and the standard virtual terminals in the standard equipment models;

[0073] In this step, the naming of the standard equipment model is based on IED type, equipment type, voltage level, and extended attributes. The extended attributes are used to distinguish different types of circuit breaker bays, including a first value representing the line transformer circuit breaker bay, a second value representing the line circuit breaker bay, and a third value representing the main transformer circuit breaker bay. For non-circuit breaker equipment, the extended attributes use default values.

[0074] The standard equipment model is used to describe the basic information of the equipment, including the equipment type, voltage level, and standard virtual terminal name.

[0075] The standard equipment model is named according to: IED type, equipment type, voltage level, and extended attributes.

[0076] For example, the standard template can be defined as A_B_CD_E, as follows:

[0077] (1) A represents IED type: P: protection, C: measurement and control, I: intelligent terminal, M: merging unit, PC: protection and measurement integration, MI: intelligent integration, SP: backup automatic transfer, W: stability control, RF: fault recording, O: others;

[0078] (2) B represents the type of equipment; L: line, T: main transformer, H: main transformer body, K: section, J: bus tie, M: busbar, X: reactor, C: capacitor, Z: automatic transfer switch, S: station service transformer, D: short lead, G: T zone, B: switch, O: other;

[0079] (3) CD represents voltage levels: 75: 750kV, 50: 500kV, 33: 330kV, 22: 220kV, 11: 110kV, 66: 66kV, 35: 35kV, 10: 10kV, 04: 380V, 00: general, 01: others;

[0080] (4) E represents extended attributes, used to distinguish different circuit breaker bay types. The default value is 0, 1 represents line transformer circuit breaker bay, 2 represents line circuit breaker bay, and 3 represents main transformer circuit breaker bay.

[0081] The standard equipment model naming is as follows: Table 4:

[0082] Table 4

[0083] Equipment type Standard equipment model Main transformer protection P_T_50_0 Line protection P_L_50_0 Main transformer circuit breaker protection P_B_50_3 Circuit breaker protection P_B_50_2 Line transformer circuit breaker protection P_B_50_1 Main transformer circuit breaker intelligent terminal I_B_50_3 Intelligent terminal for circuit breakers I_B_50_2 Intelligent terminal for line transformer circuit breakers I_B_50_1

[0084] The secondary loop configuration file describes the secondary loop connections between various standard device models and contains the standard virtual loop configurations between the devices. The secondary loop configuration file is named according to the name of the standard device model it describes.

[0085] Furthermore, in some embodiments, in order to establish a virtual terminal mapping file, it is first necessary to read the names of each IED device in the initial SCD file, and match the corresponding standard device model based on the IED type, affiliated device type, and voltage level information in the IED name; parse the ICD file corresponding to each IED device to obtain its virtual terminal description and reference address information; match the virtual terminal description in the ICD file with the standard virtual terminal description in the standard device model to establish the mapping relationship from the ICD virtual terminal to the standard virtual terminal, and record it in the virtual terminal mapping file; wherein, the virtual terminal mapping file is named according to the device manufacturer, model, version number, and check code information.

[0086] Furthermore, the virtual terminal mapping file describes the mapping relationship between the virtual terminals of the device in the ICD file and the virtual terminals of the device in the standard device model file, and contains the mapping relationship of the virtual terminals in the ICD file. The virtual terminal mapping file includes four categories: SV transmission, SV reception, GOOSE transmission, and GOOSE reception. Each category records the device virtual terminal description and reference address. The virtual terminal mapping file is named according to the device manufacturer, model, version number, and checksum information; in one embodiment of the present invention, the line device PCS-915AL-FA-G_1B058B26_V3.0 can be represented as: NRR__PCS-915AL-FA-G__2B058B26__V3.00.

[0087] For example, the process of creating a virtual terminal mapping file includes:

[0088] (1) Read the IED type, the type of equipment to which it belongs, the voltage level and the additional attribute information in the initial SCD file and match it with the standard equipment model.

[0089] The name of a standard IED consists of 5 parts and a total of 8 legal visible characters, representing: IED type, associated equipment type, voltage level, associated equipment number, and IED number. For specific requirements, please refer to Appendix B, Table B.1, "IED name naming table" of DL / T 1873 "Technical Specification for Intelligent Substation System Configuration Description (SCD) Document".

[0090] (2) Read the IED name of the initial SCD file to match the standard device model.

[0091] The IED names A, B, C, D, E, F, G, and H represent:

[0092] AB (IED type): P: Protection, C: Measurement and Control, I: Intelligent Terminal, M: Merging Unit, PC: Integrated Protection and Measurement, MI: Integrated Intelligence and Intelligence, SP: Automatic Transfer Switch, W: Stability Control, RF: Fault Recording, O: Other;

[0093] C (Assigned Equipment Type): L: Line, T: Main Transformer, H: Main Transformer Body, K: Section, J: Bus Tie, M: Busbar, X: Reactor, C: Capacitor, Z: Automatic Transfer Switch, S: Station Service Transformer, D: Short Lead, G: T Zone, B: Switch, O: Other;

[0094] DE (Voltage Level): 75: 750kV, 50: 500kV, 33: 330kV, 22: 220kV, 11: 110kV, 66: 66kV, 35: 35kV, 10: 10kV, 04: 380V, 00: General, 01: Other;

[0095] FG: Equipment Number

[0096] H (IED Number): A: First Set, B: Second Set;

[0097] (3) Match standard equipment models based on IED names

[0098] The first two digits of the IED name (AB) match the first digit (A) of the standard device model.

[0099] The third digit of the IED name, C, matches the second digit, B, of the standard device model.

[0100] The fourth and fifth digits of the IED name are DE, which matches the third and fourth digits of the standard device model, CD.

[0101] In special cases, the circuit breaker intervals in the virtual terminal mapping file are not distinguished.

[0102] In one embodiment of the present invention, the main transformer protection IED is named P_T5052A, and the matching standard equipment model is P_T_50_0.

[0103] (4) Automatically parse the manufacturer, model, version number and check code information of the ICD file corresponding to the IED device, read the standard virtual terminal information in the standard device model corresponding to the current IED device, and establish a virtual terminal mapping file.

[0104] In addition, in some embodiments, it is also necessary to read the SV sending, SV receiving, GOOSE sending, GOOSE receiving descriptions and reference information of the ICD file.

[0105] Read the ICD file, access the LD0 logical device PIGO logical node data object DO under the GGIOOUT logical node of the G1 access node, combine all data attributes DA under GGIOOUT to form a parameter address, and send it via GOOSE.

[0106] Read the ICD file, access the LD0 logical device PIGO logical node data object DO under the GGIOGOIN logical node of the GCD file, combine all data attributes DA under GGIOGOIN to form a parameter address, and receive it with GOOSE.

[0107] Read the ICD file M1, access the LD0 logical device PISV logical node under the ICD file, the data object is SVINGGIO, all data attributes DO are combined into a parameter address, and SV is sent.

[0108] In addition, in some embodiments, it is also necessary to determine the virtual terminal transmission and reception functions of the IED device: full description matching, based on the consistency between the virtual terminal description and the standard virtual terminal description, performing text matching between all characters of the virtual terminal description in the ICD file and the standard virtual terminal, and automatically mapping. Keyword matching, based on the similarity between the virtual terminal description and the standard virtual terminal description, extracting keywords, performing text matching, and automatically mapping.

[0109] Step S103: Match the standard device model corresponding to each IED device in the initial SCD file to be configured, and select the appropriate file from the secondary loop configuration file according to the standard device model to determine the connection relationship between each IED device.

[0110] It should be noted that in this step, for circuit breaker equipment, based on the home device number contained in the IED name in the initial SCD file and the home device type of all IEDs, the circuit types connected to the left and right sides of the circuit breaker equipment are determined; then, based on the determined combination of left and right circuit types, the bay type of the circuit breaker equipment is determined, and the standard equipment model with corresponding extended attribute values ​​is matched accordingly.

[0111] The initial SCD file to be configured consists of a three-quarters ring-shaped wiring section. The naming rules for each device IED are as follows:

[0112] Select any circuit in the main wiring diagram as a reference, and sort the equipment numbers of each circuit and circuit breaker in sequence.

[0113] The equipment number associated with each circuit is consistent with the equipment number associated with the circuit breaker on the right side of the circuit.

[0114] The equipment numbers belonging to each circuit and circuit breaker are as follows:

[0115] Line 1: The equipment number is 01;

[0116] Circuit breakers 1, 2, 3, and 4: their respective equipment numbers are 01, 02, 03, and 04.

[0117] Main transformer 1: Its equipment number is 02;

[0118] Line 2: The equipment number belongs to is 03;

[0119] Main transformer 2: The equipment number it belongs to is 04;

[0120] In one embodiment of the present invention, the names of the IEDs for each circuit and circuit breaker A are as follows:

[0121] Line 1: IED name is P_L5001A;

[0122] Circuit breakers 1, 2, 3, and 4: IED names are P_B5001A, P_B5002A, P_B5003A, and P_B5004A, respectively;

[0123] Main transformer 1: IED name is P_T5002A;

[0124] Line 2: IED name is P_L5003A;

[0125] Main transformer 2: IED name is P_T5004A;

[0126] The first two digits of the IED name (AB) match the first digit (A) of the standard device model.

[0127] The third digit of the IED name, C, matches the second digit, B, of the standard device model.

[0128] The fourth and fifth digits of the IED name are DE, which matches the third and fourth digits of the standard device model, CD.

[0129] In addition, an extended attribute ^N needs to be added to the IED name of the circuit breaker equipment. ^N consists of N_left and N_right; N_left represents the equipment type of the circuit on the left side of the circuit breaker: L: line, T: main transformer; N_right represents the equipment type of the circuit on the right side of the circuit breaker: L: line, T: main transformer. When reading the IED name, the equipment number FG in the IED name with equipment type C being B is sorted from smallest to largest. Next, the equipment type on the left side of the circuit breaker is determined: an IED name with equipment type C being B is selected, all IED names with equipment type C other than B are traversed, and IED names with the same equipment number FG are selected. The equipment type C in the selected IED name is read and recorded in N_left. Then, the equipment type on the right side of the circuit breaker is determined:

[0130] Select an IED name with a home device type C of B, read the home device number FG in the current IED name, and determine whether FG is the maximum.

[0131] If FG is the maximum value in the current IED name, then FG in the IED name of the device to the right of the device represented by the current IED name is the minimum value 01.

[0132] Iterate through all IED names whose device type C is not B, select the IED names whose device number FG value is 01, read the device type C in the selected IED names, and record it in N right.

[0133] If FG in the current IED name is not the maximum value, then the FG value in the device IED name to the right of the device represented by the current IED name is incremented by 1.

[0134] Iterate through all IED names whose device type C is not B, select IED names whose device number FG is incremented by 1, read the device type C from the selected IED names, and record it in N.

[0135] Then, the extended attribute ^N of the circuit breaker is identified and matched with the extended attribute E of the standard equipment model circuit breaker. The information of ^N in the IED name is read. When ^N is LL, the circuit breaker is a line circuit breaker bay, and the corresponding extended attribute E value of the standard equipment model circuit breaker is 2; when ^N is TT, the circuit breaker is a main transformer circuit breaker bay, and the corresponding extended attribute E value of the standard equipment model circuit breaker is 3; when ^N is LT / TL, the circuit breaker is a line transformer circuit breaker bay, and the corresponding extended attribute E value of the standard equipment model circuit breaker is 1. Finally, all virtual terminal mapping files are traversed. If a virtual terminal mapping file with the same name exists, the relevant information is inserted at the end of the corresponding entry. If no virtual terminal mapping file with the same name exists, a virtual terminal mapping file is generated.

[0136] Step S104: Write the virtual loop configuration information into the initial SCD file according to the connection relationship and the virtual terminal mapping file to generate a target SCD file containing complete virtual loop configuration.

[0137] It should be noted that the connection relationships between each IED device follow the following logic:

[0138] Logic 1: Iterate through all IED names and determine whether the extended attribute ^N in the IED name contains both LL and TT.

[0139] If both exist, devices with extended attribute ^N of IED name being LT or TL, and devices with corresponding device number FG in IED name, will not have their secondary loop configuration files matched.

[0140] For devices with the same device number FG in the IED name, the secondary circuit configuration file is matched: Line transformer circuit breaker protection and line transformer circuit breaker intelligent terminal connection relationship 1.

[0141] If they do not exist simultaneously, for devices with the extended attribute ^N in the IED name being LT or TL, and the device number FG in the IED name being different, the secondary circuit configuration file is matched: Line transformer circuit breaker protection and line transformer circuit breaker intelligent terminal connection relationship 2.

[0142] For devices with the same device number FG in the IED name, the secondary circuit configuration file is matched: Line transformer circuit breaker protection and line transformer circuit breaker intelligent terminal connection relationship 1.

[0143] Logic 2: Iterate through all IED names and determine the IED number H in the IED name. If H is the same, match the corresponding secondary loop configuration file; if H is different, do not match the corresponding secondary loop configuration file.

[0144] In addition, in the virtual terminal mapping file, the receiving virtual terminals of each IED device model are extracted and written to the corresponding positions in the SCD file. Based on the secondary circuit configuration file of the peer IED device standard device matching the local IED device standard device model, the corresponding virtual terminal mapping file is matched, the mapping information between the virtual terminals of the peer IED device model and the virtual terminals of the local IED device model is extracted and written into the SCD file, thus completing the automatic generation of the SCD for the two-thirds ring connection section.

[0145] In summary, this invention provides an efficient and accurate automated modeling and generation scheme for the configuration of virtual circuits in relay protection of intelligent substations with a three-way ring connection, significantly improving the configuration accuracy, standardization, and engineering application efficiency of SCD files. Specifically: First, by dividing the three-way ring connection into line bays, main transformer bays, and three types of circuit breaker bays (line transformer, line, and main transformer) based on the circuit types on both sides, a precise and standardized model foundation is established for this complex topology, ensuring the correct mapping of physical connection relationships from the source. Second, by establishing a standardized equipment model library, secondary circuit configuration file library, and virtual terminal mapping file library, a reusable and scalable configuration knowledge base system is constructed, realizing the separation management of virtual circuit connection logic and specific device models. Finally, an intelligent matching and dynamic writing mechanism was designed: the system can automatically identify equipment types and match standard models based on the standardized IED names in the initial SCD file; intelligently select the correct secondary circuit configuration template through logical rules (such as judging the cross-bay connection relationship based on whether there are line / main transformer circuit breaker bays in the ring network); and finally extract specific parameters from the mapping file to realize fully automatic and error-free injection of virtual circuit configuration information into the SCD file. This method completely solves the verification dead zone and false alarm problems caused by the inability of traditional methods to adapt to ring wiring, transforming the tedious work of manual configuration line by line into one-click automatic generation, greatly improving the efficiency and reliability of substation design, commissioning and acceptance.

[0146] like Figure 7 As shown, an embodiment of the present invention proposes a modeling system for a virtual circuit model of substation relay protection, the system comprising:

[0147] The interval division module 10 is used to divide the three-half ring connection into intervals and to establish a standard equipment model file based on the interval division results and IED naming conventions.

[0148] The file construction module 20 is used to create a secondary loop configuration file that describes the secondary loop connection relationship between each of the standard equipment models, and to create a virtual terminal mapping file that describes the mapping relationship between the virtual terminals of the equipment in the ICD file and the standard virtual terminals in the standard equipment models.

[0149] The matching module 30 is used to match the standard device model corresponding to each IED device in the initial SCD file to be configured, and select the appropriate file from the secondary loop configuration file according to the standard device model to determine the connection relationship between each IED device.

[0150] Configuration module 40 is used to write virtual loop configuration information into the initial SCD file according to the connection relationship and the virtual terminal mapping file, and generate a target SCD file containing complete virtual loop configuration.

[0151] In another aspect, the present invention also proposes a storage medium on which one or more programs are stored, which, when executed by a processor, implement the above-described method for modeling a virtual circuit model of a substation relay protection system.

[0152] In another aspect, the present invention also proposes an electronic device, including a memory and a processor, wherein the memory is used to store computer programs and the processor is used to execute the computer programs stored in the memory to realize the above-mentioned method for modeling a virtual circuit model of substation relay protection.

[0153] Those skilled in the art will understand that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can mean any means that can contain stored, communicated, propagated, or transmitted programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0154] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0155] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0156] While embodiments of the present invention have been described in detail above, it will be apparent to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations fall within the scope and spirit of the invention as set forth in the claims. Furthermore, the invention described herein may have other embodiments and can be implemented or carried out in various ways.

Claims

1. A method for modeling a virtual circuit model of substation relay protection, characterized in that, The method includes: The two-thirds ring wiring is divided into intervals, and a standard equipment model file is established based on the interval division results and IED naming conventions. Establish a secondary loop configuration file that describes the secondary loop connection relationship between each of the standard equipment models, and establish a virtual terminal mapping file that describes the mapping relationship between the virtual terminals of the equipment in the ICD file and the standard virtual terminals in the standard equipment models; Match the standard device model corresponding to each IED device in the initial SCD file to be configured, and select the appropriate file from the secondary loop configuration file according to the standard device model to determine the connection relationship between each IED device; Based on the connection relationship and the virtual terminal mapping file, the virtual loop configuration information is written into the initial SCD file to generate a target SCD file containing complete virtual loop configuration.

2. The modeling method for virtual circuit model of substation relay protection according to claim 1, characterized in that, The step of dividing the three-quarter ring connection into intervals includes: The intervals of the three-half ring connection are divided into line intervals, main transformer intervals, and circuit breaker intervals. The circuit breaker bay is classified according to the different types of circuits connected on both sides of it as follows: The circuit breaker bay indicates that both circuits on both sides of the circuit breaker are line circuits; The main transformer circuit breaker bay indicates that both circuits on both sides of the circuit breaker are main transformer circuits; The line transformer circuit breaker bay indicates that the circuits on both sides of the circuit breaker are the line circuit and the main transformer circuit, respectively.

3. The modeling method for virtual circuit model of substation relay protection according to claim 1, characterized in that, The steps for establishing a standard device model file based on the interval division results and IED naming conventions include: The naming of the standard equipment model is based on IED type, equipment type, voltage level, and extended attributes; The extended attributes are used to distinguish different types of circuit breaker bays, including a first value representing the line transformer circuit breaker bay, a second value representing the line circuit breaker bay, and a third value representing the main transformer circuit breaker bay. For non-circuit breaker equipment, the extended attributes use default values.

4. The modeling method for virtual circuit model of substation relay protection according to claim 3, characterized in that, The step of establishing a virtual terminal mapping file that describes the mapping relationship between the virtual terminals of the device in the ICD file and the standard virtual terminals in the standard device model includes: Read the name of each IED device in the initial SCD file, and match the corresponding standard device model based on the IED type, device type and voltage level information in the IED name; Parse the ICD file corresponding to each IED device to obtain its virtual terminal description and reference address information; Match the virtual terminal descriptions in the ICD file with the standard virtual terminal descriptions in the standard device model to establish a mapping relationship between the ICD virtual terminals and the standard virtual terminals, and record it in the virtual terminal mapping file; The virtual terminal mapping file is named according to the device manufacturer, model, version number, and checksum information.

5. The modeling method for virtual circuit model of substation relay protection according to claim 4, characterized in that, The steps of matching the standard device model corresponding to each IED device in the initial SCD file to be configured include: For circuit breaker devices, based on the device number and device type of all IEDs contained in the IED name in the initial SCD file, the circuit types connected to the left and right sides of the circuit breaker device are determined. Based on the determined combination of left and right circuit types, the bay type of the circuit breaker device is determined, and the standard device model with corresponding extended attribute values ​​is matched accordingly.

6. The modeling method for virtual circuit model of substation relay protection according to claim 5, characterized in that, The step of selecting a compatible file from the secondary circuit configuration file based on the standard equipment model to determine the connection relationship between each IED device includes: The first logic is to determine whether there are both line circuit breaker bays and main transformer circuit breaker bays based on the bay type of all circuit breaker devices in the initial SCD file. If both exist, then for the equipment in the line transformer circuit breaker bay, only the connection relationship configuration file between the equipment with the same number as the assigned equipment will be matched; If they do not exist simultaneously, then for the equipment in the line transformer circuit breaker bay, it is necessary to match the connection relationship configuration file between the equipment with the same and different equipment numbers; The second logic matches only the secondary loop configuration files between devices with the same IED number in the IED name.

7. The modeling method for virtual circuit model of substation relay protection according to claim 6, characterized in that, The step of writing virtual loop configuration information into the initial SCD file according to the connection relationship and the virtual terminal mapping file to generate a target SCD file containing complete virtual loop configuration includes: In the initial SCD file, input nodes are created or located under the access points of each IED device model; In the virtual terminal mapping file, the receiving virtual terminals of each IED device model are extracted and written to the corresponding positions in the SCD file. Based on the peer IED device standard device model matched by the secondary circuit configuration file of the local IED device standard device model, the corresponding virtual terminal mapping file is matched, and the mapping information between the virtual terminals of the peer IED device model and the virtual terminals of the local IED device model is extracted and written to the SCD file.

8. A modeling system for virtual circuit models of substation relay protection, characterized in that, The system includes: The interval division module is used to divide the three-half ring connection into intervals and to create a standard equipment model file based on the interval division results and IED naming conventions. The file construction module is used to create a secondary loop configuration file that describes the secondary loop connection relationship between each of the standard equipment models, and to create a virtual terminal mapping file that describes the mapping relationship between the virtual terminals of the equipment in the ICD file and the standard virtual terminals in the standard equipment models. The matching module is used to match the standard device model corresponding to each IED device in the initial SCD file to be configured, and select the appropriate file from the secondary loop configuration file according to the standard device model to determine the connection relationship between each IED device. The configuration module is used to write virtual loop configuration information into the initial SCD file according to the connection relationship and the virtual terminal mapping file, and generate a target SCD file containing complete virtual loop configuration.

9. A storage medium, characterized in that, The storage medium stores one or more programs, which, when executed by a processor, implement a method for modeling a virtual circuit model of a substation relay protection as described in any one of claims 1-7.

10. An electronic device comprising a memory and a processor, wherein: The memory is used to store computer programs; When the processor executes the computer program stored in the memory, it implements the substation relay protection virtual circuit modeling method as described in any one of claims 1-7.