Editing and running method and system of stability control strategy table, electronic equipment and storage medium

By developing a driver package for the target device based on the method of driver package generation, the problem of low formation efficiency of the strategy table in the stability control system is solved, the operating efficiency and overall configuration efficiency of the stability control strategy table are improved, and the rapid deployment of the stability control system is achieved. and efficient operation.

CN118709663APending Publication Date: 2024-09-27NR ELECTRIC CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410752907.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing stability control system is inefficient in the formation and conversion process of the policy table, resulting in low operating efficiency of the stability control policy table, which in turn affects the overall configuration efficiency of the stability control system.

Method used

The target device driver package is developed based on the driver package generation method, including defining the stability control strategy data model and model description format, generating application component mapping conversion scripts and stability control strategy tables, and constructing the target device driver package through object-oriented modularization and hierarchical decoupling. Functional components and logic are associated to achieve rapid deployment and update of stability control logic.

Benefits of technology

It improves the operating efficiency of the stability control strategy table, simplifies the strategy modeling process, reduces the difficulty of development and the possibility of errors, supports parallel development by multiple people, and improves the configuration efficiency and reliability of the stability control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709663A
    Figure CN118709663A
Patent Text Reader

Abstract

The invention provides an editing operation method and system of a stability control strategy table, electronic equipment and a storage medium, and relates to the technical field of power systems. The method for editing and running the stability control strategy table comprises the steps of developing a target device driver package corresponding to a stability control project based on a driver package generation mode and stability control information of the stability control project; wherein the target device driver packet comprises a stability control strategy table; sending the target device driver packet to the target device and analyzing the target device driver packet to determine a function module example and an associated device corresponding to the target device driver packet; based on the function module example, executing stability control logic of the stability control project; and debugging the target device driver package based on the associated device to update the stability control logic according to a debugging result. According to the method, the customized target device driver package is generated by compiling the stability control strategy table, applying the element mapping conversion script and the like, debugging is carried out, the stability control system is supported to be combined with virtual simulation, and the verification efficiency of the stability control strategy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power systems, and for example, to a method, system, electronic device and storage medium for editing and operating a stabilization control strategy table. Background Art

[0002] The stability control system, that is, the safety and stability control system, is an important line of defense to ensure the safe and stable operation of the power grid. It is usually constructed in layers by one control master station, multiple regional substations, and several terminal execution stations. The stability control system usually has the following characteristics: the number of AC quantities and switch quantities collected locally is uncertain; the number of information exchange channels with remote stability control devices is uncertain, and the exchanged data information and format are uncertain; the strategy table is large in scale and the logic is uncertain. The above characteristics make the design and development of the stability control device quite difficult, usually due to many problems in the versatility, modifiability, and maintainability of the strategy logic. As the key configuration part of the stability control system, the strategy table is the guarantee for the stability control device to achieve the expected control effect. Therefore, it is very important to form and convert the stability control program based on the strategy table in the process of configuring the stability control system.

[0003] In the related art, the conversion method of forming a stabilization control program based on a strategy table needs to go through the processes of forming a logic diagram - forming C code - compiling and linking. The conversion efficiency of forming C code from a logic diagram is low, and the compilation speed is slow due to the large amount of code and complex dependencies, resulting in low operating efficiency of the stabilization control strategy table, and then low verification efficiency of the stabilization control strategy. Summary of the invention

[0004] The present application aims to provide a method, system, electronic device and storage medium for editing and operating a stabilization control strategy table, which can improve the operating efficiency of the stabilization control strategy table and thereby improve the overall configuration efficiency of the stabilization control system.

[0005] According to one aspect of the present application, a method for editing and operating a stabilization control strategy table is proposed, including: developing a target device driver package corresponding to the stabilization control project based on a driver package generation method and stabilization control information of the stabilization control project; wherein the target device driver package includes a stabilization control strategy table; sending the target device driver package to the target device and parsing it to determine a functional module example and an associated device corresponding to the target device driver package; executing the stabilization control logic of the stabilization control project based on the functional module example; and debugging the target device driver package based on the associated device to update the stabilization control logic according to the debugging result.

[0006] According to some embodiments, the stabilization information includes performance requirements, and the stabilization system corresponding to the stabilization project includes several stabilization elements; wherein, based on the driver package generation method and the stabilization information of the stabilization project, a target device driver package corresponding to the stabilization project is developed, including: defining the stabilization strategy data model and the model description format according to the stabilization information of the stabilization project; determining the initial strategy description file according to the stabilization strategy data model and the model description format; based on the stabilization information, converting the initial strategy description file into structural data corresponding to several stabilization elements; generating an application element mapping conversion script and a stabilization strategy table corresponding to the stabilization project according to preset stabilization measures and performance requirements; configuring the associated elements of the stabilization strategy table based on performance requirements to determine the target stabilization strategy table; wherein the associated elements include communication channels and input and output settings; generating a target device driver package corresponding to the stabilization project according to the target stabilization strategy table, the application element mapping conversion script and the structural data.

[0007] According to some embodiments, based on preset stabilization measures and performance requirements, an application component mapping conversion script and a stabilization strategy table corresponding to the stabilization project are generated, including: analyzing the preset stabilization measures to determine the structural association information and the default device strategy; generating an application component mapping conversion script corresponding to the stabilization project based on the structural association information; generating a stabilization strategy table corresponding to the stabilization project based on the default device strategy and performance requirements.

[0008] According to some embodiments, a target device driver package corresponding to the stabilization project is generated according to a target stabilization strategy table, an application component mapping conversion script and structural data, including: editing structural data to generate a policy data source according to the target stabilization strategy table and the application component mapping conversion script; generating a target device driver package corresponding to the stabilization project based on the policy data source and a default device driver package.

[0009] According to some embodiments, the driver package generation method includes an object-oriented modular method; wherein, based on the driver package generation method and the stabilization information of the stabilization project, a target device driver package corresponding to the stabilization project is developed, including: based on the object-oriented modular method, the stabilization elements included in the stabilization system corresponding to the stabilization project are converted into corresponding functional elements; the stabilization information of the stabilization project is analyzed to determine the dynamic functional logical relationship corresponding to the functional element; and the functional elements are logically associated based on the dynamic functional logical relationship to generate a target device driver package.

[0010] According to some embodiments, the object-oriented modularization method includes a hierarchical decoupling method; wherein, based on the object-oriented modularization method, the stabilization control elements included in the stabilization control system corresponding to the stabilization control project are converted into corresponding functional elements, including: modularizing the stabilization control system corresponding to the stabilization control project in a hierarchical decoupling manner to determine a number of stabilization control elements; extracting standardized functional module type names, variable names and function definitions from the basic entry library; and converting a number of stabilization control elements into corresponding functional elements according to the standardized functional module type names, variable names and function definitions.

[0011] According to some embodiments, the above method further includes: extracting structure encapsulation information and data transmission information from the basic term library; and determining the fixed function logical relationship based on the structure encapsulation information and the data transmission information.

[0012] According to some embodiments, logically associating functional elements based on dynamic functional logical relationships to generate a target device driver package includes:

[0013] According to the fixed function logic relationship and the dynamic function logic relationship, the logic association information of the function element is determined; wherein the logic association information includes logic wiring information and input and output information; according to the logic association information, the connection mode of the function element is edited to generate a target device driver package.

[0014] According to one aspect of the present application, a system for editing and operating a stabilization control strategy table is proposed, comprising:

[0015] The driver package editing and generating subsystem is used to develop a target device driver package corresponding to the stabilization control project based on the driver package generating method and the stabilization control information of the stabilization control project; wherein the target device driver package includes a stabilization control strategy table;

[0016] The driver package browsing and checking subsystem is used to send the target device driver package to the target device and parse it to determine the functional module examples and associated devices corresponding to the target device driver package; based on the functional module examples, execute the stabilization control logic of the stabilization control project;

[0017] The debugging and updating subsystem is used to debug the target device driver package based on the associated device to update the stabilization control logic according to the debugging result.

[0018] Optionally, the driver package editing and generating subsystem includes a stabilization strategy editing subsystem and a driver package generating subsystem; wherein,

[0019] The stabilization control strategy editing subsystem is used to define the stabilization control strategy data model and model description format according to the stabilization control information of the stabilization control project; determine the initial strategy description file according to the stabilization control strategy data model and model description format; based on the stabilization control information, convert the initial strategy description file into structural data corresponding to a number of stabilization control elements; generate the application element mapping conversion script and stabilization control strategy table corresponding to the stabilization control project according to the preset stabilization control measures and performance requirements; configure the associated elements of the stabilization control strategy table based on the performance requirements to determine the target stabilization control strategy table; wherein the associated elements include communication channels and input and output settings;

[0020] The driver package generation subsystem is used to generate a target device driver package corresponding to the stabilization control project according to the target stabilization control strategy table, application component mapping conversion script and structure data.

[0021] According to the example embodiments, the present application has a description format of a standardized stabilization and control strategy table with wide versatility and flexibility, which improves the standardization of stabilization and control engineering strategy modeling. A strategy table editing method that can support parallel development and editing by multiple people improves the efficiency of large-scale system development. The stabilization and control strategy table that can be summarized may involve various types of strategy models, so that the target device driver package is divided into several functional modules according to reasonable granularity and function. A clear and flexible mapping relationship and description method can be established between various input and output data, functional components and strategy elements of the device, supporting joint virtual simulation of the stabilization and control system and improving the efficiency of stabilization and control strategy verification.

[0022] According to one aspect of the present application, an electronic device is provided, which includes: a processor; and a memory storing a computer program, wherein when the computer program is executed by the processor, the processor executes the editing and running method of the stabilization control strategy table as described above.

[0023] According to one aspect of the present application, a non-transitory computer-readable medium is provided, on which readable instructions are stored. When the instructions are executed by a processor, the processor executes the editing and running method of the stabilization strategy table as described above.

[0024] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without exceeding the scope of protection required by the present application.

[0026] Figure 1A flow chart showing a method for editing and operating a stabilization control strategy table according to an exemplary embodiment;

[0027] Figure 2 A schematic diagram of a stabilization control strategy description hierarchy structure according to an exemplary embodiment is shown;

[0028] Figure 3 A schematic diagram showing an editing and development process of a stabilization strategy table according to an exemplary embodiment;

[0029] Figure 4 A schematic diagram of a control strategy editing interface according to an exemplary embodiment is shown;

[0030] Figure 5 An example of a device logic generation script according to an exemplary embodiment is shown;

[0031] Figure 6 An example of a human-machine configuration MOT script according to an exemplary embodiment is shown;

[0032] Figure 7 A module schematic diagram of an editing and operating system of a stabilization control strategy table according to an exemplary embodiment is shown;

[0033] Figure 8 A schematic structural diagram of an electronic device according to an exemplary embodiment is shown.

[0034] Explanation of the accompanying drawings: 700, editing and running system of the stabilization strategy table; 701, driver package editing and generating subsystem; 702, driver package browsing and checking subsystem; 703, debugging and updating subsystem; 704, running program subsystem; 7011, stabilization strategy editing subsystem; 7012, driver package generating subsystem; 7041, system management module; 7042, human-computer communication module; 800, electronic device; 801, storage thereof; 802, processor. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0036] For specific implementation methods, please refer to the following embodiments.

[0037] Figure 1 FIG. 1 is a flowchart showing a method for editing and running a stabilization control strategy table according to an exemplary embodiment. The method of this embodiment can be applied to a stabilization control server. Figure 1As shown, the method includes:

[0038] S101. Develop a target device driver package corresponding to the stabilization control project based on a driver package generation method and stabilization control information of the stabilization control project; wherein the target device driver package includes a stabilization control strategy table.

[0039] The driver package generation method may include object-oriented modularization method, using self-set strategy table editing software, etc. The stabilization control project can be used for engineering time around the stabilization control system, which may involve the design, implementation, debugging and maintenance of the stabilization control system. The target device driver package may be a stabilization control program, and running the stabilization control program can realize the simulation execution process of the stabilization control task corresponding to the stabilization control project. The stabilization control information of the stabilization control project may include which stabilization control strategy data models to be planned, the description format of the model, the power grid status information, the channel and data exchange information, etc.

[0040] The target device driver package may include a stabilization strategy table, which can be used to characterize the transient stability control measures that the system should take according to various anticipated operating conditions and fault conditions, determined by offline or online analysis methods in the power system stability control, and summarize and organize these measures into a table. The stabilization strategy table plays a vital role in the power system stability control, and can be used as the basic basis for control to guide the stabilization device on how to query and execute the corresponding transient stability control measures when a fault occurs.

[0041] In some implementations, different driver package generation methods may be pre-set and stored, and the stabilization information of the stabilization project may be processed according to the driver package generation method to develop a target device driver package corresponding to the stabilization project.

[0042] S102: Send the target device driver package to the target device and parse it to determine the functional module examples and associated devices corresponding to the target device driver package.

[0043] The functional module example may correspond to the content of the target device driver package and is used to represent a format that can be executed by the target device. The associated device may be used to represent a device that needs to be run or needs to be assisted in starting when debugging the device driver package.

[0044] The target device may be a physical device or a virtual device. In some implementations, if the target device is a physical device, the physical device may be connected to the stability control server via a physical line. The stability control server may send the target device driver package to the target device via a physical line for downloading, and control the target device to parse. The target device driver package may directly include functional module examples and associated devices, and may be directly extracted.

[0045] In other implementations, if the target device is a virtual device, the target device driver package may be sent to the target device through a protocol or the like for downloading and subsequent parsing.

[0046] In other implementations, the stabilization strategy table and other configuration files in the target device driver package may be parsed during the initialization process, the system service interface may be called, and a function module data instance may be created.

[0047] S103. Based on the functional module example, execute the stabilization control logic of the stabilization control project.

[0048] The function module instance corresponds to the execution format of the target device, so the target device driver package of the stabilization project can be simulated and executed. Since the target device driver package contains a virtual operation logic relationship, the dynamic registration of the function module instance can execute the stabilization logic of the stabilization project. In some implementations, after calling the system service interface and creating the function module data instance, the tasks of each function module instance can be executed during the operation.

[0049] S104: Debug the target device driver package based on the associated device to update the stabilization logic according to the debugging result.

[0050] In some implementations, visual programming and debugging software can be used to open the target device driver package to display and browse the logic diagram, setting group, human-machine configuration information, etc. Then the associated device can be connected to perform online debugging to check whether the stabilization control logic is correct and then update it.

[0051] This embodiment uses a customized driver package to ensure that the target device can accurately execute the expected stabilization and control logic, thereby improving the efficiency and reliability of the entire stabilization and control system. By downloading and parsing the driver package, the stabilization and control logic can be quickly deployed on the target device, reducing the workload of manual configuration and improving deployment efficiency. Through automated stabilization and control logic execution, it is possible to respond to changes in the power system in real time and take control measures in a timely manner, thereby improving the stability and safety of the power grid. The overall operating efficiency of the stabilization and control strategy table is improved, thereby improving the overall configuration efficiency of the stabilization and control system.

[0052] According to some embodiments, the stabilization information includes performance requirements, and the stabilization system corresponding to the stabilization project includes several stabilization elements. The stabilization strategy data model and model description format can be defined based on the stabilization information of the stabilization project; the initial strategy description file can be determined based on the stabilization strategy data model and model description format; based on the stabilization information, the initial strategy description file can be converted into structural data corresponding to several stabilization elements; based on the preset stabilization measures and performance requirements, the application element mapping conversion script and stabilization strategy table corresponding to the stabilization project are generated; based on the performance requirements, the associated elements of the stabilization strategy table are configured to determine the target stabilization strategy table; wherein the associated elements include communication channels and input and output settings; based on the target stabilization strategy table, the application element mapping conversion script and structural data, the target device driver package corresponding to the stabilization project is generated.

[0053] Performance requirements can be used to indicate the requirements for corresponding control or processing when encountering different fault conditions in the stabilization control project. Stabilization control elements can be used to indicate the physical components in the stabilization control system, or power equipment.

[0054] The stabilization and control strategy data model may include definition methods, association methods, strategies, and constraints in different situations, such as fault definition, section definition, operation mode, stabilization and control strategy, etc. Among them, different definition methods, association methods, and strategies may also include corresponding attributes, field types, field lengths, filling formats, etc. The model description format may be the setting location of the attributes, field types, field lengths, etc. of the stabilization and control strategy data model. The stabilization and control strategy data model may be integrated according to the model description format and used as an initial strategy description file as a whole. Preset stabilization and control measures may be used to represent control measures and treatment plans when different conditions occur. The associated elements of the stabilization and control strategy table may include communication channels, input and output settings, human-computer interaction configuration, etc.

[0055] In some implementations, each stabilization control element can be converted into object-oriented structural data, that is, a functional element. For example, each section can correspond to a functional element. Based on the preset stabilization control measures and performance requirements, it can be determined how to generate a visualization page, what symbols different models should be instantiated into, and how to logically connect different models, so as to obtain the application element mapping conversion script and the stabilization control strategy table. Each stabilization control strategy data model may correspond to a strategy, which corresponds to a logic, and after instantiation, it can correspond to a visualization page logic. After configuring the associated elements of the stabilization control strategy table, the communication channel, input and output, etc. of the corresponding visualization page can be determined. Several visualization page logics, the associated element information in the corresponding target stabilization control strategy table, and other parameters can constitute a target device driver package.

[0056] In other implementations, the stabilization control strategy table editing software can be used to generate application component mapping conversion scripts and device strategy tables. The stabilization control strategy table editing software can apply for a virtual device running container from the virtual device cloud simulation platform based on the stabilization control project master-slave station configuration data, send the locally generated device driver package and application target file to the virtual device, and perform automatic testing based on preset test cases to achieve closed-loop verification of the entire station strategy function.

[0057] In other implementations, Figure 2 FIG. 2 shows a schematic diagram of a hierarchical structure of a stabilization control strategy description according to an exemplary embodiment. Figure 2 As shown, the stabilization control strategy data model consists of a four-layer architecture, including control strategy, execution strategy, control measures (group), and control object (group). The control strategy includes operation mode identification, fault identification, and measure quantity calculation. The execution strategy includes control object integration and measure quantity allocation. Control measures include various control executions (such as machine cutting, load cutting, DC modulation, decoupling, etc.), and control measures are associated with control objects. Control objects include switchable units and switchable loads, and support control object combinations. In some implementations, the strategy edited in the strategy table editing software is described using the XML hierarchical data model, and the device strategy table used on the device side is described in the E language format.

[0058] In some other implementations, taking the control strategy as an example, reference may be made to the attribute list of the control strategy in Table 1.

[0059] Table 1: List of control strategy attributes

[0060]

[0061]

[0062] In some other implementations, taking the execution policy as an example, reference may be made to the attribute list of the execution policy in Table 2.

[0063] Table 2: List of execution policy attributes

[0064]

[0065] In some other implementations, taking control measures as an example, reference may be made to the attribute list of control measures in Table 3.

[0066] Table 3: List of attributes of control measures

[0067]

[0068] In some other implementations, taking the control object as an example, reference may be made to the attribute list of the control object in Table 4.

[0069] Table 4: List of properties of control objects

[0070]

[0071] This embodiment can simplify the development process of the stabilization control strategy, improve development efficiency, and reduce the possibility of errors by defining a clear data model and description format. The initial strategy description file provides a clear starting point for subsequent conversion and configuration, which helps to ensure the logical consistency of the entire stabilization control project. The generation of structural data enables the stabilization control strategy to correspond to the actual hardware, providing a physical basis for implementing the stabilization control logic. The generation of mapping conversion scripts and stabilization control strategy tables enables the stabilization control strategy to be accurately converted into specific control measures, improving the execution efficiency and accuracy of the stabilization control system. Configuring related elements according to performance requirements can ensure that the stabilization control system can efficiently and accurately execute the stabilization control strategy while meeting the performance requirements. Overall, it ensures that the stabilization control system can efficiently and accurately execute control measures according to the predetermined stabilization control strategy.

[0072] According to some embodiments, preset stabilization measures may be analyzed to determine structural association information and default device strategies; based on the structural association information, an application component mapping conversion script corresponding to the stabilization project may be generated; based on the default device strategies and performance requirements, a stabilization strategy table corresponding to the stabilization project may be generated.

[0073] In some implementations, the preset stabilization measures may include structural association information and default device strategies. The structural association information may include the communication status between different stabilization elements, the symbols of the functional elements after instantiation of different stabilization elements, etc. The default device strategy may be used to represent the device strategy table that the staff initially defaulted to, but the device strategy table needs to be compiled in combination with the specific situation of the stabilization project. Therefore, in combination with the default device strategy and performance requirements, a stabilization strategy table corresponding to the stabilization project can be generated.

[0074] In other implementations, Figure 3 A schematic diagram of the editing and development process of a stabilization control strategy table according to an exemplary embodiment is shown. Based on the initial strategy description file of the stabilization control project (the file is the preliminary strategy information in word or excel format for communication with users), the device R&D personnel can perform stabilization control strategy modeling editing and conversion in the strategy table editing software to form a device strategy table that can be used by the device. The stabilization control strategy table editing and processing process includes system configuration, device configuration, strategy configuration, data mapping, forming a strategy data source file and a device driver package, and supports parallel editing and development by multiple people.

[0075] like Figure 3 As shown, the editing and development process of the stabilization strategy table may specifically include:

[0076] 1. System configuration stage: The administrator who participates in the development of the stabilization and control project is responsible for familiarizing himself with the scale and configuration of the stabilization and control system, analyzing the project strategy, clarifying the strategic scale of the stabilization and control master station, substation and execution station, building the system topology, channel topology and creating devices, and assigning the corresponding R&D personnel to each device. The R&D personnel of each device edit the configuration content of the single device with write permission, and browse the system configuration and other device configuration content with read permission.

[0077] In some implementations, the system electrical topology diagram provides symbols for drawing substations, converter stations, transformers, lines (connecting lines), sections, execution stations, etc. The system electrical topology diagram defines information such as station name, station type, device name and number, and forms a station-device tree structure table.

[0078] In other implementations, the system channel topology diagram provides device and channel connections, and the device name, device number, and channel number can be defined. The device schematic diagram is represented by a variable input / output rectangular symbol. Double-clicking the channel line can define the communication data and communication direction within the device channel and store them in the configuration file of the corresponding device.

[0079] 2. Device configuration stage: Import the signal table provided by the design institute, obtain the analog quantity, input quantity and output quantity of the external circuit, and perform hardware selection and terminal definition; automatically complete the host input and slave output related connections through the standardized representation method of "object name + function description"; according to the strategic functions of each station in the stabilization and control system and the channel configuration between stations, perform channel association and communication content definition within the device, determine the data content that needs to be exchanged between stations, frame transmission configuration, and quality processing of sent and received data.

[0080] In some implementations, the imported IO external loop configuration table includes: a table of host BI, slave AI, slave BI, and slave BO types. The host BI includes the plug-in address, Chinese description, and switch maintenance plate configuration information. The host AI includes connection method information, AI correspondence between the stability control system components and the internal component structure of the device, and the local component description of the stability control system. The host BI table defines the description correspondence between the address of the internal component of the device and the communication input. The slave BO defines the correspondence between the control system components and the internal component output of the device. When automatically generating the device logic program, the data wiring between the device components is formed according to the rule library definition and the above description definition and relationship definition, thereby forming the device logic program.

[0081] In other implementations, the channel configuration defines two communication ranges: inter-station communication and intra-station dual-set data exchange communication. The received and sent data are defined according to the transmission direction. The received and sent data types are defined as "status data" and "command data", and the sending mode is defined as framed sending and non-framed sending. In the non-framed case, "command data" is divided into three types according to the command type: "by quantity", "by eigenvalue", and "by matrix". The command type determines the different components used for the visual page of the communication configuration. The "matrix" data will connect the bits of the matrix to the input and output of the "packing" and "unpacking" components of the device components according to the sending and receiving. In the framed transmission case, framing is to divide the data of a certain length in the channel into N cases and send or receive them in rounds. When the frame data with the frame number Idx(N) is received, the data of the corresponding length of Idx(N) is parsed. Through the above definition, the data transmission and wire pulling logic program between the device communication components can be realized.

[0082] 3. Strategy configuration phase: configure system sections to determine the number of system components and the sources of system components contained in each system section; configure operating modes to determine the number of operating modes and operating system components that need to be automatically identified; configure fault forms to determine the system sections corresponding to each fault type and the number of faulty system components in the system sections; configure control objects and control measures to determine the types of control measures; configure execution strategies and control strategies to associate control objects. Figure 4 A schematic diagram of a control strategy editing interface according to an exemplary embodiment is shown. The control strategy editing interface can refer to Figure 4 .

[0083] 4. Data mapping stage: Associate the strategy elements with the corresponding device input / output data; associate some strategy attributes with the fixed values ​​of the functional elements. Write the strategy and functional element instance creation, data connection, fixed value setting scripts and human-machine configuration scripts.

[0084] In some implementations, the mapping relationship between the key descriptions in the stabilization strategy table and the corresponding variables of the device components is defined, as shown in Table 5 below. If a description in the strategy table configuration is "Outgoing Line 01. Operation", first find the corresponding configured device component structure in the IO configuration slave AI group according to the description "Outgoing Line 01", and then find the "Run" variable corresponding to "Operation" in the table below, and then form the short address of this signal in the device for logical relationship wiring.

[0085] Table 5: Mapping relationship between key descriptions and corresponding variables of device components in the stabilization strategy table

[0086]

[0087]

[0088] In other implementations, Figure 5 An example of a device logic generation script according to an exemplary embodiment is shown. In the strategy table configuration software, several interfaces that can be called by external python are encapsulated to form a general interface library, which includes interfaces such as device component instantiation, logic wiring, and device parameter setting. Figure 5 In the script, PyInterface is an interface object. The object interface is accessed through ".". For example, the PyInterface.NewFaultIdentificationComponent interface is the interface for generating device fault identification components. After the script is executed, a device fault component can be instantiated. According to the actual engineering logic needs, write the device logic generation script and generate the device program by executing the python script.

[0089] In other implementations, Figure 6 An example of a human-machine configuration MOT script according to an exemplary embodiment is shown. The human-machine configuration is configured in the MOT, i.e., "question-answer" mode. Each question is associated with a logic script. Through a series of questions and answers, the script that satisfies the answer to the question is parsed to implement adding the human-machine analog quantity, state quantity, and parameter to the device human-machine interface. Figure 6 In the example, if "Multiple input conditions satisfy the principle of use" is selected as A, the result after executing the script is:

[0090] SetParaValue(1,"Type v0=0");

[0091] AddPara(3,cfg_Settings,1,Type);

[0092] Then execute the above script to add human-machine settings and parameters.

[0093] 5. Save the project: generate the device policy data source file (a compressed package containing system configuration and single device policy editing related content); if generated locally on the PC, call the driver package generation module to generate the device driver package and send it to the device; if generated on the device side, download the policy data source, run the device side driver package generation module, and generate the device driver package.

[0094] In this embodiment, based on the generated mapping conversion script, the control instructions in the stabilization control strategy can be accurately mapped to the actual stabilization control elements, thereby ensuring that the stabilization control measures can be quickly and accurately executed in the actual system. In addition, the generation of the mapping conversion script can also improve the flexibility and maintainability of the stabilization control system, and facilitate the subsequent adjustment and optimization of the stabilization control strategy. The generated stabilization control strategy table is the core component of the stabilization control system, which directly determines the performance and effect of the stabilization control system. By formulating a detailed stabilization control strategy table, it can be ensured that the stabilization control system can quickly and accurately take corresponding control measures when facing various faults and abnormal situations to ensure the stable operation of the power grid. In addition, the formulation of the stabilization control strategy table can also improve the predictability and maintainability of the stabilization control system, and facilitate the operation and maintenance personnel to monitor and manage the stabilization control system.

[0095] According to some embodiments, the structural data can be edited according to the target stabilization policy table and the application component mapping conversion script to generate a policy data source; based on the policy data source and the default device driver package, a target device driver package corresponding to the stabilization project is generated.

[0096] The policy data source may include some structural data of the stabilization logic corresponding to the stabilization project. The default driver package may be used to represent the fixed and available programs on the device. In the absence of the policy data source, the related programs outside the policy data source can still be run normally. Based on the policy data source and the default device driver package, the target device driver package corresponding to the stabilization project can be generated.

[0097] This embodiment automatically generates the strategy data source and target device driver package, which reduces the manual workload of developers and shortens the development cycle. This makes the development of stabilization and control projects more efficient and can quickly respond to changes and needs in power grid operation. The target device driver package generated based on the default device driver package has good compatibility with the existing stabilization and control system. This reduces the difficulty of system integration and deployment and improves the stability and reliability of the system.

[0098] According to some embodiments, the driver package generation method includes an object-oriented modular method. Based on the object-oriented modular method, the stabilization control elements included in the stabilization control system corresponding to the stabilization control project can be converted into corresponding functional elements; the stabilization control information of the stabilization control project can be analyzed to determine the dynamic functional logical relationship corresponding to the functional element; the functional elements can be logically associated based on the dynamic functional logical relationship to generate a target device driver package.

[0099] In some implementations, the stabilization control system can be modularized, and the stabilization control elements in the stabilization control system can be instantiated into functional elements. Then, the stabilization control information of the stabilization control project can be analyzed to directly obtain the dynamic functional logical relationship between these functional elements. The functional elements are logically associated according to the dynamic functional logical relationship to generate a target device driver package.

[0100] In this embodiment, the stabilization control element is converted into a corresponding functional element through an object-oriented modular approach, and each functional element has a clear function and interface. This design reduces the coupling between the functional elements and improves the maintainability and scalability of the system. At the same time, the high cohesion within the functional element makes the function of each element clearer and independent, reducing the possibility of error propagation. After the stabilization control element is converted into a functional element, a clear and easy-to-understand logical structure can be constructed by analyzing the stabilization control information to determine the dynamic functional logical relationship between the functional elements. This logical structure makes the execution process of the stabilization control logic more intuitive and predictable, reducing the difficulty of development and debugging. The object-oriented modular approach makes the development process of the stabilization control system more modular and component-based. Developers can develop various functional elements in parallel, and then integrate and test them through interfaces. This parallel development method can significantly improve development efficiency and shorten the development cycle.

[0101] According to some embodiments, the object-oriented modularization method includes a hierarchical decoupling method. According to the hierarchical decoupling method, the stabilization control system corresponding to the stabilization control project can be modularized to determine a number of stabilization control elements; standardized function module type names, variable names and function definitions are extracted from the basic term library; and the number of stabilization control elements are converted into corresponding function elements according to the standardized function module type names, variable names and function definitions.

[0102] The basic term library may include standardized function module type names, variable names, function definitions, structure encapsulation information, data transmission information, etc. As for the information in the basic term library, the stabilization control components can be converted into functional components according to the type name, function definition, etc.

[0103] In this embodiment, through hierarchical decoupling, the stabilization control system is divided into clear logical levels, and each level has clear functions and responsibilities. On the basis of hierarchical decoupling, the stabilization control system is further divided into a number of stabilization control elements. Each stabilization control element corresponds to a specific function or task, so that developers can develop in parallel and improve development efficiency. The standardized function module type names, variable names, and function definitions extracted from the basic entry library provide a unified standard for the conversion of stabilization control elements to functional elements. This ensures the consistency and maintainability of functional elements and reduces the possibility of system errors.

[0104] According to some embodiments, structure encapsulation information and data transmission information may be extracted from a basic term library; and fixed function logical relationships may be determined based on the structure encapsulation information and the data transmission information.

[0105] The structure encapsulation information may include input and output information related to different functional elements, and the data transmission information may include communication channels that may correspond to different functional elements. Based on this, the fixed functional logical relationship can be determined.

[0106] In this embodiment, the structure encapsulation information and data transmission information are extracted from the basic entry library, ensuring the standardization and consistency of this information in the system. The fixed function logical relationship determined based on the structure encapsulation information and data transmission information provides a basis for the logic design of the stable control system. These default logical relationships simplify the complexity of the logic design, reduce the workload of developers, and also help improve the accuracy and reliability of the logic design.

[0107] According to some embodiments, the logical association information of the functional elements can be determined based on the fixed functional logical relationship and the dynamic functional logical relationship; wherein the logical association information includes logical wiring information and input and output information; according to the logical association information, the connection method of the functional elements is edited to generate a target device driver package.

[0108] Fixed function logic relationships can be general dynamic function logic relationships, and dynamic function logic relationships can represent customized dynamic function logic relationships corresponding to the current stabilization and control project. Fixed function logic relationships and dynamic function logic relationships can be determined as a whole as logical association information of functional elements, and the target device driver package can be generated according to the connection method of the functional elements according to the logical association information.

[0109] In some implementations, a hierarchical decoupling modular design method is adopted to extract standardized function module type names, variable names, and function definitions from the basic entry library, which can support object-oriented structural information encapsulation and data transmission, thereby simplifying the data connection between function module instances, developing a stable control program code library with maximized function types, and compiling to form a stable control program target file. By writing Makefile, compilers for different hardware platforms can be called and compilation options can be set to form program target files running in physical devices and virtual devices. The application function module code does not directly call hardware-related and operating system-related functions. By calling the system program API library, the underlying hardware and operating system-related operations are shielded, and the same-source maintenance of the device running program and the simulation program is achieved.

[0110] This embodiment can ensure that the logical control between the functional elements in the stabilization control system is accurate and in line with expectations by clarifying the logical association information of the functional elements (including logical wiring information and input and output information). This helps to improve the control accuracy and reliability of the system. Automatically generating logical association information and editing the connection mode of the functional elements greatly reduces the workload of developers. This makes the development of the stabilization control system faster and more efficient, and shortens the execution cycle of the stabilization control project.

[0111] According to some embodiments, the device strategy data source file is read, and the mapping conversion logic and the human-machine configuration script are executed through the script execution engine to form several visual page logic diagrams, create function module instances, form data connection information, form fixed value group configuration information, form a communication model description file, form liquid crystal menu group information, and form a device strategy table and configuration file. The strategy table includes various strategy attributes, instantiated function element types, instance names, and execution order, and the configuration file includes hardware configuration information, signal descriptions for human-machine interaction, menu grouping, and fixed value list content.

[0112] In some implementations, the device policy data source file includes a policy data model description file, an IO configuration file, a communication configuration file, a logic generation device script file, and a man-machine configuration MOT script file. The above files serve as data source files for generating device driver packages.

[0113] In other implementations, the device visualization page logic diagram is automatically generated according to the device strategy table and rule mapping script, and the functional module symbols are arranged from top to bottom and from left to right, and are directly connected through input-output terminal symbols or connecting lines to form a data connection relationship between the functional modules.

[0114] Figure 7 FIG. 1 is a schematic diagram of a module of an editing and operating system of a stabilization control strategy table according to an exemplary embodiment. Figure 7 As shown, the editing and running system 700 of the stabilization strategy table includes: a driver package editing and generating subsystem 701, a driver package browsing and checking subsystem 702 and a debugging and updating subsystem 703.

[0115] The driver package editing and generating subsystem 701 is used to develop a target device driver package corresponding to the stabilization control project based on the driver package generating method and the stabilization control information of the stabilization control project; wherein the target device driver package includes a stabilization control strategy table;

[0116] The driver package browsing and checking subsystem 702 is used to send the target device driver package to the target device and parse it to determine the functional module examples and associated devices corresponding to the target device driver package; based on the functional module examples, execute the stabilization control logic of the stabilization control project;

[0117] The debugging and updating subsystem 703 is used to debug the target device driver package based on the associated device to update the stabilization logic according to the debugging result.

[0118] Optionally, the driver package editing and generating subsystem 701 includes a stabilization strategy editing subsystem 7011 and a driver package generating subsystem 7012; wherein,

[0119] The stabilization control strategy editing subsystem 7011 is used to define the stabilization control strategy data model and model description format according to the stabilization control information of the stabilization control project; determine the initial strategy description file according to the stabilization control strategy data model and model description format; based on the stabilization control information, convert the initial strategy description file into structural data corresponding to a number of stabilization control elements; based on the preset stabilization control measures and performance requirements, generate the application element mapping conversion script and stabilization control strategy table corresponding to the stabilization control project; based on the performance requirements, configure the associated elements of the stabilization control strategy table to determine the target stabilization control strategy table; wherein the associated elements include communication channels and input and output settings;

[0120] The driver package generation subsystem 7012 is used to generate a target device driver package corresponding to the stabilization control project according to the target stabilization control strategy table, application component mapping conversion script and structure data.

[0121] Optionally, the editing and running system 700 of the stabilization strategy table further includes a running program subsystem 704; the running program subsystem 704 includes a system management module 7041 and a human-computer communication module 7042;

[0122] The system management module 7041 is used to load the application target file, parse the device driver package, read the device policy table and configuration file, dynamically register the function module instance, schedule the execution task, and perform cross-processor data interaction synchronization;

[0123] The human-machine communication module 7042 is used to read the device modeling file and realize the IEC61850, IEC103, and Modbus communication protocol service functions.

[0124] The system performs functions similar to the method provided above. For other functions, please refer to the previous description and will not be repeated here.

[0125] Figure 8 A schematic diagram of the structure of an electronic device according to an exemplary embodiment is shown. Figure 8 As shown, the electronic device 800 of this embodiment may include: a memory 801 and a processor 802 .

[0126] The memory 801 stores a computer program. When the computer program is executed by the processor 802, the processor 802 executes the method in the above embodiment.

[0127] The processor 802 and the memory 801 are connected, for example, via a bus.

[0128] Optionally, the electronic device 800 may further include a transceiver. It should be noted that in actual applications, the number of transceivers is not limited to one, and the structure of the electronic device 800 does not constitute a limitation on the embodiments of the present application.

[0129] The processor 802 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 802 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0130] The bus may include a path to transmit information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0131] The memory 801 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0132] The memory 801 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 802. The processor 802 is used to execute the application code stored in the memory 801 to implement the contents shown in the above method embodiment.

[0133] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 8 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0134] The electronic device of this embodiment can be used to execute the method of any of the above embodiments, and its implementation principle and technical effect are similar, which will not be described in detail here.

[0135] The present application also provides a non-transitory computer-readable storage medium having computer-readable instructions stored thereon. When the aforementioned instructions are executed by a processor, the processor executes the method in the above embodiment.

[0136] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a non-transient computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0137] The embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, changes or deformations made by those skilled in the art based on the ideas of the present application, the specific implementation methods and the scope of application of the present application, all belong to the scope of protection of the present application. In summary, the content of this specification should not be construed as a limitation on the present application.

Claims

1. A method for editing and operating a stabilization control strategy table, characterized in that: include: Based on the driver package generation method and the stabilization control information of the stabilization control project, developing a target device driver package corresponding to the stabilization control project; wherein the target device driver package includes a stabilization control strategy table; Sending the target device driver package to the target device and parsing it to determine the functional module examples and associated devices corresponding to the target device driver package; Based on the functional module example, execute the stabilization control logic of the stabilization control project; The target device driver package is debugged based on the associated device to update the stabilization logic according to the debugging result.

2. The method according to claim 1, characterized in that: The stabilization control information includes performance requirements, and the stabilization control system corresponding to the stabilization control project includes a plurality of stabilization control elements; wherein the driver package generation method and the stabilization control information of the stabilization control project are used to develop a target device driver package corresponding to the stabilization control project, including: According to the stabilization control information of the stabilization control project, a stabilization control strategy data model and a model description format are defined; Determining an initial strategy description file according to the stabilization strategy data model and the model description format; Based on the stabilization information, converting the initial strategy description file into structural data corresponding to the plurality of stabilization elements; Generate an application component mapping conversion script and a stabilization control strategy table corresponding to the stabilization control project according to the preset stabilization control measures and the performance requirements; Based on the performance requirements, configuring the associated elements of the stabilization control strategy table to determine the target stabilization control strategy table; wherein the associated elements include communication channels and input and output settings; A target device driver package corresponding to the stabilization project is generated according to the target stabilization strategy table, the application component mapping conversion script and the structure data.

3. The method according to claim 2, characterized in that The generating of the application component mapping conversion script and the stabilization control strategy table corresponding to the stabilization control project according to the preset stabilization control measures and the performance requirements includes: analyzing the preset stabilization measures to determine structural association information and default device policies; Generate an application component mapping conversion script corresponding to the stabilization control project according to the structural association information; Based on the default device strategy and the performance requirement, a stabilization control strategy table corresponding to the stabilization control project is generated.

4. The method according to claim 2 or 3, characterized in that: The generating a target device driver package corresponding to the stabilization control project according to the target stabilization control strategy table, the application component mapping conversion script and the structure data includes: According to the target stabilization strategy table and the application component mapping conversion script, the structure data is edited to generate a strategy data source; Based on the policy data source and the default device driver package, a target device driver package corresponding to the stabilization project is generated.

5. The method according to claim 1, characterized in that The driver package generation method includes an object-oriented modular method; wherein, based on the driver package generation method and the stabilization control information of the stabilization control project, developing a target device driver package corresponding to the stabilization control project includes: Based on the object-oriented modular approach, the stabilization control elements included in the stabilization control system corresponding to the stabilization control project are converted into corresponding functional elements; Analyzing the stabilization information of the stabilization project to determine the dynamic functional logic relationship corresponding to the functional elements; The functional elements are logically associated based on the dynamic functional logical relationship to generate the target device driver package.

6. The method according to claim 5, characterized in that The object-oriented modularization method includes a hierarchical decoupling method; wherein, based on the object-oriented modularization method, the stabilization control elements included in the stabilization control system corresponding to the stabilization control project are converted into corresponding functional elements, including: According to the hierarchical decoupling method, the stabilization control system corresponding to the stabilization control project is modularized to determine a number of stabilization control elements; Extract standardized function module type names, variable names and function definitions from the basic term library; The plurality of stabilizing and controlling elements are converted into corresponding functional elements according to the standardized functional module type name, the variable name and the functional definition.

7. The method according to claim 6, characterized in that Also includes: Extracting structure encapsulation information and data transmission information from the basic term library; Based on the structure encapsulation information and the data transmission information, a fixed function logical relationship is determined.

8. The method according to claim 7, characterized in that The logically associating the functional elements based on the dynamic functional logical relationship to generate the target device driver package includes: Determine the logic association information of the functional element according to the fixed function logic relationship and the dynamic function logic relationship; wherein the logic association information includes logic wiring information and input and output information; According to the logical association information, the connection mode of the functional elements is edited to generate the target device driver package.

9. A stabilization strategy table editing and operation system, characterized in that: include: A driver package editing and generating subsystem, used for developing a target device driver package corresponding to the stabilization control project based on a driver package generating method and stabilization control information of the stabilization control project; wherein the target device driver package includes a stabilization control strategy table; A driver package browsing and checking subsystem is used to send the target device driver package to the target device and parse it to determine the functional module example and associated device corresponding to the target device driver package; based on the functional module example, execute the stabilization control logic of the stabilization control project; The debugging and updating subsystem is used to debug the target device driver package based on the associated device to update the stabilization control logic according to the debugging result.

10. The system according to claim 9, characterized in that The driver package editing and generating subsystem includes a stabilization strategy editing subsystem and a driver package generating subsystem; wherein, The stabilization control strategy editing subsystem is used to define a stabilization control strategy data model and a model description format according to the stabilization control information of the stabilization control project; determine an initial strategy description file according to the stabilization control strategy data model and the model description format; convert the initial strategy description file into structural data corresponding to the plurality of stabilization control elements based on the stabilization control information; generate an application element mapping conversion script and a stabilization control strategy table corresponding to the stabilization control project according to preset stabilization control measures and the performance requirements; configure the associated elements of the stabilization control strategy table based on the performance requirements to determine a target stabilization control strategy table; wherein the associated elements include communication channels and input and output settings; The driver package generation subsystem is used to generate a target device driver package corresponding to the stabilization project according to the target stabilization strategy table, the application component mapping conversion script and the structure data.

11. An electronic device, characterized in that: include: processor; A memory storing a computer program, which, when executed by the processor, enables the processor to execute the editing and running method of the stabilization control strategy table according to any one of claims 1 to 8.

12. A non-transitory computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the instructions are executed by a processor, the processor executes the editing and operating method of the stabilization control strategy table as described in any one of claims 1-8.