Modeling method and system for a relay protection device
By using data configuration files and in-memory data centers, a unified data service layer is constructed, which solves the problems of strong binding between data and functions and fragmented interface definitions in relay protection devices. This enables the decoupling of functional modules and efficient data interaction, thereby improving the scalability and maintainability of the device.
Patent Information
- Application Number
- CN202511644695.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-11
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2045-11-11
AI Technical Summary
In existing technologies, the data modeling methods for relay protection devices suffer from problems such as strong binding between data and functions, fragmented interface definitions, unstable data service layers, and poor software maintainability, resulting in high development costs, significant compatibility risks, and poor scalability.
By employing data configuration files and in-memory data centers, data objects and functional instance objects are created through preset rules to build a unified data service layer, thereby decoupling data objects from functional modules. Data permissions are controlled using a publish-subscribe mechanism and logical expressions.
It improves the development efficiency and maintainability of relay protection devices, reduces system coupling and development difficulty, and enhances the scalability of functional modules and data interaction efficiency.
Smart Images

Figure CN121092155B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of industrial automation software, and in particular to a modeling method and system of a relay protection device. BACKGROUND
[0002] In the software development of embedded relay protection devices, the traditional data modeling method has the following significant defects:
[0003] Strong binding of data and function: data modeling relies heavily on device-specific functions, and data is stored in the internal function modules, making data exchange between different modules difficult and having very low reusability.
[0004] Interface definition fragmentation: each function module independently designs data access interfaces, and when adding data attributes or expanding functions, the original interface needs to be modified or a new interface needs to be added, increasing development costs and introducing compatibility risks.
[0005] Unstable data service layer: lack of unified data management mechanism, function modules directly access data through interleaved interfaces, resulting in chaotic data service layer logic, data access permissions are enumerated through coding, and when new functions are online, the underlying interface needs to be restructured, which is costly.
[0006] Poor software maintainability: strong coupling between modules makes it difficult to cut functions, and as requirements iterate, the software gradually becomes bloated, with exponential growth in debugging and upgrading complexity.
[0007] The core problem of the prior art is that data modeling has not been abstracted and standardized, and function modules interact through direct dependency rather than unified services, which cannot meet the requirements of high reliability and easy scalability in the field of industrial automation. SUMMARY
[0008] The present application aims to solve at least one of the technical problems in the background art, and provides a modeling method and system of a relay protection device.
[0009] To achieve the above-mentioned purpose, the present application provides a modeling method of a relay protection device, comprising:
[0010] editing a data configuration file, creating data objects required by the function of the relay protection device according to a preset rule;
[0011] configuring a function template in the data configuration file, and generating corresponding function instance objects according to the function template;
[0012] associating the function instance objects with the corresponding data objects in the data configuration file, defining the access conditions of the function instance objects to access the data objects, and completing the editing of the data configuration file;
[0013] The relay protection device loads and parses the data configuration file, generates a unique memory data center of the relay protection device, the memory data center generates a real-time data storage structure of the data object, and maintains the life cycle of all data objects and function object instances;
[0014] The data service layer is constructed, and an interaction interface of a data real-time value and a data attribute of a corresponding data object is provided for each function instance object.
[0015] According to an aspect of the present application, the preset rule comprises:
[0016] When the data object is remote signaling, the type of the abstract data object is a single state type, the general attributes comprise a name, a maximum value, a minimum value, a value type, a business data type identifier, an abstract data type identifier and a unique identifier, and the extended attribute is a remote signaling type enumeration;
[0017] When the data object is remote measurement, the type of the abstract data object is a single state type, the general attributes comprise a name, a maximum value, a minimum value, a value type, a business data type identifier, an abstract data type identifier and a unique identifier, and the extended attribute is a unit and precision;
[0018] When the data object is remote control, the type of the abstract data object is a single control type, the general attributes comprise a name, a maximum value, a minimum value, a value type, a business data type identifier, an abstract data type identifier and a unique identifier, and the extended attribute is null;
[0019] When the data object is a press plate, the type of the abstract data object is a single control type, the general attributes comprise a name, a maximum value, a minimum value, a value type, a business data type identifier, an abstract data type identifier and a unique identifier, and the extended attribute is null;
[0020] When the data object is an event, the type of the abstract data object is a single state type, the general attributes comprise a name, a maximum value, a minimum value, a value type, a business data type identifier, an abstract data type identifier and a unique identifier, and the extended attribute is null;
[0021] When the data object is a fixed value, the type of the abstract data object is a state set type, the general attributes comprise a name, a maximum value, a minimum value, a step, a value type, a business data type identifier, an abstract data type identifier, a state set identifier and a unique identifier, and the extended attribute is null.
[0022] According to an aspect of the present application, in the data configuration file, a function template is configured, and a corresponding function instance object is generated according to the function template, comprising:
[0023] In the data configuration file, a plurality of function templates are added, including: a man-machine interface template, an IEC61850 communication service template, a telemetering calculation function template, a telesignaling calculation function template, a remote control and a press plate execution function template;
[0024] Function template parameters are added for each function template;
[0025] According to each function template and the function template parameters in each function template, corresponding function instance objects are generated.
[0026] According to one aspect of the present application, the function instance objects are associated with corresponding data objects as follows:
[0027] Corresponding function instance objects and corresponding data objects are added to the corresponding function templates, and the association relationship descriptions are added;
[0028] The association relationship includes three kinds of relationships: publishing, subscribing, publishing and subscribing.
[0029] According to one aspect of the present application, the data objects, data attributes, function instance objects, the association relationship between the data objects and the function instance objects and the access conditions of the function instance objects to the data objects in the memory data center are one-to-one corresponding to the description contents in the data configuration file;
[0030] The data attributes include the general attributes and the extended attributes.
[0031] According to one aspect of the present application, the memory data center generates a real-time data storage structure of the data objects, and maintains the life cycle of all data objects and function object instances, including:
[0032] The memory data center stores all data objects by using a hash table, the key value is a data object unique identifier, and the value is a data object pointer;
[0033] The memory data center generates the association relationship between each function instance object and the corresponding data objects, and uses two hash tables to manage the publishing and subscribing relationships between the function instance objects and the corresponding data objects;
[0034] The key value of the hash table for managing the publishing relationship is a data object containing a group number and an entry number, and the value is a data object pointer; the key value of the hash table for managing the subscribing relationship is a data object pointer, and the value is an array of data objects containing a group number and an entry number, and the same data object is subscribed by different function instance objects.
[0035] The data service layer is constructed, and an interactive interface of the data real-time values and the data attributes of the corresponding data objects is provided for each function instance object, including:
[0036] The data service layer is constructed, and a data interaction interface of a corresponding data object is provided for each function instance object, including interfaces of reading and writing various data attributes and publishing and subscribing to real-time values of the data object;
[0037] The structure of the real-time values of the data objects of the single state type, the single control type and the state set type is unified, and the structure of the real-time values includes a value, a value type, a quality and a time mark.
[0038] To achieve the above object, the application further provides a modeling system of a relay protection device, comprising:
[0039] A data object creation module edits a data configuration file, and creates data objects required by functions of the relay protection device according to preset rules;
[0040] A function instance object generation module configures a function template in the data configuration file, and generates corresponding function instance objects according to the function template;
[0041] A function instance configuration module associates the function instance objects with corresponding data objects in the data configuration file, defines access conditions of the function instance objects to access the data objects, and completes editing of the data configuration file;
[0042] A data object and function object instance maintenance module loads and parses the data configuration file, generates a unique memory data center of the relay protection device, generates a real-time data storage structure of the data objects, and maintains life cycles of all the data objects and function object instances;
[0043] A data service layer construction module constructs a data service layer, and provides an interaction interface of data real-time values and data attributes of all the data objects for each function instance object.
[0044] To achieve the above object, the application further provides an electronic device, comprising a memory for storing instructions, and a processor for executing the instructions, so that the electronic device executes the modeling method of the relay protection device.
[0045] To achieve the above object, the application further provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to implement the modeling method of the relay protection device.
[0046] According to the scheme of the application, a general data service layer is designed, the specific functions of the relay protection device are separated from the data, the function template only interacts with the data layer, the coupling degree of the system and the difficulty of development and maintenance are reduced, and the expandability of the function module is improved.
[0047] The application creates a relay protection device resource data configuration file by a describable method, adopts abstract data types and common attributes thereof to describe data commonality, uses extensible attributes to describe data differences, greatly reduces the number of data types in the system, and builds a data service layer on this basis, thereby effectively reducing the number of data access interfaces and improving the stability of the data service layer.
[0048] The application designs a data publishing and subscribing mechanism, which greatly improves the data interaction efficiency compared with the polling data change mechanism. In terms of data publishing, a publishing permission control scheme based on a logical expression is provided, which breaks away from the inefficient response mode of enumerating publishing permission rules by coding and realizes flexible and efficient management of publishing permissions.
[0049] The application is proved to be effective and feasible in extensive relay protection device development practice, greatly improves the development efficiency, and reduces the cost and maintenance difficulty of device development.
[0050] The application abstracts business data into independent data objects, builds a data service layer containing a unified interface, realizes decoupling of functional modules (functional templates) based on a publishing and subscribing mechanism, and realizes data publishing permission control by using a logical expression. The application solves the problems of poor data type reusability, unstable data access interface, high module coupling degree and chaotic data publishing management in traditional modeling, improves the maintainability and expandability of device functions, and is suitable for development of embedded relay protection devices in the industrial automation field. BRIEF DESCRIPTION OF DRAWINGS
[0051] Figure 1 A flowchart schematically showing a modeling method of a relay protection device according to an embodiment of the application. DETAILED DESCRIPTION
[0052] The content of the application will now be discussed with reference to exemplary embodiments. It should be understood that the discussed embodiments are only for better understanding and thus implementing the content of the application by those of ordinary skill in the art, rather than implying any limitation on the scope of the application.
[0053] As used herein, the term "comprising" and variations thereof are to be construed as meaning "including but not limited to". The term "based on" is to be construed as "based at least in part on". The terms "one embodiment" and "an embodiment" are to be construed as "at least one embodiment".
[0054] Figure 1 A flowchart schematically showing a modeling method of a relay protection device according to an embodiment of the application. As shown in the flowchart, Figure 1As shown, in the embodiment, the modeling method of the relay protection device includes:
[0055] The data configuration file is edited, and data objects required by functions of the relay protection device are created according to preset rules;
[0056] In the data configuration file, a function template is configured, and corresponding function instance objects are generated according to the function template;
[0057] In the data configuration file, the corresponding function instance objects in the function template are associated with corresponding data objects, and access conditions (for example, logical conditions for publishing data objects) for the function instance objects to access the data objects are defined, so that the editing of the data configuration file is completed;
[0058] The relay protection device loads and parses the data configuration file, generates a unique memory data center of the relay protection device, the memory data center generates a real-time data storage structure of the data objects, and maintains the life cycle of all data objects and function object instances;
[0059] The data service layer is constructed, and an interactive interface of data real-time values and data attributes of corresponding data objects is provided for each function instance object.
[0060] Further, in the embodiment, the preset rules are shown in Table 1.
[0061] Table 1: Preset rule table
[0062]
[0063] In the embodiment, the device (relay protection device) basic resource model is described by using a data configuration file, the data configuration file includes a plurality of data objects, data attributes, function instance objects (that is, specific function instances), association relationships of the data objects and the function instance objects, and logical conditions of subscription and publication of the function objects to the data objects;
[0064] In the embodiment, the data object is an instance of a data type, the data type is an abstract type, and includes but is not limited to a single state type, a single control type, and a state set type; the single state value core function is reading and writing of a single state value, the single control value core function includes control state reading, control state presetting, execution after control state presetting, and cancellation after control state presetting; and the core function of the state set value is atomized reading or writing of a plurality of state values in a set;
[0065] In the embodiment, the data attribute includes the common data attribute and the extended data attribute. The same data type has the same common attribute, and the data common attribute at least includes a value type of the data object. The value type includes but is not limited to Boolean, integer, short float, and string. The attribute is described by using a value pair of [key, value]. There can be multiple value pairs to describe different common attributes and extended attributes;
[0066] The function instance object is an instance of the function template. The function template corresponds to a function developed by the device software. Different parameters are configured for the same function template, and different function instance objects can also be created.
[0067] The association relationship between the data object and the function instance object includes three relationships of "publishing", "subscribing", and "publishing and subscribing".
[0068] The access condition of the function instance object to the data object includes that the function object satisfies a specific logical operation result as true, and only then the new state of the associated data object is allowed to be published.
[0069] In the embodiment, the subscription is simply data readable, and the publishing is data writable. The logical condition is a more strict read and write condition added on the basis of the readable and writable conditions. These are all access conditions.
[0070] In the embodiment, when the data object is added in the data configuration file, a unique data object identifier is allocated to each data object.
[0071] Further, according to an embodiment of the present application, in the data configuration file, the function template is configured, and the corresponding function instance object is generated according to the function template, including:
[0072] In the data configuration file, multiple function templates are added, including: a man-machine interface template, an IEC61850 communication service template, a telemetering calculation function template, a telesignaling calculation function template, and a remote control and platen execution function template.
[0073] The function template parameter is added for each function template. The function template parameter of the IEC61850 function template is "dev=mms0:mms1, max_client=16", which represents that the IEC61850 service is provided, the device names of the two station control layer network interfaces are mms0 and mms1, and each network interface supports a maximum of 16 client links.
[0074] The corresponding function instance object is generated according to each function template and the function template parameter in each function template.
[0075] In the embodiment, the function template parameter generation function instance object is configured, each function instance object configures one or more sub-function data groups according to specific requirements, each entry in the data group is associated with different data objects through a unique data object identifier, and the association relationship of each data object in the group is indicated.
[0076] In the embodiment, the access condition of the function instance object to the data object is described using a logical expression, the logical operators include but are not limited to and, or, not, equal to, not equal to, greater than, and less than, and the variable is an arbitrary single state type object. One sub-function data group of the function instance object or a single data object in the group can be configured with an access condition, and when two conditions exist at the same time, it is an "and" relationship. The logical operation mode can be configured as "triggered" or "cyclic". The "triggered" only performs logical operation and judgment at the moment when reading or writing occurs; the "cyclic" calculates the logical expression result at a fixed time interval, and therefore a cyclic operation interval time also needs to be configured.
[0077] Further, according to an embodiment of the present application, the function instance object and the corresponding data object are associated as:
[0078] The association relationship description of the corresponding function instance object and the corresponding data object is added to the corresponding function template.
[0079] The association relationship includes the above-mentioned publishing, subscribing, publishing and subscribing three relationships.
[0080] In the embodiment, the following Table 2 IEC61850 function template shows the above-mentioned association relationship and the logical condition of publishing, wherein in any one group, the entry number starts from 0 and is continuous:
[0081] Table 2: IEC61850 function template data object association relationship definition
[0082]
[0083] Further, according to an embodiment of the present application, the data objects, data attributes, function instance objects, association relationships of data objects and function instance objects, and access conditions of function instance objects to data objects in the memory data center are one-to-one corresponding to the description contents in the data configuration file.
[0084] The data attribute includes the above-mentioned general attribute and extended attribute.
[0085] Further, according to an embodiment of the present application, the memory data center generates a real-time data storage structure of the data object, maintains the life cycle (creation and destruction) of all data objects and function object instances, including:
[0086] The memory data center stores all data objects by using a hash table, a key value is a unique identifier of a data object, and a value is a data object pointer;
[0087] The memory data center generates an association between each function instance object and a corresponding data object, and uses two hash tables to manage the publishing and subscribing relationship between the function instance object and the corresponding data object.
[0088] The key value of the hash table for managing the publishing relationship is a data object containing a group number and an entry number, and the value is a data object pointer. The key value of the hash table for managing the subscribing relationship is a data object pointer, and the value is an array of data objects containing a group number and an entry number. The same data object can be subscribed by different function instance objects.
[0089] Further, according to an embodiment of the present application, a data service layer is constructed to provide an interactive interface for the real-time value and data attributes of the corresponding data object for each function instance object, including:
[0090] The data service layer is constructed to provide a data interactive interface for the corresponding data object for each function instance object, including interfaces for reading and writing various data attributes, and publishing and subscribing to the real-time value of the data object; and a function interface unique to a specific data type;
[0091] The structure of the real-time value of the data object of a single state type, a single control type, and a state set type is unified, and the structure of the real-time value includes a value, a value type, a quality, and a time stamp. The interfaces for publishing and subscribing to the real-time value of the data object of the single state type, the single control type, and the state set type are unified in the data service layer.
[0092] In the embodiment, the data service layer can provide two types of interfaces. One type is to read "attributes", i.e., "general attributes" and "extended attributes". The second type is a "read", "write", and "state notification" interface for a single state type, a "select", "execute", "cancel", and "state change notification" interface for a single control type, and an atomic operation interface for writing and reading an entire set of a state set type ("publishing by subset" and "subscribing by subset", which meets the principle of being indivisible and the demand for publishing or subscribing to multiple values in a state set at one time). The above content provides an abstract interface after summarization and sorting, which can meet the simplified and abstract data interface demand for data access in the embedded relay protection device field. The purpose is to ensure that the underlying interface is stable and will not change due to the expansion of business data types, for example, adding a business type of "electricity measurement" can be summarized as a single state value. The attribute value interface is similar. The general attributes are stable, and the unstable ones are managed by "extended attributes" to meet the needs of stability and variability isolation.
[0093] According to the above scheme of the present application, a general data service layer is designed, the separation of the specific function of the relay protection device and the data is realized, the function template only interacts with the data layer, the coupling degree of the system and the development and maintenance difficulty are reduced, and the scalability of the function module is improved.
[0094] The present application creates the resource data configuration file of the relay protection device by a describable method, adopts the abstract data type and its general attribute, describes the commonness of the data, uses the extensible attribute to describe the difference of the data, greatly reduces the number of the data types in the system, and builds the data service layer on the basis, effectively reduces the number of the data access interfaces, and improves the stability of the data service layer.
[0095] The present application designs the publishing and subscribing mechanism of the data, greatly improves the data interaction efficiency compared with the polling data change mechanism, in the aspect of the data publishing, the publishing permission control scheme based on the logical expression is provided, the inefficient response mode of the publishing permission rule through the coding is got rid of, and the flexible and efficient management of the publishing permission is realized.
[0096] The present application is proved to be effective and feasible in the extensive development practice of the relay protection device, greatly improves the development efficiency, and reduces the cost and the maintenance difficulty of the device research and development.
[0097] Further, in order to realize the above object, the present application also provides a modeling system of the relay protection device, which comprises:
[0098] The data object creation module edits the data configuration file, creates the data object required by the function of the relay protection device according to the preset rule;
[0099] The function instance object generation module configures the function template in the data configuration file, and generates the corresponding function instance object according to the function template;
[0100] The function instance configuration module associates the function instance object with the corresponding data object in the data configuration file, defines the access condition of the function instance object to the data object, and completes the editing of the data configuration file;
[0101] The data storage structure construction module loads and parses the data configuration file by the relay protection device, generates the unique memory data center of the relay protection device, generates the real-time data storage structure of the data object by the memory data center, and maintains the life cycle of all data objects and function object instances;
[0102] The data service layer construction module constructs the data service layer, and provides the interactive interface of the data real-time value and the data attribute of the corresponding data object for each function instance object.
[0103] The modeling system of the above-mentioned relay protection device according to the present application can realize the modeling method of the above-mentioned relay protection device, and the specific process steps are as described above, and will not be repeated here.
[0104] Further, in order to achieve the above-mentioned purpose, the present application also provides an electronic device, comprising: a memory for storing instructions; and a processor for executing the instructions, so that the electronic device executes the modeling method of the relay protection device as described above.
[0105] Further, in order to achieve the above-mentioned purpose, the present application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the modeling method of the relay protection device as described above.
[0106] Those skilled in the art can realize that the modules and algorithm steps described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-mentioned device and equipment can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0108] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed modules can be indirect coupling or communication connection through some interfaces, devices or modules, and can be electrical, mechanical or other forms.
[0109] The modules described as separate components can or can not be physically separated, and the components shown as modules can or can not be physical modules, i.e. can be located in one place, or can be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to realize the purpose of the embodiments of the present application.
[0110] In addition, each functional module in the embodiments of the present application can be integrated in one processing module, or each module can exist physically, or two or more modules can be integrated in one module.
[0111] The functions described above if implemented in the form of software functional modules and sold or used as independent products, can be stored in a computer readable storage medium. Based on such an understanding, the technical solutions of the present application essentially or partially contribute to the prior art, or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods for transmitting / receiving implemented by the embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, and various other media capable of storing program codes.
[0112] The above description is merely preferred embodiments of the present application and a description of the principles of the technology applied. It should be understood by those skilled in the art that the scope of the application involved in the present application is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features can be replaced with the technical features disclosed in the present application (but not limited to) having similar functions to form technical solutions.
[0113] It should be understood that the sequence of the steps in the summary of the present application and the embodiments does not absolutely mean the order of execution, and the execution order of the processes should be determined according to their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Claims
1. A method of modeling a protective relay, characterized by, The application relates to a data configuration method for a relay protection device. The method comprises the following steps: editing a data configuration file, creating data objects required by a function of the relay protection device according to preset rules; configuring a function template in the data configuration file, and generating corresponding function instance objects according to the function template; associating the function instance objects with corresponding data objects in the data configuration file, defining access conditions of the function instance objects to the data objects, and completing editing of the data configuration file; loading and parsing the data configuration file by the relay protection device, generating a unique memory data center of the relay protection device, generating a real-time data storage structure of the data objects by the memory data center, and maintaining the life cycle of all data objects and function object instances; constructing a data service layer, and providing an interactive interface of real-time data values and data attributes of corresponding data objects for each function instance object; the association of the function instance objects with the corresponding data objects comprises: adding a description of an association relationship of the corresponding function instance objects and the corresponding data objects to the corresponding function template; 2. The method of claim 1, wherein, the association relationship comprises publishing, subscribing and publishing and subscribing. the preset rules comprise: when the data object is remote signaling, the type of an abstract data object is a single state type, general attributes include a name, a maximum value, a minimum value, a value type, a business data type identifier, an abstract data type identifier and a unique identifier, and an extended attribute is a remote signaling type enumeration; when the data object is remote measurement, the type of the abstract data object is the single state type, the general attributes include the name, the maximum value, the minimum value, the value type, the business data type identifier, the abstract data type identifier and the unique identifier, and an extended attribute is a unit and precision; when the data object is remote control, the type of the abstract data object is a single control type, the general attributes include the name, the maximum value, the minimum value, the value type, the business data type identifier, the abstract data type identifier and the unique identifier, and an extended attribute is null; when the data object is a pressure plate, the type of the abstract data object is the single control type, the general attributes include the name, the maximum value, the minimum value, the value type, the business data type identifier, the abstract data type identifier and the unique identifier, and an extended attribute is null; when the data object is an event, the type of the abstract data object is the single state type, the general attributes include the name, the maximum value, the minimum value, the value type, the business data type identifier, the abstract data type identifier and the unique identifier, and an extended attribute is null; 3. The method of claim 2, wherein, when the data object is a fixed value, the type of the abstract data object is a state set type, the general attributes include the name, the maximum value, the minimum value, a step, the value type, the business data type identifier, the abstract data type identifier, a state set identifier and the unique identifier, and an extended attribute is null. the step of configuring the function template in the data configuration file and generating the corresponding function instance objects according to the function template comprises the following steps: adding a plurality of function templates in the data configuration file, including a man-machine interface template, an IEC61850 communication service template, a remote measurement calculation function template, a remote signaling calculation function template and a remote control and pressure plate execution function template; adding function template parameters for the function templates; generating corresponding function instance objects according to the function templates and the function template parameters in the function templates.
4. The method of claim 2, wherein, The data objects, data attributes, functional instance objects, association relationship of the data objects and the functional instance objects, and the access condition of the functional instance objects to the data objects in the memory data center correspond to the description content in the data configuration file one by one. The data attributes include the general attributes and the extended attributes.
5. The method of claim 4, wherein, The memory data center generates a real-time data storage structure of the data objects, and maintains the life cycle of all the data objects and the functional object instances, including: The memory data center stores all the data objects by using a hash table, the key value is a unique identifier of the data object, and the value is a data object pointer; The memory data center generates the association relationship of each functional instance object and the corresponding data object, and manages the publishing and subscribing relationship between the functional instance objects and the corresponding data objects by using two hash tables; The key value of the hash table for managing the publishing relationship is a data object containing a group number and an entry number, and the value is a data object pointer; the key value of the hash table for managing the subscribing relationship is a data object pointer, and the value is an array of data objects containing a group number and an entry number, and the same data object can be subscribed by different functional instance objects.
6. The method of claim 5, wherein, The data service layer is constructed, and an interactive interface of the data real-time value and the data attributes of the corresponding data object is provided for each functional instance object, including: The data service layer is constructed, and a data interactive interface of the corresponding data object is provided for each functional instance object, including interfaces of reading and writing various data attributes, and publishing and subscribing the data real-time value; The structure of the real-time value of the data object of the unified single state type, the unified control type and the state set type is unified, and the structure of the real-time value includes a value, a value type, a quality and a time stamp; the interfaces of publishing and subscribing the real-time value of the data object of the unified single state type, the unified control type and the state set type are unified in the data service layer.
7. A modeling system for a protective relay, characterized by including: A data object creation module edits a data configuration file, and creates data objects required by a function of a relay protection device according to a preset rule; A functional instance object generation module configures a function template in the data configuration file, and generates corresponding functional instance objects according to the function template; A functional instance configuration module associates the functional instance objects with the corresponding data objects in the data configuration file, defines an access condition of the functional instance objects to the data objects, and completes editing of the data configuration file; A data storage structure construction module loads and parses the data configuration file, generates a unique memory data center of the relay protection device, generates a real-time data storage structure of the data objects by the memory data center, and maintains the life cycle of all the data objects and the functional object instances; A data service layer construction module constructs the data service layer, and provides an interactive interface of the data real-time value and the data attributes of the corresponding data object for each functional instance object; The association of the functional instance objects with the corresponding data objects includes: Adding a description of the association relationship of the corresponding functional instance objects and the corresponding data objects to the corresponding function template; The association relationship includes publishing, subscribing, publishing and subscribing three relationships.
8. An electronic device, characterized by A computer program product comprising a computer readable storage medium having stored thereon computer program means, the computer program product being configured such that, upon execution by a processor, the processor is caused to perform the method of modeling a protective relay according to any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that, A computer program product comprising a computer readable storage medium having stored thereon computer program means, the computer program product being configured such that, upon execution by a processor, the processor is caused to perform the method of modeling a protective relay according to any one of claims 1 to 6.
Citation Information
Patent Citations
Modeling method and device for relay protection device
CN113515866A
Distributed relay protection system generation method and device, electronic equipment and medium
CN115525323A