Design model-based scheduling naming adaptive configuration method and system
Through the design model-based method, the scheduling naming information in the smart grid automation system is automatically parsed and updated, which solves the problems of low efficiency and difficult to ensure consistency in the existing technology, and realizes efficient and automated scheduling naming configuration and maintenance.
Patent Information
- Application Number
- CN202411770832.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-12-04
AI Technical Summary
There is a lot of engineering configuration and verification workload for changing scheduling naming methods in existing smart grid automation systems, and the modification methods of different systems and equipment can be reused at a low degree, resulting in a large amount of repeated configuration and verification workload, especially in the later stage of adjustment and testing, and the need to ensure consistency is urgent.
Using a design model-based method, the information in the physical loop description model and the logical loop description model is analyzed and extracted through the VTD virtual token description structure and the automatic machine-based XPath query processing method, the information in the physical loop description model is generated, the signal correspondence relationship is automatically updated, and the logic loop description model is generated based on the comparison of the relationship table, and the interval, device and signal description in the automation system and equipment are automatically updated.
It solves the problems of low efficiency of engineering configuration and duplicate information modification, meets the source-side maintenance and integrated configuration requirements, reduces the workload of manual modification, improves the efficiency of engineering configuration, and ensures the consistency and standardization of scheduling naming.
Smart Images

Figure CN119558305A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of power system automation and relates to a method and system for adaptively configuring dispatch naming based on a design model. Background Art
[0002] Currently, there are several methods for changing the dispatching name in the smart grid automation system: direct manual configuration and modification based on the engineering design blueprint, manual configuration and modification of the SCD model before updating the automation system or equipment, direct manual configuration and modification of the automation system or equipment, and semi-automatic modification based on a private database.
[0003] The existing method of changing the dispatch naming in the smart grid automation system involves a large amount of engineering configuration and verification work, and the dispatch naming modification methods of different automation systems and equipment have low reusability, and the workload of repeated configuration and verification is large. Especially when the dispatch naming is modified in the later stage of commissioning and acceptance, it is particularly urgent to ensure the consistency of the dispatch naming of different automation systems and equipment.
[0004] Therefore, it is necessary to study a fast and universal scheduling and naming adaptive configuration method to meet the growing needs of advanced applications such as efficiency improvement, integrated configuration, source-end maintenance, and one-size-fits-all. Summary of the invention
[0005] In order to solve the deficiencies in the prior art, the present invention provides a method and system for adaptive configuration of scheduling naming based on a design model, which is based on a physical loop description model and a logical loop description model that are convenient for tool software to read and parse, to complete the adaptive configuration of interval descriptions, device descriptions and signal descriptions in the whole station automation system and equipment. It not only solves the problems of engineering configuration efficiency and repeated modification of duplicate information of different automation systems, but also meets the needs of advanced applications such as source-end maintenance and integrated configuration, complies with the principle of "one model to the end" that is being implemented, reduces the workload of manual modification of scheduling naming of automation systems and equipment, and improves the efficiency of engineering configuration.
[0006] The present invention adopts the following technical solution.
[0007] A first aspect of the present invention provides a method for adaptively configuring scheduling naming based on a design model, comprising:
[0008] The design model is parsed by using VTD virtual token description structure and the information in the design model is extracted by using automaton-based XPath query processing, wherein the design model includes a physical circuit description model and a logical circuit description model;
[0009] Generate the signal correspondence between the physical circuit description model and the logical circuit description model using the extracted information;
[0010] Updating the logic circuit description model to the latest version using the extracted information and the signal correspondence;
[0011] Compare the latest version of the logic circuit description model with the original logic circuit description model based on the relationship table, and generate a logic circuit description model description update report;
[0012] Descriptions of bays, devices and signals in automation systems and equipment are automatically updated according to the description update report.
[0013] Preferably, the parsing and extracting of information in the design model, wherein the design model includes a physical circuit description model and a logical circuit description model, includes:
[0014] The physical loop description model includes an SDD model and an SPD model; the logical loop description model is an SCD model;
[0015] Extract signal information, interval description and equipment description from SDD model and SPD model; 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, the board to which the signal belongs, and the port to which the signal belongs from the 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 the SPD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, and signal short address from the SCD model.
[0016] Preferably, the use of VTD virtual token to describe the structural analysis design model includes the following:
[0017] The XML file of the original model is read into the memory intactly in binary mode to obtain a bit array, and 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 extracting information from the design model using an automaton-based XPath query processing method includes:
[0019] Represent one or a group of XPath expressions as an automaton, run the automaton on the model XML file to be queried, and the automaton determines the next action based on the current state and the nodes of the read document. At the end of the operation, whether the file meets the given XPath query conditions is determined based on whether the automaton is in the accepting state.
[0020] Preferably, the generating the corresponding relationship between the signals in the physical circuit description model and the logical circuit description model by using the extracted information includes:
[0021] Generate the corresponding relationship between the signals in the SDD model and the SCD model. The generation method is:
[0022] According to the IEDName of the device to which the signal in the SDD model belongs, it is directly corresponding to the IEDName of the IED device in the SCD model; according to the signal reference in the SDD model, it is directly corresponding to the signal reference of the IED device in the SCD model, so as to generate the corresponding relationship between the signals in the SDD model and the SCD model;
[0023] Alternatively, the IEDName of the device to which the signal belongs in the SDD model is directly corresponded with the IEDName of the IED device in the SCD model, and the device to which the signal belongs, the board to which the signal belongs, and the port to which the signal belongs in the SDD model are directly corresponded with the signal short address of the IED device in the SCD model to generate the corresponding relationship between the SDD model and the SCD model.
[0024] Preferably, the generating the corresponding relationship between the signals in the physical circuit description model and the logical circuit description model by using the extracted information includes:
[0025] Generate the corresponding relationship between the signals in the SPD model and the SCD model in the following way:
[0026] According to the IEDName of the device to which the signal in the SPD model belongs, it is directly corresponding to the IEDName of the IED device in the SCD model; according to the signal reference in the SPD model, it is directly corresponding to the signal reference of the IED device in the SCD model, so as to generate the corresponding relationship between the signals in the SPD model and the SCD model;
[0027] Alternatively, the IEDName of the device to which the signal belongs in the SPD model is directly corresponded to the IEDName of the IED device in the SCD model, and the device to which the signal belongs, the sub-device to which the signal belongs, and the component to which the signal belongs in the SPD model are directly corresponded to the signal short address of the IED device in the SCD model, thereby generating a corresponding relationship between the signals in the SPD model and the SCD model.
[0028] Preferably, the updating of the logic circuit description model to the latest version by using the extracted information and the signal correspondence relationship comprises:
[0029] The signal description extracted from the physical loop description model is updated to the signal description of the logical loop description model according to the signal correspondence relationship, and the interval description and device description extracted from the physical loop description model are updated to the interval description and device description of the logical loop description model to form the latest version of the logical loop description model.
[0030] Preferably, when the logical loop description model is updated to the latest version using the extracted information and the signal correspondence, if the interval description and the 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 the device description in the physical loop description model.
[0031] Preferably, the comparing the latest version of the logic loop description model with the original logic loop description model based on the relationship table to generate a logic loop description model description update report includes:
[0032] For the latest version of the logic circuit description model and the original logic circuit description model, the interval description, device description and signal description in the model XML file are parsed respectively, and a corresponding relationship table of reference and description of the corresponding model is established;
[0033] Compare the corresponding relationship table of the latest version of the logic circuit description model with the original logic circuit description model to obtain the differences in the interval description, device description and signal description between the latest version of the logic circuit description model and the original logic circuit description model;
[0034] The different interval descriptions, device descriptions and signal description information corresponding to the same model reference are saved as a corresponding information list of 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, and a logic loop description model description update report is generated in XML file format to record the differences in the interval descriptions, device descriptions and signal descriptions.
[0035] Preferably, the relationship table is established as follows:
[0036] Firstly, a relational model is established for the logic loop description model file in a relational database to store reference and description information of the logic loop description model file;
[0037] After the relationship model is established, the reference and description information in the logic loop description model file is parsed by the parser and stored in the corresponding relationship table;
[0038] Based on the relationship table, the comparison of information in the logic loop description model file is converted into a comparison of the same type of relationship tables.
[0039] Preferably, the automatically updating descriptions of intervals, devices and signals in the automation system and equipment according to the description update report comprises:
[0040] Obtain the description update information of the logic loop description model in the description update report, automatically update the interval description, device description and signal description in the whole station automation system and equipment through the tool software, and complete the scheduling naming adaptive configuration of the whole station automation system and equipment.
[0041] A second aspect of the present invention provides a system for adaptively configuring scheduling naming based on a design model, comprising:
[0042] An information extraction module, used for parsing a design model using a VTD virtual token description structure and extracting information from the design model using an automaton-based XPath query processing method, wherein the design model includes a physical circuit description model and a logical circuit description model;
[0043] A corresponding relationship generation module, used to generate a corresponding relationship between signals in a physical circuit description model and a logical circuit description model using the extracted information;
[0044] A version update module, used to update the logic circuit description model to the latest version using the extracted information and the signal correspondence relationship;
[0045] A report update module, used for comparing the latest version of the logic circuit description model with the original logic circuit description model based on the relationship table, and generating a description update report of the logic circuit description model;
[0046] The automatic updating module is used to automatically update the descriptions of the intervals, devices and signals in the automation system and equipment according to the description updating report.
[0047] Compared with the prior art, the beneficial effects of the present invention include at least:
[0048] The present invention is based on a design model. According to the physical loop description model and the logical loop description model in the design model, the corresponding relationship between the intervals, devices and signals in the physical loop description model and the logical loop description model can be automatically obtained. The content in the physical loop description model is used as the information source in the scheduling naming modification work. The description in the physical loop description model is used to automatically update the description in the logical loop description model. Then, based on the logical loop description model, the description of the intervals, devices and signals in the automation system and equipment is automatically updated. The scheduling naming adaptive configuration of the whole station automation system and equipment can be quickly completed, and the implementation mechanism of advanced applications such as source-end maintenance and integrated configuration is improved. It complies with the principle of "one model to the end" that is being implemented, ensures the consistency and standardization of the scheduling naming modification work from the source, improves the efficiency of engineering configuration, and reduces the configuration cost of the automation system.
[0049] The present invention is applied to a power grid automation system, which can greatly simplify the steps and methods for changing the dispatch naming, making the dispatch naming change method more automated, avoiding the workload of manually modifying the dispatch naming of automation systems and equipment during commissioning acceptance or renovation and expansion stages, and avoiding the workload of repeated modification of dispatch naming of different automation systems, thereby reducing the workload of engineering service personnel, ensuring the consistency of description information in various automation systems and equipment, and meeting advanced application requirements such as source-end maintenance, integrated configuration, and one-size-fits-all.
[0050] The present invention adopts the VTD virtual token description structure method to parse the design model, so that when parsing XML documents, less memory is occupied and the efficiency is high. It can also realize fast parsing and traversal of XML documents, and can quickly parse and extract information in the design model.
[0051] The present invention adopts an automaton-based XPath query processing method to extract information from a design model, can process various limiting conditions, accurately return information required by users, improve query efficiency, and meet the needs of extracting information from a design model.
[0052] The present invention converts the comparison of description information in a logic loop description model file into the comparison of relationship tables of the same type, and can quickly compare the information in the logic loop description model. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a schematic diagram of a method for adaptively configuring scheduling naming based on a design model of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only part of the embodiments of the present invention, not all of them. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present 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, using VTD virtual token description structure to parse the design model and using automaton-based XPath query processing to extract information from the design model;
[0057] Further preferably, the scheduling naming modification work mainly involves the modification of interval description, device description and signal description, among which the modification of signal description has the largest modification workload; in actual projects, engineering service personnel mostly obtain signal descriptions from engineering design blueprints and directly manually configure and modify signal descriptions in automation systems and equipment. Figure 1 It usually exists in the form of CAD (Computer Aided Design) drawings, and it is not easy to obtain information from it through tool software; however, for the physical circuit description model that contains engineering design blueprint and white drawing information, that is, the SPD / SDD model generated by the digital modeling of the substation secondary circuit, it is convenient to obtain information from it through tool software.
[0058] At present, power grid companies are promoting digital transformation and carrying out digital modeling of the entire secondary circuit of substations. According to the current engineering pilot and specification formulation of digital modeling, the design models generated in the engineering design stage include physical circuit description models and logical circuit description models; the physical circuit description model is divided into SDD model (Substation Digital Design Description) and SPD model (Substation Physical Circuit Logic Relationship Description); the logical circuit description model refers to SCD model (Substation Configuration Description). That is, the applied design model includes SPD physical circuit description model and SCD logical circuit description model, or the applied design model includes SDD physical circuit description model and SCD logical circuit description model. Parse the physical circuit description model (SDD / SPD) and the logical circuit description model (SCD) (V1.0), and extract the signal information, interval description and equipment description in the physical circuit description model. The signal information includes signal description, signal reference, etc.
[0059] The physical loop description model contains the contents of the design white map and blueprint, that is, it contains interval descriptions, device descriptions, and signal descriptions, which can be used as the information source for scheduling and naming modification work; the correspondence between the signals in the physical loop description model and the logical loop description model is automatically obtained through tool software. According to the obtained signal correspondence, the signal description in the physical loop description model can be automatically updated to the logical loop description model, so that the logical loop description model carries the new version of the signal description. Similarly, according to the one-to-one correspondence between intervals and the one-to-one correspondence between equipment and devices, the interval description and device description in the physical loop description model can be automatically updated to the logical loop description model. As a result, the logical loop description model contains the new version of the interval description, device description, and signal description, which can be used as the source for obtaining scheduling names.
[0060] Specifically: For the SDD model, extract the interval name, interval description, device description and signal information, etc. The signal information includes signal description, signal reference, IEDName of the device to which the signal belongs, board number of the signal, and port number of the signal, which corresponds to the port element description in the SDD model, the model reference corresponding to the port element, IEDName of the device to which the port element belongs, board number of the port element, and port number of the port element.
[0061] For the SPD model, extract the bay name, bay description, device description and signal information. Signal information includes signal description, signal reference, IEDName of the device to which the signal belongs, sub-device number of the signal, and component name of the signal, which corresponds to the component element description, model reference corresponding to the component element, IEDName of the device to which the component element belongs, sub-device number of the component element, and component element name in the SPD model.
[0062] For the SCD model, extract the bay name, bay description, device description and signal information. Signal information includes signal description, signal reference, IEDName of the device to which the signal belongs, and signal short address, which corresponds to the DO (data object) or DA (data attribute) element description in the SCD model, the model reference corresponding to the DO or DA element, the IEDName of the device to which the DO or DA element belongs, and the short address corresponding to the DO or DA element.
[0063] Further preferably, the design model is parsed using a VTD (Virtual Token Descriptor) virtual token description structure method (SDD model, SPD model and SCD model are in XML file format):
[0064] It uses the VTD (Virtual Token Descriptor) virtual token descriptor structure, which is a 64-bit fixed-length numeric type. It records the starting position (offset), length (length), depth (depth) and type (type) of the token (element tag) of each element, indicating the position and type information of each element. All operations on Xml are based on this data structure.
[0065] The specific method is: read the original XML file into the memory in binary format without decoding, then parse the position of each element on the bit array and record some information, such as the start offset, length, depth and token type of the XML token, and save it as a VTD array. The subsequent traversal operation can be performed on the VTD array. If you need to extract the XML content, use the position and other information in the record to decode it on the original bit array and return a string.
[0066] The clever design of the data structure allows for less memory usage and higher efficiency when parsing XML documents, and also enables fast parsing and traversal of XML documents, thereby enabling fast parsing and extraction of information from the design model.
[0067] The information in the design model (SDD model, SPD model and SCD model are in XML file format) is extracted using the automaton-based XPath (XML Path Language) query processing method:
[0068] XPath is a language used to locate a part of an XML document. It is a standard published by W3C, which develops XML technical specifications. It provides precise specifications on path navigation, node location, predicate selection, etc. Its main purpose is to locate nodes in the node tree of an XML document.
[0069] An automaton is a mathematical model of a system with discrete inputs and outputs. This system has an arbitrary finite number of internal "states", where a state is a marker that can distinguish things. According to XPath syntax and automaton theory, any XPath expression must have an automaton that accepts the language.
[0070] The basic idea of the XPath query processing method is to represent one or a group of XPath expressions as some form of automaton, run the automaton on the XML file to be queried, and the automaton determines the next action based on the current state and the nodes of the document read in. At the end of the operation, whether the file meets the given XPath query conditions is determined based on whether the automaton is in an accepting state.
[0071] The XPath query processing method based on the automaton method can handle various limiting conditions, accurately return the information required by users, improve query efficiency, and meet the needs of extracting information from the design model.
[0072] S2, using the extracted information to generate a corresponding relationship between signals in a physical circuit description model and a logical circuit description model;
[0073] Further preferably, using the information obtained in S1, the signal correspondence between the physical circuit description model (SDD / SPD) and the logical circuit description model (SCD) is generated according to the signal information such as signal reference, including:
[0074] (1) Generation method of signal correspondence between SDD model and SCD model 1,
[0075] Using the signal information extracted by S1, including signal description, signal reference, and 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 corresponded to the IEDName of the IED (i.e., intelligent electronic device) device in the SCD model, and the signal reference in the SDD model is directly corresponded to the signal reference of the IED device in the SCD model, so as to generate the corresponding relationship between the signals in the SDD model and the SCD model;
[0076] (2) Method for generating the corresponding relationship between the signals in the SDD model and the SCD model 2,
[0077] Using the signal information extracted by S1, including signal description, signal reference, IEDName of the device to which the signal belongs, board number of the signal and port number of the signal, the IEDName of the device to which the signal belongs in the SDD model is directly corresponded to the IEDName of the IED device in the SCD model, and the short address of the signal of the IED device in the SCD model is directly corresponded according to the device to which the signal belongs, board number of the signal and port number of the signal in the SDD model (the short address sAddr of the signal of the IED device in the SCD model contains the board number of the signal and the port number of the signal), to generate the corresponding relationship between the signals in the SDD model and the SCD model;
[0078] (3) Method for generating the corresponding relationship between the signals in the SPD model and the SCD model 1,
[0079] Using the signal information extracted by S1, including signal description, signal reference, and 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 corresponded with the IEDName of the IED device in the SCD model, and the signal reference in the SPD model is directly corresponded with the signal reference of the IED device in the SCD model, so as to generate the corresponding relationship between the signals in the SPD model and the SCD model;
[0080] (4) Method for generating the corresponding relationship between the signals in the SPD model and the SCD model 2,
[0081] Using the signal information extracted by S1, including signal description, signal reference, IEDName of the device to which the signal belongs, the number of the sub-device to which the signal belongs, and the name of the component to which the signal belongs, the IEDName of the device to which the signal belongs in the SPD model is directly corresponded to the IEDName of the IED device in the SCD model, and the IEDName of the device to which the signal belongs, the number of the sub-device to which the signal belongs, and the name of the component to which the signal belongs in the SPD model are directly corresponded to the signal short address of the IED device in the SCD model (the signal short address sAddr of the IED device in the SCD model contains the information of the board to which the signal belongs and the port to which the signal belongs, that is, the sub-device number and the component name information of the signal in the SPD model), the corresponding relationship between the signals in the SPD model and the SCD model is generated.
[0082] S3, using the extracted information and the signal correspondence relationship to update the logic circuit description model to the latest version, that is, using the interval description and device description obtained in S1 to update the signal description, interval description and device description in the SCD model;
[0083] Further preferably, 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 using the interval description, device description, signal description and signal correspondence obtained by S1 and S2, 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, 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 bay description and device description in the physical circuit description model (SDD / SPD) extracted by S1, update the bay description and device description in the SCD (V1.1) model to the latest version of the SCD (V1.2) model one by one (update the bay description in the SCD (V1.1) model with the bay name as the index, and update the device description in the SCD (V1.1) model with the device IEDName as the index), ensuring that the bay description, device description and signal description in the SCD (V1.2) model are the latest versions;
[0086] If the interval description and device description in the physical circuit description model (SDD / SPD) are not the latest version, the interval description and device description in the SDD / SPD can be updated by automatically importing digital design files through tool software.
[0087] The digital design file is an Excel file, which contains the interval information table, panel cabinet information table, equipment information table, cable connection table, panel wiring table and signal information table, etc. It can be automatically output by the design tool based on the design white map and blueprint, or automatically imported into the SDD / SPD model through the tool software. The interval information table and equipment information table in the digital design file are automatically imported into the SDD / SPD model through the tool software to ensure that the interval description and equipment description in the SDD / SPD model are the latest versions.
[0088] S4, comparing the latest version of the logic circuit description model with the logic circuit description model of S1 based on the relationship table, and generating a logic circuit description model description update report;
[0089] Further preferably, the latest version of SCD model (V1.2) of S3 is used to compare with SCD model (V1.0) to generate SCD model description update report;
[0090] The SCD model is essentially an XML file. The XML file parsing method is used to parse the interval description, device description and signal description in the SCD model, and a corresponding relationship table between the SCD model reference (node path in the SCD model) and the description is established;
[0091] The correspondence table of the SCD (V1.0) model and the SCD (V1.2) model is compared through tool software to obtain the differences in the interval description, device description and signal description in the SCD (V1.0) model and the SCD (V1.2) model. The different interval description / device description / signal description information corresponding to the same SCD model reference is saved as a corresponding information list of SCD model reference, description in the SCD (V1.0) model, and description in the SCD (V1.2) model. The SCD model description update report is generated in the XML file format, and the changes in the SCD model description are recorded in the report.
[0092] The comparison method based on the relational table is used to compare the description information in the logic circuit description model, as follows:
[0093] From the perspective of data management, the data in the logic loop description model file can be regarded as semi-structured data with a hierarchical structure.
[0094] The relational database is designed for storing and managing structured data, and its data access model is a flat two-dimensional relational table. The two-dimensional table of a relational database consists of rows and columns: columns are called fields, which are used to represent the attributes that make up the valid information of the data; rows are called tuples, which are used to represent a complete data record composed of various fields. In a relational database, the connection between tables is associated through the "primary key-foreign key" relationship. There is an inherent mismatch between the semi-structured SCD file data with a hierarchical structure and the flat, unordered relational model. However, according to the similarity of the description information in the logical loop description model file, it can be regarded as structured data and is suitable for storage in a relational database table, without considering other unstructured data.
[0095] To store the description information of the logic loop description model file in a relational database, a relational schema must first be established for the logic loop description model file. This leads to a schema mapping problem between two heterogeneous schemas, namely, how to map the logic loop description model file schema to a relational schema. The logic loop description model file schema definition is usually a document type definition XML Schema, and the syntax in the XML Schema definition is analyzed and mapped to a relational schema. After the relational schema is generated, the description information in the logic loop description model file can be parsed by a parser and stored in the corresponding relational table. The comparison of the description information in the logic loop description model file is converted into a comparison of the same type of relational tables.
[0096] S5. Automatically update the descriptions of the 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 the intervals, devices and signals.
[0097] Further preferably, the SCD model description update report generated by S4 is used to obtain the SCD model description difference information in the report, and the interval description, device description and signal description in the automation system and equipment are automatically updated through the tool software to complete the adaptive configuration of the dispatch naming of the interval description, device description and signal description in the automation system and equipment of the whole station, so as to meet the needs of fast, standardized and consistent modification of dispatch naming for different power grids, different manufacturers, different automation systems and different equipment. The details are 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, and the interval description, device description and signal description in the whole station automation system and equipment are automatically updated through the tool software to complete the scheduling naming adaptive configuration of the whole station automation system and equipment.
[0099] Embodiment 2 of the present invention provides a system for adaptively configuring scheduling naming based on a design model, including:
[0100] An information extraction module, used for parsing a design model using a VTD virtual token description structure and extracting information from the design model using an automaton-based XPath query processing method, wherein the design model includes a physical circuit description model and a logical circuit description model;
[0101] A corresponding relationship generation module, used to generate a corresponding relationship between signals in a physical circuit description model and a logical circuit description model using the extracted information;
[0102] A version update module, used to update the logic circuit description model to the latest version using the extracted information and the signal correspondence relationship;
[0103] A report update module, used for comparing the latest version of the logic circuit description model with the original logic circuit description model based on the relationship table, and generating a description update report of the logic circuit description model;
[0104] The automatic updating module is used to automatically update the descriptions of the intervals, devices and signals in the automation system and equipment according to the description updating 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 operate 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 implements the steps of the method when executed by a processor.
[0107] Compared with the prior art, the beneficial effects of the present invention include at least:
[0108] The present invention is based on a design model. According to the physical loop description model and the logical loop description model in the design model, the corresponding relationship between the intervals, devices and signals in the physical loop description model and the logical loop description model can be automatically obtained. The content in the physical loop description model is used as the information source in the scheduling naming modification work. The description in the physical loop description model is used to automatically update the description in the logical loop description model. Then, based on the logical loop description model, the description of the intervals, devices and signals in the automation system and equipment is automatically updated. The scheduling naming adaptive configuration of the whole station automation system and equipment can be quickly completed, and the implementation mechanism of advanced applications such as source-end maintenance and integrated configuration is improved. It complies with the principle of "one model to the end" that is being implemented, ensures the consistency and standardization of the scheduling naming modification work from the source, improves the efficiency of engineering configuration, and reduces the configuration cost of the automation system.
[0109] The present invention is applied to a power grid automation system, which greatly simplifies the steps and methods for changing the dispatch naming, makes the dispatch naming change method more automated, avoids the workload of manually modifying the dispatch naming of automation systems and equipment during commissioning acceptance or renovation and expansion stages, and avoids the workload of repeated modification of dispatch naming of different automation systems, reduces the workload of engineering service personnel, ensures the consistency of description information in various automation systems and equipment, and meets advanced application requirements such as source-end maintenance, integrated configuration, and one-size-fits-all.
[0110] The present invention adopts the VTD virtual token description structure method to parse the design model, so that when parsing XML documents, less memory is occupied and the efficiency is high. It can also realize fast parsing and traversal of XML documents, and can quickly parse and extract information in the design model.
[0111] The present invention adopts an automaton-based XPath query processing method to extract information from a design model, can process various limiting conditions, accurately return information required by users, improve query efficiency, and meet the needs of extracting information from a design model.
[0112] The present invention converts the comparison of description information in a logic loop description model file into the comparison of relationship tables of the same type, and can quickly compare the 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 rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for adaptively configuring scheduling naming based on a design model, characterized in that: include: The design model is parsed by using VTD virtual token description structure and the information in the design model is extracted by using automaton-based XPath query processing, wherein the design model includes a physical circuit description model and a logical circuit description model; Generate the signal correspondence between the physical circuit description model and the logical circuit description model using the extracted information; Using the extracted information and the signal correspondence relationship, the logic circuit description model is updated to the latest version; Compare the latest version of the logic circuit description model with the original logic circuit description model based on the relationship table, and generate a logic circuit description model description update report; Descriptions of bays, devices and signals in automation systems and equipment are automatically updated according to the description update report.
2. The method for adaptively configuring scheduling naming based on a design model according to claim 1, characterized in that: The parsing and extracting of information in the design model, wherein the design model includes a physical circuit description model and a logical circuit description model, includes: The physical loop description model includes an SDD model and an SPD model; the logical loop description model is an SCD model; Extract signal information, interval description and equipment description from SDD model and SPD model; 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, the board to which the signal belongs, and the port to which the signal belongs from the 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 the SPD model; extract signal description, signal reference, IEDName of the device to which the signal belongs, and signal short address from the SCD model.
3. The method for adaptively configuring scheduling naming based on a design model according to claim 1, characterized in that: The VTD virtual token is used to describe the structural analysis design model, including the following: The XML file of the original model is read into the memory intactly in binary mode to obtain a bit array, and 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 adaptively configuring scheduling naming based on a design model according to claim 1, characterized in that: The method of extracting information from the design model by using an automaton-based XPath query processing method includes: Represent one or a group of XPath expressions as an automaton, run the automaton on the model XML file to be queried, and the automaton determines the next action based on the current state and the nodes of the read document. At the end of the operation, whether the file meets the given XPath query conditions is determined based on whether the automaton is in the accepting state.
5. The method for adaptively configuring scheduling naming based on a design model according to claim 2, characterized in that: The method of using the extracted information to generate the corresponding relationship between the signals in the physical circuit description model and the logical circuit description model includes: Generate the corresponding relationship between the signals in the SDD model and the SCD model. The generation method is: According to the IEDName of the device to which the signal in the SDD model belongs, it is directly corresponding to the IEDName of the IED device in the SCD model; according to the signal reference in the SDD model, it is directly corresponding to the signal reference of the IED device in the SCD model, so as to generate the corresponding relationship between the signals in the SDD model and the SCD model; Alternatively, the IEDName of the device to which the signal belongs in the SDD model is directly corresponded with the IEDName of the IED device in the SCD model, and the device to which the signal belongs, the board to which the signal belongs, and the port to which the signal belongs in the SDD model are directly corresponded with the signal short address of the IED device in the SCD model to generate the corresponding relationship between the SDD model and the SCD model.
6. The method for adaptively configuring scheduling naming based on a design model according to claim 2, characterized in that: The method of using the extracted information to generate the corresponding relationship between the signals in the physical circuit description model and the logical circuit description model includes: Generate the corresponding relationship between the signals in the SPD model and the SCD model in the following way: According to the IEDName of the device to which the signal in the SPD model belongs, it is directly corresponding to the IEDName of the IED device in the SCD model; according to the signal reference in the SPD model, it is directly corresponding to the signal reference of the IED device in the SCD model, so as to generate the corresponding relationship between the signals in the SPD model and the SCD model; Alternatively, the IEDName of the device to which the signal belongs in the SPD model is directly corresponded to the IEDName of the IED device in the SCD model, and the device to which the signal belongs, the sub-device to which the signal belongs, and the component to which the signal belongs in the SPD model are directly corresponded to the signal short address of the IED device in the SCD model, thereby generating a corresponding relationship between the signals in the SPD model and the SCD model.
7. The method for adaptively configuring scheduling naming based on a design model according to claim 1, characterized in that: The method of updating the logic circuit description model to the latest version by using the extracted information and the signal correspondence relationship includes: The signal description extracted from the physical loop description model is updated to the signal description of the logical loop description model according to the signal correspondence relationship, and the interval description and device description extracted from the physical loop description model are updated to the interval description and device description of the logical loop description model to form the latest version of the logical loop description model.
8. The method for adaptively configuring scheduling naming based on a design model according to claim 1, characterized in that: When the logical loop description model is updated 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.
9. The method for adaptively configuring scheduling naming based on a design model according to claim 1, characterized in that: The comparing the latest version of the logic circuit description model with the original logic circuit description model based on the relationship table to generate a logic circuit description model description update report includes: For the latest version of the logic circuit description model and the original logic circuit description model, the interval description, device description and signal description in the model XML file are parsed respectively, and a corresponding relationship table of reference and description of the corresponding model is established; Compare the corresponding relationship table of the latest version of the logic circuit description model with the original logic circuit description model to obtain the differences in the interval description, device description and signal description between the latest version of the logic circuit description model and the original logic circuit description model; The different interval descriptions, device descriptions and signal description information corresponding to the same model reference are saved as a corresponding information list of 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, and a logic loop description model description update report is generated in XML file format to record the differences in the interval descriptions, device descriptions and signal descriptions.
10. The method for adaptively configuring scheduling naming based on a design model according to claim 9, characterized in that: The relationship table is established as follows: Firstly, a relational model is established for the logic loop description model file in a relational database to store reference and description information of the logic loop description model file; After the relationship model is established, the reference and description information in the logic loop description model file is parsed by the parser and stored in the corresponding relationship table; Based on the relationship table, the comparison of information in the logic loop description model file is converted into a comparison of the same type of relationship tables.
11. The method for adaptively configuring scheduling naming based on a design model according to claim 1, characterized in that: The automatically updating descriptions of intervals, devices and signals in the automation system and equipment according to the description update report comprises: Obtain the description update information of the logic loop description model in the description update report, automatically update the interval description, device description and signal description in the whole station automation system and equipment through the tool software, and complete the scheduling naming adaptive configuration of the whole station automation system and equipment.
12. A system for adaptively configuring scheduling naming based on a design model, using the method described in any one of claims 1 to 11, characterized in that: The system comprises: An information extraction module, used for parsing a design model using a VTD virtual token description structure and extracting information from the design model using an automaton-based XPath query processing method, wherein the design model includes a physical circuit description model and a logical circuit description model; A corresponding relationship generation module, used to generate a corresponding relationship between signals in a physical circuit description model and a logical circuit description model using the extracted information; A version update module, used to update the logic circuit description model to the latest version using the extracted information and the signal correspondence relationship; A report update module, used for comparing the latest version of the logic circuit description model with the original logic circuit description model based on the relationship table, and generating a description update report of the logic circuit description model; The automatic updating module is used to automatically update the descriptions of the intervals, devices and signals in the automation system and equipment according to the description updating report.
Citation Information
Patent Citations
Secondary system physical loop modeling and void and actuality correspondence method of intelligent substation
CN104732021A
Method and system for generating station level application system model of intelligent substation
CN113553728A
Digital modeling method for secondary circuit of transformer substation logic model
CN116029006A
Platform and device for automatically updating Java server application agent
CN117499478A
Cross-format analysis of software systems
US9134976B1