A flexible configuration method and system for multi-condition protection software

Through the method of adaptive selection of configuration file tables and protection modules and mapping of logical resources to physical resources, the problem of multiple versions and complex maintenance of power system relay protection devices under multiple working conditions is solved, and flexible configuration and high-efficiency protection software are realized. reliability.

CN118572614BActive Publication Date: 2025-01-21NANJING GUODIAN NANZI WEIMEIDE AUTOMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411046936.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2025-01-21
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

The existing power system relay protection devices have numerous versions under different operating conditions and have large maintenance workloads, and limited hardware channels, which cannot maximize support for different protection functions, resulting in complex device configuration.

Method used

The adaptive selection of configuration file tables and protection modules and the mapping of logical resources to physical resources are used to improve the software's support under multiple working conditions, reduce the number of versions, and improve the reuse rate of public protection modules.

Benefits of technology

It realizes the flexible configuration of protection software under different working conditions, reduces the workload of configuration program development, improves protection reliability, and reduces the number of versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118572614B_ABST
    Figure CN118572614B_ABST
Patent Text Reader

Abstract

The present invention discloses a flexible configuration method and system for multi-condition protection software, which relates to the technical field of relay protection of power systems, including: configuring and storing protection resources required for various working conditions, parsing configuration files, generating memory operation space and resource index pointers, and performing resource configuration and parsing; performing initialization operations according to the resource configuration and parsing results through the multi-condition configuration and condition definition in the configuration file; obtaining input through the resource index pointer, performing real-time calculations, and refreshing the variable value of the output resource according to the output index pointer to update the configuration; saving the updated configuration and sending it to the PC debugging software and MMI management board through the communication interface, and organizing resource communication frames at the same time. The present invention improves the support for multi-condition protection in terms of software and hardware coordination, improves the flexibility of protection software configuration, improves the reuse rate of common protection modules, improves protection reliability, and reduces the number of versions of similar protection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of relay protection for electric power systems, and in particular to a flexible configuration method and system for multi-operating condition protection software. Background Art

[0002] At present, the main manufacturers of power system relay protection have done a lot of standardization work on relay protection devices under different wiring methods and voltage levels in accordance with industry specifications, which has brought convenience to on-site maintenance, but for relay protection manufacturers, it has also brought problems such as numerous versions and heavy maintenance workload. For some relay protection specialties with relatively low standardization, there are also problems such as multiple working conditions leading to difficult management of protection configurations. For example, for generator transformer group protection, the typical protection configurations under thermal power, hydropower, pumped storage, and gas turbine working conditions are not the same. Although some protection functions are relatively common, such as generator differential, rotor grounding protection, overload and other working conditions, some protection functions are relatively special, such as split phase differential and DC grounding protection, which are only required under specific working conditions.

[0003] In addition, different protection functions often require different hardware channels to support them. Software functions can be configured to the maximum, but the number of hardware channels is limited and cannot be maximized. Due to the solidification of the hardware, there are many versions of the device, and the configuration program or configuration database is relatively complex. It is necessary to optimize the protection software so that it can be flexibly configured under different working conditions, reducing the workload of configuration program development. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention is proposed.

[0005] Therefore, the technical problem solved by the present invention is: in order to improve the flexibility of protection software configuration, increase the reuse rate of common protection modules, and reduce the number of versions of the same type of protection, a configuration file table is combined with adaptive matching of protection modules and mapping of logical resources to physical resources to improve the support for multiple protection conditions in terms of software and hardware coordination; in order to facilitate engineering services and on-site management, protection functions under multiple working conditions are merged into a set of protection software, and only the required typical protection functions are opened under different working conditions; in addition, in order to reduce the workload of configuration program development, the association between the resource configuration in the protection configuration file and the protection program is established through methods such as flexible registration of resource index pointers and adaptive opening of running space.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: a flexible configuration method for multi-condition protection software, including protection resource configuration and analysis, protection module initialization, protection module cyclic execution and protection CPU communication:

[0007] The configuration and analysis of the protection resource configuration includes configuring and storing the software and hardware resources required for various working conditions on the PC, and storing the definition information of the software and hardware resources in the configuration file, the device CPU analyzes the defined configuration file, generates the corresponding memory operation space and resource index pointer, and establishes the mapping between the resource index pointer and the operation space;

[0008] The protection module initialization includes: configuring the protection module according to multiple working conditions, each protection module includes an optional port that can configure whether the protection module is put into operation, if the optional port is set to 1, the protection module automatically puts into cyclic operation, if the optional port is set to 0, the protection module exits the cyclic operation; generating the current working condition definition string from the internal fixed value of the working condition definition; if it is optional, the optional port of the protection module is set to 1, if it is not optional, the optional port is set to 0; until the initialization of all protection modules is completed;

[0009] The protection module loop execution includes: the protection module obtains input through the mapped input class resource index pointer, performs real-time calculation, and the result is updated in real time through the output class resource index pointer to the output class protection resource variable value until the loop execution of all protection modules is completed;

[0010] The protection CPU communication includes: the protection CPU shares the real-time status of the protection resources with the MMI plug-in and the PC debugging software; the selected resource configuration definition table is written into a binary file and sent to the PC protection debugging software and the MMI management board as a communication interface description file between the protection CPU and the MMI or debugging software; during the operation of the device, the protection CPU organizes the communication frames of various resources according to the format of the resource configuration definition table in the configuration file, and sends them to the MMI plug-in and the PC debugging software; the MMI plug-in or the PC debugging software parses the real-time data through the same configuration file to display and operate the human-machine interface.

[0011] As a preferred solution of the flexible configuration method of the multi-condition protection software of the present invention, wherein: the configuration and analysis of the configuration protection resources include, in a PC, defining a configuration file according to the multi-conditions, wherein each resource definition information in the configuration file includes a matching code string, an index identification string, and an internal name string;

[0012] The configuration file is downloaded to the file system of the protection CPU. The CPU program parses the configuration file when it is powered on. During the parsing, the resource configuration definition table is selected according to the protection function required by the specific working condition, and the selected resource configuration definition table under the actual working condition is obtained.

[0013] The CPU program opens up corresponding protection operation space memory according to the actual resource configuration definition table, which is used to store the input protection resource variable values ​​and output protection resource variable values ​​during protection calculation. The arrangement of the operation space memory refers to the various resource configuration definition tables;

[0014] The CPU program defines various resource index pointers and pointer description identification strings under multiple working conditions;

[0015] Start registering a single resource index pointer in the CPU program, and search the selected resource configuration definition table for an index identification string that is the same as the current pointer description identification string. If the number of matches found is 1, then establish a pointing relationship between the resource index pointer and the protection run space memory according to the position of the index identification string in the resource configuration definition table, and complete the registration of a single resource index pointer. If the registration of all resource index pointers is completed, the protection resource configuration initialization process is completed, otherwise continue to register a single resource index pointer in the CPU program;

[0016] If the number of matches found is greater than 1, it means that the configuration file is repeatedly defined, and the resource index pointer registration exception handling process is entered; if the number of matches found is 0, the index identification string is queried in the resource configuration definition table before the selection, and if the number of matches is 1, the resource index pointer is pointed to a fixed constant variable;

[0017] If the number of matches in the resource configuration definition table before selection is 0 or greater than 1, it means that there is no definition or duplicate definition in the configuration file, and the resource index pointer registration exception handling process is transferred;

[0018] If the registration of all resource index pointers is completed, the protection resource configuration initialization process is completed, otherwise the registration of a single resource index pointer in the CPU program is continued.

[0019] As a preferred solution of the flexible configuration method of multi-condition protection software of the present invention, wherein: the matching of the resource configuration definition table according to the protection function required by the specific working condition includes, in the configuration file, setting the same matching code string for various types of protection resources involved in any single protection function, and the matching code strings of different protection functions are different from each other;

[0020] In the CPU program, the current working condition definition string is generated from the internal fixed value of the working condition definition;

[0021] If the operating condition definition string contains an optional code for a protection function, it means that this protection function and protection resource are selected.

[0022] As a preferred solution of the flexible configuration method of the multi-condition protection software described in the present invention, the multi-condition definition configuration file includes a parameter setting table, a protection setting table, an internal setting table, a protection pressure plate table, an analog display table, a switch display table, an analog recording table, a switch recording table, an action event table, an alarm event table, a remote signal table, an analog input table, a weak current input table, a strong current input table, a tripping output table, a signal output table, and a panel light table.

[0023] As a preferred solution of the flexible configuration method of multi-condition protection software of the present invention, wherein: the various resource configuration definition tables include, the definition information of each parameter setting in the parameter setting table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a maximum value, a minimum value, a default value, a unit, and a step size;

[0024] The definition information of each protection setting in the protection setting table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a maximum value, a minimum value, a default value, a unit, and a step size;

[0025] The definition information of each internal fixed value in the internal fixed value table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a maximum value, a minimum value, a default value, a unit, and a step size;

[0026] The definition information of each protection pressure plate in the protection pressure plate table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a hard pressure plate mode, and a hard pressure plate associated input index identification;

[0027] The definition information of the analog quantity display in the analog quantity display table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a unit, a print control word, and an upload control word;

[0028] The definition information of each switch quantity display in the switch quantity display table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a print control word, and an upload control word;

[0029] The definition information of each analog quantity recording wave in the analog quantity recording wave table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a unit, a print control word, an upload control word, and an analog channel index identification;

[0030] The definition information of each switch value recording wave in the switch value recording wave table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a unit, a print control word, an upload control word, and an input channel index identification;

[0031] The definition information of each action event in the action event table includes a page name string, an option code string, an index identification string, an internal name string, a control word of whether to keep, and an action parameter string;

[0032] The definition information of each alarm event in the alarm event table includes a page name string, an option code string, an index identification string, an internal name string, a control word whether to keep, and an action parameter string;

[0033] The definition information of each analog input in the analog input table includes a page name string, a matching code string, an index identification string, an internal name string, an internal sequence, and a channel selection constant index identification;

[0034] The definition information of each weak current input in the weak current input table includes a page name string, an option code string, an index identification string, an internal name string, an internal sequence, a debounce time, a refresh rate, whether to record a wave, a recording index identification, and a channel selection constant index identification;

[0035] The definition information of each high-voltage input in the high-voltage input table includes a page name string, an option code string, an index identification string, an internal name string, an internal sequence, a debounce time, a refresh rate, whether to record a wave, a recording index identification, and a channel selection constant index identification;

[0036] The definition information of each tripping operation in the tripping operation table includes a page name string, a matching code string, an index identification string, an internal name string, an internal sequence, and a channel selection fixed value index identification;

[0037] The definition information of each signal output in the signal output table includes a page name string, a matching code string, an index identification string, an internal name string, an internal sequence, and a channel selection constant index identification;

[0038] The definition information of each panel light in the panel light table includes a page name string, an option code string, an index identification string, an internal name string, and an internal sequence.

[0039] As a preferred solution of the flexible configuration method of multi-condition protection software described in the present invention, wherein: the valid characters in the optional code string are fixed to 2, and the value types include control word, current kA, current A, voltage kV, voltage V, active power MW, capacity MVA, time s, int32, float and 32-bit mode word; all character strings are less than 64 characters in length.

[0040] As a preferred solution of the flexible configuration method of the multi-condition protection software of the present invention, when configuring the analog input table, weak current input table, strong current input table, trip output table and signal output table, a method of mapping logical resources to physical resources or directly adopting a physical resource configuration method can be selected;

[0041] The way in which the logical resources map the physical resources includes configuring the channel selection setting of the logical analog input, the logical weak current input, the logical strong current input, the logical trip output and the logical signal output in the internal setting table, which is used to select and map a certain physical analog input channel, a physical weak current input channel, a physical strong current input channel, a physical trip output channel and a physical signal output channel, and the channel selection setting is an unsigned 32-bit integer value corresponding to the serial number of the hardware channel; the channel selection setting index identifier in the analog input table, the weak current input table, the strong current input table, the trip output table and the signal output table is filled in with the index identifier string of the corresponding channel selection setting in the internal setting table;

[0042] The physical resource configuration method includes setting the corresponding channel selection constant index identifier in the configuration of the analog input table, the weak current input table, the strong current input table, the trip output table and the signal output table to the character "none", and filling the internal sequence with an integer value, whose size corresponds to the sequence number of the corresponding physical channel;

[0043] When the CPU program obtains the internal fixed value, it automatically completes the mapping of logical resources to physical resources and the configuration of the physical resources.

[0044] As a preferred solution of the flexible configuration method of the multi-condition protection software described in the present invention, wherein: if the pressure plate resources in the protection pressure plate table need to be associated with weak current input, the hard pressure plate associated input index identifier in the pressure plate table is configured with the index identifier string in the weak current input table; if it is not necessary to associate with weak current input, the hard pressure plate associated input index identifier in the pressure plate table is configured as none; after associating with weak current input, when the soft pressure plate and the weak current input are set to 1 at the same time, the memory in the pressure plate resource operation space is set to 1;

[0045] If the switch quantity recording needs to record weak current input and strong current input, the input channel index mark of the switch quantity recording table is configured with the index mark string of the resources in the weak current input table and the strong current input table; if the switch quantity recording does not need to record weak current input and strong current input, the input channel index mark of the switch quantity recording table is configured as none;

[0046] If the analog quantity recording needs to record the analog quantity in the analog quantity input table, the analog channel index identifier of the analog quantity recording table is configured with the resource index identifier string in the analog quantity input table; if the analog quantity recording does not need to record the analog quantity in the analog quantity input table, the analog channel index identifier of the analog quantity recording table is configured as none;

[0047] When the CPU program completes parsing of the configuration file, the recording configuration is automatically completed according to the input channel index mark or the analog channel index mark.

[0048] As a preferred scheme of the flexible configuration method of multi-condition protection software described in the present invention, wherein: various resource index pointers under multiple working conditions defined in the CPU program include parameter set value pointer, protection set value pointer, internal set value pointer, protection pressure plate pointer, analog display pointer, switch display pointer, analog recording pointer, switch recording pointer, action event pointer, alarm event pointer, remote signal pointer, analog input pointer, weak current input pointer, strong current input pointer, tripping output pointer, signal output pointer, panel light pointer, and each pointer corresponds to a fixed index identification string.

[0049] As a preferred scheme of the flexible configuration method of multi-condition protection software described in the present invention, wherein: the resource index pointer is pointed to a fixed constant variable, including, when the constant type is a control word or an unsigned integer, the pointer is pointed to the 32-bit integer variable uMin, and uMin is fixed to 0; if the constant type is an over-protection constant, the pointer is pointed to the 32-bit floating-point variable fMax, and fMax is fixed to 99999.0; if it is an under-protection constant, the pointer is pointed to fMin, and fMin is fixed to 0.

[0050] As a preferred solution of the flexible configuration method of multi-condition protection software described in the present invention, the resource index pointer registration exception handling process includes: the CPU program outputs the pointer description identification string of the resource index pointer that is queried for exception in the debugging terminal, if the number of matches is 0, then prints the pointer description identification string + not found, if the number of matches is greater than 1, then prints the pointer description identification string + multiple definition; and reports an initialization fault alarm event in the protection device interface.

[0051] A flexible configuration system for multi-condition protection software, comprising:

[0052] Configuration and parsing module: configures and stores the protection resources required for various working conditions, parses the configuration files, generates the corresponding memory operation space and resource index pointer, and performs resource configuration and parsing;

[0053] Initialization module: performs initialization operations based on resource configuration and parsing results through multi-condition configuration and condition definition in the configuration file;

[0054] Real-time protection operation module: obtains input through resource index pointer, performs real-time operation, and refreshes the variable value of the output resource according to the output index pointer to update the configuration;

[0055] Communication module: saves the updated configuration and sends it to the PC debugging software and MMI management board through the communication interface, and organizes resource communication frames;

[0056] The configuration and analysis module is connected to the initialization module, and the configuration and analysis module processes the input configuration file, generates a memory operation space and a resource index pointer, and passes them to the initialization module as basic data for initialization;

[0057] The initialization module is connected to the real-time protection operation module. After the initialization module is set, the resource index pointer of the working condition definition and configuration is directly provided to the real-time protection operation module for use;

[0058] The real-time protection operation module is connected to the communication module, and the result obtained by the real-time protection operation module according to the input calculation is sent to the external device through the communication module.

[0059] A computer device comprises: a memory and a processor; the memory stores a computer program, wherein: the processor implements the steps of any one of the methods of the present invention when executing the computer program.

[0060] A computer-readable storage medium stores a computer program, wherein: when the computer program is executed by a processor, the steps of any one of the methods of the present invention are implemented.

[0061] The beneficial effects of the present invention are as follows: the present invention adopts the method of adaptive matching of configuration file tables and protection modules and mapping of logical resources to physical resources, thereby improving the support for multiple protection conditions in terms of software and hardware coordination, improving the flexibility of protection software configuration, improving the reuse rate of common protection modules, improving protection reliability, and reducing the number of versions of the same type of protection; the protection functions under multiple working conditions are merged into a set of protection software, and only the required typical protection functions are opened under different working conditions, which facilitates engineering services and on-site management; in addition, through methods such as flexible registration of resource index pointers and adaptive opening of running space, the association between the resource configuration in the protection configuration file and the protection program is established, thereby reducing the workload of configuration program development. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0063] Figure 1An overall flow chart of a flexible configuration method for multi-condition protection software provided by the first embodiment of the present invention;

[0064] Figure 2 A protection resource configuration and analysis flow chart of a flexible configuration method for multi-condition protection software provided by the first embodiment of the present invention;

[0065] Figure 3 A protection module initialization flow chart of a flexible configuration method for multi-condition protection software provided by the first embodiment of the present invention;

[0066] Figure 4 A protection module loop execution flow chart of a flexible configuration method for multi-condition protection software provided by the first embodiment of the present invention;

[0067] Figure 5 A protection CPU communication circuit diagram of a flexible configuration method for multi-condition protection software provided by the first embodiment of the present invention;

[0068] Figure 6 A schematic diagram of registering a protection resource index pointer of a flexible configuration method for multi-condition protection software provided by the first embodiment of the present invention;

[0069] Figure 7 A schematic diagram of mapping logical resources to physical resources for a flexible configuration method for multi-condition protection software provided in the first embodiment of the present invention. DETAILED DESCRIPTION

[0070] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0071] Example 1, reference Figure 1 to Figure 7 , which is an embodiment of the present invention, provides a flexible configuration method for multi-condition protection software, including four parts: protection resource configuration and analysis, protection module initialization, protection module cyclic execution and protection CPU communication.

[0072] S1: The protection resource configuration and analysis process includes defining the protection setting, protection pressure plate, event, exit and other software and hardware resources required under various working conditions on the PC. The definition information of the corresponding resources is stored in the configuration file in text or binary format. At the same time, the device CPU parses the defined configuration file and generates an operating space arranged in the configuration file format in the memory according to the specific application conditions. The protection application needs to define the resource index pointer of the protection setting, protection pressure plate, event, exit and other software and hardware. The mapping between the resource index pointer and the operating space is established when the device is initialized. Figure 2 shown.

[0073] The specific steps are as follows:

[0074] Step 1: Define the configuration file in the PC according to multiple working conditions. The configuration file uses the csv format. The configuration file consists of multiple protection resource configuration tables. The specific contents are as follows:

[0075] The definition information of each parameter setting in the parameter setting table includes page name string, matching code string, index identification string, internal name string, value type, maximum value, minimum value, default value, unit, and step size.

[0076] The definition information of each protection setting in the protection setting table includes page name string, option code string, index identification string, internal name string, value type, maximum value, minimum value, default value, unit, and step size.

[0077] The definition information of each internal fixed value in the internal fixed value table includes page name string, matching code string, index identification string, internal name string, value type, maximum value, minimum value, default value, unit, and step size.

[0078] The definition information of each protection pressure plate in the protection pressure plate table includes a page name string, an option code string, an index identifier string, an internal name string, a value type, a hard pressure plate mode, and a hard pressure plate associated input index identifier.

[0079] The definition information of analog display in the analog display table includes page name string, option code string, index identification string, internal name string, value type, unit, print control word, and upload control word.

[0080] The definition information of each switch quantity display in the switch quantity display table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a print control word, and an upload control word.

[0081] The definition information of each analog quantity recording in the analog quantity recording table includes page name string, option code string, index identification string, internal name string, value type, unit, print control word, and upload control word.

[0082] The definition information of each switch quantity recording in the switch quantity recording table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a unit, a print control word, and an upload control word.

[0083] The definition information of each action event in the action event table includes a page name string, an option code string, an index identification string, an internal name string, a control word of whether to keep, and an action parameter string.

[0084] The definition information of each alarm event in the alarm event table includes a page name string, an option code string, an index identification string, an internal name string, a control word of whether to keep, and an action parameter string.

[0085] The definition information of each analog input in the analog input table includes a page name string, an option code string, an index identifier string, an internal name string, an internal sequence, and a channel selection constant index identifier.

[0086] The definition information of each weak current input in the weak current input table includes page name string, option code string, index identification string, internal name string, internal sequence, debounce time, refresh rate, whether to record waveform, recording index identification, and channel selection constant index identification.

[0087] The definition information of each high-voltage input in the high-voltage input table includes page name string, option code string, index identification string, internal name string, internal sequence, de-bouncing time, refresh rate, whether to record waveform, recording index identification, and channel selection constant index identification.

[0088] The definition information of each tripping output in the tripping output table includes a page name string, an option code string, an index identification string, an internal name string, an internal sequence, and a channel selection constant index identification.

[0089] The definition information of each signal output in the signal output table includes a page name string, an option code string, an index identifier string, an internal name string, an internal sequence, and a channel selection constant index identifier.

[0090] The definition information of each panel light in the panel light table includes a page name string, an option code string, an index identification string, an internal name string, and an internal sequence.

[0091] Taking the parameter setting resource configuration table as an example, the protection resource configuration table is shown in Table 1.

[0092] Table 1 Protection resource configuration table

[0093] Page Name Optional code Index ID Internal Name Value Types Maximum Minimum default value unit Step Length Plant parameters none Fixed area code Fixed area code int32 31 1 1 none 0 Plant parameters none System frequency System frequency float 1 0 0 Hz 1 Generator parameters G / Generator rated capacity Generator rated capacity Active MW 3000 0.01 300 MW 0.1 Generator parameters G / Generator power factor Generator power factor float 1 0.01 0.95 none 0.01 Generator parameters G / Circuit breaker installed at generator end Circuit breaker at the machine end Control Word 1 0 0 none 1 Generator parameters G / Generator rated voltage Rated voltage at the machine end Voltage kV 1000 0.01 13.8 kV Generator parameters F / Turn-to-turn dedicated PT input Turn-to-turn dedicated PT input Control Word 1 0 1 none 1 Generator parameters G / Machine-side PT primary value Machine-side PT primary value Voltage kV 1000 1 13.8 kV 0.1 Generator parameters G / Machine-side PT secondary value Machine-side PT secondary value Voltage V 100 0.01 100 V 0.1

[0094] Furthermore, the valid characters in the above optional code string are fixed to 2, and the value types include control word, current kA, current A, voltage kV, voltage V, active power MW, capacity MVA, time s, int32, float and 32-bit mode word, etc., and the length of all strings is less than 64 characters.

[0095] When configuring analog input meter, weak current input meter, strong current input meter, trip output meter or signal output meter, you can select Figure 7 The method of mapping logical resources to physical resources shown in the figure or directly using the physical resource configuration method is convenient for flexible configuration. If the logical resource mapping method is used, the steps are as follows:

[0096] ① The channel selection constants of logical analog input, logical weak current input, logical strong current input, logical trip output or logical signal output are configured in the internal constant table, which are used to select and map a physical analog input channel, physical weak current input channel, physical strong current input channel, physical trip output channel or physical signal output channel. The channel selection constant is an unsigned 32-bit integer value corresponding to the serial number of the hardware channel.

[0097] ② The channel selection constant index identifier in the analog input table, weak current input table, strong current input table, trip output table or signal output table needs to be filled with the index identifier string of the corresponding channel selection constant in the internal constant table; if the physical resource configuration method is adopted, the corresponding channel selection constant index identifier in the analog input table, weak current input table, strong current input table, trip output table or signal output table configuration is set to the Chinese character "none", and the internal sequence is filled with an integer value, whose size corresponds to the sequence number of the corresponding physical channel; when the CPU program obtains the internal fixed value, it automatically completes the mapping of logical resources to physical resources, or the configuration of physical channels; if the pressure plate resource in the protection pressure plate table needs to be associated with the weak current input, the hard pressure plate associated input index identifier in the pressure plate table is configured with the index identifier string in the weak current input table; if it does not need to be associated with the weak current input, the hard pressure plate associated input index identifier in the pressure plate table is configured as none; after associating with the weak current input, when the soft pressure plate and the weak current input are set to 1 at the same time, the memory in the pressure plate resource running space is set to 1.

[0098] If the switch quantity recording needs to record the weak current input and the strong current input, the input channel index identifier of the switch quantity recording table shall be configured with the index identifier string of the resources in the weak current input table and the strong current input table; if the switch quantity recording does not need to record the weak current input and the strong current input, the input channel index identifier of the switch quantity recording table shall be configured as none; if the analog quantity recording needs to record the analog quantity in the analog quantity input table, the analog channel index identifier of the analog quantity recording table shall be configured with the resource index identifier string in the analog quantity input table; if the analog quantity recording does not need to record the analog quantity in the analog quantity input table, the analog channel index identifier of the analog quantity recording table shall be configured as none; when the CPU program completes the parsing of the configuration file, the recording configuration shall be automatically completed according to the input channel index identifier or the analog channel index identifier.

[0099] Step 2: Download the configuration file to the file system of the protection CPU. The CPU program parses the configuration file when it is powered on. During the parsing, the resource configuration definition table is selected according to the protection function required by the specific working condition, and the selected resource configuration definition table under the actual working condition is obtained. The selection method is specifically to set the same selection code string for various types of protection resources involved in any single protection function in the configuration file, and the selection code strings of different protection functions are different; in the CPU program, it is assumed that the current working condition definition string generated from the internal constant of the working condition definition is "T1T2T3G / F / "; T1 represents the main transformer differential protection, T2 represents the main transformer high-voltage side re-voltage overcurrent protection, T3 represents the main transformer high-voltage side zero-sequence overcurrent protection, G / represents the generator differential protection, and F / represents the longitudinal zero-sequence voltage turn-to-turn protection. If the working condition definition string contains the selection code of a certain protection function, it means that the protection function and related protection resources are all selected.

[0100] Step 3: The CPU program allocates corresponding protection operation space memory according to the actual resource configuration definition table, which is used to store the input protection resource variable values ​​and output protection resource variable values ​​during protection calculation. The arrangement of the operation space memory strictly refers to various resource configuration definition tables.

[0101] Step 4: Figure 6 As shown, the CPU program defines various resource index pointers and pointer description identification strings under multiple working conditions, including parameter set value pointer, protection set value pointer, internal set value pointer, protection pressure plate pointer, analog display pointer, switch display pointer, analog recording pointer, switch recording pointer, action event pointer, alarm event pointer, remote signal pointer, analog input pointer, weak current input pointer, strong current input pointer, tripping output pointer, signal output pointer, and panel light pointer. Each pointer corresponds to a fixed index identification string.

[0102] Step 5: Figure 6As shown, registration of a single resource index pointer in the CPU program begins, that is, searching the resource configuration definition table after selection for an index identification string that is identical to the current pointer description identification string. If the number of matches found is 1, proceed to step 6; if the number of matches found is greater than 1, it indicates that the configuration file has been repeatedly defined, and the resource index pointer registration exception handling process is entered; if the number of matches found is 0, the index identification string is further searched in the resource configuration definition table before selection. If the number of matches is 1, proceed to step 7; if the number of matches is 0 or greater than 1, it indicates that the configuration file has not been defined or has been repeatedly defined, and the resource index pointer registration exception handling process is entered.

[0103] Step 6: According to the position of the index identification string in the resource configuration definition table, establish the pointing relationship between the resource index pointer and the protected running space memory, complete the registration of a single resource index pointer, and then execute step 8.

[0104] Step 7: If a unique corresponding index identification string is found in the resource configuration definition table before matching, point the resource index pointer to a fixed constant variable to prevent the resource index pointer from being referenced by mistake. The fixed constant variables include: if the constant type is a control word or unsigned integer, point the pointer to the 32-bit integer variable uMin, and uMin is fixed to 0; if the constant type is an over-protection constant such as delay, capacity, over-current set value, over-voltage set value, etc. in the floating point, point the pointer to the 32-bit floating point variable fMax, and fMax is fixed to 99999.0; if it is an under-protection set such as impedance or low voltage, point to fMin, and fMin is fixed to 0.

[0105] Step 8: If the registration of all resource index pointers is completed, the protection resource configuration initialization process is completed, otherwise go to step 5.

[0106] S2: According to the resource configuration and parsing results, initialization operations are performed through the multi-condition configuration and condition definition in the configuration file.

[0107] It should be noted that if Figure 3 As shown in FIG. 1 , the protection module initialization process includes configuring the protection module according to multiple working conditions. Each protection module must include an optional port that can configure whether the protection module is put into operation. If the optional port is set to 1, the protection module automatically starts to run in a loop. If the optional port is set to 0, the protection module exits the loop. The current working condition definition string is generated from the internal constant of the working condition definition. When a single protection module is initialized, the protection module is selected according to the working condition definition string. If it is selected, the optional port of the protection module is set to 1. If it is not selected, the optional port is set to 0. The initialization of the remaining protection modules is carried out in the same manner as described above until the initialization of all protection modules is completed.

[0108] S3: Get input through resource index pointer, perform real-time calculations, and refresh the variable value of the output resource according to the output index pointer to update the configuration.

[0109] It should be noted that if Figure 4 As shown, the protection module loop execution process includes the protection module obtaining input through the mapped input class resource index pointer; the protection module performs real-time calculations, and the results are refreshed in real time through the output class resource index pointer to the output class protection resource variable value; the remaining protection modules run in the same way as above until the loop execution of all protection modules is completed.

[0110] S4: Save the updated configuration and send it to the PC debugging software and MMI management board through the communication interface, and organize the resource communication frame.

[0111] It should be noted that if Figure 5 As shown, the protection CPU board needs to share the real-time status of the protection resources with the MMI management board and the PC debugging software. The protection CPU writes the selected resource configuration definition table into a binary file for storage, and sends it to the PC protection debugging software and the MMI management board for communication, which is used as a communication interface description file between the protection CPU and the MMI or debugging software. During the operation of the device, the protection CPU organizes the communication frames of various resources according to the format of the resource configuration definition table in the configuration file, and sends them to the MMI plug-in and the PC debugging software. The MMI plug-in or the PC debugging software parses the real-time data through the same configuration file, and performs human-machine interface display and operation.

[0112] The above embodiment also includes a multi-condition protection software flexible configuration system, including:

[0113] Configuration and analysis module: configure and store the protection resources required for various working conditions on the PC, including fixed values, pressure plates, events and exports. The device CPU parses the configuration file, generates the corresponding memory operating space and resource index pointer, and performs resource configuration and analysis.

[0114] Module initialization and configuration decision module: Initialize the protection module according to the multi-condition configuration and condition definition, and decide whether each module is put into operation, and select the module according to the condition definition string.

[0115] Real-time protection operation module: The protection module obtains input according to the resource index pointer, performs real-time operation, and refreshes the variable value of the output resource through the output index pointer.

[0116] Communication and data synchronization module: protects the CPU to save the configuration definition table and send it to the PC debugging software and MMI management board through the communication interface, while organizing resource communication frames to ensure real-time data communication and human-machine interface interaction.

[0117] The computer device may be a server. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data cluster data of the power monitoring system. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a flexible configuration method for multi-condition protection software is implemented.

[0118] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

Claims

1. A flexible configuration method for multi-condition protection software, characterized in that: Including protection resource configuration and analysis, protection module initialization, protection module loop execution and protection CPU communication: The protection resource configuration and analysis includes configuring and storing the software and hardware resources required for various working conditions on the PC, and storing the definition information of the software and hardware resources in the configuration file, the device CPU analyzes the defined configuration file, generates the corresponding memory operation space and resource index pointer, and establishes the mapping between the resource index pointer and the operation space; The protection module initialization includes: configuring the protection module according to multiple working conditions, each protection module includes an optional port that can configure whether the protection module is put into operation, if the optional port is set to 1, the protection module automatically puts into cyclic operation, if the optional port is set to 0, the protection module exits the cyclic operation; generating the current working condition definition string from the internal fixed value of the working condition definition; if it is optional, the optional port of the protection module is set to 1, if it is not optional, the optional port is set to 0; Until the initialization of all protection modules is completed; The protection module loop execution includes: the protection module obtains input through the mapped input class resource index pointer, performs real-time calculation, and the result is updated in real time through the output class resource index pointer to the output class protection resource variable value until the loop execution of all protection modules is completed; The protection CPU communication includes: the protection CPU shares the real-time status of the protection resources with the MMI plug-in and the PC debugging software; the selected resource configuration definition table is written into a binary file and sent to the PC protection debugging software and the MMI management board as a communication interface description file between the protection CPU and the MMI or debugging software; during the operation of the device, the protection CPU organizes the communication frames of various resources according to the format of the resource configuration definition table in the configuration file, and sends them to the MMI plug-in and the PC debugging software; the MMI plug-in or the PC debugging software parses the real-time data through the same configuration file, and performs human-machine interface display and operation; The protection resource configuration and analysis specifically includes the following steps: defining a configuration file in a PC according to multiple working conditions, wherein each resource definition information in the configuration file includes an option code string, an index identification string, and an internal name string; The configuration file is downloaded to the file system of the protection CPU. The CPU program parses the configuration file when it is powered on. During the parsing, the resource configuration definition table is selected according to the protection function required by the specific working condition, and the selected resource configuration definition table under the actual working condition is obtained; The CPU program opens up corresponding protection operation space memory according to the actual resource configuration definition table, which is used to store the input protection resource variable values ​​and output protection resource variable values ​​during protection calculation. The arrangement of the operation space memory refers to the various resource configuration definition tables; The CPU program defines various resource index pointers and pointer description identification strings under multiple working conditions; Start registering a single resource index pointer in the CPU program, and search the selected resource configuration definition table for an index identification string that is the same as the current pointer description identification string. If the number of matches found is 1, then establish a pointing relationship between the resource index pointer and the protection run space memory based on the position of the index identification string in the resource configuration definition table, and complete the registration of a single resource index pointer. If the registration of all resource index pointers is completed, the protection resource configuration initialization process is completed, otherwise continue to register a single resource index pointer in the CPU program; If the number of matches found is greater than 1, it means that the configuration file is defined repeatedly, and the resource index pointer registration exception handling process is entered; If the number of matches found is 0, the index identification string is searched in the resource configuration definition table before the selection. If the number of matches is 1, the resource index pointer is pointed to the fixed constant variable; If the number of matches in the resource configuration definition table before selection is 0 or greater than 1, it means that there is no definition or duplicate definition in the configuration file, and the resource index pointer registration exception handling process is transferred; If the registration of all resource index pointers is completed, the protection resource configuration initialization process is completed, otherwise the registration of a single resource index pointer in the CPU program is continued; The resource configuration definition table is configured according to the protection function required by the specific working condition, including setting the same configuration code string for each type of protection resource involved in any single protection function in the configuration file, and the configuration code strings of different protection functions are different from each other; In the CPU program, the current working condition definition string is generated from the internal fixed value of the working condition definition; If the working condition definition string contains the option code of a protection function, it means that this protection function and protection resource are selected; The multi-condition definition configuration file includes a parameter setting table, a protection setting table, an internal setting table, a protection pressure plate table, an analog display table, a switch display table, an analog recording table, a switch recording table, an action event table, an alarm event table, a remote signal table, an analog input table, a weak current input table, a strong current input table, a tripping output table, a signal output table, and a panel light table.

2. The method for flexible configuration of multi-condition protection software according to claim 1, characterized in that: The various resource configuration definition tables include: the definition information of each parameter value in the parameter setting table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a maximum value, a minimum value, a default value, a unit, and a step size; The definition information of each protection setting in the protection setting table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a maximum value, a minimum value, a default value, a unit, and a step size; The definition information of each internal fixed value in the internal fixed value table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a maximum value, a minimum value, a default value, a unit, and a step size; The definition information of each protection pressure plate in the protection pressure plate table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a hard pressure plate mode, and a hard pressure plate associated input index identification; The definition information of the analog quantity display in the analog quantity display table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a unit, a print control word, and an upload control word; The definition information of each switch quantity display in the switch quantity display table includes a page name string, a matching code string, an index identification string, an internal name string, a value type, a print control word, and an upload control word; The definition information of each analog quantity recording wave in the analog quantity recording wave table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a unit, a print control word, an upload control word, and an analog channel index identification; The definition information of each switch value recording wave in the switch value recording wave table includes a page name string, an option code string, an index identification string, an internal name string, a value type, a unit, a print control word, an upload control word, and an input channel index identification; The definition information of each action event in the action event table includes a page name string, an option code string, an index identification string, an internal name string, a control word of whether to keep, and an action parameter string; The definition information of each alarm event in the alarm event table includes a page name string, an option code string, an index identification string, an internal name string, a control word whether to keep, and an action parameter string; The definition information of each analog input in the analog input table includes a page name string, a matching code string, an index identification string, an internal name string, an internal sequence, and a channel selection fixed value index identification; The definition information of each weak current input in the weak current input table includes a page name string, a matching code string, an index identification string, an internal name string, an internal sequence, a debounce time, a refresh rate, whether to record a wave, a recording index identification, and a channel selection constant index identification; The definition information of each high-voltage input in the high-voltage input table includes a page name string, an option code string, an index identification string, an internal name string, an internal sequence, a debounce time, a refresh rate, whether to record a wave, a recording index identification, and a channel selection constant index identification; The definition information of each tripping operation in the tripping operation table includes a page name string, a matching code string, an index identification string, an internal name string, an internal sequence, and a channel selection constant index identification; The definition information of each signal output in the signal output table includes a page name string, a matching code string, an index identification string, an internal name string, an internal sequence, and a channel selection constant index identification; The definition information of each panel light in the panel light table includes a page name string, an option code string, an index identification string, an internal name string, and an internal sequence.

3. The method for flexible configuration of multi-condition protection software according to claim 2, characterized in that: The number of valid characters in the matching code string is fixed to 2, and the value types include control word, current kA, current A, voltage kV, voltage V, active power MW, capacity MVA, time s, int32, float and 32-bit mode word; All strings must be less than 64 characters long.

4. The method for flexible configuration of multi-condition protection software according to claim 1, characterized in that: When configuring the analog input table, weak current input table, strong current input table, trip output table and signal output table, a method of mapping logical resources to physical resources or directly using a physical resource configuration method can be selected; The way in which the logical resources map the physical resources includes configuring the channel selection setting of the logical analog input, the logical weak current input, the logical strong current input, the logical trip output and the logical signal output in the internal setting table, which is used to select and map a certain physical analog input channel, a physical weak current input channel, a physical strong current input channel, a physical trip output channel and a physical signal output channel, and the channel selection setting is an unsigned 32-bit integer value corresponding to the serial number of the hardware channel; the channel selection setting index identifier in the analog input table, the weak current input table, the strong current input table, the trip output table and the signal output table is filled in with the index identifier string of the corresponding channel selection setting in the internal setting table; The physical resource configuration method includes setting the corresponding channel selection fixed value index identifier in the configuration of the analog input table, the weak current input table, the strong current input table, the trip output table and the signal output table to the character "none", and filling the internal sequence with an integer value, whose size corresponds to the sequence number of the corresponding physical channel; When the CPU program obtains the internal fixed value, it automatically completes the mapping of logical resources to physical resources and the configuration of the physical resources.

5. The method for flexible configuration of multi-condition protection software according to claim 1, characterized in that: If the pressure plate resources in the protection pressure plate table need to be associated with weak current input, the hard pressure plate associated input index identifier in the pressure plate table is configured with the index identifier string in the weak current input table; if it does not need to be associated with weak current input, the hard pressure plate associated input index identifier in the pressure plate table is configured as none; after associating with weak current input, when the soft pressure plate and weak current input are set to 1 at the same time, the memory in the pressure plate resource operation space is set to 1; If the switch quantity recording needs to record weak current input and strong current input, the input channel index mark of the switch quantity recording table is configured with the index mark string of the resources in the weak current input table and the strong current input table; if the switch quantity recording does not need to record weak current input and strong current input, the input channel index mark of the switch quantity recording table is configured as none; If the analog quantity recording needs to record the analog quantity in the analog quantity input table, the analog channel index identifier of the analog quantity recording table is configured with the resource index identifier string in the analog quantity input table; if the analog quantity recording does not need to record the analog quantity in the analog quantity input table, the analog channel index identifier of the analog quantity recording table is configured as none; When the CPU program completes parsing of the configuration file, the recording configuration is automatically completed according to the input channel index mark or the analog channel index mark.

6. The method for flexible configuration of multi-condition protection software according to claim 5, characterized in that: The CPU program defines various resource index pointers under multiple working conditions, including parameter set value pointer, protection set value pointer, internal set value pointer, protection pressure plate pointer, analog display pointer, switch display pointer, analog recording pointer, switch recording pointer, action event pointer, alarm event pointer, remote signal pointer, analog input pointer, weak current input pointer, strong current input pointer, tripping output pointer, signal output pointer, and panel light pointer, and each pointer corresponds to a fixed index identification string.

7. The method for flexible configuration of multi-condition protection software according to claim 6, characterized in that: The method of pointing the resource index pointer to a fixed constant variable includes: when the constant type is a control word or an unsigned integer, the pointer is pointed to the 32-bit integer variable uMin, and uMin is fixed to 0; if the constant type is an over-protection constant, the pointer is pointed to the 32-bit floating-point variable fMax, and fMax is fixed to 99999.0; if it is an under-protection constant, the pointer is pointed to fMin, and fMin is fixed to 0.

8. The method for flexible configuration of multi-condition protection software according to claim 7, characterized in that: The resource index pointer registration exception handling process includes: the CPU program outputs the pointer description identification string of the resource index pointer with the query exception to the debugging terminal, and if the number of matches is 0, prints the pointer description identification string + not found; if the number of matches is greater than 1, prints the pointer description identification string + multiple definition; An initialization fault alarm event is reported in the protection device interface.

9. A multi-condition protection software flexible configuration system using the method according to any one of claims 1 to 8, characterized in that: Configuration and parsing module: configures and stores the protection resources required for various working conditions, parses the configuration files, generates the corresponding memory operation space and resource index pointer, and performs resource configuration and parsing; Initialization module: performs initialization operations based on resource configuration and parsing results through multi-condition configuration and condition definition in the configuration file; Real-time protection operation module: obtains input through resource index pointer, performs real-time operation, and refreshes the variable value of the output resource according to the output index pointer to update the configuration; Communication module: saves the updated configuration and sends it to the PC debugging software and MMI management board through the communication interface, and organizes resource communication frames; The configuration and analysis module is connected to the initialization module, and the configuration and analysis module processes the input configuration file, generates a memory operation space and a resource index pointer, and passes them to the initialization module as basic data for initialization; The initialization module is connected to the real-time protection operation module. After the initialization module is set, the resource index pointer of the working condition definition and configuration is directly provided to the real-time protection operation module for use; The real-time protection operation module is connected to the communication module, and the result obtained by the real-time protection operation module according to the input calculation is sent to the external device through the communication module.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Intelligent configuration method for logic menu resources on basis of measurement instruments

    CN102609252A

  • Substation equipment state evaluation and early warning system and method based on digital twin platform

    CN117251810A