A method and device for tracing the source of alarms for relay protection defect diagnosis
Generating alarm traceability paths through the Petri network model solves the problem that automatic diagnosis of relay protection defects cannot be achieved in practical application scenarios in the existing technology, and fast and accurate defect positioning is achieved, ensuring the safe and stable operation of the power grid.
Patent Information
- Application Number
- CN202311590554.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2043-11-27
AI Technical Summary
The prior art cannot instantiate the general rules for relay protection defect diagnosis, and cannot realize automatic defect diagnosis in actual application scenarios, resulting in difficulty in positioning defect parts.
Using the Petri network model, by obtaining the SCD files of the substation and the alarm information of the relay protection alarm equipment, generating the alarm traceability path, retrieving the changes of the optical and electrical circuits, determining the self-test alarm traceability path of the alarm equipment, and extracting the same-original equipment and mutual backup equipment.
It realizes fast and accurate relay protection defect diagnosis, improves defect positioning efficiency, and ensures the safe and stable operation of the power grid.
Smart Images

Figure CN117783760B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of relay protection operation analysis, and more particularly to a method and device for extracting alarm tracing paths for relay protection defect diagnosis. Background Art
[0002] The safe and reliable operation of new power systems relies heavily on relay protection equipment, the first line of defense. Accurate and timely monitoring of the operating status of relay protection equipment is crucial. When equipment reports an abnormality, the defect must be located and addressed as quickly as possible to eliminate potential threats to the safe and stable operation of the new power system from relay protection equipment failures or incorrect operation. However, due to the complex structure of relay protection and secondary circuits, the numerous defect types, and the multiple couplings between self-test alarms and defect locations, relay protection defect location is difficult. Existing research primarily focuses on diagnostic methods, including the application of neural networks, random forest classification, and defect diagnosis knowledge graphs to relay protection defect diagnosis. By building test systems and proposing methods for diagnosing typical defects in laboratory settings, these methods have established basic rules for defect diagnosis and continuously enriched and expanded the means and methodologies for field defect diagnosis. Other approaches have addressed the uncertainty of defect diagnosis, such as probabilistic localization of relay protection defect locations based on Bayesian networks. However, none of these methods further elaborate on how to integrate the resulting defect diagnosis rules with the actual field relay protection equipment and circuit layout, thereby proposing specific defect diagnosis methods tailored to the actual field relay protection equipment configuration. Therefore, how to instantiate the existing general rules for relay protection defect diagnosis, form specific rules for actual application scenarios, and then realize automatic diagnosis of relay protection equipment defects has become an urgent problem to be solved. Summary of the Invention
[0003] In order to solve the technical problem in the prior art that it is impossible to instantiate the general rules of existing relay protection defect diagnosis, form specific rules for actual application scenarios, and then realize automatic diagnosis of relay protection equipment defects, the present invention provides an alarm tracing method and device for relay protection defect diagnosis.
[0004] According to one aspect of the present invention, there is provided an alarm tracing method for relay protection defect diagnosis, the method comprising:
[0005] Obtain the SCD file of the substation and the alarm information of the relay protection alarm equipment;
[0006] Generate at least one tag corresponding to the Petri network of alarm tracing according to the alarm information, and use the relay protection alarm device as the first first library of the Petri network;
[0007] For each tag, searching for optical circuit transitions from the first first library according to the SCD file, and obtaining at least one first optical circuit transition and at least two first libraries corresponding to each tag;
[0008] Adding at least one electrical circuit transition to the first place at the start of each marked first optical circuit transition, and adding at least one second place at the start of the electrical circuit transition, wherein the start of the first optical circuit transition is the sending end of the first optical circuit transition farthest from the first first place, and the start of the electrical circuit transition is the other end of the electrical circuit transition opposite to the start of the first optical circuit transition;
[0009] The Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions and second locations is used as an alarm tracing path corresponding to the alarm information of the relay protection alarm device.
[0010] According to another aspect of the present invention, there is provided an alarm tracing device for relay protection defect diagnosis, the device comprising:
[0011] Data acquisition module, used to obtain the SCD file of the substation and the alarm information of the relay protection alarm equipment;
[0012] A network building module, configured to generate at least one tag corresponding to a Petri network of alarm tracing according to the alarm information, and use the relay protection alarm device as the first first place of the Petri network;
[0013] A first retrieval module is configured to retrieve, for each tag, optical circuit transitions from a first first library according to the SCD file, and obtain at least one first optical circuit transition and at least two first libraries corresponding to each tag;
[0014] a second retrieval module configured to add at least one electrical circuit transition to a first place at the start of each marked first optical circuit transition, and to add at least one second place at the start of the electrical circuit transition, wherein the start of the first optical circuit transition is the sending end of the first optical circuit transition farthest from the first first place, and the start of the electrical circuit transition is the other end of the electrical circuit transition opposite to the start of the first optical circuit transition;
[0015] The result output module is used to use the Petri network generated according to all the marked first optical circuit transitions, first locations, electrical circuit transitions and second locations as the alarm tracing path corresponding to the alarm information of the relay protection alarm device.
[0016] According to yet another aspect of the present invention, the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above aspects of the present invention.
[0017] According to another aspect of the present invention, an electronic device is provided, comprising:
[0018] processor;
[0019] a memory for storing instructions executable by the processor;
[0020] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above aspects of the present invention.
[0021] The alarm tracing method and device for relay protection defect diagnosis described in the present invention, wherein the method comprises: obtaining the SCD file of the substation and the alarm information of the relay protection alarm device; generating at least one tag corresponding to the Petri network of alarm tracing according to the alarm information, and taking the relay protection alarm device as the first first library place of the Petri network; for each tag, retrieving the optical circuit transition from the first first library place according to the SCD file, obtaining at least one first optical circuit transition and at least two first library places corresponding to each tag; in the first optical circuit transition of each tag, At least one electrical circuit transition is added to the first location at the starting point of the transition, and at least one second location is added to the starting point of the electrical circuit transition; the Petri network generated based on the first optical circuit transition, the first location, the electrical circuit transition, and the second location of all the tags is used as the self-test alarm traceability path of the relay protection alarm device, and based on the self-test alarm traceability path, for the tags in the Petri network, starting from the alarm traceability device, the devices outside the traceability path but also containing the tags are retrieved to obtain the Petri subnetwork where the homologous devices are located, and the mutual backup devices of the alarm devices are further retrieved. The method and device, by retrieving the self-test alarm traceability path of the relay protection alarm device and completing the retrieval of the homologous devices and mutual backup devices, which are important reference devices for alarm device defect diagnosis, lay a good foundation for further realizing the instantiation of the relay protection defect diagnosis knowledge graph and automatic defect diagnosis, and lay a good support for quickly and promptly handling relay protection defects and ensuring the safe and stable operation of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0023] Figure 1 Flowchart of an alarm tracing method for relay protection defect diagnosis according to a preferred embodiment of the present invention;
[0024] Figure 2 A Petri network diagram after the first optical circuit transition of all tags involved in determining alarm information of an alarm device according to a preferred embodiment of the present invention;
[0025] Figure 3 A Petri network diagram of a self-check alarm tracing path corresponding to alarm information of an alarm device according to a preferred embodiment of the present invention;
[0026] Figure 4 Schematic diagram of a device for self-checking and tracing the alarm information of an alarm device according to a preferred embodiment of the present invention;
[0027] Figure 5 A network diagram after the third place and the second optical loop are expanded on the Petri network of the self-test alarm tracing path of the alarm device according to the preferred embodiment of the present invention;
[0028] Figure 6 2 is a structural diagram of an alarm tracing device for relay protection defect diagnosis according to a preferred embodiment of the present invention;
[0029] Figure 7 Schematic diagram of the structure of an electronic device according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0030] Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings. However, the present invention may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided to provide a thorough and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments shown in the accompanying drawings is not intended to limit the present invention. In the accompanying drawings, identical elements are denoted by the same reference numerals.
[0031] Unless otherwise specified, the terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art. Furthermore, it is understood that terms defined in commonly used dictionaries should be understood to have meanings consistent with the context of their relevant fields and should not be interpreted as idealized or overly formal.
[0032] Exemplary Methods
[0033] Figure 1 FIG. 1 is a flow chart of an alarm tracing method for relay protection defect diagnosis according to a preferred embodiment of the present invention. Figure 1 As shown, the alarm tracing method for relay protection defect diagnosis described in this preferred embodiment starts from step 101.
[0034] In step 101, the SCD file of the substation and the alarm information of the relay protection alarm device are obtained.
[0035] In this preferred embodiment, an interface connection with other platforms is established by default, and the substation's SCD file can be obtained through the interface, or the substation SCD file has been pre-installed on the platform involved in this method. The substation SCD file refers to the Substation Configuration Description file (SCD), which is used to describe the instance configuration and communication parameters of all substation intelligent electronic devices (IEDs), the communication configuration between IEDs, and the substation primary system structure. This file is completed by the system integrator. In this preferred embodiment, the 220kV Qinyou 1 Line Protection A in the power grid is used as the relay protection alarm device, and its "PT disconnection" is used as the alarm information for alarm tracing analysis.
[0036] In step 102, at least one tag corresponding to the Petri network of alarm tracing is generated according to the alarm information, and the relay protection alarm device is used as the first first place of the Petri network.
[0037] Preferably, the at least one tag corresponding to the Petri network for alarm tracing generated according to the alarm information includes:
[0038] Determine the corresponding alarm rule according to the alarm information;
[0039] Determining the type of abnormal information involved in the alarm information according to the alarm rule;
[0040] Determine the corresponding logical node description according to the abnormal information type;
[0041] The logical node description is used as a marker of the proposed alarm tracing Petri network.
[0042] In this preferred embodiment, the alarm rules for the "PT disconnection" alarm are as follows: 1) If the three-phase voltage vector sum is greater than 8V, the protection will not activate, and a PT disconnection anomaly signal will be issued with a delay of 1-1.3 seconds. 2) If the three-phase voltage vector sum is less than 8V, but the positive sequence voltage is less than the threshold (28V-35V), if busbar PT is used, a PT disconnection anomaly signal will be issued with a delay of 1-1.3 seconds. If line PT is used, if any phase current element is activated or the TWJ (TWJ stands for trip position relay) is not activated, a PT disconnection anomaly signal will be issued with a delay of 1-1.3 seconds. 3) After the three-phase voltage returns to normal, the PT disconnection signal will be restored after a delay of 0.5-10 seconds. Based on the above alarm rules, the anomaly information types are voltage and switch position, and the corresponding logical node descriptions are TVTR and CSWI. Therefore, the proposed alarm tracing Petri network is assigned marker 1 to TVTR and marker 2 to CSWI.
[0043] The reason why this preferred embodiment uses Petri nets is that they facilitate modeling of the type and direction of information transmitted between devices, making it easier to obtain traceability paths. Petri nets have strict mathematical definitions and intuitive graphical representations. They are a system model suitable for describing asynchronous concurrent phenomena and can characterize the structure and dynamic behavior of the system. At the same time, Petri nets contain a wealth of system behavior analysis methods, providing a powerful tool for analysis and traceability. Specifically, Petri nets are a four-tuple PN =( P , T ; F , M 0), where:
[0044] 1) P ={ p 1, …,p n} is a finite set of places used to store tokens;
[0045] 2) T ={ t 1,…, t m} is a finite set of transitions;
[0046] 3) F ⊆(( P × T )∪( T × P )) is the flow relationship between places and transitions;
[0047] 4) M : P → Z(a set of non-negative integers) is an identification function, which refers to the number of tokens in a place. In relay protection services, a place can represent the state of an object, while a transition represents an operation performed on the object.
[0048] It can be seen from this that Petri net is an object transformation model that is strictly defined based on set theory and has a solid mathematical foundation.
[0049] In step 103, for each tag, light circuit transitions are retrieved from the first first library according to the SCD file to obtain at least one first light circuit transition and at least two first libraries corresponding to each tag.
[0050] Preferably, for each tag, searching the optical circuit transition from the first first library place according to the SCD file to obtain at least one first optical circuit transition and at least two first libraries place corresponding to each tag includes:
[0051] In step 301, for the jth tag, the first first place is used as the receiving end, and the path of the light circuit sending end contains the tag as the first search condition, and the light circuit is searched according to the SCD file, where 1≤j≤N1, N1 is the total number of tags in the Petri network;
[0052] In step 302, when a light loop that satisfies the first search condition exists, the transmitting end device of the light loop that satisfies the first search condition is set as the newly added first place, and the light loop from each newly added first place to the first first place is added to the Petri network as the first light loop transition, and the set of the j-th marked first first place and the newly added first place is denoted as A. kj When there is no optical circuit that meets the first search condition, the set A of the first place of the jth tag is recorded kj is empty, where k is a natural number;
[0053] In step 303, when set A kj When it is not empty, the receiving end is set A kj Each newly added first library place in the optical circuit, and the path path of the optical circuit sending end contains the tag as the fourth search condition, search the optical circuit according to the SCD file, and set k=k+1;
[0054] In step 304, when there is an optical circuit that meets the fourth search condition, the transmitting end devices of the optical circuit that meets the fourth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)jAfter the light circuit of each newly added first place meets the fourth search condition, it is added to the Petri network as the first light circuit transition, and the process returns to step 303. When there is no light circuit meeting the fourth search condition, the set of the first place marked by the jth tag is determined to be A. kj ;
[0055] In step 305, the set A of N1 labels is kj Merge to generate set A i , where i is a natural number;
[0056] In step 306, when set A kj The number of first places in set A is less than i When the number of the first place in the set A i exists in the set A kj The first library that does not exist in the SCD is used as the receiving end, and the path of the optical circuit sending end contains the jth tag as the fifth search condition, searching the optical circuit according to the SCD file, and setting k=k+1;
[0057] In step 307, when there is an optical circuit that meets the fifth search condition, the transmitting end devices of the optical circuit that meets the fifth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)j If the light circuit of each newly added first place satisfies the fifth search condition, it is added to the Petri network as a first light circuit transition, and i=i+1, and the process returns to step 305. If there is no light circuit that satisfies the fifth search condition, the set of the first place marked by the jth tag is determined to be A. kj ;
[0058] In step 308, when set A i The number of first places in the set A is equal to i-1 When the first place number is reached, the search for the optical circuit is stopped.
[0059] In this preferred embodiment, the device that issues the alarm, 220kV Qinyou 1 line line protection A, is used as the first first library place p0, the receiving end is library place p0, and the path path of the optical circuit sending end contains the tag TVTR or CSWI as the first search condition, and the first round (that is, the initial value of k is 1) of searching for the optical circuit is performed according to the SCD file. According to the search, for the tag TVTR, the sending end device 220kV Qinyou 1 line merging unit A is obtained (in the SCD file, its path path is MU / TVTR*.*, containing the tag TVTR, and the following optical circuit search is the same), which is used as library place p1, and the optical circuit from library place p1 to library place p0 is added to the alarm tracing Petri network as the first optical circuit transition t1, and the transition t1 has the function of transferring the tag TVTR. For the tag CSWI, no optical circuit that meets the first search condition is retrieved. According to the search results, it can be seen that the set A of the first library place of the tag TVTR 11 The first places contained in A are p0 and p1, and the set of first places marked CSWI is empty. 11 is not empty. For the TVTR tag, let k=k+1, that is, k=2, and the receiving end is set A. 11 The first place p1 is newly added in the alarm tracing Petri network, and the path of the optical circuit sending end contains the tag TVTR as the fourth search condition. The second round of optical circuit search is continued according to the SCD file, and the sending end device 220kV 1M / 2M voltage merging unit A is obtained. It is used as the place p2. The optical circuit from place p2 to place p1 is added to the alarm tracing Petri network as the first optical circuit transition t2. Transition t2 has the function of transferring the tag TVTR, and at the same time, the set A of the first place of the tag TVTR is added. 21 The first places contained in A are p0, p1 and p2. 21 is not empty. For the tag TVTR, let k=k+1, that is, k=3. The receiving end is the first place p2 newly added in the set A21, and the path of the optical circuit sending end contains the tag TVTR as the fourth search condition. According to the SCD file, the third round of optical circuit search is continued. There is no optical circuit that meets the fourth search condition. From the above search, it can be seen that for the tag TVTR, after three rounds of search, the set of its first place is A 31 , set A 31 The first places contained in are p0, p1 and p2. For the label CSWI, only one round of search is performed, and the set of its first places is A 12 , set A 12 The first location contained in is 0.
[0060] After completing the search of the optical circuits marked TVTR and CSWI, a supplementary search is performed. At this time, the first library set A marked TVTR and CSWI is 31 and A 12 Merge and get the first place of set A1 (i.e. the initial value of i is 1) as p0, p1 and p2. For the mark TVTR, since set A 31 The number of first places in the set A1 is 3, which is equal to the number of first places in the set A1. Therefore, the first round of supplementary search is not required. 12 The first place contained in is 0, which is less than the number of first places in set A1, which is 3. Therefore, the first round of supplementary search is required. The optical circuit is searched with the receiving end as places p0, p1 and p2, and the path of the optical circuit sending end contains the label CSWI as the fifth search condition, and k=k+1, then k is equal to 2. Among them, there is no search result for places p0 and p2. When the receiving end is place p1, the sending end device 220kV Qinyou 1 line switch intelligent terminal is retrieved and used as place p3. The optical circuit from place p3 to place p1 is added to the alarm tracing Petri network as the first optical circuit transition t3. Transition t3 has the function of transferring the label CSWI. At this time, set A 22 The first places in are p1 and p3. Let i=i+1, and we can get the set A 31 and set A 22 The merged set A2 contains 4 first places, namely p0, p1, p2 and p3. 31 and set A 22 The number of first places in the set is less than the number of first places in the set A2. Therefore, a second round of supplementary search is required. In the second round of supplementary search, no optical circuits that meet the fifth search condition are found for the tags TVTR and CSWI. Therefore, the set A 41 and set A 32 The number of first places in set A2 remains unchanged, which is 3 and 2 respectively. The number of first places in set A2 also remains unchanged, which is 4. At this time, the number of first places in set A2 is equal to that in set A1, and the search stops.
[0061] Figure 2 Schematic diagram of the Petri network after the first optical circuit transition of all tags involved in determining the alarm information of the alarm device according to the preferred embodiment of the present invention. Figure 2 For the label TVTR, the first optical circuit transition includes the transition t2 from the library place p2 to p1 and the transition t1 from the library place p1 to p0. For the label CSWI, the first optical circuit transition is the transition t3 from p3 to p1.
[0062] In step 104, at least one electrical circuit transition is added to the first place at the starting end of each marked first optical circuit transition, and at least one second place is added to the starting end of the electrical circuit transition, wherein the starting end of the first optical circuit transition is the sending end of the first optical circuit transition farthest from the first first place, and the starting end of the electrical circuit transition is the other end of the electrical circuit transition opposite to the starting end of the first optical circuit transition.
[0063] Preferably, the adding of at least one electrical circuit transition to the first place at the starting point of each marked first optical circuit transition, and the adding of at least one second place at the starting point of the electrical circuit transition, comprises:
[0064] For the jth marker, determine the second place corresponding to the marker according to the marker and the set electrical circuit traceability relationship table, wherein the electrical circuit traceability relationship table is used to mark the one-to-one correspondence between the marker and the second place in the Petri network;
[0065] The electrical loop from the second location to the first location at which the first optical loop transition starts is added to the Petri network as an electrical loop transition.
[0066] In this preferred embodiment, the device connected to the electrical circuit should be the first location containing the markers TVTR and CSWI, and the marker is located at the beginning of the first optical circuit transition. Figure 2 It can be seen that the first place that meets the conditions should be the 220kV 1M / 2M voltage merging unit A (labeled TVTR) represented by place p2 and the 220kV Qinyou Line 1 intelligent switch terminal (labeled CSWI) represented by place p3. According to the pre-established electrical circuit traceability relationship table, the second place corresponding to the label TVTR is the PT secondary winding, and the second place corresponding to the label CSWI is the operating box disconnector position contact. These are designated as second places p4 and p5, respectively. In the alarm traceability Petri network, an electrical circuit transition t4 from place p4 to place p2 is added. Transition t4 transfers the label TVTR. An electrical circuit transition t5 from place p5 to place p3 is added. Transition t5 transfers the label CSWI.
[0067] In step 105, the Petri network generated based on all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations is used as an alarm tracing path corresponding to the alarm information of the relay protection alarm device.
[0068] Figure 3 Schematic diagram of the Petri network of the self-check alarm tracing path corresponding to the alarm information of the alarm device according to the preferred embodiment of the present invention. Figure 3As shown, the Petri network of the self-test alarm tracing path corresponding to the alarm information "PT line break" of the alarm device "220kV Qinyou 1 line line protection A" described in this preferred embodiment includes the labels TVTR and CSWI, the electrical circuit transition t4 of the transmission label TVTR is from the second library place p4 to the first library place p2, the first optical circuit transition t2 is from the first library place p2 to the first library place p1, the first optical circuit transition t1 is from p1 to p0, the electrical circuit transition t5 of the transmission label CSWI is from the second library place p5 to the first library place p3, and the first optical circuit transition t3 is from the first library place p3 to the first library place p2.
[0069] Figure 4 Schematic diagram of the alarm information self-checking and alarm tracing device according to the preferred embodiment of the present invention. Figure 4 As shown, for the alarm information "PT disconnection" of the alarm device "220kV Qinyou 1 line line protection A" (marked as 0) described in this preferred embodiment, its self-test alarm tracing device includes 220kV Qinyou 1 line merging unit A (marked as 1), 220kV1M / 2M voltage merging unit A (marked as 2), 220kV Qinyou 1 line switch intelligent terminal (marked as 3), PT secondary winding (marked as 4) and operating box disconnector position contact (marked as 5). When diagnosing its defects, the self-test alarm tracing device in the defect range set where the alarm occurs is directly pinpointed, and directional diagnosis can be achieved, thereby greatly improving the efficiency and accuracy of relay protection defect diagnosis.
[0070] Preferably, the method further comprises: adding at least one electrical circuit transition to the first place at the starting point of each marked first optical circuit transition, and adding at least one second place at the starting point of the electrical circuit transition.
[0071] In step 501, for the jth tag, the sending end is set A. kj For each first library in the optical circuit receiving end, the Path path includes the tag as a third search condition, and the optical circuit is searched according to the SCD file;
[0072] In step 502, when there is a light loop that satisfies the third search condition, the receiving end device of the light loop that satisfies the third search condition is set as the newly added third place, and the light loop from each first place that satisfies the third search condition to each newly added third place is added to the Petri network as the second light loop transition, and the set of the newly added third places with the jth label is recorded as A. mj When there is no optical circuit that meets the third search condition, the set A of the third place of the jth tag is recorded mj is empty, where m is a natural number and m>k;
[0073] In step 503, when set A mj When it is not empty, the sender is set A mj For each newly added third place in the optical circuit receiving end, the path path of the optical circuit receiving end includes the tag as the sixth search condition, and the optical circuit is searched according to the SCD file, and m=m+1;
[0074] In step 504, when there is an optical circuit that meets the sixth search condition, the receiving end devices of the optical circuit that meets the sixth search condition are set A. mj The newly added third place in the set A (m-1)j Each newly added third place that meets the sixth search condition in the set A mj After each newly added lightloop of the third place is added to the Petri network as a second lightloop transition, the process returns to step 503. When there is no lightloop that meets the sixth search condition, the set of the jth marked third place is determined to be A. mj ;
[0075] Correspondingly, the Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, including:
[0076] The Petri network generated according to the first optical circuit transition, the first library, the electrical circuit transition and the second library of all the marks is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, and the third library of all the marks is used as the homologous device of the relay protection alarm device.
[0077] Preferably, the method further comprises:
[0078] Retrieving the primary device of the relay protection alarm device;
[0079] Retrieving the relay protection device corresponding to the relay protection alarm device according to the correspondence between the primary device and the secondary device;
[0080] Correspondingly, the Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, including:
[0081] The Petri network generated according to the first optical circuit transition, the first library, the electrical circuit transition and the second library of all the marks is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, the third library of all the marks is used as the homologous device of the relay protection alarm device, and the relay protection device is used as the mutual backup device of the relay protection alarm device.
[0082] In practical applications, the homologous devices and backup devices of relay protection alarm equipment are important reference devices for completing relay protection defect diagnosis. However, due to the long information transmission paths and the large number of homologous devices in the deduction and analysis of defect homologous devices, the extraction of homologous devices is often difficult. Therefore, the existing technology rarely involves the extraction of homologous devices when tracing alarms to alarm devices. To address this problem, the present invention further proposes a method for determining the homologous devices of relay protection defects by using divergent retrieval of device information transmission in SCD files and Petri network transition analysis. This method realizes the extraction of defect homologous devices under various abnormal information types and circuit topologies.
[0083] In this preferred embodiment, for the tag TVTR, the sending end is set A. 41 The first place p0, p1 and p2 in the optical circuit receiving end are searched for optical circuits, and the path path of the optical circuit receiving end contains this tag as the third search condition. Among them, p0 has no search results, p1 retrieves 3 optical circuits, and a new receiving end device 220kV Qinyou 1 line measurement and control is added. It is another output of transition t1 and is used as the new third place p6. p2 retrieves 9 optical circuits, and 9 new third places p7 to p 15 The corresponding receiving end devices are 220kV 1M / 2M bus differential protection A (p7), 220kV Ping An 1 line merging unit A (p8), 220kV Pin Zuo 2 line merging unit A (p9), 220kV Pin Zuo 1 line merging unit A (p 10 )、220kV Qinwang Line Merging Unit A(p 11 )、220kV Qinyou 2 line combined unit A(p 12 )、No.3 main transformer medium voltage side merging unit A(p 13 )、220kV Yangzhou side high-rise outgoing line merging unit A(p 14 )、220kV Ping An 2 line combined unit A(p 15 ), the above 9 places are all connected to transition t2. Combining the above search results, we can know that set A 51 (The initial value of m is 5) The number of newly added third places is 10. For the tag CSWI, the sender is set A 32 The first place p1 and p3 in the optical circuit are searched, and the path of the optical circuit receiving end contains the tag as the third search condition. Among them, p1 has no search results, and p3 retrieves 1 optical circuit. The receiving end device is 220kV Qinyou 1 line measurement and control, which is the third place p7, which is another output of transition t3. Combined with the above search results, we can know that set A 52 There is one newly added third storage place.
[0084] Since the set A 51 and set A52 Are not empty, generate set A respectively 61 and set A 62 , at the same time, for the TVTR tag, the sender is set A 51 The 10 third places in the optical circuit receiving end contain the mark as the sixth search condition, and the next round of search results in: Place p8 is transferred to Place p after transition t6. 16 (220kV Ping An 2-line line protection A), storage location p9 is transmitted to storage location p through transition t7 17 (220kV Yangzhou side high-rise outgoing line protection A), storage location p 10 After changes 10 Transfer to place p 16 (No. 3 main transformer protection A), storage place p 11 After changes 11 Transfer to place p 17 (220kV Qinyou 2 line protection A), storage place p 12 After changes 12 Transfer to place p 18 (220kV Qinwang Line Protection A), Storage P 13 After changes 13 Transfer to place p 19 (220kV Pinzuo 1 line line protection A), storage place p 14 After changes 14 Transfer to place p 20 (220kV Pinzuo 2 line protection A), storage place p 15 After changes 15 Transfer to place p 21 (220kV Ping An 1 line protection A). The above transitions all have the function of transmitting the mark TVTR. For the mark CSWI, the sending end is the set A. 52 The third place p7 in the optical circuit receiving end is included in the path path of the optical circuit receiving end. The sixth search condition is performed, and no result is retrieved. Therefore, the set A 61 There are 8 new third places in the library, which are place p 16 To the library p 23 , and the set A 62 There is no new third place in , so for the mark CSWI, the set of its third places is set A 62 , including a third place p7, and set A 61 Since there are 8 newly added third places, the next round of search is required to generate set A 71 . Searching by the same method, there is no search result, so the set of the third place marked TVTR is set A 71 , including 18 third-place storage facilities.
[0085] Figure 5 This is a network diagram after the third place and the second optical circuit are expanded on the Petri network of the self-test alarm tracing path of the alarm device according to the preferred embodiment of the present invention. Figure 5 As shown in the figure, the dotted line indicates the newly added third place in the self-test alarm traceability Petri network corresponding to the alarm information of the alarm device, which is the same source device as the alarm device. The mark corresponding to the third place is the mark that can be obtained after the first optical circuit transition in the self-test alarm traceability Petri network is enabled. Among them, the third place corresponding to the TVTR mark is p6~p 23 , the third library corresponding to the CSWI marker is p7.
[0086] Furthermore, in this preferred embodiment, after retrieving the homologous device of the alarm device 220kV Qinyou 1 Line Line Protection A, the mutual backup device of the alarm device 220kV Qinyou 1 Line Line Protection A is also retrieved. First, it is retrieved that the primary device of the alarm device 220kV Qinyou 1 Line Line Protection A is 220kV Qinyou 1 Line. Next, two sets of relay protection devices associated with the primary device 220kV Qinyou 1 Line are retrieved. In addition to the alarm device, the other is 220kV Qinyou 1 Line Line Protection B. Therefore, it can be concluded that the mutual backup device of the alarm device 220kV Qinyou 1 Line Line Protection A is 220kV Qinyou 1 Line Line Protection B. At this point, the alarm tracing for the alarm information "PT disconnection" of the alarm device 220kV Qinyou 1 Line Line Protection A is complete.
[0087] To sum up, the alarm tracing method for relay protection defect diagnosis described in this preferred embodiment obtains the SCD file of the substation and the alarm information of the relay protection alarm device; generates the corresponding label of the Petri network of alarm tracing according to the alarm information, and takes the relay protection alarm device as the first first library of the Petri network; for each label, retrieves the optical circuit transition from the first first library according to the SCD file until the self-test alarm traceability path of the alarm device, the same source device and the mutual backup device are determined, which lays a good foundation for further realizing the instantiation of the defect diagnosis knowledge graph and the automatic diagnosis of defects, and lays a good support for quickly and promptly handling relay protection defects and ensuring the safe and stable operation of the power grid.
[0088] Exemplary devices
[0089] Figure 6 FIG. 1 is a structural diagram of an alarm tracing device for relay protection defect diagnosis according to a preferred embodiment of the present invention. Figure 6 As shown, the alarm tracing device 600 for relay protection defect diagnosis according to this preferred embodiment includes:
[0090] The data acquisition module 601 is used to obtain the SCD file of the substation and the alarm information of the relay protection alarm device;
[0091] A network building module 602 is configured to generate at least one tag corresponding to a Petri network for alarm tracing based on the alarm information, and use the relay protection alarm device as the first first place of the Petri network;
[0092] A first retrieval module 603 is configured to retrieve, for each tag, optical circuit transitions from the first first library according to the SCD file, and obtain at least one first optical circuit transition and at least two first libraries corresponding to each tag;
[0093] A second search module 604 is configured to add at least one electrical circuit transition to a first place at the start of each marked first optical circuit transition, and to add at least one second place at the start of the electrical circuit transition, wherein the start of the first optical circuit transition is the sending end of the first optical circuit transition farthest from the first first place, and the start of the electrical circuit transition is the other end of the electrical circuit transition opposite to the start of the first optical circuit transition;
[0094] The result output module 605 is configured to use the Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations as an alarm tracing path corresponding to the alarm information of the relay protection alarm device.
[0095] Preferably, the network building module 602 generates at least one tag corresponding to the Petri network of alarm tracing according to the alarm information, including:
[0096] Determine the corresponding alarm rule according to the alarm information;
[0097] Determining the type of abnormal information involved in the alarm information according to the alarm rule;
[0098] Determine the corresponding logical node description according to the abnormal information type;
[0099] The logical node description is used as a marker of the proposed alarm tracing Petri network.
[0100] Preferably, the first retrieval module 603 retrieves the optical circuit transition from the first first library according to the SCD file for each tag, and obtains at least one first optical circuit transition and at least two first libraries corresponding to each tag, including:
[0101] In step 301, for the jth tag, the first first place is used as the receiving end, and the path of the light circuit sending end contains the tag as the first search condition, and the light circuit is searched according to the SCD file, where 1≤j≤N1, N1 is the total number of tags in the Petri network;
[0102] In step 302, when a light loop that satisfies the first search condition exists, the transmitting end device of the light loop that satisfies the first search condition is set as the newly added first place, and the light loop from each newly added first place to the first first place is added to the Petri network as the first light loop transition, and the set of the j-th marked first first place and the newly added first place is denoted as A. kj When there is no optical circuit that meets the first search condition, the set A of the first place of the jth tag is recorded kj is empty, where k is a natural number;
[0103] In step 303, when set A kj When it is not empty, the receiving end is set A kj Each newly added first library place in the optical circuit, and the path path of the optical circuit sending end contains the tag as the fourth search condition, search the optical circuit according to the SCD file, and set k=k+1;
[0104] In step 304, when there is an optical circuit that meets the fourth search condition, the transmitting end devices of the optical circuit that meets the fourth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)j After the light circuit of each newly added first place meets the fourth search condition, it is added to the Petri network as the first light circuit transition, and the process returns to step 303. When there is no light circuit meeting the fourth search condition, the set of the first place marked by the jth tag is determined to be A. kj ;
[0105] In step 305, the set A of N1 labels is kj Merge to generate set A i , where i is a natural number;
[0106] In step 306, when set A kj The number of first places in set A is less than i The number of first places in the set A i The number of first places in the set is not equal to that of the set A i-1 When the number of the first place in the set A i exists in the set A kjThe first library that does not exist in the SCD is used as the receiving end, and the path of the optical circuit sending end contains the jth tag as the fifth search condition, searching the optical circuit according to the SCD file, and setting k=k+1;
[0107] In step 307, when there is an optical circuit that meets the fifth search condition, the transmitting end devices of the optical circuit that meets the fifth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)j If the light circuit of each newly added first place satisfies the fifth search condition, it is added to the Petri network as a first light circuit transition, and i=i+1, and the process returns to step 305. If there is no light circuit that satisfies the fifth search condition, the set of the first place marked by the jth tag is determined to be A. kj ;
[0108] In step 308, when set A i The number of first places in the set A is equal to i-1 When the first place number is reached, the search for the optical circuit is stopped.
[0109] Preferably, the second retrieval module 604 adds at least one electrical circuit transition to the first place at the start of each marked first optical circuit transition, and adds at least one second place at the start of the electrical circuit transition, including:
[0110] For the jth marker, determine the second place corresponding to the marker according to the marker and the set electrical circuit traceability relationship table, wherein the electrical circuit traceability relationship table is used to mark the one-to-one correspondence between the marker and the second place in the Petri network;
[0111] The electrical loop from the second location to the first location at which the first optical loop transition starts is added to the Petri network as an electrical loop transition.
[0112] Preferably, the apparatus further comprises a third retrieval module for determining the second optical circuit transition and the third place, wherein:
[0113] In step 501, for the jth tag, the sending end is set A. kj For each first library in the optical circuit receiving end, the Path path includes the tag as a third search condition, and the optical circuit is searched according to the SCD file;
[0114] In step 502, when there is a light loop that satisfies the third search condition, the receiving end device of the light loop that satisfies the third search condition is set as the newly added third place, and the light loop from each first place that satisfies the third search condition to each newly added third place is added to the Petri network as the second light loop transition, and the set of the newly added third places with the jth label is recorded as A. mj When there is no optical circuit that meets the third search condition, the set A of the third place of the jth tag is recorded mj is empty, where m is a natural number and m is greater than k;
[0115] In step 503, when set A mj When it is not empty, the sender is set A mj For each newly added third place in the optical circuit receiving end, the path path of the optical circuit receiving end includes the tag as the sixth search condition, and the optical circuit is searched according to the SCD file, and m=m+1;
[0116] In step 504, when there is an optical circuit that meets the sixth search condition, the receiving end devices of the optical circuit that meets the sixth search condition are set A. mj The newly added third place in the set A (m-1)j Each newly added third place that meets the sixth search condition in the set A mj After each newly added lightloop of the third place is added to the Petri network as a second lightloop transition, the process returns to step 503. When there is no lightloop that meets the sixth search condition, the set of the jth marked third place is determined to be A. mj ;
[0117] Correspondingly, the result output module 605 uses the Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, including:
[0118] The Petri network generated according to the first optical circuit transition, the first library, the electrical circuit transition and the second library of all the marks is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, and the third library of all the marks is used as the homologous device of the relay protection alarm device.
[0119] Preferably, the apparatus further comprises a fourth retrieval module for determining a backup device of the alarm device, wherein:
[0120] Retrieving the primary device of the relay protection alarm device;
[0121] Retrieving the relay protection device corresponding to the relay protection alarm device according to the correspondence between the primary device and the secondary device;
[0122] Correspondingly, the result output module 605 uses the Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, including:
[0123] The Petri network generated according to the first optical circuit transition, the first library, the electrical circuit transition and the second library of all the marks is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, the third library of all the marks is used as the homologous device of the relay protection alarm device, and the relay protection device is used as the mutual backup device of the relay protection alarm device.
[0124] The alarm tracing device for relay protection defect diagnosis described in this preferred embodiment obtains the SCD file of the substation and the alarm information of the relay protection alarm device; generates a label corresponding to the Petri network of alarm tracing based on the alarm information, and uses the relay protection alarm device as the first first library of the Petri network; for each label, retrieves the optical circuit transition from the first first library according to the SCD file until the self-test alarm tracing path of the alarm device is determined. The steps of the same-source device and the mutual backup device are the same as the steps of the alarm tracing method for relay protection defect diagnosis described in the present invention, and the technical effects achieved are also the same, which will not be repeated here.
[0125] Exemplary electronic devices
[0126] Figure 7 1 is a schematic diagram of the structure of an electronic device according to a preferred embodiment of the present invention. The electronic device can be either or both of the first device and the second device, or a standalone device independent of them, and the standalone device can communicate with the first device and the second device to receive collected input signals from them. Figure 7 FIG2 is a block diagram of an electronic device according to an embodiment of the present disclosure. Figure 7 As shown, the electronic device includes one or more processors 701 and a memory 702 .
[0127] The processor 701 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0128] The memory 702 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 701 may execute the program instructions to implement the energy consumption anomaly diagnosis method based on the enterprise energy consumption space of the various embodiments disclosed above and / or other desired functions. In one example, the electronic device may further include: an input device 703 and an output device 704, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0129] In addition, the input device 703 may also include, for example, a keyboard, a mouse, and the like.
[0130] The output device 704 can output various information to the outside, and can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0131] Of course, to simplify, Figure 7 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, the electronic device may further include any other appropriate components according to specific application scenarios.
[0132] Exemplary computer program products and computer-readable storage media
[0133] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the alarm tracing method for relay protection defect diagnosis according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
[0134] The computer program product may be written in any combination of one or more programming languages to implement the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, and conventional procedural programming languages such as C or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0135] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the alarm tracing method for relay protection defect diagnosis according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0136] The computer-readable storage medium may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0137] The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this disclosure are merely illustrative and not restrictive, and should not be construed as necessarily possessed by each embodiment of the present disclosure. Furthermore, the specific details disclosed above are provided for illustrative purposes and to facilitate understanding, rather than as limitations. These details do not limit the present disclosure to necessarily being implemented using these specific details.
[0138] Each embodiment in this specification is described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. References to the same or similar parts between the various embodiments are sufficient. For system embodiments, since they largely correspond to method embodiments, their description is relatively simple. For relevant parts, references to the description of the method embodiments are sufficient.
[0139] The block diagrams of the devices, devices, equipment, and systems involved in this disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0140] The methods and apparatus of the present disclosure may be implemented in many ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers recording media that store programs for executing the methods according to the present disclosure.
[0141] It should also be noted that, in the apparatus, equipment and method of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present disclosure. The above description of the disclosed aspects is provided to enable any technician in this field to make or use the present disclosure. Various modifications to these aspects will be very obvious to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown here, but to the widest range consistent with the principles and novel features disclosed herein.
[0142] The above description has been provided for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. An alarm tracing method for relay protection defect diagnosis, characterized in that: The method comprises: Obtain the substation's entire system configuration SCD file and the alarm information of relay protection alarm equipment; Generate at least one tag corresponding to an alarm tracing Petri network according to the alarm information, and use the relay protection alarm device as the first first place of the Petri network; For each tag, searching for optical circuit transitions from the first first library place according to the SCD file to obtain at least one first optical circuit transition and at least two first library places corresponding to each tag, including: In step 301, for the jth tag, the first first place is used as the receiving end, and the path of the light circuit sending end contains the tag as the first search condition, and the light circuit is searched according to the SCD file, where 1≤j≤N1, N1 is the total number of tags in the Petri network; In step 302, when a light loop that satisfies the first search condition exists, the sending end device of the light loop that satisfies the first search condition is set as the newly added first place, and the light loop from each newly added first place to the first first place is added to the Petri network as the first light loop transition, and the set of the j-th marked first first place and the newly added first place is denoted as A. kj When there is no optical circuit that meets the first search condition, the set A of the first place of the jth tag is recorded kj is empty, where k is a natural number; In step 303, when set A kj When it is not empty, the set A kj Each newly added first library is a receiving end, and the path of the optical circuit sending end contains the tag as the fourth search condition, continue to search the optical circuit according to the SCD file, and set k=k+1; In step 304, when there is an optical circuit that meets the fourth search condition, the transmitting end devices of the optical circuit that meets the fourth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)j After the light circuit of each newly added first place meets the fourth search condition, it is added to the Petri network as the first light circuit transition, and the process returns to step 303. When there is no light circuit meeting the fourth search condition, the set of the first place marked by the jth tag is determined to be A. kj ; In step 305, the set A of N1 labels is kj Merge to generate set A i , where i is a natural number; In step 306, when set A kj The number of first places in set A is less than i The number of first places in the set A i The number of first places in the set is not equal to that of the set A i-1 When the number of the first place in the set A i exists in the set A kj The first library that does not exist in the SCD is used as the receiving end, and the path of the optical circuit sending end contains the jth tag as the fifth search condition, searching the optical circuit according to the SCD file, and setting k=k+1; In step 307, when there is an optical circuit that meets the fifth search condition, the transmitting end devices of the optical circuit that meets the fifth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)j If the light circuit of each newly added first place satisfies the fifth search condition, it is added to the Petri network as a first light circuit transition, and i=i+1, and the process returns to step 305. If there is no light circuit that satisfies the fifth search condition, the set of the first place marked by the jth tag is determined to be A. kj ; In step 308, when set A i The number of first places in the set A is equal to i-1 When the number of the first place in the library is reached, the search light circuit is stopped; Adding at least one electrical circuit transition to the first place of each marked first optical circuit transition start point, and adding at least one second place to the electrical circuit transition start point, wherein the first optical circuit transition start point is the sending end of the first optical circuit transition farthest from the first first place in the Petri network, and the electrical circuit transition start point is the other end of the electrical circuit transition opposite to the first optical circuit transition start point; The Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions and second locations is used as an alarm tracing path corresponding to the alarm information of the relay protection alarm device.
2. The method according to claim 1, characterized in that Generating at least one tag corresponding to the Petri network of the alarm tracing path according to the alarm information, including: Determine the corresponding alarm rule according to the alarm information; Determining the type of abnormal information involved in the alarm information according to the alarm rule; Determine the corresponding logical node description according to the abnormal information type; The logical node description is used as a marker of the proposed alarm tracing Petri network.
3. The method according to claim 1, characterized in that The method of adding at least one electrical circuit transition to a first place at the start of each marked first optical circuit transition and adding at least one second place at the start of the electrical circuit transition comprises: For the jth marker, determine the second place corresponding to the marker according to the marker and the set electrical circuit traceability relationship table, wherein the electrical circuit traceability relationship table is used to mark the one-to-one correspondence between the marker and the second place in the Petri network; The electrical loop from the second location to the first location at which the first optical loop transition starts is added to the Petri network as an electrical loop transition.
4. The method according to claim 1, wherein The method further includes adding at least one electrical circuit transition to the first place at the starting point of each marked first optical circuit transition and adding at least one second place at the starting point of the electrical circuit transition: In step 501, for the jth tag, the sending end is set A. kj For each first library in the optical circuit receiving end, the Path path includes the tag as a third search condition, and the optical circuit is searched according to the SCD file; In step 502, when there is a light loop that satisfies the third search condition, the receiving end device of the light loop that satisfies the third search condition is set as a newly added third place, and the light loop from each first place that satisfies the third search condition to each newly added third place is added to the Petri network as a second light loop transition, and the set of the newly added third places with the jth label is recorded as A. mj When there is no optical circuit that meets the third search condition, the set A of the third place of the jth tag is recorded mj is empty, where m is a natural number and m is greater than k; In step 503, when set A mj When it is not empty, the sender is set A mj For each newly added third place in the optical circuit receiving end, the path path of the optical circuit receiving end includes the tag as the sixth search condition, and the optical circuit is searched according to the SCD file, and m=m+1; In step 504, when there is an optical circuit that meets the sixth search condition, the receiving end devices of the optical circuit that meets the sixth search condition are set A. mj The newly added third place will collect A (m-1)j Each newly added third place that meets the sixth search condition in the set A mj After each newly added lightloop of the third place is added to the Petri network as a second lightloop transition, the process returns to step 503. When there is no lightloop that meets the sixth search condition, the set of the jth marked third place is determined to be A. mj ; Correspondingly, the Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, including: The Petri network generated according to the first optical circuit transition, the first library, the electrical circuit transition and the second library of all the marks is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, and the third library of all the marks is used as the homologous device of the relay protection alarm device.
5. The method according to claim 4, characterized in that The method further comprises: Retrieving the primary device of the relay protection alarm device; Retrieving the relay protection device corresponding to the relay protection alarm device according to the correspondence between the primary device and the secondary device; Correspondingly, the Petri network generated according to all marked first optical circuit transitions, first locations, electrical circuit transitions, and second locations is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, including: The Petri network generated according to the first optical circuit transition, the first library, the electrical circuit transition and the second library of all the marks is used as the alarm tracing path corresponding to the alarm information of the relay protection alarm device, the third library of all the marks is used as the homologous device of the relay protection alarm device, and the relay protection device is used as the mutual backup device of the relay protection alarm device.
6. An alarm tracing device for relay protection defect diagnosis, characterized in that: The device comprises: Data acquisition module, used to obtain the SCD file of the substation and the alarm information of the relay protection alarm equipment; A network building module, configured to generate at least one tag corresponding to a Petri network of alarm tracing according to the alarm information, and use the relay protection alarm device as the first first place of the Petri network; The first retrieval module is configured to retrieve, for each tag, optical circuit transitions from a first first library location according to the SCD file, and obtain at least one first optical circuit transition and at least two first libraries corresponding to each tag, including: In step 301, for the jth tag, the first first place is used as the receiving end, and the path of the light circuit sending end contains the tag as the first search condition, and the light circuit is searched according to the SCD file, where 1≤j≤N1, N1 is the total number of tags in the Petri network; In step 302, when a light loop that satisfies the first search condition exists, the sending end device of the light loop that satisfies the first search condition is set as the newly added first place, and the light loop from each newly added first place to the first first place is added to the Petri network as the first light loop transition, and the set of the j-th marked first first place and the newly added first place is denoted as A. kj When there is no optical circuit that meets the first search condition, the set A of the first place of the jth tag is recorded kj is empty, where k is a natural number; In step 303, when set A kj When it is not empty, the set A kj Each newly added first library is a receiving end, and the path of the optical circuit sending end contains the tag as the fourth search condition, continue to search the optical circuit according to the SCD file, and set k=k+1; In step 304, when there is an optical circuit that meets the fourth search condition, the transmitting end devices of the optical circuit that meets the fourth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)j After the light circuit of each newly added first place meets the fourth search condition, it is added to the Petri network as the first light circuit transition, and the process returns to step 303. When there is no light circuit meeting the fourth search condition, the set of the first place marked by the jth tag is determined to be A. kj ; In step 305, the set A of N1 labels is kj Merge to generate set A i , where i is a natural number; In step 306, when set A kj The number of first places in set A is less than i The number of first places in the set A i The number of first places in the set is not equal to that of the set A i-1 When the number of the first place in the set A i exists in the set A kj The first library that does not exist in the SCD is used as the receiving end, and the path of the optical circuit sending end contains the jth tag as the fifth search condition, searching the optical circuit according to the SCD file, and setting k=k+1; In step 307, when there is an optical circuit that meets the fifth search condition, the transmitting end devices of the optical circuit that meets the fifth search condition are set A. kj The first newly added place in the set A kj Each new first place added to set A (k-1)j If the light circuit of each newly added first place satisfies the fifth search condition, it is added to the Petri network as a first light circuit transition, and i=i+1, and the process returns to step 305. If there is no light circuit that satisfies the fifth search condition, the set of the first place marked by the jth tag is determined to be A. kj ; In step 308, when set A i The number of first places in the set A is equal to i-1 When the number of the first place in the library is reached, the search light circuit is stopped; a second retrieval module configured to add at least one electrical circuit transition to a first place at the start of each marked first optical circuit transition, and to add at least one second place at the start of the electrical circuit transition, wherein the start of the first optical circuit transition is the sending end of the first optical circuit transition farthest from the first first place, and the start of the electrical circuit transition is the other end of the electrical circuit transition opposite to the start of the first optical circuit transition; The result output module is used to use the Petri network generated according to all the marked first optical circuit transitions, first locations, electrical circuit transitions and second locations as the alarm tracing path corresponding to the alarm information of the relay protection alarm device.
7. The device according to claim 6, characterized in that The network building module generates at least one tag corresponding to the Petri network of alarm tracing according to the alarm information, including: Determine the corresponding alarm rule according to the alarm information; Determining the type of abnormal information involved in the alarm information according to the alarm rule; Determine the corresponding logical node description according to the abnormal information type; The logical node description is used as a marker of the proposed alarm tracing Petri network.
8. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 5.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent substation fault diagnosis method combining topology and relay protection logic
CN103020713A
Substation fault automatic diagnosis method and substation fault automatic diagnosis system based on Petri net
CN109218094A