A method and system for design model based dispatch naming adaptive configuration
By adopting a design model-based adaptive configuration method for scheduling naming, and utilizing VTD and XPath technologies to automatically update the descriptions of bays, devices, and signals in the smart grid automation system, the problem of large workload and consistency in scheduling naming modifications is solved, and efficient and consistent scheduling naming configuration is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING SIFANG JIBAO AUTOMATION
- Filing Date
- 2024-12-04
- Publication Date
- 2026-05-19
AI Technical Summary
The existing methods for changing dispatch names in smart grid automation systems involve a large amount of engineering configuration and verification work. Furthermore, the reusability of dispatch name modification methods is low across different automation systems and devices, resulting in a large amount of repetitive configuration and verification work. In particular, it is difficult to ensure consistency in the later stages of commissioning and acceptance.
An adaptive configuration method for scheduling and naming based on a design model is adopted. Information in the design model is extracted through the VTD virtual token description structure and the XPath query processing method based on automata. The signal correspondence between the physical loop description model and the logical loop description model is generated, and the interval, device and signal description in the automation system and equipment are automatically updated based on this.
It enables rapid scheduling, naming, and adaptive configuration of the entire station's automated system and equipment, reduces manual modification workload, improves engineering configuration efficiency, ensures consistency of description information, conforms to the principle of "one model to the end", and meets the needs of source-end maintenance and integrated configuration.
Smart Images

Figure CN119558305B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power system automation and relates to a method and system for adaptive configuration of scheduling naming based on a design model. Background Technology
[0002] Currently, the methods for changing dispatch names in smart grid automation systems include manual configuration based on engineering design blueprints, manual configuration and modification of the SCD model followed by updating the automation system or equipment, direct manual configuration and modification of the automation system or equipment, and semi-automatic modification based on private databases.
[0003] Existing methods for changing dispatch names in smart grid automation systems involve a significant amount of engineering configuration and verification work. Furthermore, the reusability of these methods is low across different automation systems and devices, resulting in a large workload of repetitive configuration and verification. Ensuring consistency in dispatch names across different automation systems and devices is particularly urgent during the later stages of commissioning and acceptance testing.
[0004] Therefore, it is necessary to study a fast and universal method for adaptive scheduling and naming configuration to meet the growing needs of advanced applications such as efficiency improvement, integrated configuration, source-end maintenance, and end-to-end consistency. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a method and system for adaptive configuration of scheduling names based on a design model. Using physical and logical loop description models that are easily read and parsed by software tools, it achieves adaptive configuration of interval descriptions, device descriptions, and signal descriptions in a full-station automation system and its equipment. This not only solves the problems of engineering configuration efficiency and repetitive modification of information across different automation systems, but also meets the needs of advanced applications such as source-end maintenance and integrated configuration. It conforms to the "one-model-to-the-end" principle currently being implemented, reducing the workload of manually modifying scheduling names in automation systems and equipment, and improving the efficiency of engineering configuration.
[0006] The present invention adopts the following technical solution.
[0007] The first aspect of this invention proposes a method for adaptive scheduling naming configuration based on a design model, comprising:
[0008] The design model is parsed using a VTD virtual token description structure and information in the design model is extracted using an automaton-based XPath query processing method. The design model includes a physical loop description model and a logical loop description model.
[0009] The extracted information is used to generate the signal correspondence between the physical circuit description model and the logical circuit description model;
[0010] The logic loop description model is updated to the latest version using the extracted information and the correspondence between the signals.
[0011] Based on the relational table, the latest version of the logical loop description model is compared with the original logical loop description model to generate a logical loop description model update report;
[0012] The report automatically updates the descriptions of intervals, devices, and signals in the automation system and equipment based on the described update.
[0013] Preferably, the step of parsing and extracting information from the design model includes a physical circuit description model and a logical circuit description model, comprising:
[0014] The physical circuit description model includes the SDD model and the SPD model; the logical circuit description model is the SCD model.
[0015] Extract signal information, interval description, and device description from SDD and SPD models; extract signal information, interval description, and device description from SCD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, board to which the signal belongs, and port to which the signal belongs from SDD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, sub-device to which the signal belongs, and component to which the signal belongs from SPD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, and short address of the signal from SCD model.
[0016] Preferably, the VTD virtual token description structure parsing design model includes the following:
[0017] The original XML file of the model is read into memory in binary form without modification to obtain a bit array. Then, the position, start offset, length, depth and token type of each element are parsed on the bit array and saved as a VTD array.
[0018] Preferably, the step of extracting information from the design model using an automata-based XPath query processing method includes:
[0019] Represent one or more XPath expressions as an automaton, run the automaton on the model XML file to be queried, the automaton determines the next action based on the current state and the nodes of the document read in, and the execution ends to determine whether the file meets the given XPath query conditions based on whether the automaton is in the accepting state.
[0020] Preferably, the step of generating the signal correspondence between the physical circuit description model and the logical circuit description model using the extracted information includes:
[0021] The signal correspondence between the SDD model and the SCD model is generated in the following way:
[0022] The signal correspondence between the SDD model and the SCD model is generated by directly matching the IEDName of the device to which the signal belongs in the SDD model with the IEDName of the IED device in the SCD model, and by directly matching the signal parameters in the SDD model with the signal parameters of the IED device in the SCD model.
[0023] Alternatively, the IEDName of the device to which the signal belongs in the SDD model can be directly matched with the IEDName of the IED device in the SCD model, and the short address of the signal in the IED device in the SCD model can be directly matched with the device, board, and port to which the signal belongs in the SDD model, thus generating the signal correspondence between the SDD model and the SCD model.
[0024] Preferably, the step of generating the signal correspondence between the physical circuit description model and the logical circuit description model using the extracted information includes:
[0025] The signal correspondence between the SPD model and the SCD model is generated in the following way:
[0026] The signal correspondence between the SPD model and the SCD model is generated by directly matching the IEDName of the device to which the signal belongs in the SPD model with the IEDName of the IED device in the SCD model, and by directly matching the signal parameters in the SPD model with the signal parameters of the IED device in the SCD model.
[0027] Alternatively, the IEDName of the device to which the signal belongs in the SPD model can be directly matched with the IEDName of the IED device in the SCD model, and the short address of the signal to which the signal belongs, the sub-device to which the signal belongs, and the element to which the signal belongs in the SPD model can be directly matched with the short address of the IED device in the SCD model to generate the signal correspondence between the SPD model and the SCD model.
[0028] Preferably, updating the logic loop description model to the latest version using the extracted information and the signal correspondence includes:
[0029] The signal descriptions extracted from the physical loop description model are updated to the signal descriptions of the logic loop description model according to the signal correspondence. The interval descriptions and device descriptions extracted from the physical loop description model are updated to the interval descriptions and device descriptions of the logic loop description model, forming the latest version of the logic loop description model.
[0030] Preferably, when updating the logic loop description model to the latest version using the extracted information and the signal correspondence, if the interval description and device description in the physical loop description model are not the latest version, the digital design file is automatically imported through the tool software to update the interval description and device description in the physical loop description model.
[0031] Preferably, the step of comparing the latest version of the logical loop description model with the original logical loop description model based on the relation table to generate a logical loop description model update report includes:
[0032] For the latest version of the logic loop description model and the original logic loop description model, the interval description, device description and signal description in their model XML files are parsed respectively, and a correspondence table of parameters and descriptions of the corresponding models is established.
[0033] Compare the correspondence table between the latest version of the logic loop description model and the original logic loop description model to obtain the differences in interval description, device description and signal description between the latest version of the logic loop description model and the original logic loop description model;
[0034] The different interval descriptions, device descriptions, and signal descriptions corresponding to the same model reference are saved as a list of corresponding information for the model reference, the description in the original logic loop description model, and the description in the latest version of the logic loop description model. An update report of the logic loop description model is generated using XML file format, recording the differences between the interval description, device description, and signal description.
[0035] Preferably, the relation table is established in the following way:
[0036] First, a relation schema is established in the relational database for the logical loop description model file to store the references and description information of the logical loop description model file;
[0037] After establishing the relation schema, the parser parses the parameters and description information in the logic loop description model file and stores them in the corresponding relation table.
[0038] Based on the relational table, the comparison of information in the logical loop description model file is transformed into a comparison of relational tables of the same type.
[0039] Preferably, the automatic updating of the descriptions of intervals, devices, and signals in the automation system and equipment based on the description update report includes:
[0040] Obtain the description update information of the logic loop description model in the description update report, and automatically update the interval description, device description and signal description in the whole station automation system and equipment through the tool software to complete the adaptive configuration of scheduling naming of the whole station automation system and equipment.
[0041] A second aspect of this invention proposes a system for adaptive scheduling naming configuration based on a design model, comprising:
[0042] The information extraction module is used to parse the design model using the VTD virtual token description structure and extract information from the design model using an automaton-based XPath query processing method. The design model includes a physical loop description model and a logical loop description model.
[0043] The correspondence generation module is used to generate the signal correspondence between the physical circuit description model and the logic circuit description model using the extracted information.
[0044] The version update module is used to update the logic loop description model to the latest version using the extracted information and the correspondence between the signals;
[0045] The report update module is used to compare the latest version of the logical loop description model with the original logical loop description model based on the relation table, and generate a logical loop description model update report.
[0046] An automatic update module is used to automatically update the descriptions of intervals, devices, and signals in automated systems and equipment based on the description update report.
[0047] Compared with the prior art, the beneficial effects of the present invention include at least the following:
[0048] This invention is based on a design model. According to the physical loop description model and the logical loop description model within the design model, it can automatically obtain the correspondence between intervals, devices, and signals in the physical loop description model and the logical loop description model. Using the content of the physical loop description model as the information source for scheduling and naming modification work, it automatically updates the descriptions in the logical loop description model using the descriptions in the physical loop description model. Then, based on the logical loop description model, it automatically updates the descriptions of intervals, devices, and signals in the automation system and equipment. This allows for rapid adaptive configuration of scheduling and naming for the entire station's automation system and equipment, improving the implementation mechanism for advanced applications such as source-end maintenance and integrated configuration. It conforms to the "one-model-to-the-end" principle currently being followed, ensuring consistency and standardization of scheduling and naming modification work from the source, improving the efficiency of engineering configuration, and reducing the configuration cost of the automation system.
[0049] This invention is applied to power grid automation systems, which can greatly simplify the steps and methods of scheduling name modification, making the scheduling name modification method more automated. It can avoid the workload of manually modifying scheduling names of automation systems and equipment during the commissioning, acceptance or expansion phases, and can also avoid the workload of repeatedly modifying scheduling names of different automation systems, reducing the workload of engineering service personnel, ensuring the consistency of descriptive information in various automation systems and equipment, and meeting advanced application requirements such as source-end maintenance, integrated configuration, and end-to-end consistency.
[0050] This invention uses a VTD (Virtual Token Description) structure to parse the design model, resulting in low memory usage, high efficiency, and fast parsing and traversal of XML documents. It can quickly parse and extract information from the design model.
[0051] This invention employs an automata-based XPath query processing method to extract information from a design model. It can handle various constraints, accurately return the information required by the user, improve query efficiency, and meet the needs of extracting information from a design model.
[0052] This invention transforms the comparison of descriptive information in a logic loop description model file into a comparison of relational tables of the same type, enabling rapid comparison of information in the logic loop description model. Attached Figure Description
[0053] Figure 1 This is a schematic diagram of the scheduling naming adaptive configuration method based on the design model of the present invention. Detailed Implementation
[0054] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this invention. The embodiments described in this application are merely some embodiments of this invention, and not all embodiments. Based on the spirit of this invention, other embodiments obtained by those skilled in the art without creative effort are all within the protection scope of this invention.
[0055] like Figure 1 As shown, Embodiment 1 of the present invention provides a scheduling naming adaptive configuration method based on a design model, comprising the following steps:
[0056] S1. The design model is parsed using the VTD virtual token description structure and information in the design model is extracted using an automaton-based XPath query processing method.
[0057] More preferably, the scheduling naming modification work mainly involves modifying interval descriptions, device descriptions, and signal descriptions, with the modification of signal descriptions being the most labor-intensive. In actual engineering projects, engineering service personnel mostly obtain signal descriptions from engineering design blueprints and manually configure and modify the signal descriptions in automation systems and equipment. Figure 1 Generally, they exist in the form of CAD (Computer Aided Design) drawings, which are not easy to extract information from using software tools; however, for physical circuit description models that contain engineering design blueprints and white drawings, such as SPD / SDD models generated by digital modeling of substation secondary circuits, it is easy to extract information from them using software tools.
[0058] Currently, power grid companies are promoting digital transformation and carrying out full-domain digital modeling of substation secondary circuits. Based on the current engineering pilot projects and standardization of digital modeling, the design models generated during the engineering design phase include physical circuit description models and logical circuit description models. The physical circuit description models are further divided into SDD (Substation Digital Design Description) models and SPD (Substation Physical Circuit Logic Relationship Description) models; the logical circuit description models refer to SCD (Substation Configuration Description) models. That is, the applied design model includes both SPD physical circuit description models and SCD logical circuit description models, or vice versa. The physical circuit description models (SDD / SPD) and logical circuit description models (SCD) (V1.0) are parsed, and signal information, bay descriptions, and equipment descriptions are extracted from the physical circuit description models. Signal information includes signal descriptions and signal parameters.
[0059] The physical loop description model includes the design blueprints and white drawings, encompassing interval descriptions, equipment descriptions, and signal descriptions. It serves as the information source for scheduling naming modifications. Software tools automatically obtain the signal correspondence between the physical loop description model and the logical loop description model. Based on this correspondence, the signal descriptions in the physical loop description model are automatically updated in the logical loop description model, ensuring the logical loop description model contains the new version of the signal descriptions. Similarly, based on the one-to-one correspondence between intervals and equipment / devices, the interval and equipment descriptions in the physical loop description model are automatically updated in the logical loop description model. This ensures the logical loop description model contains the new versions of interval, device, and signal descriptions, serving as the source for obtaining scheduling names.
[0060] Specifically: For the SDD model, extract the interval name, interval description, device description, and signal information. The signal information includes the signal description, signal reference, the device IEDName to which the signal belongs, the board number to which the signal belongs, and the port number to which the signal belongs. These correspond to the port element description, the model reference corresponding to the port element, the device IEDName to which the port element belongs, the board number to which the port element belongs, and the port number to which the port element belongs in the SDD model.
[0061] For the SPD model, extract the interval name, interval description, device description, and signal information. The signal information includes the signal description, signal reference, the device IEDName to which the signal belongs, the sub-device number to which the signal belongs, and the component name to which the signal belongs. These correspond to the component element description, the model reference corresponding to the component element, the device IEDName to which the component element belongs, the sub-device number to which the component element belongs, and the component element name in the SPD model.
[0062] For the SCD model, extract the interval name, interval description, device description, and signal information. The signal information includes the signal description, signal reference, device IEDName to which the signal belongs, and short address of the signal, corresponding to the description of DO (Data Object) or DA (Data Attribute) elements in the SCD model, the model reference corresponding to the DO or DA element, the device IEDName to which the DO or DA element belongs, and the short address corresponding to the DO or DA element.
[0063] More preferably, the design model (SDD model, SPD model, and SCD model are in XML file format) is parsed using the VTD (Virtual Token Descriptor) method:
[0064] The VTD (Virtual Token Descriptor) structure is used, which is a 64-bit fixed-length numeric type that records the starting position (offset), length, depth, and token (element label) type of each element. It represents the position and type information of each element, and all operations on XML are based on this data structure.
[0065] The specific approach is as follows: The original XML file is read into memory in binary format without any decoding. Then, the position of each element is parsed from this bit array, and information such as the start offset, length, depth, and token type of the XML token is recorded and saved as a VTD array. Subsequent traversal operations can then be performed on the VTD array. If it is necessary to extract the XML content, the position and other information in the records are used to decode the original bit array and return a string.
[0066] The ingenious design of this data structure results in low memory consumption and high efficiency when parsing XML documents. It also enables fast parsing and traversal of XML documents, thereby quickly parsing and extracting information from the design model.
[0067] The XPath (XML Path Language) query processing method based on automata is used to extract information from the design models (SDD model, SPD model, and SCD model are in XML file format):
[0068] XPath is a language used to locate a part of an XML document. It is a standard published by the W3C, which develops XML technical specifications. It provides precise specifications for path navigation, node location, predicate selection, and other aspects. Its main purpose is to locate nodes in the node tree of an XML document.
[0069] An automaton is a mathematical model of a discrete input-output system. This system has an arbitrary finite number of internal "states," which are identifiers that distinguish things. According to XPath syntax and automaton theory, any XPath expression necessarily has an automaton that accepts the language.
[0070] The basic idea of XPath query processing is to represent one or a set of XPath expressions as a kind of automaton, run the automaton on the XML file to be queried, and determine the next action based on the current state and the nodes of the document read in. After the execution is completed, it is determined whether the file meets the given XPath query conditions based on whether the automaton is in the accepting state.
[0071] The XPath query processing method based on automata can handle various constraints, accurately return the information needed by the user, improve query efficiency, and meet the needs of extracting information from the design model.
[0072] S2. Use the extracted information to generate the signal correspondence between the physical circuit description model and the logic circuit description model;
[0073] More preferably, using the information obtained in S1, the signal correspondence between the physical circuit description model (SDD / SPD) and the logic circuit description model (SCD) is generated according to signal information such as signal parameters, including:
[0074] (1) Method 1 for generating the signal correspondence between the SDD model and the SCD model.
[0075] Using the signal information extracted by S1, including signal description, signal reference, and the IEDName of the device to which the signal belongs, the IEDName of the device to which the signal belongs in the SDD model is directly matched with the IEDName of the IED (Intelligent Electronic Device) device in the SCD model, and the signal reference in the SDD model is directly matched with the signal reference of the IED device in the SCD model, thus generating the signal correspondence between the SDD model and the SCD model.
[0076] (2) Method 2 for generating the signal correspondence between the SDD model and the SCD model.
[0077] Using the signal information extracted by S1, including signal description, signal parameters, the device IEDName, the board number, and the port number, the IEDName of the device in the SDD model is directly matched with the IEDName of the IED device in the SCD model. The device, board number, and port number in the SDD model are directly matched with the short address of the IED device in the SCD model (the short address sAddr of the IED device in the SCD model contains the board number and port number information), thus generating the signal correspondence between the SDD model and the SCD model.
[0078] (3) Method 1 for generating the signal correspondence between the SPD model and the SCD model.
[0079] Using the signal information extracted by S1, including signal description, signal reference, and the IEDName of the device to which the signal belongs, the IEDName of the device to which the signal belongs in the SPD model is directly matched with the IEDName of the IED device in the SCD model, and the signal reference in the SPD model is directly matched with the signal reference of the IED device in the SCD model, thus generating the signal correspondence between the SPD model and the SCD model.
[0080] (4) Method 2 for generating the signal correspondence between the SPD model and the SCD model.
[0081] Using the signal information extracted by S1, including signal description, signal parameters, the device IEDName to which the signal belongs, the sub-device number to which the signal belongs, and the component name to which the signal belongs, the IEDName of the device to which the signal belongs in the SPD model is directly matched with the IEDName of the IED device in the SCD model. The IEDName of the device to which the signal belongs in the SPD model, the sub-device number to which the signal belongs, and the component name to which the signal belongs are directly matched with the short address of the IED device in the SCD model (the short address sAddr of the IED device in the SCD model contains the board and port information to which the signal belongs, i.e., the sub-device number and component name information to which the signal belongs in the SPD model). The signal correspondence between the SPD model and the SCD model is then generated.
[0082] S3. Update the logic loop description model to the latest version using the extracted information and the signal correspondence, that is, update the signal description, interval description and device description in the SCD model using the interval description and device description obtained in S1.
[0083] More preferably, using the interval description, device description, signal description and signal correspondence obtained in S1 and S2, the signal description extracted from the SDD / SPD model is updated to the signal description of the SCD model (V1.1) according to the signal correspondence, and the interval description and device description extracted from the SDD / SPD model are updated to the interval description and device description of the SCD model (V1.1) to form the latest version of the SCD model (V1.2);
[0084] That is, using the signal description in the physical circuit description model (SDD / SPD) extracted by S1, and according to the signal correspondence obtained by S2, the signal description in the SCD(V1.0) model is updated according to the signal correspondence to form the SCD(V1.1) model;
[0085] Using the interval descriptions and device descriptions extracted from the physical circuit description model (SDD / SPD) by S1, update the interval descriptions and device descriptions in the SCD (V1.1) model one by one to the latest version of the SCD (V1.2) model (update the interval descriptions in the SCD (V1.1) model by using the interval name as the index, and update the device descriptions in the SCD (V1.1) model by using the device IEDName as the index), ensuring that the interval descriptions, device descriptions, and signal descriptions in the SCD (V1.2) model are the latest versions;
[0086] If the bay description and equipment description in the Physical Loop Description Model (SDD / SPD) are not the latest version, they can be updated by automatically importing digital design files using software tools.
[0087] The digital design documents are in Excel format and include tables for bay information, cabinet information, equipment information, cable connections, internal wiring, and signal information. These can be automatically generated by design tools based on design drawings and blueprints, or automatically imported into the SDD / SPD model using software tools. Automatically importing the bay and equipment information tables from the digital design documents into the SDD / SPD model using software tools ensures that the bay and equipment descriptions in the SDD / SPD model are up-to-date.
[0088] S4. Based on the relation table, compare the latest version of the logical loop description model with the logical loop description model of S1, and generate a logical loop description model update report.
[0089] More preferably, the latest version of the SCD model (V1.2) of S3 is used to compare with the SCD model (V1.0) to generate an SCD model description update report;
[0090] The SCD model is essentially an XML file. The interval description, device description and signal description in the SCD model are parsed using XML file parsing methods to establish a correspondence table between SCD model parameters (node paths in the SCD model) and descriptions.
[0091] By comparing the correspondence tables of the SCD(V1.0) model and the SCD(V1.2) model using software tools, the differences in interval description, device description, and signal description in the SCD(V1.0) model and the SCD(V1.2) model are obtained. The different interval description / device description / signal description information corresponding to the same SCD model reference is saved as a list of corresponding information for SCD model reference, description in SCD(V1.0) model, and description in SCD(V1.2) model. An SCD model description update report is generated using XML file format, and the changes in SCD model description are recorded in the report.
[0092] A comparison method based on relational tables is used to compare the descriptive information in the logical loop description model, as follows:
[0093] From a data management perspective, the data in the logical loop description model file can be viewed as semi-structured data with a hierarchical structure.
[0094] Relational databases are designed for storing and managing structured data, and their data access model is a flat, two-dimensional relational table. A two-dimensional table in a relational database consists of rows and columns: columns are called fields, representing attributes that make up the valid information of the data; rows are called tuples, representing a complete data record composed of all the fields. In a relational database, relationships between tables are established through primary key-foreign key relationships. There is an inherent mismatch between hierarchical semi-structured SCD file data and the flat, unordered relational model. However, based on the similarity of descriptive information in logical loop description model files, it can be considered structured data and suitable for storage in relational database tables, without considering other unstructured data.
[0095] Storing logical loop description model file description information in a relational database first requires establishing a relational schema for the logical loop description model file. This raises the issue of schema mapping between two heterogeneous schemas, namely, how to map the logical loop description model file schema to a relational schema. The logical loop description model file schema definition is typically a document type definition (XML Schema). After parsing the syntax in the XML Schema definition, it is mapped to a relational schema. Once the relational schema is generated, a parser can parse the description information in the logical loop description model file and store it in the corresponding relational table. Comparisons of description information within the logical loop description model file are transformed into comparisons of relational tables of the same type.
[0096] S5. Automatically update the descriptions of intervals, devices, and signals in the automation system and equipment according to the description update report, that is, automatically and quickly modify the names of intervals, devices, and signals.
[0097] More preferably, the SCD model description update report generated by S4 is used to obtain the SCD model description difference information in the report. The interval descriptions, device descriptions, and signal descriptions in the automation system and equipment are then automatically updated using software tools. This completes the adaptive configuration of scheduling names for interval descriptions, device descriptions, and signal descriptions in the entire station's automation system and equipment, meeting the needs for rapid, standardized, and consistent modification of scheduling names across different power grids, manufacturers, automation systems, and equipment. Specifically, as follows:
[0098] Using the signal information extracted from the design model by S1, and the SCD model description update report generated by S2 and S3, the SCD model description update information in the report is obtained. The interval description, device description and signal description in the whole station automation system and equipment are automatically updated by the tool software to complete the adaptive configuration of scheduling naming of the whole station automation system and equipment.
[0099] Embodiment 2 of the present invention provides a system for adaptive scheduling naming configuration based on a design model, comprising:
[0100] The information extraction module is used to parse the design model using the VTD virtual token description structure and extract information from the design model using an automaton-based XPath query processing method. The design model includes a physical loop description model and a logical loop description model.
[0101] The correspondence generation module is used to generate the signal correspondence between the physical circuit description model and the logic circuit description model using the extracted information.
[0102] The version update module is used to update the logic loop description model to the latest version using the extracted information and the correspondence between the signals;
[0103] The report update module is used to compare the latest version of the logical loop description model with the original logical loop description model based on the relation table, and generate a logical loop description model update report.
[0104] An automatic update module is used to automatically update the descriptions of intervals, devices, and signals in automated systems and equipment based on the description update report.
[0105] Embodiment 3 of the present invention provides a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to perform operations according to the instructions to execute the steps of the method.
[0106] Embodiment 4 of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method.
[0107] Compared with the prior art, the beneficial effects of the present invention include at least the following:
[0108] This invention is based on a design model. According to the physical loop description model and the logical loop description model within the design model, it can automatically obtain the correspondence between intervals, devices, and signals in the physical loop description model and the logical loop description model. Using the content of the physical loop description model as the information source for scheduling and naming modification work, it automatically updates the descriptions in the logical loop description model using the descriptions in the physical loop description model. Then, based on the logical loop description model, it automatically updates the descriptions of intervals, devices, and signals in the automation system and equipment. This allows for rapid adaptive configuration of scheduling and naming for the entire station's automation system and equipment, improving the implementation mechanism for advanced applications such as source-end maintenance and integrated configuration. It conforms to the "one-model-to-the-end" principle currently being followed, ensuring consistency and standardization of scheduling and naming modification work from the source, improving the efficiency of engineering configuration, and reducing the configuration cost of the automation system.
[0109] This invention is applied to power grid automation systems, greatly simplifying the steps and methods for changing dispatch names, making the dispatch name change method more automated. It can avoid the workload of manually modifying dispatch names of automation systems and equipment during the commissioning, acceptance, or expansion phases, and can also avoid the workload of repeatedly modifying dispatch names of different automation systems, reducing the workload of engineering service personnel, ensuring the consistency of descriptive information in various automation systems and equipment, and meeting advanced application requirements such as source-end maintenance, integrated configuration, and end-to-end consistency.
[0110] This invention uses a VTD (Virtual Token Description) structure to parse the design model, resulting in low memory usage, high efficiency, and fast parsing and traversal of XML documents. It can quickly parse and extract information from the design model.
[0111] This invention employs an automata-based XPath query processing method to extract information from a design model. It can handle various constraints, accurately return the information required by the user, improve query efficiency, and meet the needs of extracting information from a design model.
[0112] This invention transforms the comparison of descriptive information in a logic loop description model file into a comparison of relational tables of the same type, enabling rapid comparison of information in the logic loop description model.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A method for adaptive scheduling naming configuration based on a design model, characterized in that, include: The design model is parsed using a VTD virtual token description structure and information in the design model is extracted using an automaton-based XPath query processing method. The design model includes a physical loop description model and a logical loop description model. The extracted information is used to generate the signal correspondence between the physical loop description model and the logical loop description model; the extracted information and the signal correspondence are used to update the logical loop description model to the latest version. Based on the relational table, the latest version of the logical loop description model is compared with the original logical loop description model, and a logical loop description model update report is generated, including: For the latest version of the logic loop description model and the original logic loop description model, the interval description, device description, and signal description in their model XML files are parsed respectively, and a corresponding relationship table of references and descriptions for the corresponding models is established. The relationship table is established as follows: first, a relation schema is established in the relational database for the logic loop description model file to store the reference and description information of the logic loop description model file; after establishing the relation schema, the reference and description information in the logic loop description model file is parsed by the parser and then stored in the corresponding relationship table. Based on the relation table, the comparison of information in the logical loop description model file is transformed into a comparison of relation tables of the same type; Compare the correspondence table between the latest version of the logic loop description model and the original logic loop description model to obtain the differences in interval description, device description and signal description between the latest version of the logic loop description model and the original logic loop description model; The different interval descriptions, device descriptions, and signal descriptions corresponding to the same model reference are saved as a list of corresponding information for the model reference, the description in the original logic loop description model, and the description in the latest version of the logic loop description model. An update report of the logic loop description model is generated using XML file format to record the differences between the interval description, device description, and signal description. The report automatically updates the descriptions of intervals, devices, and signals in the automation system and equipment based on the described update.
2. The method for adaptive scheduling naming configuration based on a design model according to claim 1, characterized in that: The information in the design model is parsed and extracted. The design model includes a physical loop description model and a logical loop description model, including: The physical circuit description model includes the SDD model and the SPD model; the logical circuit description model is the SCD model. Extract signal information, interval description, and device description from SDD and SPD models; extract signal information, interval description, and device description from SCD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, board to which the signal belongs, and port to which the signal belongs from SDD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, sub-device to which the signal belongs, and component to which the signal belongs from SPD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, and short address of the signal from SCD model.
3. The method for adaptive scheduling naming configuration based on a design model according to claim 1, characterized in that: The design model using the VTD virtual token description structure includes the following: The original XML file of the model is read into memory in binary form without modification to obtain a bit array. Then, the position, start offset, length, depth and token type of each element are parsed on the bit array and saved as a VTD array.
4. The method for adaptive scheduling naming configuration based on a design model according to claim 1, characterized in that: The method of extracting information from the design model using XPath query processing based on automata includes: Represent one or more XPath expressions as an automaton, run the automaton on the model XML file to be queried, the automaton determines the next action based on the current state and the nodes of the document read in, and the execution ends to determine whether the file meets the given XPath query conditions based on whether the automaton is in the accepting state.
5. The method for adaptive scheduling naming configuration based on a design model according to claim 2, characterized in that: The step of generating the signal correspondence between the physical circuit description model and the logic circuit description model using the extracted information includes: The signal correspondence between the SDD model and the SCD model is generated in the following way: The signal correspondence between the SDD model and the SCD model is generated by directly matching the IEDName of the device to which the signal belongs in the SDD model with the IEDName of the IED device in the SCD model, and by directly matching the signal parameters in the SDD model with the signal parameters of the IED device in the SCD model. Alternatively, the IEDName of the device to which the signal belongs in the SDD model can be directly matched with the IEDName of the IED device in the SCD model, and the short address of the signal in the IED device in the SCD model can be directly matched with the device, board, and port to which the signal belongs in the SDD model, thus generating the signal correspondence between the SDD model and the SCD model.
6. The method for adaptive scheduling naming configuration based on a design model according to claim 2, characterized in that: The step of generating the signal correspondence between the physical circuit description model and the logic circuit description model using the extracted information includes: The signal correspondence between the SPD model and the SCD model is generated in the following way: The signal correspondence between the SPD model and the SCD model is generated by directly matching the IEDName of the device to which the signal belongs in the SPD model with the IEDName of the IED device in the SCD model, and by directly matching the signal parameters in the SPD model with the signal parameters of the IED device in the SCD model. Alternatively, the IEDName of the device to which the signal belongs in the SPD model can be directly matched with the IEDName of the IED device in the SCD model, and the short address of the signal to which the signal belongs, the sub-device to which the signal belongs, and the element to which the signal belongs in the SPD model can be directly matched with the short address of the IED device in the SCD model to generate the signal correspondence between the SPD model and the SCD model.
7. The method for adaptive scheduling naming configuration based on a design model according to claim 1, characterized in that: The step of updating the logic loop description model to the latest version using the extracted information and the correspondence between the signals includes: The signal descriptions extracted from the physical loop description model are updated to the signal descriptions of the logic loop description model according to the signal correspondence. The interval descriptions and device descriptions extracted from the physical loop description model are updated to the interval descriptions and device descriptions of the logic loop description model, forming the latest version of the logic loop description model.
8. The method for adaptive scheduling naming configuration based on a design model according to claim 1, characterized in that: When updating the logic loop description model to the latest version using the extracted information and the correspondence between the signals, if the interval description and device description in the physical loop description model are not the latest version, the digital design file is automatically imported through the tool software to update the interval description and device description in the physical loop description model.
9. The method for adaptive scheduling naming configuration based on a design model according to claim 1, characterized in that: The automatic updating of descriptions of intervals, devices, and signals in the automation system and equipment based on the described update report includes: Obtain the description update information of the logic loop description model in the description update report, and automatically update the interval description, device description and signal description in the whole station automation system and equipment through the tool software to complete the adaptive configuration of scheduling naming of the whole station automation system and equipment.
10. A system for adaptive scheduling and naming configuration based on a design model, utilizing the method described in any one of claims 1-9, characterized in that, The system includes: The information extraction module is used to parse the design model using the VTD virtual token description structure and extract information from the design model using an automaton-based XPath query processing method. The design model includes a physical loop description model and a logical loop description model. The correspondence generation module is used to generate the signal correspondence between the physical circuit description model and the logic circuit description model using the extracted information. The version update module is used to update the logic loop description model to the latest version using the extracted information and the correspondence between the signals; The report update module is used to compare the latest version of the logical loop description model with the original logical loop description model based on the relation table, and generate a logical loop description model update report. An automatic update module is used to automatically update the descriptions of intervals, devices, and signals in automated systems and equipment based on the description update report.