Method for adaptively generating SCD (Substation Configuration Description) template
By analyzing the information in the SCD file and the device association table, the verification template is dynamically generated, which solves the problem of insufficient reusability of the verification template in the existing technology, and realizes flexible adaptation to different operating modes and topological structures of the substation, improving the reusability of the verification tool and the correctness of the verification results.
Patent Information
- Application Number
- CN202411702070.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-05-27
AI Technical Summary
The existing SCD file automatic verification technology is difficult to accurately instantiate the verification template that meets the actual operation of the substation. Especially when there is no direct correlation between the intervals in the primary topology structure, the verification template is not reusable enough and cannot flexibly adapt to special wiring methods and new wiring methods.
By analyzing the SCD file of the substation, obtaining the device IDE node and SSD node in the virtual loop, obtaining relevant information between devices, such as operation mode, interval type and correlation distance, comparing this information with the data in the device association table, and dynamically generate a verification template to adapt to different operation modes and topological structures.
It realizes that when the substation's operating mode or topology changes, it automatically generates highly adaptable verification templates, improving the reusability of the verification tool and the correctness of the verification results.
Smart Images

Figure CN120046591A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of virtual terminal loop verification of SCD files in intelligent substations, and particularly relates to a method for adaptively generating an SCD verification template. Background Art
[0002] With the continuous advancement of the new intelligent power grid, intelligent substations with SCD configuration files as the core are widely used. The correctness of traditional SCD configuration files can only be guaranteed by manual review. As the complexity of the configuration files increases, the problems of low manual review efficiency and high error rate become increasingly prominent. In recent years, the automatic verification technology of SCD files has developed rapidly. However, existing automatic verification technology solutions for SCD files are all based on a preset verification template library to instantiate a verification template that conforms to the actual operation of the substation for string matching. How to accurately instantiate an SCD file verification template that conforms to the actual operation of the substation is a difficult problem faced by verification tools.
[0003] When studying the scheme for instantiating the SCD verification template in the previous verification template library, it is usually to automatically calculate and verify the template according to the wiring method or to calculate in combination with the interval association relationship of the actual primary topology structure of the substation. In the above schemes, the primary intervals with direct association relationships in the primary topology structure are used to calculate the verification template, or the program presets and solidifies the instantiation of a general verification template under a specific wiring method, which can correctly verify problems such as "pulling the wrong interval" in the secondary virtual loop (that is, incorrect configuration of the virtual loop connection between two secondary devices that should not generate a virtual loop). However, the scheme of calculating the verification template by using the interval association relationship of the primary topology structure is difficult to handle the situation where there is no direct association relationship between primary intervals, such as the verification template instantiation for the remaining situations where there is no direct connection relationship between the main transformer interval and the bus interval, the main transformer interval and the bus coupler, the bus sectionalizer interval, the middle switch and the side switch, etc. in the primary topology structure. And the scheme of solidifying and instantiating the verification template by presetting a specific wiring method in the verification tool program cannot be flexibly compatible with the actual operation situation on site, such as special wiring. When a new wiring method or special wiring structure appears in the future when the secondary circuit of the substation can be improved, the reusability of the verification programs of the existing above schemes is insufficient and there are drawbacks.
[0004] Therefore, there is an urgent need for a method that can be flexibly configured to map the actual substation operation status, and the file guarantee calculation and verification template library instantiates the correct verification template for the substation operation status without affecting the existing verification algorithm and other links. The method is described as a configurable interval correlation method (the so-called interval correlation: under a certain operation condition, there is an XX virtual circuit connection between device A and device B, and the primary intervals corresponding to the two devices can be considered to be related). During the instantiation process, the verification template library specifically instantiates the virtual circuit verification templates of the two devices according to the interval correlation (for example: if the special wiring XX circuit does not exist, there is no correlation between the intervals corresponding to the two devices, and the verification template should not be instantiated, otherwise it should be mapped) to meet the verification template library for all wiring forms, special wiring circuits, etc. to complete the verification rule instantiation verification template process, and improve the reusability of the verification tool.
[0005] For example, a method and system for troubleshooting SCD files of substations based on rule base configuration is disclosed on the China Patent Network, and its application number is CN202311477215.8. In this patent, all connection relationships under a certain wiring method are fixed at the beginning of the design through program solidification. However, if the wiring method of the substation changes or a new wiring method or operating method emerges, the program needs to be redesigned, and the reusability is not high. Summary of the invention
[0006] The purpose of the present invention is to generate a verification template according to a substation in different operating modes, so that the verification template generated by the method can adapt to substations in more operating modes.
[0007] Another object of the present invention is to solve the problem of inaccurate instance verification templates of the verification template library calculated for different wiring forms and different circuit structures in the virtual circuit verification link, and to provide a configurable, highly adaptable method for accurately calculating interval correlation to meet the correct instance verification template of the verification template library.
[0008] In order to achieve the above object, the technical solution adopted by the present invention is: S1: parse the substation SCD file to obtain the virtual circuit, and obtain the IDE node and SSD node of the device; S2: obtain the relevant information between the devices based on the IDE node and the SSD node, and the relevant information includes: operation mode and the interval type of the local end and the interval type of the opposite end and the association distance of the opposite end; S3: compare the relevant information between the devices with the device association table, and output the verification template between the devices in the virtual circuit rule template general table according to the comparison result.
[0009] Preferably, in step S3, in the two devices of the virtual circuit, if there is a virtual circuit in the virtual circuit rule template general table that satisfies the relevant information between the devices, a verification template is generated between the two devices; if there is no virtual circuit in the virtual circuit rule template general table that satisfies the relevant information between the two devices, no verification template is generated between the two devices.
[0010] Preferably, in step S2, the method for calculating the peer interval correlation distance is as follows: In the two devices of the virtual circuit, search for all peer devices that have a direct physical correlation with the corresponding intervals of the two devices. Among the peer devices, find the peer devices that have a direct physical correlation and have not been searched until all devices in the virtual circuit have been searched, and obtain the correlation relationship between the devices; Calculate the correlation distance between the two device nodes according to the correlation relationship between the devices.
[0011] Preferably, if the topological structure or operation mode of the substation changes, the device association table will also change.
[0012] Preferably, the information in the device association table includes: the operation mode, the local device interval, the peer device interval, and the peer correlation distance.
[0013] Preferably, the correlation distance calculation method is as follows: Obtain the virtual circuit topological structure between two devices, and calculate the minimum correlation distance between the two devices according to the virtual circuit topological structure between the two devices.
[0014] Preferably, in step S3, if two devices are in the same interval, a verification template is automatically generated between the two devices.
[0015] Preferably, in step S3, first compare the local interval, the peer interval, and the operation mode of the IED node with the device association table. If the comparison results are consistent, compare the correlation distance calculated by the SSD node with the correlation distance in the device association table; if the comparison results are inconsistent, end the generation of the verification template.
[0016] Preferably, if the intervals where the devices are located are linearly connected, the calculation method of the correlation distance is as follows: If in a certain route, there are a certain number and different intervals between two devices with different intervals, the correlation distance between the two devices is the number of intervals between the two devices plus one; if two devices are in the same interval, the correlation distance between the two devices is zero.
[0017] Preferably, the correlation distances between several different devices in one interval and several different devices in another interval are equal.
[0018] The beneficial effects of the present invention are as follows: The device association table can be changed according to the changes in the operation mode and topological structure of the substation. The SCD configuration file of the substation after the change and the device association table are used to automatically generate a verification template for the virtual circuit, so that this method can adapt to substations with more operation modes while ensuring the correctness of the verification template. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is the overall flow chart of the present invention.
[0020] Figure 2 It is the flow chart of comparison between two nodes of the present invention.
[0021] Figure 3 It is a schematic diagram of the linear connection between two devices.
[0022] Figure 4 It is the topological graph of a certain virtual circuit. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] In some embodiments, this embodiment discloses the overall implementation process, and the overall process of generating the verification template is as follows.
[0024] S1: Parse the substation SCD file to obtain the virtual circuit, and obtain the IDE nodes and SSD nodes of the devices.
[0025] S2: Obtain the relevant information between the devices according to the IDE nodes and the SSD nodes. The relevant information includes: operation mode, local interval type, remote interval type, and remote association distance.
[0026] S3: Compare the relevant information between the devices with the device association table, and output the verification template between the devices according to the comparison result.
[0027] It should be noted that in step S1, the IDE nodes and SSD nodes in the virtual circuit obtained by parsing the SCD configuration file, where the IDE nodes include the local intervals, remote intervals, and operation modes of each device, and the information contained in the SSD nodes is the connection relationship between each node.
[0028] On this basis, in step S2, obtain the information of the local intervals, remote intervals, and operation modes of two devices in the IDE nodes, and obtain the virtual circuit topological relationship between the two devices according to the connection relationship of each node of the obtained SSD nodes. On the basis of its topological relationship, calculate the association distance between the two devices.
[0029] On this basis, in step S3, In some embodiments, this embodiment discloses a process for generating an SCD verification template between two devices. As shown in the flowchart of the present invention for generating an SCD verification template Figure 2 shown, there are device A and device B. It is necessary to determine whether it is necessary to instantiate the verification template between device A and device B when generating the SCD verification template.
[0030] Parse the SCD configuration file to obtain the IED nodes and SSD nodes corresponding to the two nodes, that is, obtain the IED nodes and SSD nodes corresponding to device A; obtain the IED nodes and SSD nodes corresponding to device B.
[0031] Among them, the IED nodes of device A and device B contain the local interval information, the remote interval information of device A and device B, and the operation mode of device A and device B. Here, it should be noted that the operation mode can also be called the wiring mode or the operation structure. The operation mode is the actual operation form of the substation and can represent the operation framework of the substation. All devices operate under this framework, and it can also be called the operation structure or the wiring mode.
[0032] Here, it should be further noted that the device action logic, the physical connection relationship with other devices, the loop structure, and the functions under different operation modes are all different. Therefore, it is necessary to specify the operation mode in which the device operates.
[0033] After obtaining the local interval information, the remote interval information, and the relevant information of the operation mode of devices A and B according to the IED nodes, obtain the device association table from the total table of virtual loop rule templates. According to the information of devices A and B in the device association table, the information in the device association table includes: local interval information, remote interval information, remote association distance, and operation mode. At this time, it is necessary to compare the local interval information, the remote interval information, and the operation mode of device A and device B with the local interval information, the remote interval information, and the operation mode of device A and device B in the device association table. If, in the IED nodes, the relevant information of the local interval information, the remote interval information, and the operation mode of device A and device B is consistent with the relevant information of the local interval information, the remote interval information, and the operation mode of device A and device B in the device association table, then further compare whether the association distance between device A and device B is consistent with that in the configuration file.
[0034] If the comparison result is inconsistent, then when generating the SCD virtual loop verification template, it is not necessary to instantiate the verification template between device A and device B, that is, no verification template is generated between device A and device B. The following is illustrated by an example.
[0035] For example: In the IED node, the bay to which device A belongs is the side switch; the bay layer to which device B belongs is the middle switch; the operating mode (wiring mode) of device A is 3 / 2 wiring; the operating mode (wiring mode) of device B is 3 / 2 wiring; device A has four peer devices, and the bays of the four peer devices are respectively: middle switch, line, main transformer high voltage, and busbar, and the associated distances of the four peer devices are respectively: 2, 1, 1, 1; device B has four peer devices, and the bays of the four peer devices are respectively: side switch, line, main transformer high voltage, and busbar, and the associated distances of the four peer devices are respectively: 2, 1, 1, 1.
[0036] If in the device association table, there is a virtual loop in the device association table that satisfies the relevant information of the local bay, peer bay, peer related distance, and operating mode of device A and device B, then the relevant information of the local bay, peer bay, and operating mode of device A and device B is consistent with the device association table, and then compare the association depth between device A and device B. The discrimination process is as follows.
[0037] If there is a virtual loop in the device association table that satisfies the association distance between the bay side switch and the bay middle switch is 2, then there is a virtual loop in the device association table that satisfies the bay information, association depth, and operating mode between device A and device B. Therefore, when generating the SCD virtual loop verification template, it is necessary to extract all the rules related to device A and device B from the total virtual loop verification template table as the verification template between the two devices and output them to the total virtual loop rule template table.
[0038] If there is no virtual loop in the device association table that satisfies the association depth between device A and device B is 2, then there is no need to generate a verification template between the two devices, that is, no verification template is generated between device A and device B.
[0039] If in the total virtual loop rule template table, there is no virtual loop that satisfies the local bay information, peer bay information, and operating mode between device A and device B, then end the process of the virtual loop verification template between device A and device B, no verification template is generated between device A and device B, and no further comparison of the association distance is performed.
[0040] By comparing the SCD file with the device association table, when generating the SCD virtual loop verification template, it is possible to determine which devices need to generate verification templates and which devices do not need to generate verification templates, which can improve the correctness of the verification results in the substation verification.
[0041] In some embodiments, this embodiment discloses how to compare the node and device association table in a substation. In a certain operation mode, if there are devices A, B, C, and D in a virtual circuit in the SCD; after parsing the SCD file, it is obtained that the bay type of device A is a side switch, and the opposite bays are the middle switch, line, main transformer high-voltage side, and bus, and the associated distances are 2, 1, 1, and 1 respectively; the bay type of device B is a middle switch, and the opposite bays are the side switch, line, and main transformer high-voltage side; the bay of device C is a side switch, and the opposite bays are the middle switch, line, main transformer high-voltage side, and bus, and the associated distances are 2, 1, 1, and 1 respectively; the bay of device D is a bus, and the opposite bays are the side switch, middle switch, line, and main transformer high-voltage side, and the associated distances are 1, 1, 2, and 2; the operation mode is all 3 / 2 wiring.
[0042] It should also be noted that the device association table is an XML table, where BayWiring represents the operation mode (wiring mode); esp:type is the local bay; Relevant eps:type represents the opposite bay; distance represents the associated distance between the local bay and the opposite bay, and the device association table is as follows.
[0043] <BayWiring name="3 / 2 wiring"> <Bay wiring="3 / 2 wiring"eps:type="side switch”> <Relevant eps:type="middle switch"distance="2" / > <Relevant eps:type="line"distance="1" / > <Relevant eps:type="main transformer high-voltage side"distance="1" / > <Relevant eps:type="bus"distance="1" / > <Bay wiring="3 / 2 wiring"eps:type="middle switch"> <Relevant eps:type="side switch"distance="2" / > <Relevant eps:type="line"distance="1" / > <Relevant eps:type="main transformer high-voltage side"distance="1" / > <Relevant eps:type="bus"distance="1" / > 。
[0044] In this embodiment, the operation mode of the device association table is 3 / 2 wiring. The esp:type value of the device association table is the side switch, and the Relevant eps:type values are the middle switch, line, main transformer high voltage side, and busbar, and the distance values are 2, 1, 1, 2 respectively; the esp:type value of the device association table is the middle switch, and the Relevat eps:type values are the side switch, line, main transformer high voltage side, and busbar, and the distance values are 2, 1, 1, 2 respectively; the esp:type value of the device association table is the busbar, and the Relevat eps:type values are the side switch, middle switch, line, and main transformer high voltage side, and the distance values are 2, 2, 1, 1 respectively.
[0045] According to the above device association table, if it is necessary to determine whether a virtual loop check template needs to be generated between device A and device B, first compare the local interval, remote interval, and operation mode of device A and device B. The interval of device A is the side switch. In the 3 / 2 wiring mode of the device association table, the remote intervals of the side switch are the middle switch, line, main transformer high voltage side, and busbar, which are consistent with the remote interval and wiring mode of device A parsed by the SCD; device B is the middle switch. In the 3 / 2 wiring mode of the device association table, the remote intervals of the middle switch are the side switch, line, main transformer high voltage side, and busbar, which are consistent with the remote interval and wiring mode of device B parsed by the SCD; therefore, it is necessary to further compare the association distance between device A and device B.
[0046] For the side switch interval of device A and the middle switch interval of device B, in the information parsed by the SCD, the association distance between the two intervals is 2. At this time, in the device association table, it is necessary to find a virtual loop that satisfies the association distance between the side switch interval and the middle switch interval being 2. From the above device association table information, it can be seen that in the element with the esp:type value of the side switch, the distance value corresponding to the Relevant eps:type value of the middle switch is 2; in the element with the esp:type value of the middle switch, the distance value corresponding to the Relevant eps:type value of the side switch is 2. Therefore, there is a virtual loop in the device association table that satisfies the association distance between device A and device B being 2. Therefore, when generating the SCD check template, it is necessary to generate a check template between device A and device B and output it to the virtual loop rule template master table.
[0047] Similarly, since Device C and Device A are in the same side-switch interval, the associated distance between Device B's interval and Device C's interval is also 2. Moreover, the opposite interval of Device C's interval is consistent with the opposite interval of the side-switch interval in the device association table. That is, among the elements with esp:type value being side-switch, the corresponding Relevant eps:type values are middle-switch, line, main transformer high-voltage side, and bus, which are consistent with the opposite interval of Device C parsed from the SCD. Therefore, when generating the SCD virtual circuit verification template, a verification template needs to be generated between Device B and Device C.
[0048] If it is necessary to determine whether a virtual circuit verification template needs to be generated between Device A and Device D, first compare the local interval, opposite interval, and operation mode of Device A and Device B. The interval of Device A is a side-switch. In the 3 / 2 wiring mode of the device association table, the opposite intervals of the side-switch are middle-switch, line, main transformer high-voltage side, and bus, which are consistent with the opposite interval of Device A parsed from the SCD and the wiring mode. The interval of Device D is a side-switch. In the 3 / 2 wiring mode of the device association table, the opposite intervals of the side-switch are side-switch, middle-switch, line, and main transformer high-voltage side, which are consistent with the opposite interval of Device D parsed from the SCD and the wiring mode. Therefore, it is necessary to further compare the associated distance between Device A and Device D.
[0049] For the side-switch of Device A's interval and the middle-switch of Device B's interval, in the information parsed from the SCD, the associated distance between the two intervals is 2. In the device association table, among the elements with eps:type value being side-switch, the distance value corresponding to the Relevant eps:type value being bus is 2, and among the elements with eps:type value being bus, the distance value corresponding to the Relevant eps:type value being side-switch is 2. In the information parsed from the SCD, the associated distance between Device A's interval and Device D's interval is 1. Therefore, in the device association table, there is no virtual circuit that satisfies the condition that the associated distance between Device A's interval and Device D's interval is 1. Therefore, when generating the SCD virtual circuit verification template, no verification template is generated between Device A and Device D, that is, no verification template is generated between Device A and Device D.
[0050] Similarly, since the intervals where Device C and Device A are located are the same, the opposite intervals of Device C and Device A are the same. Therefore, if a verification template between Device C and Device D is to be generated, the operating mode of Device C is the 3 / 2 wiring mode, and the interval is the side switch. Therefore, in the 3 / 2 wiring mode, the opposite end of the interval where Device C is located is consistent with the device association table. So, the local interval, opposite interval, and operating mode of Device C and Device D are consistent with the device association table. The associated distance between the side switch interval and the bus interval in the device association table is 2, while in the information parsed from the SCD, the associated distance between Device C and Device D is 1. And in the device association table, there is no virtual loop, satisfying that the associated distance between Device C and Device D is 1. Therefore, when generating the SCD virtual loop verification template, no verification template is generated between Device C and Device D.
[0051] Since Device A and Device C are in the same side switch interval, there is no need to compare the SCD configuration file with the device association table between Device A and Device C, and the verification template between Device A and Device C is automatically generated.
[0052] Therefore, among Device A, Device B, Device C, and Device D in this virtual loop, a verification template is generated between Device A and Device C; a verification template is generated between Device B and Device A; a verification template is generated between Device B and Device C.
[0053] In this way, according to the actual situation of the substation (device association table), it can be judged which devices need to generate verification templates and which devices do not need to generate verification templates among the devices of the virtual loop in a certain operating mode in the SCD configuration file. This can ensure the correctness of generating the virtual loop verification template and can also optimize the unnecessary virtual loop verification templates when generating the virtual loop verification template, improving the efficiency of substation verification.
[0054] The calculation of the associated distance between devices is also an important technical solution of the present invention. In an actually operating substation, there are many devices, and the virtual loop topology structure in the SCD configuration file is relatively complex. Therefore, in the present invention, the devices are abstracted to the upper layer of the substation structure according to the functions of the devices, that is, the intervals where the devices are located. The associated distance between the intervals is calculated by calculating the intervals where the devices are located, and the associated distance between the intervals is also the associated distance between the devices.
[0055] The calculation method of the associated distance between devices is illustrated by embodiments.
[0056] In some embodiments, this embodiment discloses the calculation of the association distance between devices. In this embodiment, there are device A and device B. The intervals where device A and device B are located are A interval and B interval respectively. There are two devices between A interval and B interval, namely device C and device D. And the intervals corresponding to device C and device D are C interval and D interval respectively. And the connection manners of A interval, B interval, C interval and D interval are as Figure 4 shown, which is a linear connection.
[0057] If C interval and D interval are different and also different from A interval and B interval, then there are two different intervals between A interval and B interval. So the association distance between device A and device B is 3; A interval and C interval are directly connected, and the distance from device C to device A is 1; D interval and A interval are directly connected, and the distance from device D to device A is 2.
[0058] If C interval is the same as A interval; B interval, A interval and D interval are different from each other. The intervals between device A and device C are the same. Therefore, the association distance between device A and device C is 0; A interval and D interval are connected. Because the intervals where device A and device D are located are directly connected, the association distance between device A and device D is 1; There is an interval D between A interval and B interval. So the association distance between device A and device B is 2.
[0059] If D interval is the same as A interval, C interval, A interval and B interval are different from each other. A interval and C interval are directly connected. Therefore, the distance between A interval and C interval is 1; The intervals between device A and device D are the same. Therefore, the association distance between device A and device D is 0; There is an interval between A interval and B interval. Therefore, the association distance between device A and device B is 2.
[0060] And what the above embodiments want to illustrate is that if two devices are in different intervals, and there is a certain number of intervals between the two intervals, and these intervals are different from the two intervals, then the association distance between the two intervals is the number of different intervals between the two intervals plus one, and the connection manner between the two intervals and the intervals between the two intervals is similar to Figure 3 , which is a linear connection.
[0061] However, in actual substation deployments, the connection manner between two devices is very likely not to be in the Figure 3 shown connection manner, but a more complex loop manner, such as Figure 4As shown, when the intervals between two devices are different, there will be multiple associated distances between the two devices. Therefore, in the case where there are multiple associated distances between two devices, the minimum associated distance is taken as the associated distance between the two devices. This will be illustrated by examples below.
[0062] In some embodiments, this embodiment discloses a calculation method for the associated distance between two devices in the case where the virtual loop topology between the two devices is relatively complex, as Figure 4 shown in the virtual loop topology structure between Device A and Device B. If the associated distance between Device A and Device B is required, two sets need to be set. One set is an empty set, and the other set is all the devices in this virtual loop.
[0063] It should also be further explained about the devices in the figure that in the virtual loop in the figure, there are a total of 7 intervals. Among them, Device A belongs to Interval A; Device B belongs to Interval B; Device 1 belongs to Interval C; Device 2 belongs to Interval D; Device 3 belongs to Interval E; Device 4 belongs to Interval E; Device 6 belongs to Interval A; Device 5 belongs to Interval F; Device 7 belongs to Interval G.
[0064] For the convenience of describing the calculation method of the minimum associated distance, the empty set is named S1, which contains Figure 4 the set containing all the devices in the virtual loop is named S2.
[0065] Starting from Device A, traverse each vertex to find the vertex closest to Device A. Since Device A is closest to itself because it is the same device in the same interval and the distance is 0, Device A is selected from set S2 and stored in set S1. Set S1 = {Device A}; S2 = {Device B, Device 1, Device 2, Device 3, Device 4, Device 5, Device 6, Device 7}; Update the devices adjacent to Device A. Device 1 and Device 4 are adjacent to Device A; The associated distance from Device A to Device A is 0; The distance information is: The associated distance from Device A to Device 1 and Device 4 is 1, and the distance from Device A to other devices is positive infinity.
[0066] It should also be noted that if the associated distances of two devices to the starting point are the same, then select the node with the largest degree of the device. If the degrees of the two devices are the same, then select the device with the largest ID. The degree of a device is defined as the number of lines connected to this node; The meaning of positive infinity in distance is that Device A cannot reach this device.
[0067] For example, in Figure 4 the degree of Device A is 2 because Device A has two lines connected.
[0068] Continue to select the device in set S2 that has the closest association distance to device A and has a connection relationship with set S1. Since the association distances between both device 1 and device 4 and device A are 1, and the degrees of device 1 node and device 4 node are the same, at this time, select the device with the largest device ID, select device 4, and update the devices connected to device 4, that is, update device 3 and device 5. After the update, the association distance from device A to device 3 is 1 because the interval between device 3 and device 4 is the same; the association distance from device A to device 5 is 2 because there is one interval between device A and device 5; set S1 = {device A, device 4}; set S2 = {device B, device 1, device 2, device 3, device 5, device 6, device 7}; the distance information is: the minimum association distances from device A to device 1, device 4, device 3, and device 5 are 1, 1, 1, and 2 respectively; the minimum association distance from device A to other devices is positive infinity.
[0069] Continue to select the device in set S2 that has the closest association distance to device A and has a connection relationship with set S1. Since in the above distance information, the association distance between device 1 and device A is the shortest, with an association distance of 1, select the device 1 node from set S2 into set S1, S1 = {device A, device 4, device 1}; set S2 = {device B, device 2, device 3, device 5, device 6, device 7}, and update the adjacency relationship of device 1 node. The devices adjacent to device 1 node are device 2 node and device 3 node. The distance information is that the minimum association distances from device A to device 1, device 4, device 3, device 5, and device 2 are 1, 1, 1, 1, 2, and 2 respectively; the minimum association distance from device A to other devices is positive infinity.
[0070] Continue to select the device in set S2 that has the closest association distance to device A and has a connection relationship with set S1. In the above distance information, the association distance between device 3 and device A is the smallest, with an association distance of 1. Select the device 3 node from set S2 into set S1, S1 = {device A, device 4, device 1, device 3}; set S2 = {device B, device 2, device 5, device 6, device 7}, and update the adjacency relationship of device 3 node. The nodes connected to device 3 are device 4, device 2, and device 6, and device 6 is the latest device. The distance information is that the minimum association distances from device A to device 1, device 4, device 3, device 5, device 2, and device 6 are 1, 1, 1, 1, 1, and 0 respectively; the association distance from device A to other devices is positive infinity.
[0071] Continue to select the device with the closest associated distance to device A in set S2. Among the above distance information, the associated distances between device 2 and device 5 and device A are the smallest, and their associated distance is 2. The degree of device 5 node is 3, and the degree of device 2 node is 3. Since the degrees of the nodes are the same, select the device 5 node from set S2 into set S1. S1 = {device A, device 4, device 1, device 3, device 5}; set S2 = {device B, device 2, device 6, device 7}, and update the adjacency relationship of device 5 node. The devices connected to device 3 are device 4, device 5, device 6, and device 7; and device 7 is the latest node. The distance information is that the minimum associated distances from device A to device 1, device 4, device 3, device 5, device 2, device 6, and device 7 are 1, 1, 1, 1, 1, 0, and 2 respectively; the distance from device A to other devices is positive infinity.
[0072] Continue to select the device with the closest associated distance to device A in set S2 until set S2 is an empty set. Continue to execute the above steps, and the distance information can be obtained that the minimum associated distances from device A to device 1, device 4, device 3, device 5, device 2, device 6, device 7, and device B are: 1, 1, 1, 1, 1, 1, 2, and 1 respectively; therefore, the minimum associated distances between device A and each device in the entire virtual loop can be obtained. So the minimum associated distance between device A and device B is 1. Therefore, under this virtual loop topology structure, the minimum associated distance between device A and device B is 1.
[0073] It should also be noted that since the section where device 6 is located is the same as that of device A, the associated distances from each device to device A can also be equivalent to the distances to device 6.
[0074] The above calculation of the associated distances between device A and each device is carried out under the condition of obtaining the virtual loop topology structure between device A and device B.
[0075] And how to obtain the topology structure of the virtual loop between two devices is also a relatively important technical feature of the present invention.
[0076] When obtaining the virtual loop between two devices, first obtain the devices directly connected to the two devices and the sections where these devices are located. Among these devices directly connected to the two devices, continue to search for the devices directly connected to these devices and the sections where these devices are located, and repeat this step until all the devices in the virtual loop are searched.
[0077] The following is an embodiment to illustrate how to obtain the topology structure between two devices according to the above method.
[0078] In some embodiments, this embodiment discloses how to obtain the virtual loop topology between two devices. Still taking Figure 4 as an example, the device-related information in Figure 4 has been described in the previous embodiment and will not be elaborated here.
[0079] Start searching from device A. The devices adjacent to device A are device 1 and device 2. After searching for device 1 and device 2, obtain the intervals where device 1 and device 2 are located.
[0080] Search for the devices directly connected to device 1 and device 2. The devices directly connected to device 1 and not yet searched are device 2 and device 3. Search for device 2 and device 3. The device directly connected to device 1 and not yet searched is device 5. Search for device 5. Therefore, continue to search for the adjacency relationships of device 2, device 3, and device 5.
[0081] Search for the devices directly connected to device 2, device 3, and device 5. The device directly connected to device 2 and not yet searched is device 6. Search for device 6. There is no device directly connected to device 3 and not yet searched. The device directly connected to device 5 and not yet searched is device 7. Search for device 7. Therefore, continue to find the adjacency relationships of device 6 and device 7.
[0082] Search for the devices directly connected to device 6 and device 7. The device directly connected to device 6 and not yet searched is device B. Search for device B. There is no device directly connected to device 7 and not yet searched. Therefore, the entire virtual loop search is completed, and the connection relationships of each node are obtained. Then, calculate the correlation distance between the two devices according to the method in the previous embodiment, which will not be elaborated here.
[0083] The obvious advantage of the technical solution involved in the present invention compared with the prior art is that the device association table can change according to the changes in the substation operation mode and topology structure. The changed device association table is compared with the SCD configuration file to generate an SCD virtual loop verification template, so that the verification template can better verify the changed substation. This will be illustrated through embodiments below.
[0084] In some embodiments, this embodiment discloses how to generate a verification template after the operation mode or topology relationship of the substation changes. Still taking Figure 4 the virtual loop topology relationship and interval type as an example, Figure 4The operating mode corresponding to the virtual circuit is 3 / 2 wiring. Before the operating mode or topological relationship of the substation changes, the relevant value of the device association table is that the value of BayWiring is 3 / 2 wiring; specifically, for the esp:type value of A interval, the corresponding opposite intervals are B interval, C interval, D interval, E interval, F interval, and G interval, and their associated distances are 1, 1, 1, 1, 1, and 2 respectively; the same is true for the esp:type values of B interval, C interval, D interval, E interval, F interval, and G interval, which will not be elaborated here.
[0085] If the operating mode and topological structure of the substation change, and the operating mode is relatively special and not common in the existing operating mode, at this time, configure the device association table to add the form with the BayWiring value being this special wiring mode, and the intervals of A device, device 1, and device 4 change and all become B interval; while the intervals of device 3, device 5, and device 2 change and become interval D; the intervals of device 5, device 6, and device 7 change and become E interval; and B device becomes G interval.
[0086] At this time, for the esp:type value corresponding to the BayWiring value of the device association table, the opposite intervals of B interval are D interval, E interval, and G interval, and their associated distances distance are 1, 2, and 3 respectively.
[0087] For the esp:type value of D interval, the opposite intervals are B interval, E interval, and G interval, and their associated distances distance are 1, 1, 2, and 3 respectively. For the esp:type value of E interval, the opposite intervals are D interval, B interval, and G interval, and their associated distances distance are 1, 2, and 1 respectively. For the esp:type value of G interval, the opposite intervals are D interval, E interval, and B interval, and their associated distances distance are 2, 1, and 3 respectively.
[0088] And the connection relationship between device 4 and device 5 is disconnected, and a connection relationship is established between device 3 and device 5.
[0089] Therefore, since A device, device 1, and device 4 are in the same interval, check templates need to be generated among these devices; device 2, device 3, and device 5 are in the same interval, and check templates need to be generated among these devices; device 6 and device 7 are in the same interval, and check templates need to be generated among these devices.
[0090] To determine whether a verification template needs to be generated between device A and device 5, compare the association depth between device A and device 5 when the local interval is consistent with the remote interval and the operating mode. In the file parsed by SCD, the association distance between device A and device 5 is 1. In the device association table, there is a virtual loop that makes the association distance between device A and device 5 1. Therefore, a verification template needs to be generated between device A and device 5.
[0091] To determine whether a verification template needs to be generated between device 3 and device B, compare the association depth between device 3 and device B when the local interval is consistent with the opposite end interval and the operating mode. In the file parsed by SCD, the association distance between device B and device 3 is 2. In the device association table, there is a virtual loop that makes the association distance between device A and device 5 2. Therefore, a verification template needs to be generated between device B and device 3.
[0093] It should also be noted that the verification template between two devices is relatively common in the art and will not be described in detail here.
[0094] Through the above technical solution, when the operating mode or topological relationship of the substation changes, the device association table can be changed and a verification template between two devices in the virtual circuit can be automatically generated by comparing the device association table with the SCD configuration file, so that the method can adapt to substations with more operating modes and is more flexible than the existing technology.
[0095] The present invention deeply explains its purpose, technical scheme and beneficial effects through specific embodiments, but these embodiments are only used as examples to show the application mode of the invention and do not constitute a limitation on the protection scope of the present invention. We explicitly point out that any reasonable modification, equivalent substitution or technical improvement under the guidance of the spirit and principles of the present invention should be included in the protection scope of the present invention. This means that as long as these changes do not deviate from the core idea and basic function of the invention, they should be protected by patent rights. The scope of protection of the present invention should be broad, including all direct and obvious variants and non-obvious innovations that technical experts can reasonably deduce based on the disclosure of the present invention. This broad protection is intended to promote further research and development based on the present invention, while ensuring that its innovation and practicality are fully protected by law.
Claims
1. A method for adaptively generating an SCD verification template, characterized in that: The steps of the method are: S1: parse the substation SCD file to obtain the virtual circuit and get the IDE node and SSD node of the device; S2: acquiring relevant information between devices according to the IDE node and the SSD node, wherein the relevant information includes: an operation mode, a local interval type, a peer interval type, and a peer association distance; S3: Compare the related information between the devices with the device association table, and output a verification template between the devices according to the comparison result.
2. The method for adaptively generating an SCD verification template according to claim 1, characterized in that: In step S3, in the two devices of the virtual circuit, if there is a virtual circuit in the device association table that satisfies the relevant information between the devices, a verification template is generated between the two devices; if there is no virtual circuit in the device association table that satisfies the relevant information between the two devices, no verification template is generated between the two devices.
3. The method for adaptively generating an SCD verification template according to claim 1, characterized in that: In step S2, the method for calculating the opposite-end interval association distance is as follows: in the two devices of the virtual loop, all opposite-end devices that have a direct physical association relationship with the two devices are searched, and among the opposite-end devices, opposite-end devices that have a direct physical association relationship and have not been searched are searched, until all devices in the virtual loop are searched, and the association relationship between the devices is obtained; the association distance between the two device nodes is calculated based on the association relationship between the devices.
4. A method for adaptively generating an SCD verification template according to any one of claims 1 to 3, characterized in that: If the topology or operation mode of the substation changes, the device association table will also change.
5. A method for adaptively generating an SCD verification template according to any one of claims 1 to 3, characterized in that: The information of the device association table includes: the operation mode, the local device interval, the opposite device interval, and the opposite association distance.
6. The method for adaptively generating an SCD verification template according to claim 3, characterized in that: If there are different association relationships between the two devices, the association distance calculation method is: obtaining the association relationship between the two devices, and calculating the minimum association distance between the two devices.
7. A method for adaptively generating an SCD verification template according to claim 1, 2, 3 or 6, characterized in that: In step S3, if the two devices are in the same interval, a verification template is automatically generated between the two devices.
8. A method for adaptively generating an SCD verification template according to claim 1, 2, 3 or 6, characterized in that: In step S3, the local end interval, the opposite end interval and the operating mode of the IED node are first compared with the device association table. If the comparison result is consistent, the association distance calculated by the SSD node is compared with the association distance in the device association table; if the comparison result is inconsistent, the generation of the verification template is terminated.
9. A method for adaptively generating an SCD verification template according to claim 3 or 6, characterized in that: If the intervals where the devices are located are linearly connected, the associated distance is calculated as follows: if in a certain route, there are a certain number of different intervals between two devices with different intervals, then the associated distance between the two devices is the number of intervals between the two devices plus one; if two devices are in the same interval, then the associated distance between the two devices is zero.
10. A method for adaptively generating an SCD verification template according to claim 3 or 6, characterized in that: Different devices in one interval are equidistant from different devices in another interval.
Citation Information
Patent Citations
Substation SCD file hidden danger troubleshooting method and system based on rule base configuration
CN117454192A