Power system relay protection device configuration logic loading method and relay protection device

By loading dynamic modules in the relay protection device of the power system to realize general and custom protection function logic, the problem of long product release cycle in the prior art is solved, and rapid response and adaptation to the needs of different scenarios are achieved.

CN119994779APending Publication Date: 2025-05-13BEIJING SIFANG JIBAO ENG TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411910628.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the product release cycle of the scene custom protection function of the power system is relatively long and cannot quickly respond to changes in complex scenarios of the power grid.

Method used

By reading dynamic module description information during CPU initialization, loading the common protection logic module and the secondary configuration logic module, the loading and execution of the general and custom protection function logic of the protection object is realized.

Benefits of technology

The product release cycle of scene custom protection functions is reduced, allowing the power system to quickly respond to and adapt to the needs of different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119994779A_ABST
    Figure CN119994779A_ABST
Patent Text Reader

Abstract

The invention provides a power system relay protection device configuration logic loading method and a relay protection device.The method is applied to a main logic module and comprises the steps that when a CPU is initialized, dynamic module description information is read, and a dynamic module to be loaded is determined to serve as a target module based on the dynamic module description information, the dynamic module comprises a public protection logic module and a secondary configuration logic module, the public protection logic module is used for realizing general protection function logic for a protected object, and the secondary configuration logic module is a user-defined logic module and is used for realizing user-defined extended protection function logic for the protected object; loading a target file of the target module to a memory; and performing relocation processing on the target module to enable the target module to load the target file from the memory so as to execute logic corresponding to the target module. Through the technical scheme provided by the invention, the product release period of the scene customization protection function can be shortened.
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, and in particular to a configuration logic loading method of a relay protection device of an electric power system and a relay protection device. Background Art

[0002] Relay protection is an important barrier to the safe operation of the power grid. However, due to the complexity and variability of power system scenarios, different voltage levels in different regions, different protection objects and other factors, power system faults have both some common fault manifestations and some unique fault manifestations. Due to the characteristics of fault manifestations, the protection functions cannot be completely unified. According to the actual situation on site, users need to customize some protection functions. For safety and reliability considerations, for specific scenarios, only the customized functions of the corresponding scenarios are updated in actual research and development, and other functions remain unchanged.

[0003] In the prior art, customized protection functions for scenarios often require updating the main logic of the relay protection device, which results in a long product release cycle. Summary of the invention

[0004] The present invention provides a configuration logic loading method for a power system relay protection device and a relay protection device, so as to solve the technical problem of long product release cycle for customized protection function of scenarios in the prior art, and realize reducing the product release cycle of customized protection function of scenarios.

[0005] The present invention provides a method for loading configuration logic of a relay protection device in an electric power system, comprising: When the CPU is initialized, the dynamic module description information is read, and the dynamic module to be loaded is determined as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic of the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic of the protection object; Loading the target file of the target module into the memory; The target module is relocated so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

[0006] According to a configuration logic loading method of a power system relay protection device provided by the present invention, the step of loading the target file of the target module into the memory comprises: Parsing the target file and reading the number of segments of the target file; The target file is segmented and loaded into the partition space corresponding to the target module in the memory based on the number of segments of the target file.

[0007] According to a method for loading configuration logic of a power system relay protection device provided by the present invention, before loading the target file of the target module into the memory, the method comprises: The target file is verified and loaded into the memory after passing the verification.

[0008] According to a configuration logic loading method for a power system relay protection device provided by the present invention, before loading the target file into a partition space corresponding to the target module in the memory based on the number of segments of the target file, the method comprises: Determining a key data area in the divided space corresponding to the target module; The key data area is set to be read-only.

[0009] According to a configuration logic loading method of a power system relay protection device provided by the present invention, after the target file of the target module is loaded into the memory, the method comprises: The symbol table of the target module is linked to the symbol table of the main logic module, organized into a linked list form and copied to the memory.

[0010] According to a method for loading configuration logic of a relay protection device in a power system provided by the present invention, the relocation process of the target module comprises: According to the segment name, the memory location of the segment to be relocated is read, and the offset address of the relocation item in the corresponding segment and the information in the symbol table are obtained. Through the information of the target module in the symbol table, the symbol corresponding to the relocation item is read, the actual address of the symbol is determined, the address of the relocation item is replaced with the actual memory address, and the execution is jumped.

[0011] The present invention also provides a relay protection device, comprising: a main logic module, a common protection function module and a secondary configuration logic module; The main logic module is used for: When the CPU is initialized, the dynamic module description information is read, and the dynamic module to be loaded is determined as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic of the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic of the protection object; Loading the target file of the target module into the memory; The target module is relocated so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, any of the above-mentioned configuration logic loading methods for a relay protection device in a power system is implemented.

[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned methods for loading configuration logic of a relay protection device in a power system is implemented.

[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for loading configuration logic of a relay protection device in a power system.

[0015] The present invention provides a method for loading configuration logic of a power system relay protection device and a relay protection device. The method reads dynamic module description information when the CPU is initialized, determines the dynamic module to be loaded as the target module based on the dynamic module description information, loads the target file of the target module into the memory, and relocates the target module so that the target module loads the target file from the memory to execute the logic corresponding to the target module. The dynamic module includes a common protection logic module for realizing the general protection function logic of the protection object and a secondary configuration logic module for realizing the custom extended protection function logic of the protection object. In this way, since the dynamic module is loaded by the main logic module according to the dynamic module description information when the CPU is initialized, for the specific protection function to be realized for a specific scene, it is only necessary to perform custom programming development on the secondary configuration logic module. Both the main logic module and the common protection logic module can remain unchanged, which can greatly reduce the product release cycle of the scene customized protection function. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 It is a flow chart of the configuration logic loading method of the power system relay protection device provided by the present invention.

[0018] Figure 2 It is a schematic diagram of memory space division in the configuration logic loading method of the power system relay protection device provided by the present invention.

[0019] Figure 3It is an example diagram of a graphical programming module in the configuration logic loading method of a power system relay protection device provided by the present invention.

[0020] Figure 4 The present invention provides an example diagram of the target file format in the method for loading the configuration logic of the power system relay protection device.

[0021] Figure 5 It is a schematic diagram of dynamic memory allocation in the configuration logic loading method of the power system relay protection device provided by the present invention.

[0022] Figure 6 The present invention is a schematic diagram of symbol table processing in a configuration logic loading method for a power system relay protection device.

[0023] Figure 7 It is a schematic diagram of the relocation process in the configuration logic loading method of the power system relay protection device provided by the present invention.

[0024] Figure 8 It is a structural schematic diagram of the relay protection device provided by the present invention.

[0025] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] Relay protection is an important barrier to the safe operation of the power grid. However, due to the complexity and variability of power system scenarios, different voltage levels in different regions, different protection objects and other factors, power system faults have both some common fault manifestations and some unique fault manifestations. Due to the characteristics of fault manifestations, the protection functions cannot be completely unified. According to the actual situation on site, users need to customize some protection functions. For safety and reliability considerations, for specific scenarios, only the customized functions of the corresponding scenarios are updated in actual research and development, and other functions remain unchanged.

[0028] In the prior art, customized protection functions for scenarios often require updating the main logic of the relay protection device, which results in a long product release cycle.

[0029] In view of the defect of long release cycle of scenario-customized protection function products in the prior art, the present invention provides a configuration logic loading method and a relay protection device for a power system, so as to achieve the technical effect of reducing the release cycle of relay protection products with scenario-customized protection functions.

[0030] Combine the following Figure 1-Figure 7 The configuration logic loading method of the power system relay protection device provided by the present invention is described as follows: Figure 1 As shown, the method comprises the steps of: S110, when the CPU is initialized, read the dynamic module description information, and determine the dynamic module to be loaded as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic of the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic of the protection object; S120, loading the target file of the target module into the memory; S130. Relocate the target module so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

[0031] The general protection function logic is a protection function logic common to multiple scenarios and multiple protection objects, and is used to realize a general protection function, while the custom extended protection function is a protection function logic for a specific scenario or a specific protection object, and is used to realize a custom protection function. The method provided by the present invention reads the dynamic module description information when the CPU is initialized, determines the dynamic module to be loaded as the target module based on the dynamic module description information, loads the target file of the target module into the memory, and relocates the target module so that the target module loads the target file from the memory to execute the logic corresponding to the target module, and the dynamic module includes a public protection logic module for realizing the general protection function logic of the protection object and a secondary configuration logic module for realizing the custom extended protection function logic of the protection object. In this way, since the dynamic module is loaded by the main logic module according to the dynamic module description information when the CPU is initialized, for the specific protection function to be realized for a specific scenario, it is only necessary to perform custom programming development on the secondary configuration logic module, and both the main logic module and the public protection logic module can remain unchanged, which can greatly reduce the product release cycle of the scene customized protection function.

[0032] After research, it was found that for relay protection equipment, its CPU system driving function and some common functions, such as timing function, analog quantity acquisition, IO drive, etc., can be decoupled from the protection function in principle. At the same time, for safety and reliability considerations, users are more inclined to only update the customized functions of the corresponding scenarios, and other functions remain unchanged. Therefore, in the method provided by the present invention, a main logic module, a common protection function module and a secondary configuration logic module are provided, and these three are independent projects. Among them, the main logic module is responsible for chip driving, providing common functions (such as timing function, analog quantity acquisition, IO drive, etc.), loading dynamic module functions, etc., and is responsible for global function scheduling. The main logic module provides some basic function interfaces and exports its dependent symbol table information. The main logic module provides some commonly used functions, represented by main_const_symbol, for example: SYMBOL_EXPORT(acos); / / trigonometric functions SYMBOL_EXPORT(sys_getSampleInfo); / / Analog reading; SYMBOL_EXPORT(samp_FourierArith); / / Fourier transform; SYMBOL_EXPORT(sys_getCurSetZone); / / constant value zone; SYMBOL_EXPORT(sys_getDioList); / / Input and output; SYMBOL_EXPORT(sdb_getObjectGrp); / / Get the instance object.

[0033] The public protection logic module is a dynamic module that can call different databases according to the protected object, dynamically load its target file, and implement the universal protection function logic of the protected object. The public protection logic module provides some encapsulated functional interfaces and can be graphically programmed to provide users with more efficient and convenient extended functional interfaces. For example Figure 3 The overdose protection module shown in FIG.

[0034] The secondary configuration logic module is a user-defined logic module. Users can implement simple configuration logic through the instance objects and function functions provided by the main logic module and the common protection logic module. For example, in the over-protection module mentioned above, users can easily implement the protection stages of over-current, over-voltage and other over-protection.

[0035] The method provided by the present invention is applied to and executed by a main logic module. During the CPU initialization process, the main logic module will load a dynamic module so that the dynamic module can execute corresponding logic.

[0036] like Figure 2 As shown, in the CPU initialization stage, the memory space of the main logic module, the common protection logic module and the secondary configuration logic module is first divided to determine the memory space of the file corresponding to each module.

[0037] During the CPU initialization phase, the main logic module determines the name of the dynamic module by searching for the description information of the dynamic module, and then determines the dynamic module to be loaded as the target module. Then, the loading of the target module begins. Loading the target module means loading the engineering target files required by the target module into the memory, so that the target module can read these files to execute the logic corresponding to the target module when it is running.

[0038] Specifically, the target module's target file is loaded into memory, including: Parse the target file and read the number of segments of the target file; The target file is segmented and loaded into the partition space corresponding to the target module in the memory based on the number of segments of the target file.

[0039] The space required by the dynamic module is pre-configured in the main logic module. The memory required in the dynamic module includes the stack, etc. The target file is the project file that needs to be read when the target module executes the logic.

[0040] Furthermore, before loading the target file into the memory, the legitimacy of the target file needs to be verified. If the file verification is legal, the dynamic memory space is allocated to the current target file in the partition space corresponding to the target module. Take the elf target file of the dynamic loading of the public protection logic module as an example. The format of the elf file is as follows: Figure 4 As shown. First, verify the legality of the elf target file, including the elf header, file format magic number, and file type. If the file is verified to be legal, dynamic memory space is allocated to the current file. Figure 5 As shown, parse the elf target file, read the number of sections that need to be allocated, and load the target file into memory in segments.

[0041] Specifically, for each dynamic module, a dedicated dynamic memory space plc_heap is maintained, which is used to allocate space in memory when the dynamic module loader main_loader in the main logic module loads the dynamic module. The plc_heap space size PLC_HEAP_SIZE has been pre-configured in the main logic module. The memory required in the dynamic module, including the stack, is allocated in this memory space area. The main logic module can use the dynamic module loader to create a memory mapping table for the .text, .data, .rodata, and .bss segments and copy them to the section_map area in the allocated dynamic memory space plc_heap.

[0042] Further, before the target file is loaded into the partition space corresponding to the target module in the memory based on the number of segments of the target file, it includes: Determine the key data area in the partition space corresponding to the target module; Set the key data area to read-only.

[0043] The key data area is used to access data segments that are highly important and cannot be easily modified. Special processing is performed on the key data areas of each data segment of the target file, and the domain read-only attribute is set. The permission is opened only during special operations (necessary write operations), and the permission is closed immediately after the write operation is completed to avoid abnormal write operations on the key data area.

[0044] Furthermore, after the target file of the target module is loaded into the memory, it includes: Link the symbol table of the target module to the symbol table of the main logic module, organize it into a linked list and copy it to the memory.

[0045] like Figure 6 As shown, in the CPU initialization stage, the main logic module establishes a symbol table mapping by parsing the dynamic module. Specifically, the dynamic module symbol table and the symbol table provided by the main logic module are organized together to form a symbol table linked list. That is to say, the main logic module links the symbol table of the current dynamic module to the main module symbol table, organizes it into a linked list form and copies it to the memory for other dynamic modules to search and use.

[0046] After the target file of the target module is loaded into the partition space corresponding to the target module, the target module is relocated and the loaded logic module is executed, so that the target module can implement the corresponding logic.

[0047] Specifically, the target module is relocated, including: According to the segment name, read the memory location of the segment to be relocated, and obtain the offset address of the relocation item in the corresponding segment and the information in the symbol table. Through the information of the target module in the symbol table, read the symbol corresponding to the relocation item, determine the actual address of the symbol, replace the address of the relocation item with the actual memory address, and jump to execute.

[0048] like Figure 7 As shown, the section header is traversed, and according to the name of the relocation segment, the memory of the section to be relocated is read, and the offset address of the relocation content in the corresponding section and the information in the symbol table are obtained. Furthermore, through the information in the symbol table, the symbol corresponding to the relocation item is read in symtab, the actual address of the symbol is found, and the execution is jumped.

[0049] After executing the above steps, the main logic module realizes the dynamic loading of the target module. If the power system user has customization requirements, after completing the graphical programming logic, it only needs to upgrade the newly added secondary configuration logic module target file. The main logic module automatically loads its target file dynamically according to the above steps, and the symbol table plc2_symbol is linked to the symbol table. Therefore, without upgrading the main module logic, the secondary configuration logic is independently developed, loaded, and operated. It can be used to develop some customized configuration functions in the relay protection equipment factory, and can also be used to provide customized configuration functions for power system users. The function of the main logic module does not change with the protected object or application scenario. The public protection logic module is configured when the relay protection equipment leaves the factory, and some site-specific additional protection functions are flexibly and freely implemented by the user through graphical programming.

[0050] The relay protection device provided by the present invention is described below. The relay protection device described below and the configuration logic loading method of the power system relay protection device described above can be referred to each other. Figure 8 As shown, the relay protection device provided by the present invention includes: a main logic module 810, a common protection function module 820 and a secondary configuration logic module 830; The main logic module 810 is used for: When the CPU is initialized, the dynamic module description information is read, and the dynamic module to be loaded is determined as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the common protection function logic of the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic of the protection object; Load the target module's target file into memory; The target module is relocated so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

[0051] The relay protection device provided by the present invention reads the dynamic module description information when the CPU is initialized, determines the dynamic module to be loaded as the target module based on the dynamic module description information, loads the target file of the target module into the memory, and relocates the target module so that the target module loads the target file from the memory to execute the logic corresponding to the target module, and the dynamic module includes a common protection logic module for realizing the general protection function logic of the protection object and a secondary configuration logic module for realizing the custom extended protection function logic of the protection object. In this way, since the dynamic module is loaded by the main logic module according to the dynamic module description information when the CPU is initialized, for the specific protection function to be realized for a specific scene, it is only necessary to perform custom programming development on the secondary configuration logic module, and both the main logic module and the common protection logic module can remain unchanged, which can greatly reduce the product release cycle of the scene customized protection function.

[0052] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor (processor) 910, a communication interface (Communications Interface) 920, a memory (memory) 930 and a communication bus 940, wherein the processor 910, the communication interface 920, and the memory 930 complete mutual communication through the communication bus 940. The processor 910 can call the logic instructions in the memory 930 to execute the configuration logic loading method of the power system relay protection device, the method comprising: when the CPU is initialized, reading the dynamic module description information, determining the dynamic module to be loaded as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic of the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic of the protection object; loading the target file of the target module into the memory; relocating the target module so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

[0053] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0054] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the configuration logic loading method of the power system relay protection device provided by the above methods. The method includes: when the CPU is initialized, reading the dynamic module description information, and determining the dynamic module to be loaded as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic for the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic for the protection object; loading the target file of the target module into the memory; relocating the target module so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

[0055] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the configuration logic loading method of the power system relay protection device provided by the above-mentioned methods. The method includes: when the CPU is initialized, reading the dynamic module description information, and determining the dynamic module to be loaded as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic for the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic for the protection object; loading the target file of the target module into the memory; relocating the target module so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

[0056] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0057] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0058] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for loading configuration logic of a relay protection device in a power system, characterized in that: Applicable to the main logic module, including: When the CPU is initialized, the dynamic module description information is read, and the dynamic module to be loaded is determined as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic of the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic of the protection object; Loading the target file of the target module into the memory; The target module is relocated so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

2. The method for loading configuration logic of a relay protection device in a power system according to claim 1, characterized in that: The step of loading the target file of the target module into the memory comprises: Parsing the target file and reading the number of segments of the target file; The target file is segmented and loaded into the partition space corresponding to the target module in the memory based on the number of segments of the target file.

3. The method for loading configuration logic of a relay protection device in a power system according to claim 2, characterized in that: Before the target file of the target module is loaded into the memory, the method includes: The target file is verified and loaded into the memory after passing the verification.

4. The method for loading configuration logic of a relay protection device in a power system according to claim 2, characterized in that: Before the target file is loaded into the partition space corresponding to the target module in the memory based on the number of segments of the target file, the method includes: Determining a key data area in the divided space corresponding to the target module; The key data area is set to be read-only.

5. The method for loading configuration logic of a relay protection device in a power system according to claim 1, characterized in that: After the target file of the target module is loaded into the memory, the method includes: The symbol table of the target module is linked to the symbol table of the main logic module, organized into a linked list form and copied to the memory.

6. The method for loading configuration logic of a relay protection device in a power system according to claim 2, characterized in that: The relocation process of the target module comprises: According to the segment name, the memory location of the segment to be relocated is read, and the offset address of the relocation item in the corresponding segment and the information in the symbol table are obtained. Through the information of the target module in the symbol table, the symbol corresponding to the relocation item is read, the actual address of the symbol is determined, the address of the relocation item is replaced with the actual memory address, and the execution is jumped.

7. A relay protection device, characterized in that: The device comprises: a main logic module, a common protection function module and a secondary configuration logic module; The main logic module is used for: When the CPU is initialized, the dynamic module description information is read, and the dynamic module to be loaded is determined as the target module based on the dynamic module description information, wherein the dynamic module includes a common protection logic module and a secondary configuration logic module, the common protection logic module is used to implement the general protection function logic of the protection object, and the secondary configuration logic module is a custom logic module, which is used to implement the custom extended protection function logic of the protection object; Loading the target file of the target module into the memory; The target module is relocated so that the target module loads the target file from the memory to execute the logic corresponding to the target module.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the configuration logic loading method of the power system relay protection device according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the configuration logic loading method of a power system relay protection device as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the configuration logic loading method of a power system relay protection device as described in any one of claims 1 to 6 is implemented.