Method and system for generating operation mistake prevention logic and storage medium

By constructing a secondary anti-misoperation interlocking operation logic model based on a three-layer architecture, and generating anti-misoperation logic layer by layer from top to bottom, the problems of complex generation of anti-misoperation logic and high operation and maintenance pressure in substations are solved, thereby improving operation and maintenance efficiency.

CN115309570BActive Publication Date: 2026-01-02ZHUHAI UNITECH POWER TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110496378.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-07
Publication Date
2026-01-02
Estimated Expiration
2041-05-07

AI Technical Summary

Technical Problem

In existing technologies, the generation of secondary anti-misoperation logic interlocking operation logic in substations is complex and the amount of operation and maintenance processing is large, resulting in huge development and maintenance pressure. Moreover, the application requirements of different provinces and cities are inconsistent, and there is a lack of effective solutions.

Method used

Using a data-driven approach, the relationships and constraints in the primary and secondary equipment models are encapsulated layer by layer based on a three-layer architecture design to construct a secondary anti-misoperation interlocking operation logic model. The anti-misoperation logic of the operating equipment is then generated by the top-down layer-by-layer parsing of the verification engine.

Benefits of technology

The process of generating error prevention logic has been simplified, reducing the workload of operation and maintenance and improving operation and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115309570B_ABST
    Figure CN115309570B_ABST
Patent Text Reader

Abstract

The application discloses a kind of generation method and system of operating anti-misoperation logic and storage medium.The method includes: obtaining verification task, verification task includes target operation object;Call transformer station data model and anti-misoperation locking operation logic model, transformer station data model includes primary model and secondary model, and anti-misoperation locking operation logic model is encapsulated into anti-misoperation logic according to three-layer constraint relationship;According to verification task and transformer station data model, the operation scene where target operation object is located is calculated in check engine;The information of primary equipment set and the information of secondary equipment set in operation scene are matched with the anti-misoperation rule parsed from anti-misoperation locking operation logic model, to generate the anti-misoperation logic matched with target operation object, and the anti-misoperation rule includes three-layer anti-misoperation logic rule and corresponding constraint field.The application solves the problem that transformer station anti-misoperation locking operation logic is generated complexly.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of computers, in particular to a generation method and generation system of operation anti-misoperation logic and a storage medium. BACKGROUND

[0002] At present, the method for realizing the secondary anti-misoperation logic locking function is to solidify the secondary anti-misoperation logic in the program in the form of a logical formula and software coding. However, the secondary anti-misoperation logic is complex: it includes the constraint conditions of the primary device operation logic and the secondary device, the constraint conditions of the secondary device operation logic and the primary device, and the constraint conditions of the secondary device operation logic and the secondary device. The number of devices participating in the constraint conditions is huge, and the intersection between the constraint conditions is strong. The developer needs to have strong programming ability and power comprehensive automation professional ability at the same time. In addition, due to the different application requirements of each province and city, the pressure of program maintenance and response to new requirements in the later stage is huge. In view of the above problems, no effective solution has been proposed at present. SUMMARY

[0003] The embodiment of the present application provides a generation method and generation system of operation anti-misoperation logic and a storage medium, so as to at least solve the technical problems of complex generation of substation full anti-misoperation locking operation logic and large operation and maintenance processing amount.

[0004] According to an aspect of the embodiment of the present application, a generation method of operation anti-misoperation logic is also provided. The method comprises: acquiring a verification task, wherein the verification task comprises a target operation object, and the target operation object at least comprises one of a primary device, a secondary device and a virtual device; calling a substation data model and an anti-misoperation locking operation logic model, wherein the substation data model comprises a primary model and a secondary model, and the anti-misoperation locking operation logic model is encapsulated into an anti-misoperation logic according to a three-layer constraint relationship; calculating an operation scene in which the target operation object is located in a verification engine according to the verification task and the substation data model; and matching the information of a primary device set and the information of a secondary device set in the operation scene with an anti-misoperation rule parsed from the anti-misoperation locking operation logic model, so as to generate an anti-misoperation logic matched with the target operation object, wherein the anti-misoperation rule comprises a three-layer anti-misoperation logic rule and a corresponding constraint field.

[0005] According to another aspect of the embodiment of the present application, there is further provided an operation anti-misoperation logic generation system, comprising: a first acquisition unit configured to acquire a check task, wherein the check task comprises a target operation object, and the target operation object comprises at least one of a primary device, a secondary device and a virtual device; a calling unit configured to call a substation data model and an anti-misoperation locking operation logic model, wherein the substation data model comprises a primary model and a secondary model, and the anti-misoperation locking operation logic model is encapsulated according to a three-layer constraint relationship; a calculation unit configured to calculate an operation scenario in which the target operation object is located in a check engine according to the check task and the substation data model; and a generation unit configured to match information of a primary device set and information of a secondary device set in the operation scenario with an anti-misoperation rule parsed from the anti-misoperation locking operation logic model, so as to generate anti-misoperation logic matched with the target operation object, wherein the anti-misoperation rule comprises a three-layer anti-misoperation logic rule and a corresponding constraint field.

[0006] According to still another aspect of the embodiment of the present application, there is further provided a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program is configured to execute the operation anti-misoperation logic generation method when running.

[0007] In the embodiment of the present application, the association relationship and constraint condition between data in the primary device model and the secondary device model are encapsulated layer by layer based on a three-layer architecture design, so as to construct a secondary anti-misoperation locking operation logic model; then, the three-layer architecture in the secondary anti-misoperation locking operation logic model is parsed from top to bottom according to an operation scenario of an operation device and in combination with a substation data model, so as to generate secondary anti-misoperation logic of the operation device. Thus, the anti-misoperation logic is simplified, the processing amount of operation and maintenance is reduced, and the purpose of improving the operation and maintenance efficiency is achieved. Furthermore, the problem of complex generation of substation anti-misoperation locking operation logic in the related art is overcome. BRIEF DESCRIPTION OF DRAWINGS

[0008] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and together with the description serve to explain the present application. In the drawings:

[0009] Figure 1 is a schematic diagram of a flowchart of an optional operation anti-misoperation logic generation method according to an embodiment of the present application;

[0010] Figure 2 is a schematic diagram of an optional operation anti-misoperation logic generation method according to an embodiment of the present application;

[0011] Figure 3is a schematic diagram of another optional method for generating operation anti-misoperation logic according to an embodiment of the present application;

[0012] Figure 4 is a schematic diagram of yet another optional method for generating operation anti-misoperation logic according to an embodiment of the present application;

[0013] Figure 5 is a schematic diagram of an optional system for generating operation anti-misoperation logic according to an embodiment of the present application. DETAILED DESCRIPTION

[0014] In order to make the personnel in the technical field better understand the present application scheme, the technical scheme in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the scope of protection of the present application.

[0015] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0016] According to an aspect of an embodiment of the present application, there is provided a method for generating operation anti-misoperation logic, as shown in Figure 1 The method comprises:

[0017] S102, obtaining a verification task, wherein the verification task comprises a target operation object, and the target operation object comprises at least one of a primary device, a secondary device and a virtual device;

[0018] S104, calling a substation data model and an anti-misoperation locking operation logic model, wherein the substation data model comprises a primary model and a secondary model, and the anti-misoperation locking operation logic model is encapsulated into anti-misoperation logic according to a three-layer constraint relationship;

[0019] S106, calculating an operation scenario in which the target operation object is located in a verification engine according to the verification task and the substation data model;

[0020] S108, match the information of the primary device set and the information of the secondary device set in the operation scene with the anti-misoperation rules parsed from the anti-misoperation operation logic model to generate the target operation object matched anti-misoperation logic, wherein the anti-misoperation rules include three-layer anti-misoperation logic rules and corresponding constraint fields.

[0021] Optionally, in S104, the primary model includes primary device information and topological relationship between primary devices; the secondary model includes secondary device information and secondary device information, and the secondary model is also used to identify the association relationship between the primary device and the secondary device, the secondary device and the secondary device, and the primary device and the secondary device.

[0022] Optionally, in the embodiment, the above-mentioned operation anti-misoperation logic generation method can be but is not limited to applied in the process of realizing the secondary anti-misoperation logic locking function. The above-mentioned method can be but is not limited to applied in Figure 2 The generation system shown in the figure, the system includes: a checking engine, a substation data model, and a secondary anti-misoperation locking operation logic model. After receiving the verification task, the checking engine generates the secondary anti-misoperation logic in the embodiment using each model in the above-mentioned generation system. The anti-misoperation locking operation logic model is the anti-misoperation logic encapsulated based on the secondary device constraint primary device operation anti-misoperation logic, the secondary device constraint secondary device operation anti-misoperation logic, and the primary device constraint secondary device operation anti-misoperation logic. The above-mentioned application scene is an example, and the embodiment does not make any limitation on this.

[0023] It should be noted that the above-mentioned operation anti-misoperation logic can be but is not limited to the secondary anti-misoperation locking operation logic model, and the construction process of the secondary anti-misoperation locking operation logic model can be as Figure 3 shown, specifically including:

[0024] Taking various devices participating in the secondary anti-misoperation as the basic unit of the secondary device type, adding device type and associated primary device constraint conditions, constructing three-level rules according to the role and association relationship of various secondary devices in the anti-misoperation logic;

[0025] According to the three-level rules, according to the logical relationship between the three-level rules, adding secondary device double-set properties and associated primary devices and other constraint conditions, constructing two-level rules;

[0026] According to the two-level rules, taking the primary device operation logic and the secondary device operation logic of the secondary anti-misoperation and other application scenes, adding operation object properties and associated primary devices, interval categories and other constraint conditions, constructing one-level rules according to the logical relationship between the two-level rules.

[0027] Through the bottom-up layer-by-layer encapsulation process, the secondary anti-misoperation locking operation logic model is obtained.

[0028] In the embodiments of the present application, the association relationship and constraint condition between data in the primary equipment model and the secondary equipment model are encapsulated layer by layer based on a three-layer architecture design to construct a secondary anti-misoperation locking operation logic model in a data manner; then, the three-layer architecture in the secondary anti-misoperation locking operation logic model is parsed layer by layer from top to bottom according to the operation scene of the operation equipment and in combination with the substation data model to generate the secondary anti-misoperation logic of the operation equipment. Thus, the anti-misoperation logic is simplified, and the purpose of improving the operation and maintenance efficiency is achieved.

[0029] As an optional solution, the information of the primary equipment set and the information of the secondary equipment set in the operation scene are matched with the anti-misoperation rules parsed from the anti-misoperation locking operation logic model to generate the anti-misoperation logic matched with the target operation object, including:

[0030] S1, determining the equipment set in the operation scene;

[0031] S2, matching the primary rule in the anti-misoperation rule according to the attribute information of the target operation object;

[0032] S3, filtering the equipment set according to the constraint field in the primary rule to obtain a first filtered equipment subset;

[0033] S4, generating the primary logic based on the logic field of the primary rule, wherein the primary logic is a logic set obtained by combining the rule names of multiple secondary rules using a logic operator;

[0034] S5, matching the secondary rule in the anti-misoperation rule according to the primary logic;

[0035] S6, filtering the first equipment subset according to the constraint field of the secondary rule to obtain a second filtered equipment subset;

[0036] S7, generating the secondary logic based on the logic field of the secondary rule, wherein the secondary logic is a logic set obtained by combining the rule names of multiple tertiary rules using a logic operator;

[0037] S8, matching the tertiary rule in the anti-misoperation rule according to the secondary logic;

[0038] S9, filtering the second equipment subset according to the constraint field of the tertiary rule to obtain a third filtered equipment subset;

[0039] S10, setting the equipment operation state information according to the state requirement of the tertiary rule to generate the anti-misoperation logic of the target operation object.

[0040] As an optional solution, the equipment set matched with the operation scene is determined from the substation data model, and the primary rule corresponding to the equipment set includes:

[0041] S1, matching a predefined operation scene according to first attribute information of a target operation object, wherein the first attribute information comprises a voltage level, an operation type, and a device type;

[0042] S2, invoking a topology search algorithm according to the matched operation scene, and calculating a primary device set in the operation scene by using the topology search algorithm;

[0043] S3, calculating a secondary device set in the operation scene according to the primary device set and an association relationship between a primary device and a secondary device in a secondary model;

[0044] S4, calculating a secondary equipment set in the operation scene according to the secondary device set and an association relationship between a secondary device and a secondary equipment in the secondary model.

[0045] As an optional solution, matching a first-level rule in a misoperation prevention rule according to attribute information of a target operation object comprises:

[0046] In the misoperation prevention locking operation logic model, matching a first-level rule in a misoperation prevention rule according to second attribute information of a target operation object, wherein the second attribute information comprises a voltage level, an operation scene, a device type, an operation type, and an interval state, and the first-level rule comprises a primary device operation rule, a secondary device operation rule, and a virtual device operation rule.

[0047] As an optional solution,

[0048] S1, filtering a device set according to a constraint field in the first-level rule to obtain a filtered first device subset, comprising:

[0049] S11, filtering and removing a secondary device in the operation scene that does not satisfy a constraint condition corresponding to a constraint field according to the constraint field of the first-level rule to obtain an updated secondary device set, wherein the constraint field comprises an object identifier of an operation object, a station type, an interval type, a voltage level, a belonging primary device, and a constraint condition of an associated primary device;

[0050] S2, generating a first-level logic based on a logic field of the first-level rule, comprising:

[0051] S21, in the misoperation prevention locking operation logic model, generating a first-level logic based on a logic field of the first-level rule by using a logical operator as a key word to be decomposed, wherein the logical operator comprises AND, OR, and NOT.

[0052] As an optional solution, the secondary rule-based logical field generates a secondary logic, which includes: according to the logical field of the secondary rule, the logical field is disassembled with a logical operator as a key, and the secondary logic corresponding to the secondary rule is generated, wherein the logical operator includes: and, or, and not, and the rule level in the secondary logic is set to: the forbidden level, the alarm level.

[0053] Optionally, in the embodiment, the constraint field of the secondary rule can include but is not limited to single-set attributes, double-set attributes in the rule attributes of the secondary rule, object identification of the operation object, the associated primary device, and the constraint condition of the associated primary device.

[0054] As an optional solution, the second device subset is filtered according to the constraint field of the tertiary rule to obtain a filtered third device subset, which includes:

[0055] S1, filtering the secondary device set in the second device subset according to the device type of the secondary device in the constraint field of the tertiary rule; filtering the secondary device set in the second device subset according to the secondary device attribute information in the constraint field of the tertiary rule; filtering the secondary device set according to the constraint field of the tertiary rule, wherein the constraint field includes the voltage level, the associated primary device, the associated primary device, and the constraint of the secondary device attribute;

[0056] S2, setting the device operation state information according to the state requirement of the tertiary rule to generate the anti-misoperation logic of the target operation object, which includes: setting the device operation state information of the secondary device in the filtered third device subset according to the state requirement of the tertiary rule to generate the anti-misoperation logic of the target operation object.

[0057] As an optional solution, before the verification task is obtained, it further includes:

[0058] S1, determining various types of devices participating in the anti-misoperation locking operation, and taking the device type of the secondary device as a basic unit, the device type of the secondary device and the associated associated primary device as constraint conditions, combining the role and association relationship of various types of secondary devices in the anti-misoperation logic, and constructing a tertiary rule;

[0059] S2, constructing a secondary rule according to the logical relationship between the tertiary rules, the attribute information of the secondary device, and the primary device as the constraint condition;

[0060] S3, taking the primary device operation logic, the secondary device operation logic, and the operation object attribute information and the associated primary device and the interval category as constraint conditions, constructing a primary rule according to the logical relationship between the secondary rules;

[0061] S4, encapsulating the primary rule, the secondary rule, and the tertiary rule layer by layer to construct an anti-misoperation locking operation logic model.

[0062] As an optional solution, after matching the information of the primary device set and the information of the secondary device set in the operation scenario with the anti-misoperation rules parsed from the anti-misoperation operation logic model to generate the target operation object matching anti-misoperation logic, the method further includes: generating an operation anti-misoperation instance of the target operation object according to the target operation object matching anti-misoperation logic.

[0063] The operation anti-misoperation logic generation method can be specifically described in combination with the following examples: the functions and detailed descriptions of the items included in each layer of the secondary anti-misoperation operation logic model, specifically including:

[0064] The third-level rule includes a rule name, a secondary device type, a device type, a state requirement, and a constraint. The secondary device type and the device type are data types constituting the second-level rule, and are used to filter and match the secondary device. The state requirement is a data state value constituting the second-level rule, and is used to set the logical state value of the secondary device and to determine whether the real-time state of the secondary device is consistent with the logical state. The constraint is a constraint factor of the data constituting the second-level rule, such as an operation object attribute and an associated primary device, and is used to filter and match the secondary device according to the primary device. Assuming that the line protection is taken as an example, the third-level rule is abstracted as shown in Table 1:

[0065] Table 1

[0066]

[0067] The second-level rule includes a rule name, a logic, a rule attribute, a rule level, an information prompt, and a constraint. The logic is a logical constraint condition between the secondary device function modules, which is organized together with a logical operation such as and or or by taking the third-level rule as a unit, and constitutes the main logic of the second-level rule. The rule attribute is a set attribute of the secondary device, and functions to filter the secondary device according to the set attribute. The rule level and the information prompt are the lock level (usually prohibited or warned) and the prompt information returned when the rule is violated. The constraint is a constraint factor of the data constituting the second-level rule, such as an associated primary device, and functions to filter the second-level rule according to the primary device. Taking the line protection as an example, the constraint condition in the second-level rule is shown in Table 2:

[0068] Table 2

[0069]

[0070] The first-level rule includes a primary device operation rule, a secondary device operation rule, a remote-controllable state calculation rule, and a system inspection rule.

[0071] The primary device operation rule defines the secondary device constraint requirements that the primary device should meet when performing closing and opening operations. It includes voltage level, applicable occasion, interval state constraint, device type, operation type, logic, and constraint. Among them, the voltage level, applicable occasion, interval state constraint, device type, and operation type constitute the application scenario of the primary device operation: the voltage level is the voltage level of the operated primary device; the applicable occasion is the primary device that meets certain rule constraints according to the wiring mode, interval type, and operation type, which is obtained by topology search and serves to adapt to all wiring modes and refine various types of primary devices under various interval states; the device type and operation type are the type of the operated primary device and the operation mode (closing and opening operation). The logic is the anti-misoperation logic of the primary device operation, which is in units of secondary rules and adds logical operations such as AND and OR to realize the logical constraints between the primary device operation and the secondary device; the constraint serves to define the associated secondary devices applicable to the current operated primary device in the rule, which is a filtering condition for the secondary device and includes voltage level, secondary device attribute, associated primary device, interval category, and secondary device type. Taking the closing operation of the switch or knife switch of the 10kV-220kV conventional line as an example, the constraint conditions that need to be met are shown in the following Table 3:

[0072] Table 3

[0073]

[0074] The secondary device operation rule is used to define the primary device operating state and the secondary device constraint condition that should be met when the secondary device is put into operation or taken out of operation. The secondary device operation rule includes a voltage level, an applicable occasion, a device input, an interval state constraint, a device type constraint, a device type, an operation type, a logic, a constraint, and an operation object constraint. The voltage level, the applicable occasion, the device input, the interval state constraint, the device type constraint, the device type, and the operation type constitute an operation application scenario of the secondary device. The voltage level is a voltage level of a primary device to which the secondary device belongs. The applicable occasion is a primary device that meets certain rule constraints according to a wiring mode, an interval type, and an operation type. The device input is determined according to an association relationship (an associated primary device or a belonging primary device) of the primary device and the secondary device, to determine which primary device operating state needs to be judged for the current secondary device operation. The interval state constraint is an interval operating state of the primary device corresponding to the secondary device for the current operation, which is usually a running state, a cold standby state, or a maintenance state. The device type constraint is a secondary device type to which the current rule is applicable. The device type and the operation type are a type of the secondary device and an operation mode (usually put in or taken out) of the secondary device. The logic is a secondary device operation anti-misoperation logic, which is in units of two-level rules, and is added with logical operations such as AND and OR, to implement logical constraints between the secondary device operation and the primary device, and logical constraints between the secondary device operation and the secondary device state. The operation object constraint and the constraint function as a filtering condition for the current operation secondary device. The contents are shown in the primary device operation rule described above. Taking the 220 kV conventional line secondary device operation put-in or taken-out as an example, the primary device operating state and the secondary device constraint condition that should be met are shown in Table 4 as follows:

[0075] Table 4

[0076]

[0077]

[0078] The remote-controllable state calculation rule includes a voltage level, an applicable occasion, an interval state constraint, a constraint, a device type, and a logic. The voltage level, the applicable occasion, the interval state constraint, and the constraint constitute a remote-controllable state calculation rule application scenario. The voltage level is a voltage level of a primary device to be calculated. The applicable occasion is all occasions. The constraint is a constraint factor for a secondary device and an operation object in the scenario. The device type is a remote-controllable state calculation type, which is usually a remote-controllable switch closing, a remote-controllable switch opening, a remote-controllable switch closing, or a remote-controllable switch opening. The logic is a remote-controllable state calculation anti-misoperation logic, which is in units of two-level rules, and is added with logical operations such as AND and OR, to implement logical constraints between the primary device operation and the secondary device. The remote-controllable state calculation rule is shown in Table 5 as follows:

[0079] Table 5

[0080]

[0081] The system patrol rule includes voltage level, applicable occasion, interval state, logic, and constraint. The voltage level, applicable occasion, and interval state constitute the application scenario of the system patrol rule: the voltage level is the voltage level of the primary equipment to be calculated; the applicable occasion is the primary equipment that meets certain rule constraints according to the wiring mode, interval type, and operation type, and is obtained through topology search; and the interval state is the current running state of the interval to be patrolled, and is usually cold standby, hot standby, or running state. The logic is a two-level rule unit, plus and, or, and other logic operations, and realizes the constraint between the secondary equipment operation and the secondary equipment. The system patrol rule is shown in Table 6 as follows:

[0082] Table 6

[0083]

[0084] The secondary anti-misoperation locking operation logic generation method can be as shown in Table 7, and specifically includes the following steps. Figure 4

[0085] First, a device anti-misoperation logic verification task is received; the task includes a target operation object, which is a primary or secondary device, and an operation scenario.

[0086] Further, according to the above verification task, the first-level rule of the logic model is matched, the primary device set, the secondary device set, and the secondary equipment set are obtained from the data model according to the device operation scenario, and then the constraint field is analyzed according to the first-level rule to obtain the constraint condition of the second-level rule.

[0087] Further, according to the above second-level rule constraint condition, the rule attribute, rule level, and constraint are obtained, the secondary equipment set is filtered through the rule attribute and constraint, the second-level logic of the corresponding level is generated according to the rule level (prohibition or alarm), the constraint field is analyzed according to the second-level rule to obtain the constraint condition of the third-level rule.

[0088] Further, according to the above third-level rule constraint condition, the device type, secondary equipment type, and constraint in the rule are obtained, the secondary equipment set is filtered, and then the secondary equipment state value is set according to the state requirement, and operation information such as rule ID is set.

[0089] Through the above logic generation process, the model is parsed layer by layer from top to bottom, and finally the secondary equipment constraint primary equipment operation anti-misoperation logic, the primary equipment constraint secondary equipment operation anti-misoperation logic, and the switch breaker operation judgment remote control state logic are obtained.

[0090] ​Here, the application scenario of the secondary anti-misoperation locking operation logic model is specifically described by taking the switch operation of Fuzhou transformer 220kV Rongnan II 282 line as an example:

[0091] First, a primary device operation anti-misoperation logic generation task is received, such as a 282 switch task;

[0092] Further, the device type, operation type, voltage level, applicable occasion and device constraint of the device to be operated are checked, matched to the primary device operation rule in the first layer of the secondary anti-misoperation logic model, and the second layer of the first level rule in the constraint is disassembled according to the logical operators such as and, or. For example, the voltage level of the 282 device is 220kV, the applicable occasion is a conventional line, the interval state is hot standby, the device type is switch, and the operation type is closing. According to this, the first level rule and operation scenario of the 282 device in the secondary anti-misoperation locking operation logic model are matched. For example, the first level rule matched by the 282 switch is shown in Table 7:

[0093] Table 7

[0094]

[0095] Further, according to the operation scenario, a primary logic is added for setting the primary device initialization section, such as 2821 split, 2822 close, and 2823 close;

[0096] Further, by checking the applicable occasion of the operation device, the primary device set in the operation scenario is obtained from the primary model and the secondary model, the secondary device set is obtained according to the associated primary device field and the primary device set in the secondary model, the secondary device set is obtained according to the association relationship between the primary and secondary in the data model, the constraint conditions in the first level rule are checked, and the secondary devices in the scene that do not meet the conditions are filtered out. As shown in Table 8:

[0097] Table 8

[0098]

[0099]

[0100] Further, according to the and, or logical operators, the secondary rule name disassembled from the constraint is matched to the corresponding rule name in the secondary rule, for example, the secondary rule matched by the 282 switch is shown in Table 9:

[0101] Table 9

[0102]

[0103] Further, filter the secondary device single and double set attributes according to the rule attributes, and filter the secondary device according to the constraints. Then, generate the forbidden rule or the alarm rule according to the rule level and the information prompt.

[0104] Further, according to the three-level rule name in the constraint, the three-level rule name is disassembled according to the and, or, or other logical operators, and the corresponding rule is matched in the three-level rule. For example, the three-level rule matched by the 282 switch is shown in the following table:

[0105] Table 10

[0106]

[0107] Further, filter the secondary device set according to the device type, the device type, and the constraint. Then, set the secondary device logic operation item (state value) according to the state requirement. Through the above steps, the constraint condition between the primary device operation and the secondary device is realized. For example, the secondary anti-misoperation logic finally generated by the 282 switch is shown in the following table 11:

[0108] Table 11

[0109]

[0110]

[0111]

[0112] It should be noted that for the above-mentioned method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily necessary for the present application.

[0113] According to another aspect of the present application, a system for generating anti-misoperation logic is provided, as shown in Figure 5 The system comprises:

[0114] The first acquisition unit 502 is configured to acquire a verification task, wherein the verification task comprises a target operation object, and the target operation object comprises a primary device, a secondary device, and a virtual device.

[0115] The calling unit 504 is configured to call a substation data model and an anti-misoperation locking operation logic model, wherein the substation data model comprises a primary model and a secondary model, and the anti-misoperation locking operation logic model is an anti-misoperation logic encapsulated according to a three-level constraint relationship.

[0116] The computing unit 506 is configured to calculate an operation scene in which the target operation object is located in the checking engine according to the checking task and the substation data model.

[0117] The generating unit 508 is configured to match the information of the primary device set and the information of the secondary device set in the operation scene with the anti-misoperation rules parsed from the anti-misoperation locking operation logic model, so as to generate the anti-misoperation logic matched with the target operation object, wherein the anti-misoperation rules include three-layer anti-misoperation logic rules and corresponding constraint fields.

[0118] In this embodiment, the optional embodiment can be but is not limited to the above-mentioned method embodiment, and the embodiment will not be described here.

[0119] According to an aspect of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the above-mentioned operation of generating anti-misoperation logic. The computer program is configured to execute the steps in any of the method embodiments when running.

[0120] Optionally, in this embodiment, the above-mentioned computer readable storage medium can be configured to store a computer program for executing the following steps:

[0121] S1, obtaining a checking task, wherein the checking task includes a target operation object, and the target operation object includes at least one of a primary device, a secondary device and a virtual device;

[0122] S2, calling a substation data model and an anti-misoperation locking operation logic model, wherein the substation data model includes a primary model and a secondary model, and the anti-misoperation locking operation logic model is an anti-misoperation logic encapsulated according to three-layer constraint relationships;

[0123] S3, calculating an operation scene in which the target operation object is located in the checking engine according to the checking task and the substation data model;

[0124] S4, matching the information of the primary device set and the information of the secondary device set in the operation scene with the anti-misoperation rules parsed from the anti-misoperation locking operation logic model, so as to generate the anti-misoperation logic matched with the target operation object, wherein the anti-misoperation rules include three-layer anti-misoperation logic rules and corresponding constraint fields.

[0125] Optionally, in the embodiment, all or part of the steps in the various methods of the above embodiments can be understood by those skilled in the art that the terminal device related hardware can be instructed by a program, and the program can be stored in a computer readable storage medium, and the storage medium can include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0126] The serial numbers of the above embodiments of the application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0127] The integrated units in the above embodiments, if realized in the form of software function units and sold or used as independent products, can be stored in the above computer readable storage medium. Based on such understanding, the technical solutions of the application or the whole or part of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product, and the computer software product stored in the storage medium includes a plurality of instructions for causing one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the application.

[0128] In the above embodiments of the application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0129] In several embodiments provided in the present application, it should be understood that the disclosed client can be implemented by other manners. Among them, the apparatus embodiment described above is only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, units or modules, which can be electrical or other forms.

[0130] The units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment.

[0131] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.

[0132] The above description is only the preferred embodiment of the present application, and it should be pointed out that, for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should also be considered as the protection scope of the present application.

Claims

1. A method of generating a misoperation prevention logic, characterized by, The method comprises the following steps: acquiring a check task, wherein the check task comprises a target operation object, and the target operation object comprises at least one of a primary device, a secondary device and a virtual device; calling a substation data model and an anti-misoperation locking operation logic model, wherein the substation data model comprises a primary model and a secondary model, and the anti-misoperation locking operation logic model is an anti-misoperation logic encapsulated based on a secondary device constraining primary device operation anti-misoperation logic, a secondary device constraining secondary device operation anti-misoperation logic and a primary device constraining secondary device operation anti-misoperation logic; calculating an operation scene in which the target operation object is located in a check engine according to the check task and the substation data model; matching information of a primary device set and information of a secondary device set in the operation scene with anti-misoperation rules parsed from the anti-misoperation locking operation logic model to generate anti-misoperation logic matched by the target operation object, wherein the anti-misoperation rules comprise three-layer anti-misoperation logic rules and corresponding constraint fields.

2. The method of claim 1, wherein, The matching of the information of the primary device set and the information of the secondary device set in the operation scene with the anti-misoperation rules parsed from the anti-misoperation locking operation logic model to generate the anti-misoperation logic matched by the target operation object comprises the following steps: determining a device set in the operation scene; matching a primary rule in the anti-misoperation rules according to attribute information of the target operation object; filtering the device set according to a constraint field in the primary rule to obtain a first device subset after filtering; generating a primary logic based on a logic field of the primary rule, wherein the primary logic is a logic set obtained by combining rule names of multiple secondary rules by using a logic operator; matching a secondary rule in the anti-misoperation rules according to the primary logic; filtering the first device subset according to a constraint field of the secondary rule to obtain a second device subset after filtering; generating a secondary logic based on a logic field of the secondary rule, wherein the secondary logic is a logic set obtained by combining rule names of multiple tertiary rules by using a logic operator; matching a tertiary rule in the anti-misoperation rules according to the secondary logic; filtering the second device subset according to a constraint field of the tertiary rule to obtain a third device subset after filtering; setting device operation state information according to a state requirement of the tertiary rule to generate the anti-misoperation logic of the target operation object.

3. The method of claim 1, wherein, The calculation of the operation scene in which the target operation object is located in the check engine according to the check task and the substation data model comprises the following steps: matching a predefined operation scene according to first attribute information of the target operation object, wherein the first attribute information comprises a voltage level, an operation type and a device type; calling a topology search algorithm according to the matched operation scene, and calculating the primary device set in the operation scene by using the topology search algorithm; calculating a secondary device set in the operation scene according to the primary device set and an association relationship between the primary device and the secondary device in the secondary model; According to the secondary device set and the association relationship between the secondary devices in the secondary model and the secondary equipment, a set of the secondary equipment in the operation scene is calculated.

4. The method of claim 2, wherein, The matching of the first-level rule in the anti-misoperation rule according to the attribute information of the target operation object comprises: In the anti-misoperation locking operation logic model, the first-level rule in the anti-misoperation rule is matched according to the second attribute information of the target operation object, wherein the second attribute information comprises a voltage level, an operation scene, a device type, an operation type, and an interval state, and the first-level rule comprises a primary equipment operation rule, a secondary equipment operation rule, and a virtual device operation rule.

5. The method of claim 2, wherein, The filtering of the device set according to the constraint field in the first-level rule comprises: According to the constraint field of the first-level rule, the secondary equipment in the operation scene that does not satisfy the constraint condition corresponding to the constraint field is filtered and removed, so as to obtain an updated secondary equipment set, wherein the constraint field comprises an object identifier of an operation object, a station type, an interval type, a voltage level, a belonging primary equipment, and a constraint condition of an associated primary equipment. The generation of the first-level logic based on the logic field of the first-level rule comprises: in the anti-misoperation locking operation logic model, the first-level logic is generated based on the logic field of the first-level rule, and is decomposed with a logical operator as a keyword, wherein the logical operator comprises AND, OR, and NOT.

6. The method of claim 2, wherein, The generation of the second-level logic based on the logic field of the second-level rule comprises: the second-level logic corresponding to the second-level rule is generated by decomposing the logic field of the second-level rule with a logical operator as a keyword, wherein the logical operator comprises AND, OR, and NOT, and the rule level in the second-level logic is set as a prohibition level and an alarm level according to a rule level.

7. The method of claim 6, wherein, The constraint field of the second-level rule comprises a single-set attribute and a double-set attribute in a rule attribute of the second-level rule, an object identifier of an operation object, a belonging primary equipment, and a constraint condition of an associated primary equipment.

8. The method of claim 2, wherein, The filtering of the second device subset according to the constraint field of the third-level rule comprises: The secondary equipment set in the second device subset is filtered according to the device type of the secondary equipment in the constraint field of the third-level rule; the secondary equipment set in the second device subset is filtered according to the attribute information of the secondary equipment in the constraint field of the third-level rule; and the secondary equipment set is filtered according to the constraint field, wherein the constraint field comprises a voltage level, a belonging primary equipment, an associated primary equipment, and a constraint of a secondary equipment attribute. The setting of the device operation state information according to the state requirement of the third-level rule to generate the anti-misoperation logic of the target operation object comprises: the device operation state information of the secondary equipment in the filtered third device subset is set according to the state requirement of the third-level rule, so as to generate the anti-misoperation logic of the target operation object.

9. The method according to any one of claims 1 to 8, characterized in that, Before the acquisition of the verification task, the method further comprises: Determine various types of devices participating in the anti-misoperation locking operation, and take the device type of the secondary device as a basic unit, the device type of the secondary device and the associated primary device as constraint conditions, combine the role and association relationship of various types of secondary devices in the anti-misoperation logic, and construct a three-level rule; According to the logical relationship between the three-level rules, the attribute information of the secondary device and the primary device are constraint conditions, and a two-level rule is constructed; Take the primary device operation logic, the secondary device operation logic, the operation object attribute information, the associated primary device, and the interval category as constraint conditions, and construct a one-level rule according to the logical relationship between the two-level rules; The one-level rule, the two-level rule, and the three-level rule are encapsulated layer by layer to construct the anti-misoperation locking operation logic model.

10. The method according to any one of claims 1 to 8, characterized in that, After matching the information of the primary device set and the information of the secondary device set in the operation scene with the anti-misoperation rules parsed from the anti-misoperation locking operation logic model to generate the target operation object matching anti-misoperation logic, the method further comprises: According to the target operation object matching anti-misoperation logic, an operation anti-misoperation instance of the target operation object is generated.

11. The method according to any one of claims 1 to 8, characterized in that, The primary model includes the primary device information and the primary device topology information; the secondary model includes secondary device information and secondary device information; and the secondary model is also used to identify the association relationship between the primary device and the secondary device, the secondary device and the secondary device, and the primary device and the secondary device.

12. The method according to any one of claims 1 to 8, characterized in that, The anti-misoperation locking operation logic model is an anti-misoperation logic encapsulated based on the secondary device constraint primary device operation anti-misoperation logic, the secondary device constraint secondary device operation anti-misoperation logic, and the primary device constraint secondary device operation anti-misoperation logic.

13. A system for generating misoperation prevention logic, the system comprising: Comprise: A first acquisition unit is configured to acquire a verification task, wherein the verification task includes a target operation object, and the target operation object includes at least one of a primary device, a secondary device, and a virtual device; A calling unit is configured to call a substation data model and an anti-misoperation locking operation logic model, wherein the substation data model includes a primary model and a secondary model, and the anti-misoperation locking operation logic model is an anti-misoperation logic encapsulated based on a secondary device constraint primary device operation anti-misoperation logic, a secondary device constraint secondary device operation anti-misoperation logic, and a primary device constraint secondary device operation anti-misoperation logic; A calculation unit is configured to calculate an operation scene in which the target operation object is located in a verification engine according to the verification task and the substation data model; A generation unit is configured to match information of a primary device set and information of a secondary device set in the operation scene with anti-misoperation rules parsed from the anti-misoperation locking operation logic model to generate anti-misoperation logic matched by the target operation object, wherein the anti-misoperation rules include three-layer anti-misoperation logic rules and corresponding constraint fields.

14. A computer-readable storage medium including a stored program, wherein, The program runs to perform the method in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Intelligent substation operation and maintenance method and system

    CN107591892A

  • Configuration method and system for anti-misoperation locking logic rule source end of intelligent substation

    CN108549650A