An algorithm configuration and management method and system based on SCD file information object model

Through the method based on the SCD file information object model, the problem of low algorithm configuration and management efficiency in smart substations is solved, and efficient algorithm file structure design and parameter configuration are achieved, which is suitable for a variety of scenarios, improves work efficiency and complies with IEC61850 standards. .

CN109976797BActive Publication Date: 2024-10-15CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910092114.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-30
Publication Date
2024-10-15
Estimated Expiration
2039-01-30

AI Technical Summary

Technical Problem

The lack of effective algorithm configuration and management methods in smart substations results in low work efficiency and difficulty in meeting the needs of various application scenarios.

Method used

Adopt a method based on the SCD file information object model to verify the legitimacy of the algorithm file through the preset algorithm file structure and grammatical rules, and use object-based analysis and processing to generate configuration information that matches the algorithm file, and use the SCD file information object model to configure the input Parameters, dynamically organize function configuration interface to meet the needs of different users.

Benefits of technology

It improves the work efficiency of smart substations, simplifies the structural design and parameter configuration of algorithm files, facilitates user operation, is suitable for a variety of scenarios, and complies with the IEC61850 standard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109976797B_ABST
    Figure CN109976797B_ABST
Patent Text Reader

Abstract

The present invention discloses an algorithm configuration and management method and system based on an SCD file information object model, including: formulating an algorithm file structure format; verifying the legitimacy of a written algorithm file based on a preset algorithm file structure; analyzing and processing the algorithm file in an object-oriented manner, extracting information such as dependent modules, input parameters, output parameters, auxiliary parameters, algorithm main body, and calling interface of the algorithm file; generating interface information matching the number of input parameters in the algorithm file, and configuring parameter information of the input parameters according to preset parameter information configuration rules using the SCD file information object model. The present invention designs an algorithm based on a predefined algorithm file structure, and configures function parameters using the full path information of node elements in the SCD file information object model in a visual interface, meeting the needs of different users and greatly improving work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of algorithm configuration of intelligent substation systems, and more specifically, to an algorithm configuration and management method and system based on an SCD file information object model. Background Art

[0002] In recent years, with the promulgation of industrial-grade network communication technology, integrated application technology, electronic and optoelectronic acquisition technology, information technology, especially the IEC61850 standard, a basic application foundation has been provided for digital substation technology. The IEC61850 standard is an international standard for substation automation system communication issued by the International Electrotechnical Commission. The standard aims to unify the current integrated substation automation communication systems and improve the interoperability, scalability and openness of substation systems. The purpose is to achieve interoperability between IEDs of various manufacturers and achieve seamless communication in substations. The full-station system configuration file SCD was born from this, which describes the instance configuration and communication parameters of all intelligent electronic devices (IEDs) in the smart substation, the communication configuration between IEDs, the substation primary system structure, and the signal contact information. The structure diagram and functional logical topology diagram of the secondary system can be constructed based on the standard SCD file. Each node in the smart substation can be accessed through this logical structure diagram.

[0003] For smart substations, it is inevitable to collect real-time operation information (including protection action information, alarm information, online monitoring information, state change information and intermediate node information, etc.) for different purposes. In most cases, a large number of algorithms are used to process information according to different purposes. Therefore, an effective algorithm configuration and management method is needed to facilitate application in various scenarios to improve work efficiency. Summary of the invention

[0004] The present invention proposes an algorithm configuration and management method and system based on the SCD file information object model to solve the problem of how to configure and manage the algorithm and improve the working efficiency of the intelligent substation.

[0005] In order to solve the above problem, according to one aspect of the present invention, an algorithm configuration and management method based on the SCD file information object model is provided, characterized in that the method comprises:

[0006] Write algorithm files based on the preset algorithm file structure;

[0007] Verify the legitimacy of the algorithm file according to the preset algorithm file structure and grammatical rules of the writing language;

[0008] When the legitimacy of the algorithm file is verified, an object-oriented analysis is performed according to the structure of the algorithm file to determine the configuration information required by the algorithm file; wherein the configuration information includes: parameter information of input parameters, etc.;

[0009] Generate interface information that matches the input parameters and auxiliary parameters in the algorithm file, and use the SCD file information object model for the input parameters to configure the parameter information of the input parameters according to preset parameter information configuration rules.

[0010] Preferably, the preset algorithm file structure includes: a dependency module, an input parameter module, an output parameter module, an auxiliary parameter module, an algorithm main body module and a calling interface module.

[0011] Preferably, the information of each module is as follows:

[0012] The dependency module is used to configure information of other modules that the current algorithm depends on;

[0013] The input parameter module is used to specify the input parameter name and parameter type in the algorithm;

[0014] The output parameter module is used to specify the output parameter name and type to feed back the result information to the user end;

[0015] The auxiliary parameter module is used to configure the auxiliary configuration information in the algorithm;

[0016] The algorithm main body module is the core of the entire algorithm file, which is used to implement the main functions of the algorithm and can be functionalized according to the complexity of the algorithm;

[0017] The calling interface module is an interface for externally accessing the algorithm, and is used to call the execution of the algorithm file during algorithm scheduling.

[0018] Preferably, the verification of the legitimacy of the algorithm file according to the preset algorithm file structure and the grammatical rules of the writing language includes:

[0019] Verify whether the file structure information of the algorithm file meets the preset algorithm file structure; and verify whether the syntax of the algorithm file meets the syntax rule requirements corresponding to the programming language.

[0020] Preferably, when the legality verification of the algorithm file fails, legality verification failure information is fed back.

[0021] Preferably, the analysis and processing is performed in an object-oriented manner according to the structure of the algorithm file, including:

[0022] Obtaining the input parameter module, output parameter module, auxiliary parameter module and calling interface module in the algorithm file;

[0023] Analyze and process the input parameter name and type of the input parameter module; the name and type of the output parameter of the output parameter; the parameter name, type and descriptive information of the auxiliary parameter information of the algorithm configuration of the auxiliary parameter module; and the parameter information passed in by the calling end and the calling algorithm file body accepted by the calling interface module.

[0024] Preferably, the configuration of the parameter information of the input parameter according to a preset parameter information configuration rule using the SCD file information object model includes:

[0025] Based on the SCD file information object model, the identification information of the corresponding device node in the intelligent electronic device IED is obtained, and the parameter information of the input parameter is configured using the obtained identification information; wherein the identification information is the complete path of the device node in the SCD file information object model relative to the intelligent electronic device IED.

[0026] According to another aspect of the present invention, an algorithm configuration and management system based on the SCD file information object model is provided, characterized in that the system comprises:

[0027] An algorithm file design unit, used for determining an algorithm file based on a preset algorithm file structure;

[0028] A legality verification unit, used to verify the legality of the algorithm file according to a preset algorithm file structure and grammatical rules of a writing language;

[0029] A configuration information determination unit, used for, when the legitimacy of the algorithm file is verified, analyzing and processing in an object-oriented manner according to the structure of the algorithm file to determine the configuration information required by the algorithm file; wherein the configuration information includes: parameter information of input parameters;

[0030] The information configuration unit is used to generate interface information matching the input parameters and auxiliary parameters in the algorithm file, and configure the parameter information of the input parameters according to the preset parameter information configuration rules using the SCD file information object model for the input parameters.

[0031] Preferably, the preset algorithm file structure includes: a dependency module, an input parameter module, an output parameter module, an auxiliary parameter module, an algorithm main body module and a calling interface module.

[0032] Preferably, wherein

[0033] The dependency module is used to configure information of other modules that the current algorithm depends on;

[0034] The input parameter module is used to specify the input parameter name and parameter type in the algorithm;

[0035] The output parameter module is used to specify the output parameter name and type to feed back the result information to the user end;

[0036] The auxiliary parameter module is used to configure the auxiliary configuration information in the algorithm;

[0037] The algorithm main body module is the core of the entire algorithm file, which is used to implement the main functions of the algorithm and can be functionalized according to the complexity of the algorithm;

[0038] The calling interface module is an interface for externally accessing the algorithm, and is used to call the execution of the algorithm file during algorithm scheduling.

[0039] Preferably, the legality verification unit verifies the legality of the formatted code file according to a preset algorithm file structure and grammatical rules of the writing language, including:

[0040] Verifying whether the file structure information of the formatted code file satisfies a preset algorithm file structure; and

[0041] Verify whether the syntax of the formatted code file meets the syntax rule requirements corresponding to the programming language.

[0042] Preferably, the system further comprises:

[0043] The information feedback unit is used to feedback the legality verification failure information when the legality verification of the formatted code file fails.

[0044] Preferably, the configuration information determining unit performs analysis and processing in an object-oriented manner according to the structure of the formatted code file, including:

[0045] Obtaining an input parameter module, an output parameter module, an auxiliary parameter module and a calling interface module in the formatted code file;

[0046] Analyze and process the input parameter name and type of the input parameter module; the name and type of the output parameter of the output parameter; the parameter name, type and descriptive information of the auxiliary parameter information of the algorithm configuration of the auxiliary parameter module; and the parameter information passed in by the calling end and the calling algorithm file body accepted by the calling interface module.

[0047] Preferably, the information configuration unit uses the SCD file information object model to configure the parameter information of the input parameter according to a preset parameter information configuration rule, including:

[0048] Based on the SCD file information object model, the identification information of the corresponding device node in the intelligent electronic device IED is obtained, and the parameter information of the input parameter is configured using the obtained identification information; wherein the identification information is the complete path of the device node in the SCD file information object model relative to the intelligent electronic device IED.

[0049] The present invention provides an algorithm configuration and management method and system based on an SCD file information object model, including: determining an algorithm file based on a preset algorithm file structure; when the legitimacy of the algorithm file is verified, analyzing and processing in an object-oriented manner according to the structure of the algorithm file to determine the configuration information required by the algorithm file; generating interface information matching the number of input parameters in the algorithm file, and configuring the parameter information of the input parameters according to the preset parameter information configuration rules using the SCD file information object model. The present invention constructs an SCD file information object model based on the complete path information of the smart substation in the standard SCD file; designs the code file according to the preset algorithm file structure, so that the user does not need to consider the scheduling problem of the algorithm, but only needs to focus on the structural specification of the algorithm file and the information processing efficiency of the algorithm implementation body; in the structural design of the algorithm file, the different requirements of different algorithms for parameters are fully considered, and the requirements for parameter definition in different algorithms in the visual interface are proposed, and the function configuration interface is dynamically organized to meet the needs of different users without affecting the execution of the algorithm; by configuring the parameters of the function using the full path information of the node element in the SCD file information object model, the user's operation is convenient and the work efficiency is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:

[0051] Figure 1 is a flow chart of an algorithm configuration and management method 100 based on an SCD file information object model according to an embodiment of the present invention;

[0052] Figure 2 is a schematic diagram of a preset algorithm file structure according to an embodiment of the present invention;

[0053] Figure 3 A schematic diagram of a visual display corresponding to an algorithm structure according to an embodiment of the present invention;

[0054] Figure 4 A schematic diagram showing a function parameter configuration according to an embodiment of the present invention;

[0055] Figure 5 A schematic diagram of the hierarchical relationship of device node elements according to an embodiment of the present invention;

[0056] Figure 6 A schematic diagram of creating a function and configuring parameter information according to an embodiment of the present invention; and

[0057] Figure 7 Schematic diagram of the structure of an algorithm configuration and management system 700 based on the SCD file information object model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.

[0059] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.

[0060] Figure 1 FIG. 1 is a flow chart of an algorithm configuration and management method 100 based on an SCD file information object model according to an embodiment of the present invention. Figure 1 As shown, the algorithm configuration and management method based on the SCD file information object model provided by the embodiment of the present invention will construct the SCD file information object model according to the complete path information of the smart substation in the standard SCD file; the code file is designed according to the preset algorithm file structure, so that the user does not need to consider the scheduling problem of the algorithm, but only needs to focus on the structural specifications of the algorithm file and the information processing efficiency of the algorithm implementation body; in the structural design of the algorithm file, the different requirements of different algorithms for parameters are fully considered, and the requirements for parameter definition according to different algorithms in the visual interface are proposed, and the function configuration interface is dynamically organized to meet the needs of different users without affecting the execution of the algorithm; by using the full path information of the node element in the SCD file information object model to configure the parameters of the function, the user's operation is facilitated and the work efficiency is greatly improved. The algorithm configuration and management method 100 based on the SCD file information object model provided by the embodiment of the present invention starts from step 101, and the algorithm file is determined based on the preset algorithm file structure in step 101.

[0061] Preferably, the preset algorithm file structure includes: a dependency module, an input parameter module, an output parameter module, an auxiliary parameter module, an algorithm main body module and a calling interface module.

[0062] Preferably, the dependency module is used to configure information of other modules that the current algorithm depends on;

[0063] The input parameter module is used to specify the input parameter name and parameter type in the algorithm;

[0064] The output parameter module is used to specify the output parameter name and type to feed back the result information to the user end;

[0065] The auxiliary parameter module is used to configure the auxiliary configuration information in the algorithm;

[0066] The algorithm main body module is the core of the entire algorithm file, which is used to implement the main functions of the algorithm and can be functionalized according to the complexity of the algorithm;

[0067] The calling interface module is an interface for externally accessing the algorithm, and is used to call the execution of the algorithm file during algorithm scheduling.

[0068] In the implementation of the present invention, a structural form of an algorithm file is proposed, and all algorithm files adopt this format for algorithm design to ensure that the underlying components can provide effective support for the algorithm file. Considering the design of the algorithm file structure in terms of mutual compatibility with the underlying platform and efficiency, the implementation of the present invention adopts Python as the implementation language of the algorithm.

[0069] Figure 2 Schematic diagram of the preset algorithm file structure according to an embodiment of the present invention. Figure 2 As shown, the algorithm file structure provided by the embodiment of the present invention includes: a dependency module, an input parameter module, an output parameter module, an auxiliary parameter module, an algorithm main body module and a calling interface module. The dependency module is used to configure other module information that the current algorithm depends on. The input parameter module is used to specify the algorithm input parameter name and parameter type. The output parameter module is used to specify the output parameter name and type so that the result information can be fed back to the user end. The auxiliary parameter module is used to configure the auxiliary configuration information in the algorithm. The algorithm main body module is the core of the entire algorithm file and realizes the main functions of the algorithm. This part can be functionalized according to the complexity of the algorithm to improve the readability and controllability of the algorithm implementation. The calling interface module is an external access algorithm interface, which is used to call the execution of the algorithm file during algorithm scheduling.

[0070] The structural rules of the preset algorithm files of the present invention can be conveniently applied to system design. As a user, there is no need to consider the scheduling of the algorithm, but only needs to focus on the structural specifications of the algorithm files and the information processing efficiency of the algorithm implementation.

[0071] Preferably, in step 102, the legality of the algorithm file is verified according to a preset algorithm file structure and grammatical rules of the writing language.

[0072] Preferably, the verification of the legitimacy of the algorithm file according to the preset algorithm file structure and the grammatical rules of the writing language includes:

[0073] Verifying whether the file structure information of the algorithm file satisfies a preset algorithm file structure; and

[0074] Verify whether the syntax of the algorithm file meets the syntax rule requirements corresponding to the programming language.

[0075] Preferably, the method further comprises:

[0076] When the legality verification of the algorithm file fails, a legality verification failure message is fed back.

[0077] In the implementation mode of the present invention, the legality of the code file designed by the algorithm file needs to be verified before parsing the code file. Verifying the legality of the code file includes: on the one hand, analyzing the structural information of the code file to verify whether it meets the preset algorithm file structure; on the other hand, the Python language used in the algorithm file implementation strictly verifies the legality of the syntax in the algorithm file in accordance with the rules of Python syntax for the format of the algorithm file.

[0078] If the legality verification of the code file passes, the code file is parsed; if the legality verification of the code file fails, a legality verification failure message is fed back to remind the user to make modifications.

[0079] Preferably, in step 103, when the legitimacy of the algorithm file is verified, an object-oriented analysis is performed based on the structure of the algorithm file to determine the configuration information required by the algorithm file; wherein the configuration information includes: parameter information of input parameters.

[0080] Preferably, the analysis and processing is performed in an object-oriented manner according to the structure of the algorithm file, including:

[0081] Obtaining the input parameter module, output parameter module, auxiliary parameter module and calling interface module in the algorithm file;

[0082] Analyze and process the input parameter name and type of the input parameter module, the name and type of the output parameter of the output parameter, the parameter name, type and descriptive information of the auxiliary parameter information of the algorithm configuration of the auxiliary parameter module, and the parameter information passed in by the calling end accepted by the calling interface module and the main body of the calling algorithm file.

[0083] In the embodiment of the present invention, when parsing the code file, an object-oriented method is used to analyze and process the code file according to the preset algorithm file structure, including: parsing the algorithm file into four independent modules (_Inputs, _Outputs, _Params, _Kernel), and then analyzing and processing each module separately to obtain the required configuration information, etc. The following is the information contained in each module object part: the input parameter module _Inputs object part analyzes the input parameter name and type; the output parameter module _Outpus object part analyzes the output parameter name and type; the auxiliary parameter module _Params object part analyzes the parameter name, type and descriptive information of the auxiliary parameter information of the algorithm configuration; the calling interface module _Kernel object part is the calling interface of the algorithm file, which mainly analyzes the parameter information received from the calling end and the calling algorithm file body. The above method can ensure that the program structure is simple and easy to manage, and improve the running efficiency of the program.

[0084] Preferably, in step 104, interface information matching the input parameters and auxiliary parameters in the algorithm file is generated, and the parameter information of the input parameters is configured according to preset parameter information configuration rules using the SCD file information object model for the input parameters.

[0085] Preferably, the configuration of the parameter information of the input parameter according to a preset parameter information configuration rule using the SCD file information object model includes:

[0086] Based on the SCD file information object model, the identification information of the corresponding device node in the intelligent electronic device IED is obtained, and the parameter information of the input parameter is configured using the obtained identification information; wherein the identification information is the complete path of the device node in the SCD file information object model relative to the intelligent electronic device IED.

[0087] After the code file is determined, the next step is to configure the algorithm interface and algorithm parameters. Since the code file structure has been object-oriented in step 103, each part in the code file has been refined, and the next step is to schedule the object-oriented algorithm file for use. In use, the concept of function is proposed to organize the use of the object-oriented algorithm file. The concept of function is proposed to improve the reusability of the algorithm file on the one hand, and to facilitate the configuration of the parameters defined in the algorithm file on the other hand.

[0088] In the implementation of the present invention, the creation and configuration of the function is done in a visual way, which is convenient for actual operation. In the implementation of the present invention, a configuration rule for the algorithm interface is proposed. The visualization operation of this rule is the result of the input parameter analysis in the objectification processing of the code file in step 103, and the interface information matching the number of input parameters is dynamically generated, and the user can configure the parameter information of the function. This rule is conducive to the interface display layer changing according to the change of the number of algorithm input parameters. As the designer of the algorithm file, there is no need to consider the problem of algorithm scheduling, but only the algorithm file structure specification and the efficiency of information processing of the algorithm implementation body, thereby effectively improving the flexibility and usability of the algorithm design.

[0089] Figure 3 FIG. 1 is a schematic diagram of a visualization display corresponding to the algorithm structure according to an embodiment of the present invention. Figure 3 As shown, in the embodiment of the present invention, it is possible to automatically generate interface information matching the number of input parameters according to the parameters of the input parameter module in the algorithm structure of the code file.

[0090] Figure 4 FIG. 1 is a schematic diagram showing a function parameter configuration display according to an embodiment of the present invention. Figure 4 As shown, in the embodiment of the present invention, an algorithm parameter configuration rule is proposed, and this rule adopts the node information in the SCD file to be organized in a hierarchical manner. The SCD file organizes the node elements in the smart substation in a hierarchical manner, and forms a chain-type inclusion relationship of step-by-step inclusion according to the inclusion and inclusion relationship between the node elements at all levels of the SCD file to ensure the uniqueness of the acquired node data. When configuring the function parameters, according to the SCD file information object model, the information of each level under the IED node can be expanded in turn, so that the structural information of the IED can be intuitively seen. Therefore, it is proposed that the detailed path information of the node can be obtained by dragging and dropping the SCD node data in the interface display for the configuration of the parameter information of the input parameters, so as to facilitate the simplicity of the configuration data, and each time the parameter information is dragged and dropped to configure the parameter information, the complete path of the data node relative to the IED (intelligent electronic device) in the SCD file information object model is obtained.

[0091] In the implementation of the present invention, the SCD file information object model is a structural diagram and functional logic topology diagram of the secondary system constructed according to the standard SCD file. Based on the object hierarchy of the substation functional structure, the SCD file information object model is divided into a substation model, an IED functional model and a substation communication system model.

[0092] The substation model mainly describes the functional interface of the substation, identifies the primary equipment and the electrical connection relationship between them, and the hierarchical order is: Sustation (substation: an object that identifies the entire substation)--VoltageLevel (voltage level: used to identify substation parts with the same voltage level electrically)--Bay (bay: an identifiable part or sub-function of a switchyard within a certain voltage level)--Equipment (equipment: an element that identifies a switchyard), etc.

[0093] The IED functional model describes the configuration and functions of each IED in the substation, including information such as access points, logical devices, logical nodes, and data objects. The hierarchical order is: IED (intelligent electronic device: a substation automation system device that performs substation automation functions through logical nodes)--Server (server: a communication entity within an intelligent electronic device)--LDevice (logical device: a logical device contained in an intelligent electronic device server)--LNode (logical node: a logical device contained in an intelligent electronic device, containing data objects required by other logical nodes, and may also need data objects of other logical nodes to complete its own functions)--DO (data object: data contained in a logical node), etc.

[0094] The substation communication system model describes the connection relationship of the communication network through the logical bus and IED access points. Compared with the other two models, the communication system model is a hierarchical structure model, including Subnetwork (subnetwork: a connected node for direct communication between access points); AccessPoint (a communication access point of the logical device of the intelligent electronic device to the subnet), etc.

[0095] The SCD information file object model of model data objects and model relationship objects is established according to the node elements in the SCD file and the inclusion relationships at all levels between the node elements. The model data objects include the element IDs and element attributes contained in the elements at this level. The model relationship objects include the relationships between the model data objects, including inclusion and being included, to build the path chain structure of DA.

[0096] like Figure 4 As shown in the figure, the blue information bar dragged by the mouse is the node path information of the IED to be configured, PT5003B / / / / / LD0 / / / / / STMP / / / / / 2 / / / / / TmpSv04 / / / / / mag / / / / / f is the Temp information in the configuration function, representing the path information of DA in the SCD file. After the configuration is completed, the real-time data of the node can be obtained according to the configured node information path for the calculation of the algorithm when the function is called, so as to achieve the real-time calculation of the evaluation information of the protection device.

[0097] In the design of algorithm file structure rules, full consideration is given to the different requirements of different algorithms for parameters. In the visual interface, the function configuration interface is dynamically organized according to the requirements of parameter definitions in different algorithms, which can meet the needs of different users without affecting the execution of the algorithm. When configuring, based on the chain structure between node elements at all levels in the SCD file, the full path information of the node elements in the SCD is obtained by dragging and dropping for parameter configuration, which can facilitate user operations without considering the rules for generating node paths, greatly improving work efficiency.

[0098] The implementation of the embodiment of the present invention adopts the SCD file information object model to achieve simplicity and flexibility in algorithm use. Due to the structure of the preset algorithm file, the variability of parameters in the algorithm design and the simplicity in the function parameter configuration, the technical solution of the present invention can be easily applied to a variety of scenarios, thereby improving work efficiency; and the SCD file information object model also complies with the modeling standard of IEC61850, which can be used in accordance with the use requirements of most smart substations.

[0099] The following is a detailed description of an algorithm configuration and management method based on the SCD file information object model provided by the present invention in combination with the implementation steps and specific examples of the method. The specific implementation steps are:

[0100] Step 1: Write the algorithm file score_calc.py according to the specified rules. The code is as follows:

[0101]

[0102]

[0103] The above code is designed based on the structure of the preset algorithm file. In the embodiment of the present invention, the data monitored in real time by the smart device include temperature, voltage, light intensity, and differential current, which are used to calculate and evaluate the operation of the smart device. The input parameters of the four data are defined as Temp (temperature), Volt (voltage), lst (light intensity), and SubAmp (differential current). The input parameters and auxiliary parameters are empty.

[0104] Step 2: Upload the edited algorithm file to the system as the basic algorithm for smart device evaluation.

[0105] Step 3: Perform visualization and configure parameters. The chain structure of node elements in the SCD file object model used in the configuration process is as follows: Figure 5 shown.

[0106] The creation of the function and the configuration of parameter information according to the embodiment of the present invention are as follows Figure 6As shown, when the function is created, the corresponding data input text box is automatically generated according to the number of parameters specified in the code file. In this embodiment, the corresponding parameter information of the IED configured as PL2231A is:

[0107] Temperature: (PL2231A / / / / / LD0 / / / / / STMP / / / / / 1 / / / / / mag / / / / / f);

[0108] Voltage: (PL2231A / / / / / LD0 / / / / / SPVT / / / / / 1 / / / / / Vol / / / / / mag / / / / / f);

[0109] Differential current: (PL2231A / / / / / PROT / / / / / MMXU / / / / / 2 / / / / / A / / / / / phsA / / / / / cVal / / / / / mag / / / / / f);

[0110] Light intensity: (PL2231A / / / / / LD0 / / / / / SCLI / / / / / 1 / / / / / LigIntes1 / / / / / mag / / / / / f);

[0111] Then, the underlying platform can find the required data based on the configured parameter information and apply it to the calculation.

[0112] Figure 7 FIG. 7 is a schematic diagram of the structure of an algorithm configuration and management system 700 based on the SCD file information object model according to an embodiment of the present invention. Figure 7 As shown, the algorithm configuration and management system 700 based on the SCD file information object model provided by the embodiment of the present invention includes: an algorithm file design unit 701, a legality verification unit 702, a configuration information determination unit 703 and an information configuration unit 704.

[0113] Preferably, the algorithm file design unit 701 is used to determine the algorithm file based on a preset algorithm file structure.

[0114] Preferably, the preset algorithm file structure includes: a dependency module, an input parameter module, an output parameter module, an auxiliary parameter module, an algorithm main body module and a calling interface module.

[0115] Preferably, the dependency module is used to configure the information of other modules that the current algorithm depends on; the input parameter module is used to specify the input parameter name and parameter type in the algorithm; the output parameter module is used to specify the output parameter name and type to feed back the result information to the user end; the auxiliary parameter module is used to configure the auxiliary configuration information in the algorithm; the algorithm main body module is the core of the entire algorithm file, which is used to implement the main functions of the algorithm and can be functionalized according to the complexity of the algorithm; the calling interface module is an interface for external access to the algorithm, which is used to call the execution of the algorithm file when the algorithm is scheduled.

[0116] Preferably, the legality verification unit 702 is used to verify the legality of the algorithm file according to a preset algorithm file structure and grammatical rules of a writing language.

[0117] Preferably, the legitimacy verification unit 702 verifies the legitimacy of the algorithm file according to a preset algorithm file structure and grammatical rules of the writing language, including: verifying whether the file structure information of the algorithm file satisfies the preset algorithm file structure; and verifying whether the syntax of the algorithm file satisfies the grammatical rule requirements corresponding to the programming language.

[0118] Preferably, the system further comprises: an information feedback unit, which is used to feedback information indicating that the legality verification fails when the legality verification of the algorithm file fails.

[0119] Preferably, the configuration information determination unit 703 is used to analyze and process the algorithm file in an object-oriented manner according to the structure of the algorithm file when the legitimacy of the algorithm file is verified, so as to determine the configuration information required by the algorithm file; wherein the configuration information includes: parameter information of input parameters.

[0120] Preferably, the configuration information determination unit 703 performs analysis and processing in an object-oriented manner according to the structure of the algorithm file, including: obtaining the input parameter module, output parameter module, auxiliary parameter module and calling interface module in the algorithm file; analyzing and processing the input parameter name and type of the input parameter module, the name and type of the output parameter of the output parameter, the parameter name, type and descriptive information of the auxiliary parameter information of the algorithm configuration of the auxiliary parameter module, and the parameter information passed in by the calling end accepted by the calling interface module and the calling algorithm file body.

[0121] Preferably, the information configuration unit 704 is used to generate interface information matching the input parameters and auxiliary parameters in the algorithm file, and configure the parameter information of the input parameters according to preset parameter information configuration rules using the SCD file information object model for the input parameters.

[0122] Preferably, the information configuration unit uses the SCD file information object model to configure the parameter information of the input parameter according to the preset parameter information configuration rules, including: obtaining the identification information of the corresponding device node in the intelligent electronic device IED based on the SCD file information object model, and using the obtained identification information to configure the parameter information of the input parameter; wherein the identification information is the complete path of the device node in the SCD file information object model relative to the intelligent electronic device IED.

[0123] The algorithm configuration and management system 700 based on the SCD file information object model of an embodiment of the present invention corresponds to the algorithm configuration and management method 100 based on the SCD file information object model of another embodiment of the present invention, which will not be repeated here.

[0124] The invention has been described above with reference to a few embodiments. However, it is readily apparent to a person skilled in the art that other embodiments than the ones disclosed above are equally within the scope of the invention, as defined by the appended patent claims.

[0125] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a / said / the [means, components, etc.]" are to be openly interpreted as at least one instance of the means, components, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not necessarily have to be performed in the exact order disclosed, unless explicitly stated otherwise.

Claims

1. An algorithm configuration and management method based on the SCD file information object model, It is characterized in that The method comprises: Write algorithm files based on the preset algorithm file structure; Verify the legitimacy of the algorithm file according to the preset algorithm file structure and grammatical rules of the writing language; When the legitimacy of the algorithm file is verified, an object-oriented analysis is performed according to the structure of the algorithm file to determine the configuration information required by the algorithm file; wherein the configuration information includes: parameter information of input parameters; Generate interface information matching the input parameters and auxiliary parameters in the algorithm file, and configure the parameter information of the input parameters according to the preset parameter information configuration rules using the SCD file information object model for the input parameters; The preset algorithm file structure includes: a dependency module, an input parameter module, an output parameter module, an auxiliary parameter module, an algorithm main body module and a calling interface module; in, The dependency module is used to configure information of other modules that the current algorithm depends on; The input parameter module is used to specify the input parameter name and parameter type in the algorithm; The output parameter module is used to specify the output parameter name and type to feed back the result information to the user end; The auxiliary parameter module is used to configure the auxiliary configuration information in the algorithm; The algorithm main body module is the core of the entire algorithm file, which is used to implement the main functions of the algorithm and can be functionalized according to the complexity of the algorithm; The calling interface module is an interface for externally accessing the algorithm, and is used to call the execution of the algorithm file during algorithm scheduling.

2. The method according to claim 1, It is characterized in that The verification of the legitimacy of the algorithm file according to the preset algorithm file structure and the grammatical rules of the writing language includes: Verify whether the file structure information of the algorithm file meets the preset algorithm file structure; and verify whether the syntax of the algorithm file meets the syntax rule requirements corresponding to the programming language.

3. The method according to claim 1, It is characterized in that The method further comprises: When the legality verification of the algorithm file fails, a legality verification failure message is fed back.

4. The method according to claim 1, It is characterized in that The analysis and processing is performed in an object-oriented manner according to the structure of the algorithm file, including: Obtaining the input parameter module, output parameter module, auxiliary parameter module and calling interface module in the algorithm file; Analyze and process the input parameter name and type of the input parameter module; the name and type of the output parameter of the output parameter; the parameter name, type and descriptive information of the auxiliary parameter information of the algorithm configuration of the auxiliary parameter module; and the parameter information passed in by the calling end and the calling algorithm file body accepted by the calling interface module.

5. The method according to claim 1, It is characterized in that The configuration of the parameter information of the input parameter according to the preset parameter information configuration rule using the SCD file information object model includes: Based on the SCD file information object model, the identification information of the corresponding device node in the intelligent electronic device IED is obtained, and the parameter information of the input parameter is configured using the obtained identification information; wherein the identification information is the complete path of the device node in the SCD file information object model relative to the intelligent electronic device IED.

6. An algorithm configuration and management system based on the SCD file information object model, It is characterized in that The system comprises: An algorithm file design unit, used for writing an algorithm file based on a preset algorithm file structure; A legality verification unit, used to verify the legality of the algorithm file according to a preset algorithm file structure and grammatical rules of a writing language; A configuration information determination unit, used for, when the legitimacy of the algorithm file is verified, analyzing and processing in an object-oriented manner according to the structure of the algorithm file to determine the configuration information required by the algorithm file; wherein the configuration information includes: parameter information of input parameters; An information configuration unit, used to generate interface information matching the input parameters and auxiliary parameters in the algorithm file, and configure the parameter information of the input parameters according to preset parameter information configuration rules using the SCD file information object model for the input parameters; The preset algorithm file structure includes: a dependency module, an input parameter module, an output parameter module, an auxiliary parameter module, an algorithm main body module and a calling interface module; in, The dependency module is used to configure information of other modules that the current algorithm depends on; The input parameter module is used to specify the input parameter name and parameter type in the algorithm; The output parameter module is used to specify the output parameter name and type to feed back the result information to the user end; The auxiliary parameter module is used to configure the auxiliary configuration information in the algorithm; The algorithm main body module is the core of the entire algorithm file, which is used to implement the main functions of the algorithm and can be functionalized according to the complexity of the algorithm; The calling interface module is an interface for externally accessing the algorithm, and is used to call the execution of the algorithm file during algorithm scheduling.

7. The system according to claim 6, It is characterized in that The legality verification unit verifies the legality of the algorithm file according to a preset algorithm file structure and grammatical rules of a writing language, including: Verifying whether the file structure information of the algorithm file satisfies a preset algorithm file structure; and Verify whether the syntax of the algorithm file meets the syntax rule requirements corresponding to the programming language.

8. The system according to claim 6, It is characterized in that The system further comprises: The information feedback unit is used to feedback the legality verification failure information when the legality verification of the algorithm file fails.

9. The system according to claim 6, It is characterized in that The configuration information determination unit performs analysis and processing in an object-oriented manner according to the structure of the algorithm file, including: Obtaining the input parameter module, output parameter module, auxiliary parameter module and calling interface module in the algorithm file; Analyze and process the input parameter name and type of the input parameter module; the name and type of the output parameter of the output parameter; the parameter name, type and descriptive information of the auxiliary parameter information of the algorithm configuration of the auxiliary parameter module; and the parameter information passed in by the calling end and the calling algorithm file body accepted by the calling interface module.

10. The system according to claim 6, It is characterized in that The information configuration unit uses the SCD file information object model to configure the parameter information of the input parameter according to a preset parameter information configuration rule, including: Based on the SCD file information object model, the identification information of the corresponding device node in the intelligent electronic device IED is obtained, and the parameter information of the input parameter is configured using the obtained identification information; wherein the identification information is the complete path of the device node in the SCD file information object model relative to the intelligent electronic device IED.