A method, device and electronic equipment for preventing mislocking of a substation system

By creating a ladder diagram and simplifying the data structure in the substation system, an anti-error locking logic expression is generated, which solves the problem of redundant and difficult to expand rule files in the existing technology, and realizes efficient and accurate locking logic judgment.

CN114036343BActive Publication Date: 2025-09-05XJ GRP CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111234192.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2025-09-05
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

The existing technology has problems in generating anti-error locking logic judgment rules for substation systems, such as manual coding is prone to errors, ladder diagram generation is complicated and difficult to expand, resulting in low work efficiency and difficulty in practical application.

Method used

By acquiring the equipment information of the substation system, creating a ladder diagram, extracting the connection relationship between the graphic elements, constructing and simplifying the data structure, and generating an anti-error locking logic expression, efficient and fast locking logic judgment can be achieved.

Benefits of technology

A locking logic judgment expression with accurate content and simplified structure is generated, which is easy to understand and apply, suitable for highly complex substation systems, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036343B_ABST
    Figure CN114036343B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device and electronic device for preventing mislocking of a substation system, which can efficiently and quickly generate a locking logic judgment expression with accurate content and concise structure, and is easy to apply and operate. The method includes: obtaining equipment information of the substation system, creating a ladder diagram based on the equipment information; extracting data on the connection relationship between each element in the ladder diagram, and constructing a data structure; simplifying the data structure, determining the anti-mislocking logic expression; and monitoring the substation system for mislocking based on the anti-mislocking logic expression. The device includes: an equipment information acquisition module, a data structure construction module, a logic expression determination module and an anti-mislocking monitoring module. The electronic device includes a memory, a processor and a computer program stored on the memory and capable of running on the processor to execute the method for preventing mislocking of the substation system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present application relate to the field of power system automation technology, and in particular to a method, device, and electronic equipment for preventing mislocking of a substation system. Background Art

[0002] The technical specifications of the substation monitoring system point out that the equipment and network using the substation monitoring system need to collect and share information in real time, set up anti-error locking logic and operation inspection rules according to the station control layer, bay layer, and equipment layer, perform locking logic judgment and output, and prevent electrical misoperation.

[0003] The composition and format of the rule file used to implement the locking logic judgment are logical expressions. In some related technologies, manual logical expression writing is adopted, which is prone to errors and has low work efficiency. Another method is to generate rule files by drawing ladder diagrams, but this method is difficult to implement when facing highly complex systems. The content of the generated rule files is redundant, the content of the ladder diagram is solidified, and it is not convenient to expand and apply, which causes difficulties in actual use. Summary of the Invention

[0004] In view of this, the purpose of one or more embodiments of the present application is to propose a method, device and electronic equipment for preventing mislocking of a substation system, which can efficiently and quickly generate a locking logic judgment expression with accurate content and simplified structure, which is convenient for application operation.

[0005] Based on the above objectives, one or more embodiments of the present application provide a method for preventing mislocking of a substation system, including:

[0006] Acquire equipment information of the substation system, and create a ladder diagram based on the equipment information;

[0007] Extracting data on the connection relationship between each pair of graphic elements in the ladder diagram and constructing a data structure;

[0008] Simplifying the data structure and determining an anti-error locking logic expression;

[0009] The substation system is monitored for anti-error locking according to the anti-error locking logic expression.

[0010] Optionally, the device information includes device status signals, device action signals, device measurement value signals, and anti-mislocking condition signals of multiple devices in the substation system;

[0011] The ladder diagram is created according to the device information, including

[0012] The ladder diagram is created by using the device status signal, the device action signal, the device measurement value signal and the anti-mislocking condition signal as graphic elements.

[0013] Optionally, extracting data on the connection relationship between each pair of graphics elements in the ladder diagram and constructing a data structure includes:

[0014] Determine the node name of the graphic element according to the identification name of the graphic element;

[0015] Determine the node data content of the graphic element according to the device information corresponding to the graphic element;

[0016] Determine the parent node list and the child node list of the graphic element according to the parent-child logical relationship between the multiple graphic elements in the ladder diagram;

[0017] Determine node attributes of the graphic element according to the device information corresponding to the graphic element, wherein the node attributes include a root node, a terminal node, and a child node;

[0018] The data structure includes the node name, the node data content, the parent node list, the child node list and the node attributes.

[0019] Optionally, simplifying the data structure to determine an anti-error locking logic expression includes:

[0020] Constructing a logical relationship tree with the plurality of graphic elements as nodes and the corresponding data structures as node data;

[0021] Simplifying the logical relationship tree according to the parent-child relationship and the sibling relationship between multiple nodes in the logical relationship tree;

[0022] The anti-mistaken locking logic expression is determined according to the node data of the child nodes in the logic relationship tree after simplification.

[0023] Optionally, simplifying the logical relationship tree according to the parent-child relationship and the sibling relationship between multiple nodes in the logical relationship tree includes:

[0024] Step 1: Starting from the root node, determine whether the root node has only one child node and whether the degree of the logical relationship tree including the root node and the terminal node is 3. If so, simplification ends.

[0025] Step 2: Starting from the root node, multiple tree nodes in the logical relationship tree are traversed and merged according to the depth-first search algorithm, first merging the sibling relationship nodes in the child nodes of the current tree node, and then merging the parent-child relationship nodes of the current tree node;

[0026] Step 3: After traversing all tree nodes, return to step 1.

[0027] Optionally, merging sibling nodes among the child nodes of the current tree node includes:

[0028] Determining a master node and a slave node among the sibling relationship nodes;

[0029] Merging the node data content of the slave node with the node data content of the master node;

[0030] Deleting the slave node from the child node list of the parent node of the slave node;

[0031] The slave node is deleted from the parent node list of the child nodes of the slave node.

[0032] Optionally, merging the parent-child relationship nodes of the current tree node includes:

[0033] In the parent-child relationship node, merging the node data content of the child node with the node data content of the parent node;

[0034] Deleting the child node from the child node list of the parent node;

[0035] The child node list of the child node is merged with the child node list of the parent node.

[0036] Optionally, after constructing the data structure, the method further includes:

[0037] Performing integrity judgment on the ladder diagram according to the data structure;

[0038] The step of judging the completeness of the ladder diagram according to the data structure includes:

[0039] Determine whether the graphic element with the node attribute of child node exists in the parent node list or the child node list is empty;

[0040] In response to the existence of the parent node list or the child node list being empty, it is determined that the ladder diagram is incomplete.

[0041] Based on the above objectives, one or more embodiments of the present application provide a substation system anti-mislocking device. The device includes:

[0042] The device information acquisition module is used to obtain the device information of the substation system and create a ladder diagram based on the device information;

[0043] A data structure construction module, used for extracting data on the connection relationship between each pair of graphic elements in the ladder diagram and constructing a data structure;

[0044] A logic expression determination module, configured to simplify the data structure and determine an anti-mislocking logic expression;

[0045] and an anti-mistaken locking monitoring module, which is used to monitor the substation system against mistaken locking according to the anti-mistaken locking logic expression.

[0046] Based on the above objectives, one or more embodiments of the present application provide an electronic device for preventing mislocking of a substation system.

[0047] The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the program:

[0048] Acquire equipment information of the substation system, and create a ladder diagram based on the equipment information;

[0049] Extracting data on the connection relationship between each pair of graphic elements in the ladder diagram and constructing a data structure;

[0050] Simplifying the data structure and determining an anti-error locking logic expression;

[0051] The substation system is monitored for anti-error locking according to the anti-error locking logic expression.

[0052] As can be seen from the above, the method, device, and electronic device for preventing mislocking of a substation system provided by one or more embodiments of the present application have the following beneficial technical effects:

[0053] A ladder diagram is created based on the substation system's equipment information. The logical dependencies between the various elements in the ladder diagram are extracted and analyzed to determine their corresponding data structures. Based on this data structure, each element is converted into a logical relationship tree for analysis and simplification, resulting in a compact and accurate logical expression for preventing false lockouts. This approach efficiently and quickly generates accurate, simplified lockout logic expressions, even for highly complex substation systems, making them easy to understand and apply. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate one or more embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only one or more embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0055] Figure 1 A schematic diagram of a method for preventing mislocking of a substation system provided by one or more embodiments of the present application;

[0056] Figure 2 A schematic diagram of a ladder diagram in a method for preventing mislocking of a substation system provided by one or more embodiments of the present application;

[0057] Figure 3 A schematic diagram of a method for determining node relationship data in a method for preventing mislocking of a substation system provided by one or more embodiments of the present application;

[0058] Figure 4 A schematic diagram of a method for determining an anti-mistaken locking logic expression in a method for preventing mistaken locking of a substation system provided by one or more embodiments of the present application;

[0059] Figure 5 A schematic diagram of a logic relationship tree in a method for preventing mislocking of a substation system provided by one or more embodiments of the present application;

[0060] Figure 6 A schematic diagram of a process for merging brother nodes in a logical relationship tree in a method for preventing mislocking of a substation system provided by one or more embodiments of the present application;

[0061] Figure 7 A schematic diagram of a process for merging parent and child nodes in a logical relationship tree in a method for preventing mislocking of a substation system provided by one or more embodiments of the present application;

[0062] Figure 8 A schematic diagram of the structure of an electronic device for preventing mislocking of a substation system provided by one or more embodiments of the present application;

[0063] Figure 9 A schematic diagram of the structure of an electronic device for preventing mislocking of a substation system provided by one or more embodiments of the present application. DETAILED DESCRIPTION

[0064] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0065] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present application should have the usual meanings understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in one or more embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0066] The technical solutions of the present disclosure are further described in detail below through specific embodiments.

[0067] In one aspect, an embodiment of the present application provides a method for preventing mislocking of a substation system.

[0068] like Figure 1 As shown, one or more optional embodiments of the present application provide a method for preventing mislocking of a substation system, comprising:

[0069] S1: Obtain equipment information of the substation system, and create a ladder diagram based on the equipment information.

[0070] The device information includes device status signals, device action signals, device measurement value signals, and anti-mislocking condition signals of multiple devices in the substation system.

[0071] The ladder diagram can be created based on the device status signals, device action signals and other status quantity signals of each device in the substation system, as well as the device measurement signals (such as electrical measurement values, etc.) and the anti-mislocking condition signals sent by other devices received through the station control layer network or hard wiring as graphic elements in the ladder diagram.

[0072] like Figure 2 , which is an exemplary ladder diagram created based on the equipment information in the substation system. In some optional embodiments, the overall input and output of the ladder diagram corresponding to the substation system are also considered as a graphic element and reflected in the ladder diagram.

[0073] S2: Extracting data on the connection relationship between each pair of graphic elements in the ladder diagram and constructing a data structure.

[0074] In the ladder diagram, the AND or OR logical relationships between multiple devices in the substation system are represented by parent-child and sibling relationships between the graphics elements. A data structure corresponding to each graphics element can be determined based on the parent-child and sibling relationships between the multiple graphics elements. The data structure can include the corresponding graphics element's name information, a list of parent and child nodes, graphics element node attribute information, and other relevant remarks.

[0075] S3: Simplify the data structure and determine an anti-error locking logic expression.

[0076] The data structure corresponding to the graphic element contains information related to the logical connection relationship between multiple graphic elements. By comprehensively considering the data structures corresponding to multiple graphic elements and simplifying the contents of the data structures, the anti-mislocking logic expression corresponding to the entire ladder diagram can be determined.

[0077] In some optional embodiments, the graphic elements can be used as tree nodes, and the node relationship data corresponding to the graphic elements can be used as the node data of the tree nodes. The connection relationship between multiple tree nodes is determined based on the parent-child relationship and sibling relationship between multiple graphic elements, so as to convert the ladder diagram into a logical relationship tree. The overall input graphic element of the ladder diagram corresponds to the root node of the logical relationship tree, and the overall output graphic element corresponds to the terminal node of the logical relationship tree. The data structure can be simplified by simplifying the tree structure.

[0078] S4: performing anti-error locking monitoring on the substation system according to the anti-error locking logic expression.

[0079] A rule file for locking logic judgment may be generated according to the anti-error locking logic expression, and then the rule file may be used to perform anti-error locking monitoring on the substation system.

[0080] The proposed method for preventing mislocking in a substation system creates a ladder diagram based on the substation system's equipment information, extracts and analyzes the logical dependencies between the various elements in the ladder diagram to determine the corresponding node data. Based on this node data, each element is converted into a logical relationship tree for analysis and simplification, resulting in a compact and accurate logical expression for monitoring against mislocking. This method efficiently and quickly generates accurate and simplified locking logic expressions, even for highly complex substation systems, making them easy to understand and apply.

[0081] like Figure 3 As shown, in a method for preventing mislocking of a substation system provided by one or more optional embodiments of the present application, extracting data on the connection relationship between each pair of elements in the ladder diagram and constructing a data structure includes:

[0082] S301: Determine the node name of the graphic element according to the identification name of the graphic element.

[0083] The identification name can be determined based on the device name of the corresponding device of the graphic element, or identity IDs can be assigned to multiple graphic elements in the ladder diagram, and the identity IDs are used as identification names to determine the node names. Figure 2 As shown, the node names corresponding to the multiple graphic elements can be Input, Output, or A, B, C...

[0084] S302: Determine the node data content of the graphic element according to the device information corresponding to the graphic element.

[0085] S303: Determine the parent node list and the child node list of the graphic element according to the parent-child logical relationship between the multiple graphic elements in the ladder diagram.

[0086] In the ladder diagram, the parent node list can be determined based on the graphics elements that have a parent-child relationship with a certain graphics element, and all the parent-relationship graphics elements of the graphics element can be determined to determine the parent node list, and all the child-relationship graphics elements of the graphics element can be determined to determine the child node list.

[0087] S304: Determine the node attributes of the graphic element according to the device information corresponding to the graphic element, where the node attributes include a root node, a terminal node, and a child node.

[0088] like Figure 2 In the ladder diagram shown, the node attributes of the graphic elements Input and Output are the root node and the terminal node respectively, and the node attributes of other graphic elements are child nodes.

[0089] The data structure includes the node name, the node data content, the parent node list, the child node list and the node attributes.

[0090] Table 1 below is a schematic diagram of the data structure. The data structure includes: node name, node data content, parent node list, child node list and node attributes.

[0091] Data Structure Node Name Node data content Parent node list Child node list Node properties

[0092] Table 1

[0093] In some optional embodiments, the data structure may further include other note-related information related to the primitive.

[0094] like Figure 4 As shown, in a method for preventing mislocking of a substation system provided in one or more optional embodiments of the present application, simplifying the data structure and determining a mislocking prevention logic expression include:

[0095] S401: Constructing a logical relationship tree with the plurality of graphic elements as nodes and the corresponding data structures as node data.

[0096] like Figure 5 The figure shows a schematic diagram of the logical relationship tree corresponding to the components of the ladder diagram. The input corresponding to the overall substation system is represented as a graphic element in the ladder diagram, and its corresponding node attribute is the root node, which is mapped to the root node in the logical relationship tree. The output corresponding to the overall substation system is also considered a graphic element and represented as a terminal node in the logical relationship tree.

[0097] S402: Simplifying the logical relationship tree according to the parent-child relationship and the sibling relationship among multiple nodes in the logical relationship tree.

[0098] S403: Determine the anti-mislocking logic expression according to the node data of the child nodes in the logic relationship tree after simplification.

[0099] In the substation system anti-error locking method, the graphic elements can be used as tree nodes, and the node relationship data corresponding to the graphic elements can be used as the node data of the tree nodes. The connection relationship between multiple tree nodes is determined based on the parent-child relationship and sibling relationship between multiple graphic elements, thereby converting the ladder diagram into a logical relationship tree. The overall input graphic element of the ladder diagram corresponds to the root node of the logical relationship tree, and the overall output graphic element corresponds to the terminal node of the logical relationship tree. The data structure can be simplified by simplifying the tree structure.

[0100] In a method for preventing mislocking of a substation system provided in one or more optional embodiments of the present application, simplifying the logical relationship tree according to the parent-child relationship and the sibling relationship between multiple nodes in the logical relationship tree includes:

[0101] Step 1: Starting from the root node, determine whether the root node has only one child node and whether the degree of the logical relationship tree including the root node and the terminal node is 3. If so, simplification ends.

[0102] Step 2: Starting from the root node, multiple tree nodes in the logical relationship tree are traversed and merged according to the depth-first search algorithm, first merging the sibling relationship nodes in the child nodes of the current tree node, and then merging the parent-child relationship nodes of the current tree node;

[0103] Step 3: After traversing all tree nodes, return to step 1.

[0104] In some optional embodiments, the merging of sibling relationship nodes can first determine the sibling node of the current tree node. If the tree node and the sibling node have the same parent node and child node, the sibling node is merged with the tree node, and the node data of the sibling node are merged according to the OR relationship during the merging.

[0105] like Figure 6 FIG. 1 is a schematic diagram of the process of merging brother nodes in the logical relationship tree.

[0106] In the exemplary logical relationship tree, node A and node B are brother nodes with the same parent node and child node. The two are merged according to an OR relationship, and the merged node is represented as "A|B".

[0107] The child node of the tree node is merged with the tree node, and during the merging, the data contents of the parent node and the child node are merged according to an AND relationship.

[0108] like Figure 7 FIG. 1 is a schematic diagram of the process of merging parent and child nodes in the logical relationship tree.

[0109] In the exemplary logical relationship tree, the C node and the E|F node are parent and child nodes, and the two are merged according to the AND relationship. The merged node is represented as "C&(E|F)".

[0110] The simplification is completed when the root node in the logical relationship tree has only one child node and the degree of the logical relationship tree including the root node and the terminal node is 3.

[0111] When simplifying the logical relationship tree, the node data contents of the brother nodes and the parent-child nodes are merged, and the logical relationship between the nodes is also simplified. Finally, the logical relationship tree can be simplified to include only one child node, which contains the node data information of all nodes.

[0112] Here, sibling nodes refer to tree nodes with the same parent node. The same parent node includes both a single parent node and multiple parent nodes. If there is a single parent node, the parent node can be the same. If there are multiple parent nodes, it is necessary to ensure that every parent node of sibling node A is in the parent node list of sibling node B, and every parent node of sibling node B is in the parent node list of sibling node A.

[0113] In a method for preventing mislocking of a substation system provided in one or more optional embodiments of the present application, merging sibling nodes in child nodes of a current tree node includes:

[0114] Determining a master node and a slave node among the sibling relationship nodes;

[0115] Merging the node data content of the slave node with the node data content of the master node;

[0116] Deleting the slave node from the child node list of the parent node of the slave node;

[0117] The slave node is deleted from the parent node list of the child nodes of the slave node.

[0118] In the method for preventing mislocking of the substation system, when merging brother relationship nodes, the node data of other related nodes are also adjusted accordingly to ensure that after the merger, the node data of each node still meets the data structure of the node relationship data. After the merger, the node data format of multiple tree nodes in the logical relationship book remains consistent, thereby avoiding affecting subsequent simplified operations.

[0119] In a method for preventing mislocking of a substation system provided in one or more optional embodiments of the present application, the merging of parent-child relationship nodes of the current tree node includes:

[0120] In the parent-child relationship node, merging the node data content of the child node with the node data content of the parent node;

[0121] Deleting the child node from the child node list of the parent node;

[0122] The child node list of the child node is merged with the child node list of the parent node.

[0123] In the method for preventing mislocking of the substation system, the node data of the child node is adjusted accordingly when the parent and child nodes are merged to ensure that after the merger, the node data of each node still meets the data structure of the node relationship data. After the merger, the node data format of multiple tree nodes in the logical relationship book remains consistent, thereby avoiding affecting subsequent simplified operations.

[0124] One or more optional embodiments of the present application provide a method for preventing mislocking of a substation system. After determining node relationship data of a plurality of elements in the ladder diagram, the method further includes:

[0125] The completeness of the ladder diagram is judged according to the node relationship data.

[0126] The determining the completeness of the ladder diagram according to the node relationship data includes:

[0127] Determine whether the graphic element with the node attribute of child node exists in the parent node list or the child node list is empty;

[0128] In response to the existence of the parent node list or the child node list being empty, it is determined that the ladder diagram is incomplete.

[0129] It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities.

[0130] It should be noted that the method of one or more embodiments of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices working together. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of one or more embodiments of the present application, and the multiple devices will interact with each other to complete the described method.

[0131] It should be noted that the above description is of specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0132] On the other hand, based on the same inventive concept as any of the above method embodiments, an embodiment of the present application also provides a substation system anti-mislocking device.

[0133] like Figure 8 As shown, one or more optional embodiments of the present application provide a substation system anti-mislocking device, including:

[0134] The device information acquisition module 801 is used to acquire device information of the substation system and create a ladder diagram based on the device information;

[0135] A data structure construction module 802 is used to extract data on the connection relationship between each pair of graphics elements in the ladder diagram and construct a data structure;

[0136] A logic expression determination module 803 is used to simplify the data structure and determine an anti-error locking logic expression;

[0137] and an anti-mistaken locking monitoring module 804, configured to monitor the substation system against mistaken locking according to the anti-mistaken locking logic expression.

[0138] For the convenience of description, the above devices are described as being functionally divided into various modules. Of course, when implementing one or more embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0139] The apparatus of the above embodiment is used to implement the corresponding method in the above embodiment and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0140] On the other hand, based on the same inventive concept as any of the above method embodiments, an embodiment of the present application also provides an electronic device for preventing mislocking of a substation system.

[0141] Figure 9 10 is a schematic diagram showing a more specific hardware structure of an electronic device provided in this embodiment. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are communicatively connected to each other within the device via the bus 1050.

[0142] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution of the substation system anti-mislocking method provided in the embodiment of the present application.

[0143] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of the present application are implemented through software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0144] The input / output interface 1030 is used to connect input / output modules to implement information input and output. The input / output modules can be configured as components within the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.

[0145] The communication interface 1040 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WiFi, Bluetooth, etc.).

[0146] The bus 1050 comprises a path for transmitting information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).

[0147] It should be noted that although the above device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will understand that the above device may only include the components necessary to implement the method for preventing mislocking of a substation system as described in the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0148] The electronic device of the above embodiment is used to implement the corresponding method for preventing mislocking of the substation system in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0149] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0150] In addition, to simplify the description and discussion, and in order not to make one or more embodiments of the present application difficult to understand, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making one or more embodiments of the present application difficult to understand, and this also takes into account the following fact, that is, the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it will be apparent to those skilled in the art that one or more embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0151] Although the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those skilled in the art based on the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0152] The one or more embodiments of the present application are intended to encompass all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the one or more embodiments of the present application should be included within the scope of protection of this disclosure.

Claims

1. A method for preventing mislocking of a substation system, characterized in that: include: Acquire equipment information of the substation system, and create a ladder diagram based on the equipment information; Extracting data on the connection relationship between each pair of graphic elements in the ladder diagram and constructing a data structure; Simplifying the data structure and determining an anti-error locking logic expression; Performing anti-error locking monitoring on the substation system according to the anti-error locking logic expression; The extracting data of the connection relationship between each pair of graphics elements in the ladder diagram and constructing a data structure includes: Determine the node name of the graphic element according to the identification name of the graphic element; Determine the node data content of the graphic element according to the device information corresponding to the graphic element; Determine the parent node list and the child node list of the graphic element according to the parent-child logical relationship between the multiple graphic elements in the ladder diagram; Determine node attributes of the graphic element according to the device information corresponding to the graphic element, wherein the node attributes include a root node, a terminal node, and a child node; The data structure includes the node name, the node data content, the parent node list, the child node list and the node attributes; The step of simplifying the data structure and determining the anti-error locking logic expression includes: Constructing a logical relationship tree with the plurality of graphic elements as nodes and the corresponding data structures as node data; Simplifying the logical relationship tree according to the parent-child relationship and the sibling relationship between multiple nodes in the logical relationship tree; Determine the anti-error locking logic expression according to the node data of the child nodes in the logic relationship tree after simplification; The simplifying of the logical relationship tree according to the parent-child relationship and the sibling relationship between the plurality of nodes in the logical relationship tree includes: Step 1: Starting from the root node, determine whether the root node has only one child node and whether the degree of the logical relationship tree including the root node and the terminal node is 3. If so, simplification ends. Step 2: Starting from the root node, multiple tree nodes in the logical relationship tree are traversed and merged according to the depth-first search algorithm, first merging the sibling relationship nodes in the child nodes of the current tree node, and then merging the parent-child relationship nodes of the current tree node; Step 3: After traversing all tree nodes, return to step 1.

2. The method according to claim 1, characterized in that The device information includes device status signals, device action signals, device measurement value signals, and anti-error locking condition signals of multiple devices in the substation system; The ladder diagram is created according to the device information, including The ladder diagram is created by using the device status signal, the device action signal, the device measurement value signal and the anti-mislocking condition signal as graphic elements.

3. The method according to claim 1, characterized in that The step of merging sibling nodes among the child nodes of the current tree node includes: Determining a master node and a slave node among the sibling relationship nodes; Merging the node data content of the slave node with the node data content of the master node; Deleting the slave node from the child node list of the parent node of the slave node; The slave node is deleted from the parent node list of the child nodes of the slave node.

4. The method according to claim 1, wherein The merging of the parent-child relationship nodes of the current tree node includes: In the parent-child relationship node, merging the node data content of the child node with the node data content of the parent node; Deleting the child node from the child node list of the parent node; The child node list of the child node is merged with the child node list of the parent node.

5. The method according to claim 1, characterized in that After constructing the data structure, the method further includes: Performing integrity judgment on the ladder diagram according to the data structure; The determining the completeness of the ladder diagram according to the data structure includes: Determine whether the graphic element with the node attribute of child node exists in the parent node list or the child node list is empty; In response to the existence of the parent node list or the child node list being empty, it is determined that the ladder diagram is incomplete.

6. A substation system anti-mislocking device, characterized in that: include: The device information acquisition module is used to obtain the device information of the substation system and create a ladder diagram based on the device information; A data structure construction module, used for extracting data on the connection relationship between each pair of graphic elements in the ladder diagram and constructing a data structure; A logic expression determination module, configured to simplify the data structure and determine an anti-mislocking logic expression; and an anti-mistaken locking monitoring module, configured to monitor the substation system against mistaken locking according to the anti-mistaken locking logic expression; The extracting data of the connection relationship between each pair of graphics elements in the ladder diagram and constructing a data structure includes: Determine the node name of the graphic element according to the identification name of the graphic element; Determine the node data content of the graphic element according to the device information corresponding to the graphic element; Determine the parent node list and the child node list of the graphic element according to the parent-child logical relationship between the multiple graphic elements in the ladder diagram; Determine node attributes of the graphic element according to the device information corresponding to the graphic element, wherein the node attributes include a root node, a terminal node, and a child node; The data structure includes the node name, the node data content, the parent node list, the child node list and the node attributes; The step of simplifying the data structure and determining the anti-error locking logic expression includes: Constructing a logical relationship tree with the plurality of graphic elements as nodes and the corresponding data structures as node data; Simplifying the logical relationship tree according to the parent-child relationship and the sibling relationship between multiple nodes in the logical relationship tree; Determine the anti-error locking logic expression according to the node data of the child nodes in the logic relationship tree after simplification; The simplifying of the logical relationship tree according to the parent-child relationship and the sibling relationship between the plurality of nodes in the logical relationship tree includes: Step 1: Starting from the root node, determine whether the root node has only one child node and whether the degree of the logical relationship tree including the root node and the terminal node is 3. If so, simplification ends. Step 2: Starting from the root node, multiple tree nodes in the logical relationship tree are traversed and merged according to the depth-first search algorithm, first merging the sibling relationship nodes in the child nodes of the current tree node, and then merging the parent-child relationship nodes of the current tree node; Step 3: After traversing all tree nodes, return to step 1.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Measurement and control device and misoperation-preventive locking logic display method thereof

    CN107482772A

  • Logistics-production-line-control-based method for conversion from PLC ladder diagram to instruction table

    CN108614515A