A whole process control method and system for intelligent station SCD model design
Through the whole process control method and system of SCD model design of smart station, combined with the design tool module, integrator tool module and online verification tool module, the whole process control of SCD files is realized, the problem of SCD file quality decline is solved, and the SCD file quality is improved. The quality of documents and the efficiency of substation acceptance will improve the security of the power grid.
Patent Information
- Application Number
- CN202410629133.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-21
AI Technical Summary
The existing SCD file management and control technology is difficult to effectively control the entire process of SCD file changes by the smart substation design unit, resulting in a decline in the quality of the SCD files finally delivered, and there are hidden dangers.
Provide a method and system for controlling the whole process of SCD model design of smart stations. Through design-side control, integrator modification and online function debugging, consistency check is performed based on the content of the current version of the SCD file in the database to generate standardized SCD files, including design Tool module, integrator tool module and online verification tool module realize the whole process control of the design and debugging stage.
It realizes the entire process control of the smart substation SCD model, improves the quality and accuracy of SCD files, improves the completeness of the substation data model, improves the efficiency of acceptance work, and indirectly brings grid security and social and economic benefits.
Smart Images

Figure CN118210758B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of secondary design of electric power systems, and relates to a whole-process control method and system for SCD model design of an intelligent station. Background Art
[0002] The SCD (Substation Configuration Description) file is used to describe the substation information model, including communications, equipment, functions, etc. It plays a critical role in the commissioning and operation of the substation. According to the requirements of relevant standards and specifications, the SCD file of the smart station is generated by the design unit.
[0003] The existing SCD file management and control technology is only used by integrators and commissioning personnel. The SCD file communicates with the equipment in the station for online verification, realizing the management of SCD files in the station or user archive management.
[0004] However, in the actual engineering construction and commissioning process, integrators and secondary manufacturers work on multiple operations in parallel, and will make a lot of modifications to the SCD files. The existing SCD file control technology makes it difficult for the design unit to effectively control the changes in the entire SCD process, resulting in a decline in the quality of the SCD files finally delivered, which poses a hidden danger. Therefore, it is very necessary to provide standardized and convenient technical means to control the entire process of SCD files during the construction of smart stations. Summary of the invention
[0005] In order to solve the deficiencies in the prior art, the present invention provides a method and system for controlling the entire process of SCD model design for an intelligent substation. During the construction or renovation and expansion of an intelligent substation, by implementing configuration and control throughout the entire process, the probability of model defects can be eliminated and reduced. This can achieve full-process control of the SCD model in the design and commissioning phase of a new or renovated intelligent substation project, promote standardization of intelligent substation model configuration and generation, and improve the quality of station-side data and models.
[0006] The present invention adopts the following technical solution.
[0007] A first aspect of the present invention provides a method for controlling the entire process of designing an SCD model of an intelligent station, comprising:
[0008] Step 1: Perform design-side control of the smart station SCD model and export the initial SCD file model;
[0009] Step 2: Modify the initial SCD file model at the intelligent station site and download the download files required by the secondary device to the secondary device;
[0010] Step 3: Perform online functional debugging on the downloaded file, generate the final SCD file and sign it back to the design end;
[0011] Step 4: The design side verifies the checked-in SCD file by checking its consistency with the SCD file content of the current version of the database.
[0012] Preferably, in step 4, the consistency check with the SCD file content of the current version of the database is performed in the following manner:
[0013] (1) For the signed-back SCD file and the SCD file content of the current version of the database, execute the following (1.1)-(1.2) respectively to obtain the corresponding item-by-item verification code and the whole-site content verification code;
[0014] (1.1) Adjust the content of the SCD file: remove or complete the content of the SCD file, and sort the content retained in the SCD file;
[0015] (1.2) The adjusted SCD file is stored in a tree structure and an element dictionary and an attribute dictionary are established. The tree structure is traversed based on the element dictionary and the attribute dictionary. After the entire file content is divided into several byte streams, the sub-item checksum and the whole site content checksum are calculated;
[0016] (2) Compare the whole-site content verification code and the sub-item verification code respectively to determine the differences in functional configuration between the SCD file model signed back under construction and the SCD file of the current version of the database.
[0017] Preferably, in (1.1), the rules for removing or completing the SCD file content are as follows:
[0018] Remove all XML attribute data of the root element, including namespace declarations; remove the title element and its child elements; remove all XML attributes of the plant, communication, and data type template elements; remove the description attributes of all elements; remove attribute names with a value of "dU" <dai>element and its sub-elements; remove the region element and its sub-elements;
[0019] For optional element attributes defined in the IEC61850 standard schema, if they do not exist in the SCD file, they are supplemented and their attribute values are empty;
[0020] Preferably, in (1.1), the rules for sorting the contents retained in the SCD file are as follows:
[0021] All direct child elements of the root element are arranged in the order in the SCD file; the voltage level child elements of the plant element are arranged in descending order according to the value of the name attribute; the live equipment elements are first arranged in descending order according to the value of their type attribute, and then in descending order according to the value of their name attribute; the endpoint elements are arranged in descending order according to the value of their connection point attribute; the connection point elements are arranged in descending order according to the value of their path name attribute; the logical node type, data object type, data attribute type, and enumeration type are arranged in the order in the SCD file; their child elements are arranged in descending order according to the value of the id attribute; the data object instance, data attribute instance, and instantiation child elements follow the order of the SCD file; the access point, data set, and virtual terminal input child elements follow the order of the SCD file and the element attributes are sorted in descending order;
[0022] For other elements of the same level in the SCD file that are not covered by the above rules, when the tag names are different, they are sorted in descending alphabetical order according to the tag names; when the tag names are the same, they are sorted in descending order according to the value of the name or instance number attribute. If there is no name or instance number attribute, they are sorted in descending order according to the value of all attributes.
[0023] Preferably, (1.2) specifically includes:
[0024] 1) Load the SCD file after adjusting the content in (1.1) and store its content in a tree structure. Each node of the tree corresponds to an element of the SCD file.
[0025] 2) According to the SCD file and the IEC61850 schema file, create an element dictionary dict_ele = { (key: value)...}, where the key is the element tag in the SCD file and the value is the numerical value corresponding to the element tag; create an attribute dictionary dict_attr = { (key: value)...}, where the key is the attribute name in the SCD file and the value is the numerical value corresponding to the attribute name;
[0026] 3) Retrieve the entire tree structure in a depth-first traversal manner, and map each node into a byte stream based on the element dictionary and attribute dictionary, including:
[0027] 3.1) For the i-th node, obtain its element tag name Tagi, and define its attribute names as an array Attributes i = [attri1, attri2... attrin];
[0028] 3.2) Traverse the element dictionary, sequentially obtain the value corresponding to each tag, and construct a corresponding type byte stream for each value, denoted as EBStreamk, where 0 < k < p and p is the number of key-value pairs in the element dictionary;
[0029] 3.3) Query the element dictionary to obtain the value corresponding to the i-th node tag name Tag, denoted as Ei;
[0030] 3.4) According to the array Attributesi, query the attribute dictionary and sequentially obtain the values corresponding to the attribute names attri to attrin, denoted as [Mi1, Mi2... Min];
[0031] 3.5) Generate the byte stream BStreami of the i-th node in the format of "Ei + element value + Mi1 + value of attribute attri1 +... + Min + value of attribute attrin";
[0032] 3.6) According to the value of Ei, add BStreami to the tail of the corresponding type EBStreamk byte stream;
[0033] 3.7) After the traversal is completed, obtain p types of byte streams EBStream1 to EBStreamp in the tree structure;
[0034] 4) Perform CRC32 checksum calculation on EBStream1 to EBStreamp in sequence, and the calculation results are {CRC1, CRC2,... CRCi,... CRCp}, where CRCi is the CRC32 checksum of EBStreami;
[0035] 5) Connect all the CRC32 checksums end to end to form a new byte stream, and perform CRC calculation on the new byte stream. The result obtained is the full-site content checksum.
[0036] Preferably, in step 1, perform design-end control of the intelligent station SCD model, including: imposing design function restrictions on users with different roles, opening or closing corresponding rights; and controlling the circulation of the SCD file model within the design unit and the project status. The project status includes: preliminary design, construction, and completion. Among them, the SCD file models in the three stages of integrator modification, downloading, and online function debugging all belong to the construction status; the SCD file model after debugging is in the completion status.
[0037] Preferably, in step 1, design-side management and control of the smart station SCD model is performed, which also includes: creation, maintenance, addition, and backtracking of the SCD file model based on the version number, as well as visual comparison between different versions of SCD file models; wherein the creation function is used to establish a new substation design project; the addition function includes generating a new model version in the design project; the maintenance function refers to editing and modifying the content of the model file; the backtracking function refers to restoring the current working interface to the historical model version; the version number includes a main version and a revised version; the main version number: initially set to 1.0, construction is 2.0, and completion is 3.0; the revised version number is initially 1.0 and incremented upward in steps of 0.1.
[0038] Preferably, in step 1, after the initial configuration and review is completed, the initial SCD file model required for smart substation debugging is exported, and during the export process, the major version and revision number are mapped to the version and revision attributes of the Header element of the SCD file model.
[0039] Preferably, step 2 specifically includes:
[0040] Download the initial SCD file model exported in step 1;
[0041] Run the desktop version of the program to modify the initial SCD file model based on the actual working conditions on site;
[0042] Save the modified SCD file model, and during the saving process of the SCD file model, modify the revision attribute of the SCD file model, accumulating upward with a step size of 0.1;
[0043] The download files required by the secondary device are exported and downloaded to the secondary device, wherein the download files include CID, CCD, and CSD files; the secondary device includes a protection device and a measurement and control device.
[0044] Preferably, in step 3, the secondary device is connected online, the current working version SCD file is imported, the downloaded file in the secondary device is obtained through MMS or FTP, the consistency comparison and online function debugging are performed with the content of the current working version SCD file, a comparison report and the final SCD file are generated, and the final SCD file is resubmitted and signed back to the design end.
[0045] Preferably, in step 4, the SCD file model signed back in the construction state is first subjected to IEC6180 syntax check and semantic check; if the syntax check and semantic check fail, it is prompted that it cannot be signed back and needs to be modified again; if the syntax check and semantic check pass, a consistency check is performed with the SCD file content of the current version of the database. If the consistency check passes, debugging is terminated, otherwise a difference comparison analysis is performed between the SCD file model signed back in the construction state and the exported initial SCD file model, a difference report is generated and a visual display is performed.
[0046] Preferably, the difference comparison analysis is specifically as follows: performing a difference comparison on the xml structure of the SCD file to determine the detail differences between the SCD file model signed back under construction and the exported initial SCD file model, and the content of the difference comparison specifically includes IED, interval, transformer, live equipment, data object, voltage level, IP address, subnet mask, gateway, Mac address, VLan ID, APPID, maximum / minimum time, port information, port type, and port connection relationship.
[0047] A second aspect of the present invention provides a whole-process control system for SCD model design of an intelligent station, including: a design tool module, an integrator tool module, and an online verification tool module;
[0048] The design tool module is used for design-side control of the smart station SCD model and exporting the initial SCD file model; it is also used to check the signed-in SCD file by checking the consistency with the SCD file content of the current version of the database;
[0049] The integrator tool module is used to modify the initial SCD file model on site at the intelligent station and download the download files required by the secondary device to the secondary device;
[0050] The online verification tool module is used to perform online functional debugging on the downloaded file, generate the final SCD file and sign it back to the design tool module.
[0051] Preferably, the design tool module is developed using B / S architecture and front-end and back-end separation WEB technology, is deployed in a server-based manner, and stores the smart station SCD model design data in a database for design-side management and control.
[0052] A terminal comprises a processor and a storage medium; the storage medium is used to store instructions;
[0053] The processor is configured to operate according to the instructions to execute the steps of the method.
[0054] A computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.
[0055] Compared with the prior art, the present invention has at least the following beneficial effects:
[0056] The control part of the present invention is deployed in the design unit rather than in the site, and includes a design tool module, an integrator tool module, and an online verification tool module, which can realize the whole process control of the design and debugging stage.
[0057] The present invention is based on the design tool module, the integrator tool module, the online verification tool module, and the consistency verification rules of the SCD file content of the current version of the database, etc., to effectively control the design, on-site configuration and implementation debugging cycle of the SCD model design process in the entire smart substation infrastructure and technical transformation project. Through the dual control of the design process and the on-site debugging process, the circulation and effective status control of SCD files in different units are realized.
[0058] The present invention can promote the standardization of smart substation model configuration and generation, improve the design efficiency and delivery quality of SCD files, enhance the correctness and completeness of the model, improve the quality of substation data model, and enhance the efficiency of substation acceptance work, thus indirectly bringing about social and economic benefits of improved power grid security. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 This is a structural diagram of the whole process control system of the intelligent station SCD model design of the present invention;
[0060] Figure 2 It is a flow chart of the whole process control method of intelligent station SCD model design of the present invention;
[0061] Figure 3 It is an overall flow chart of the SCD file content consistency check of the present invention;
[0062] Figure 4 It is a schematic diagram of calculating the SCD file content consistency verification code of the present invention. DETAILED DESCRIPTION
[0063] 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 embodiments of a part of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the protection scope of the present invention.
[0064] Embodiment 1 of the present invention provides a method for controlling the entire process of designing an SCD model for an intelligent station. The specific implementation logic flow is as follows: Figure 2 As shown, the method specifically includes:
[0065] Step 1: Perform design-side control of the smart station SCD model and export the preliminary SCD file model; including: restricting design functions for users of different roles, opening or closing corresponding rights; and controlling the circulation of the SCD file model within the design unit and the engineering status. The engineering status includes: preliminary design, construction, and completion. The SCD file models in the three stages of integrator modification, downloading, and online function debugging are all in the construction status; the SCD file model after debugging is in the completion status.
[0066] Based on the version number, SCD file models are created, maintained, added, backtracked, and visually compared between different versions of SCD file models; the creation function is used to establish a new substation design project; the addition function includes generating a new model version in the design project; the maintenance function refers to editing and modifying the content of the model file; the backtracking function refers to restoring the current working interface to the historical model version; the version number includes the main version and the revised version; the main version number: initially set to 1.0, construction is 2.0, and completion is 3.0; the revised version number is initially 1.0 and incremented by a step of 0.1.
[0067] After the initial design and review is completed, the initial SCD file model required for smart substation commissioning is exported. During the export process, the major version and revision number are mapped to the version and revision attributes of the Header element of the SCD file model.
[0068] Step 2: Modify the initial SCD file model at the intelligent station site and download the download files required by the secondary device to the secondary device; specifically include:
[0069] Download the initial SCD file model exported in step 1;
[0070] Run the desktop version of the program to modify the initial SCD file model based on the actual working conditions on site;
[0071] Save the modified SCD file model, and during the saving process of the SCD file model, modify the revision attribute of the SCD file model, accumulating upward with a step size of 0.1;
[0072] The download files required by the secondary device are exported and downloaded to the secondary device, wherein the download files include CID, CCD, and CSD files; the secondary device includes a protection device and a measurement and control device.
[0073] Step 3: Perform online functional debugging on the downloaded file, generate the final SCD file and sign it back to the design end;
[0074] Connect the secondary device online, import the current working version SCD file, obtain the downloaded file in the secondary device through MMS or FTP, perform consistency comparison and online function debugging with the content of the current working version SCD file, generate a comparison report and the final SCD file, and resubmit the final SCD file back to the design end.
[0075] Step 4: The design side verifies the checked-in SCD file by checking its consistency with the SCD file content of the current version of the database.
[0076] Further preferably, the consistency check of the SCD file content with the current version of the database is performed in the following manner:
[0077] (1) For the signed-back SCD file and the SCD file content of the current version of the database, execute the following (1.1)-(1.2) respectively to obtain the corresponding item-by-item verification code and the whole-site content verification code;
[0078] (1.1) Adjust the content of the SCD file: remove or complete the content of the SCD file, and sort the content retained in the SCD file;
[0079] The rules for removing or completing the contents of the SCD file are as follows:
[0080] Remove all XML attribute data of the root element, including namespace declarations; remove the title element and its child elements; remove all XML attributes of the plant, communication, and data type template elements; remove the description attributes of all elements; remove attribute names with a value of "dU" <dai>element and its sub-elements; remove the region element and its sub-elements;
[0081] For optional element attributes defined in the IEC61850 standard schema, if they do not exist in the SCD file, they are supplemented and their attribute values are empty;
[0082] The rules for sorting the contents of the SCD file are as follows:
[0083] All direct child elements of the root element are arranged in the order in the SCD file; the voltage level child elements of the plant element are arranged in descending order according to the value of the name attribute; the live equipment elements are first arranged in descending order according to the value of their type attribute, and then in descending order according to the value of their name attribute; the endpoint elements are arranged in descending order according to the value of their connection point attribute; the connection point elements are arranged in descending order according to the value of their path name attribute; the logical node type, data object type, data attribute type, and enumeration type are arranged in the order in the SCD file; their child elements are arranged in descending order according to the value of the id attribute; the data object instance, data attribute instance, and instantiation child elements follow the order of the SCD file; the access point, data set, and virtual terminal input child elements follow the order of the SCD file and the element attributes are sorted in descending order;
[0084] For other elements of the same level in the SCD file that are not covered by the above rules, when the tag names are different, they are sorted in descending alphabetical order according to the tag names; when the tag names are the same, they are sorted in descending order according to the value of the name or instance number attribute. If there is no name or instance number attribute, they are sorted in descending order according to the value of all attributes.
[0085] (1.2) The adjusted SCD file is stored in a tree structure and an element dictionary and an attribute dictionary are established. The tree structure is traversed based on the element dictionary and the attribute dictionary. After the entire file content is divided into several byte streams, the sub-item checksum and the whole site content checksum are calculated; specifically, the following are included:
[0086] 1) Load the SCD file after adjusting the content in (1.1) and store its content in a tree structure. Each node of the tree corresponds to an element of the SCD file.
[0087] 2) According to the SCD file and the IEC61850 schema file, create an element dictionary dict_ele = { (key: value)...}, where the key is the element tag in the SCD file and the value is the numerical value corresponding to the element tag; create an attribute dictionary dict_attr = { (key: value)...}, where the key is the attribute name in the SCD file and the value is the numerical value corresponding to the attribute name;
[0088] 3) Retrieve the entire tree structure in a depth-first traversal manner. Based on the element dictionary and attribute dictionary, map each node into a byte stream in sequence, including:
[0089] 3.1) For the i-th node, obtain its element tag name Tagi, and define its attribute names as an array Attributes i = [attri1, attri2... attrin];
[0090] 3.2) Traverse the element dictionary, obtain the value corresponding to each tag in sequence, and construct the corresponding type byte stream for each value, denoted as EBStreamk, where 0 < k < p, and p is the number of key-value pairs in the element dictionary;
[0091] 3.3) Query the element dictionary to obtain the value corresponding to the tag of the i-th node, denoted as Ei;
[0092] 3.4) According to the array Attributesi, query the attribute dictionary and obtain the values corresponding to the attribute names attri to attrin in sequence, denoted as [Mi1, Mi2... Min];
[0093] 3.5) Generate the byte stream BStreami of the i-th node in the format of "Ei + element value + Mi1 + value of attribute attri1 +... + Min + value of attribute attrin";
[0094] 3.6) According to the value of Ei, append BStreami to the tail of the corresponding type EBStreamk byte stream;
[0095] 3.7) After the traversal is completed, obtain p types of byte streams EBStream1 to EBStreamp in the tree structure;
[0096] 4) Perform CRC32 checksum calculation on EBStream1 to EBStreamp in sequence, and the calculation results are {CRC1, CRC2,... CRCi,... CRCp}, where CRCi is the CRC32 checksum of EBStreami;
[0097] 5) Concatenate all CRC32 checksums end to end to form a new byte stream, and perform CRC calculation on the new byte stream. The result obtained is the overall station content checksum.
[0098] (2) Compare the overall station content checksum and the itemized checksum respectively to determine the differences in function configuration between the signed-back SCD file model in the construction state and the SCD file of the current version in the database.
[0099] As Figure 1 As shown, Embodiment 2 of the present invention provides a smart station SCD model design whole process control system, including a design tool module, an integrator tool module, and an online verification tool module, so as to realize the design-side control, integrator configuration, and model online verification of the smart station SCD model design process.
[0100] Through the construction and use of the three modules, the "design-configuration-implementation" cycle of the entire smart station construction process is effectively controlled.
[0101] The design tool module is used for design-side control of the smart station SCD model and exporting the initial SCD file model; it is also used to check the signed-in SCD file by checking the consistency with the SCD file content of the current version of the database;
[0102] Further preferably, the design tool module is developed using B / S architecture and front-end and back-end separated WEB technology, adopts server-based deployment, stores data in a database, and manages the design end with the database as the core to maintain the quality of SCD files during the design process and at the work boundary between the design unit and the integrator.
[0103] The design tool module includes a rights management submodule, a version management submodule, a version comparison submodule, and a data verification submodule;
[0104] The permission management submodule is used to design function restrictions for users of different roles, and open or close corresponding browsing, editing, configuration, verification, approval and other rights;
[0105] The version management submodule is used to centrally and uniformly manage the versions of file products in different states based on roles, so as to realize the circulation of SCD file models within the design unit and the control of engineering status. The engineering status includes: initial design, construction, and completion. The SCD file models in the three stages of modification by the integrator, downloading, and online function debugging are all in the construction status; the SCD file models that have been debugged and passed the acceptance are in the completion status; generally, the completion of debugging means passing the acceptance;
[0106] For example, the basic roles include: Chief Designer, Verifier, etc. Chief Designer: has the right to edit and design SCD files; Verifier: is responsible for checking the correctness of the product.
[0107] The version management submodule functions include: creation, maintenance, addition, backtracking, and support for visual comparison between different versions. The creation function is used to establish a new substation design project; the addition function refers to generating a new model version in the design project; the maintenance function refers to editing and modifying the content of the model file; the backtracking function refers to restoring the current working interface to a certain historical model version.
[0108] The version number consists of a major version and a revision.
[0109] Major version number: initially set to 1.0, under construction to 2.0, and completed to 3.0.
[0110] Revision numbers start at 1.0 and increment upward in steps of 0.1.
[0111] After the initial configuration and review is completed, export the product files (including SCD files) required for smart substation commissioning.
[0112] During the export process, the major version and revision number are mapped to the version and revision attributes of the Header element of the SCD file.
[0113] The data verification submodule is used to perform IEC6180 syntax verification and semantic verification on the SCD file model signed back in the construction state; if the syntax verification and semantic verification fail, it cannot be signed back and needs to be revised again; if the syntax verification and semantic verification pass, a consistency check is performed with the SCD file content of the current version of the database. If the consistency check passes, debugging is terminated, otherwise the version file comparison module is called;
[0114] like Figure 3-4 As shown, the consistency check with the SCD file of the current version of the database includes:
[0115] (1) For the signed-back SCD file and the SCD file of the current version of the database, execute the following (1.1)-(1.2) respectively to obtain the corresponding item-by-item verification code and the whole-site content verification code;
[0116] (1.1) Adjust the content of the SCD file: remove or complete the content of the SCD file, and sort the content retained in the SCD file;
[0117] 1) Remove or complete the SCD file content. The rules are as follows:
[0118] Do not extract the root element <scl>All XML attribute data, including namespace declarations;
[0119] No extraction <header>(title) element and its child elements;
[0120] No extraction <substation>(factory station), <communication>(communication), <datatypetemplates>(Data Type Template) All XML attributes of the element;
[0121] Do not extract the desc (description) attribute of all elements;
[0122] Do not extract the attribute name value "dU" <dai>element and its subelements;
[0123] No extraction <region>(region) element and its child elements;
[0124] For optional element attributes defined in the IEC61850 standard schema, if they do not exist in the SCD file, they should be supplemented and their attribute values should be empty.
[0125] 2) Sort the retained content according to the following rules:
[0126] Root element <scl>All direct child elements of are in the order in the SCD file;
[0127] <substation>Sub-elements of the (plant station) element <voltagelevel>(voltage level) Sort in descending order according to the value of the name attribute;
[0128] <conductingequipment>(Electrified Equipment) elements are sorted in descending order by the value of their type attribute, and then by the value of their name attribute;
[0129] <terminal>(Endpoint) elements, in descending order by the value of their connectivityNode (connection point) attribute;
[0130] <connectivitynode>(join point) elements, in descending order by the value of their pathName attribute;
[0131] <lnodetype>(logical node type), <dotype>(data object type), <datype>(data attribute type), <enumtype>(Enumeration type) Strictly follow the order in the SCD file; its child elements are arranged in descending order according to the value of the id attribute;
[0132] <doi>(data object instance), <dai>(data attribute instance), <sdi>(Instantiate child elements) and other elements strictly follow the order of the SCD file;
[0133] <connectedap>(Access Point), <dataset>(Dataset), <input> Sub-elements of (Virtual Terminal Input), strictly following the order of the SCD file and descending order of element attributes;
[0134] For other elements at the same level in the SCD file not covered by the above rules, when the tag names are different, they are sorted in descending order of the alphabetical order of the tag names; when the tag names are the same, they are sorted in descending order of the values of the name or inst (instance number) attributes first. If there is no name or inst attribute, they are sorted in descending order of the values of all attributes.
[0135] (1.2) Store the SCD file after adjusting the content in a Tree structure, establish an element dictionary and an attribute dictionary, traverse the tree structure based on the element dictionary and the attribute dictionary, and divide the entire file content into several byte streams, and then calculate the item check code and the full station content check code; specifically including:
[0136] 1) Load the SCD file after adjusting the content in (1.1), store its content in a Tree structure, and each node of the tree corresponds to an element of the SCD file;
[0137] 2) According to the SCD file and the schema file of IEC61850, establish an element dictionary dict_ele = { (key: value)...}, where the key in the element dictionary is the element tag in the SCD file, and the value is the numerical value corresponding to the element tag; establish an attribute dictionary dict_attr = { (key: value)...}, where the key in the attribute dictionary is the attribute name in the SCD file, and the value is the numerical value corresponding to the attribute name;
[0138] 3) Retrieve the entire tree structure in a depth-first traversal manner, and based on the element dictionary and the attribute dictionary, map each node into a byte stream in turn, including:
[0139] 3.1) For the i-th node, obtain its element tag name Tagi, and define its attribute names as an array Attributes i = [ attri1, attri2... attrin];
[0140] 3.2) Traverse the element dictionary, obtain the value corresponding to each tag in turn, and construct a corresponding type byte stream for each value, denoted as EBStreamk (0 < k < p, p is the number of key-value pairs in the element dictionary);
[0141] 3.3) Query the element dictionary to obtain the value corresponding to the tag name Tag of the i-th node, denoted as Ei;
[0142] 3.4) According to the array Attributesi, query the attribute dictionary and obtain the values corresponding to the attribute names attri to attrin in sequence, recorded as [Mi1, Mi2...Min];
[0143] 3.5) Generate the byte stream BStreami of the i-th node in the format of "Ei + element value + Mi1 + value of attribute attri1 + ... + Min + value of attribute attrin";
[0144] 3.6) According to the value of Ei, add BStreami to the end of the corresponding type EBStreamk byte stream.
[0145] 3.7) After the traversal is completed, the byte streams of p types in the tree structure are obtained: EBStream1~EBStreamp;
[0146] 4) Calculate the CRC32 checksum for EBStream1 to EBStreamp in sequence. The result is {CRC1, CRC2, ... CRCi, ...CRCp}, where CRCi is the CRC32 checksum of EBStreami.
[0147] 5) Connect all CRC32 check codes end to end to form a new byte stream, perform CRC calculation on the new byte stream, and the result is the check code of the entire site content.
[0148] (2) Compare the whole-site content verification code and the sub-item verification code respectively to determine the differences in functional configuration between the SCD file model signed back under construction and the SCD file of the current version of the database.
[0149] (2.1) Compare the full-site content checksum to clarify whether there are functional differences between different versions of SCD. That is, compare the full-site content checksum of the SCD file model signed back under construction with the full-site content checksum of the SCD file content of the current version of the database to clarify the functional differences.
[0150] (2.2) Furthermore, by comparing the sub-item checksums, it is possible to clarify whether there are differences in a certain type of element. That is, the sub-item checksums of the SCD file model signed back under construction are compared with the sub-item checksums of the SCD file content of the current version of the database to clarify the differences between the elements of each type.
[0151] The version comparison submodule is used to compare and analyze the differences between the SCD file model signed back under the construction status and the exported initial SCD file model, generate a difference report and perform visual display. It can be understood that there is only interaction in the construction status, and the SCD file modified by the integrator will be received and checked. After the review is correct, a new SCD version is generated on the design side. The version comparison submodule compares the XML structure of the SCD file in detail according to tags, attributes, and text to determine the detailed differences between the SCD file model signed back under the construction status and the exported initial SCD file model. The difference comparison content specifically includes IED, interval, transformer, live equipment, data object, voltage level, etc.; station control layer information includes IP address, subnet mask, gateway; process layer information includes Mac address, VLan ID, APPID, maximum / minimum time, port information, etc.; port type, connection relationship, etc.
[0152] The integrator tool module is used to modify the initial SCD file model on site at the intelligent station and download the download files required by the secondary device to the secondary device;
[0153] Further preferably, the integrator tool module runs the desktop version program, modifies the SCD file model according to the actual working conditions on site, and exports the CID, CCD, CSD and other download files required by the secondary device and downloads them to the protection and measurement and control devices. During the SCD file saving process, the version element of the Header element is not modified, only the revision attribute is modified, and the step size is increased by 0.1. Specifically, the integrator tool module includes a configuration submodule, an export submodule, a save submodule, and a download submodule;
[0154] The download submodule is used to download the initial SCD file model exported by the design tool module;
[0155] The configuration submodule runs a desktop version program to modify the initial SCD file model according to the actual working conditions on site;
[0156] The saving submodule is used to save the modified SCD file model;
[0157] The export submodule is used to export the download files required by the secondary device and download them to the secondary device.
[0158] The online verification tool module is used to perform online functional debugging on the downloaded file, generate the final SCD file and sign it back to the design tool module.
[0159] Further preferably, the online verification tool module uses SCD as the data source, connects to the protection and measurement and control devices online, obtains the model data, and performs consistency verification with the SCD file. Specifically, the online verification tool module imports the current working version SCD file, obtains the CID, CCD and other files in the protection device and the measurement and control device through MMS or FTP, performs consistency comparison with the content of the SCD file, and generates a comparison report.
[0160] In summary, the integrator tool module and the online verification tool module ensure the SCD quality at the smart station project site.
[0161] The SCD file exported by the design tool module is generated into a relatively stable SCD file after iterating through "integrator modification - downloading to the device - functional debugging" at the intelligent station site, and then resubmitted and signed back to the design tool.
[0162] After construction, commissioning and acceptance, the design tool will export the final completed version and deliver it to the owner.
[0163] 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.
[0164] 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.
[0165] The beneficial effects of the present invention are as follows:
[0166] The present invention is based on the design tool module, the integrator tool module, and the online verification tool module to effectively control the design, on-site configuration, and implementation and debugging cycles of the SCD model design process in the entire smart substation infrastructure and technical transformation project. Through the dual control of the design process and the on-site debugging process, the circulation and effective state control of the SCD file in different units are realized. The present invention can promote the standardization of smart substation model configuration and generation, improve the design efficiency and delivery quality of SCD files, improve the correctness and completeness of the model, improve the quality of the substation data model, and improve the efficiency of substation acceptance work, which indirectly brings about the social and economic benefits of improved power grid security.
[0167] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0168] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0169] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0170] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby implementing various aspects of the present disclosure.
[0171] 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.< / dataset> < / connectedap> < / sdi> < / dai> < / doi> < / enumtype> < / datype> < / dotype> < / lnodetype> < / connectivitynode> < / terminal> < / conductingequipment> < / voltagelevel> < / substation> < / scl> < / region> < / dai> < / datatypetemplates> < / communication> < / substation> < / header> < / scl> < / dai> < / dai>
Claims
1. A whole process control method for designing an SCD model for an intelligent station, characterized by: Including: Step 1: Conduct control at the design end of the intelligent substation SCD model and export the preliminary SCD model; Step 2: At the intelligent substation site, modify the preliminary SCD model by the integrator and download the download files required for the secondary devices to the secondary devices; Step 3: Conduct on-line function debugging on the download files, generate the final SCD model and sign it back to the design end; Step 4: The design end checks the signed-back SCD model through consistency checking of the SCD model content with the current version of the database based on the item check code and the whole-station content check code; In Step 4, the consistency checking of the SCD model content with the current version of the database based on the item check code and the whole-station content check code is specifically as follows: (1) For the signed-back SCD model and the content of the current version of the SCD model in the database, respectively execute the following (1.1)-(1.2) to obtain the corresponding item check code and the whole-station content check code; (1.1) Adjust the SCD model content: Remove or supplement the SCD model content, and sort the remaining content of the SCD model; (1.2) Store the SCD model after adjusting the content in the form of a Tree tree structure and establish an element dictionary and an attribute dictionary. Based on the element dictionary and the attribute dictionary, traverse the tree structure. After dividing the entire model content into several byte streams, calculate the item check code and the whole-station content check code, specifically including: 1) Load the SCD model after adjusting the content in (1.1) and store its content in the form of a Tree tree structure. Each node of the tree corresponds to an element of the SCD model; 2) According to the SCD model and the IEC61850 schema file, establish an element dictionary dict_ele = { (key: value)...}, where the key in the element dictionary is the element label in the SCD model and the value is the numerical value corresponding to the element label; establish an attribute dictionary dict_attr = { (key: value)...}, where the key in the attribute dictionary is the attribute name in the SCD model and the value is the numerical value corresponding to the attribute name; 3) Retrieve the entire tree structure in a depth-first traversal manner. Based on the element dictionary and the attribute dictionary, map each node into a byte stream in turn, including: 3.1) For the i-th node, obtain its element label name Tagi and define its attribute names as an array Attributes i = [ attri1, attri2... attrin]; 3.2) Traverse the element dictionary, sequentially obtain the values corresponding to each label, and construct a corresponding type byte stream for each value, denoted as EBStreamk, where 0 < k < p and p is the number of key-value pairs in the element dictionary; 3.3) Query the element dictionary to obtain the value corresponding to the i-th node label name Tagi, denoted as Ei; 3.4) According to the array Attributes i, query the attribute dictionary and sequentially obtain the values corresponding to the attribute names attri to attrin, denoted as [Mi1, Mi2...Min]; 3.5) Generate the byte stream BStreami of the i-th node in the format of "Ei + element value + Mi1 + value of attribute attri1 + ... + Min + value of attribute attrin"; 3.6) According to the value of Ei, add BStreami to the end of the corresponding type EBStreamk byte stream; 3.7) After the traversal is completed, the byte streams of p types in the tree structure are obtained: EBStream1~EBStreamp; 4) Calculate the CRC32 checksum for EBStream1 to EBStreamp in sequence. The result is {CRC1, CRC2,... CRCi, ...CRCp}, where CRCi is the CRC32 checksum of EBStreami. 5) Connect all CRC32 checksums end to end to form a new byte stream, and perform CRC calculation on the new byte stream. The result is the checksum of the entire site content; (2) Compare the whole-site content verification code and the sub-item verification code respectively to determine the differences in functional configuration between the SCD model signed back under construction and the SCD model of the current version of the database.
2. According to claim 1, a whole process control method for intelligent station SCD model design is characterized by: In (1.1), the rules for removing or completing the SCD model content are as follows: Remove all XML attribute data of the root element, including namespace declarations; remove the title element and its child elements; remove all XML attributes of the plant, communication, and data type template elements; remove the description attributes of all elements; remove attribute names with a value of "dU" <dai> element and its sub-elements; remove the region element and its sub-elements;< / dai> For optional element attributes defined in the IEC61850 standard schema, if they do not exist in the SCD model, they are supplemented and their attribute values are empty.
3. The whole process control method of intelligent station SCD model design according to claim 1 is characterized by: In (1.1), the rules for sorting the contents retained by the SCD model are as follows: All direct child elements of the root element are arranged in the order of the SCD model; the voltage level child elements of the plant element are arranged in descending order according to the value of the name attribute; the live equipment elements are arranged in descending order according to the value of their type attribute, and then in descending order according to the value of their name attribute; the endpoint elements are arranged in descending order according to the value of their connection point attribute; the connection point elements are arranged in descending order according to the value of their path name attribute; the logical node type, data object type, data attribute type, and enumeration type are arranged in the order of the SCD model; their child elements are arranged in descending order according to the value of the id attribute; the data object instance, data attribute instance, and instantiation child elements follow the order of the SCD model; the child elements of the access point, data set, and virtual terminal input follow the order of the SCD model, and the attributes of the elements are sorted in descending order; For other elements of the same level in the SCD model that are not covered by the above rules, when the tag names are different, they are sorted in descending alphabetical order according to the tag names; when the tag names are the same, they are sorted in descending order according to the value of the name or instance number attribute. If there is no name or instance number attribute, they are sorted in descending order according to the value of all attributes.
4. The whole process control method of intelligent station SCD model design according to claim 1 is characterized by: In step 1, the design-side control of the smart station SCD model is carried out, including: restricting design functions for users of different roles, opening or closing corresponding rights; and controlling the circulation of the SCD model within the design unit and the engineering status. The engineering status includes: initial design, construction, and completion. The SCD models in the three stages of integrator modification, downloading, and online function debugging are all in the construction status; the SCD model after debugging is in the completion status.
5. The whole process control method of intelligent station SCD model design according to claim 4 is characterized by: In step 1, the design-side management and control of the smart station SCD model is carried out, which also includes: creation, maintenance, addition, and backtracking of the SCD model based on the version number, as well as visual comparison between different versions of SCD models; the creation function is used to establish a new smart station design project; the addition function includes generating a new model version in the design project; the maintenance function refers to editing and modifying the content of the model file; the backtracking function refers to restoring the current working interface to the historical model version; the version number includes the main version and the revised version; the main version number: initially set to 1.0, construction is 2.0, and completion is 3.0; the revised version number is initially 1.0 and incremented upward in steps of 0.
1.
6. The whole process control method of intelligent station SCD model design according to claim 5 is characterized by: In step 1, after the initial modeling and review is completed, the initial SCD model required for intelligent station debugging is exported. During the export process, the major version and revision number are mapped to the version and revision attributes of the Header element of the SCD model.
7. The whole process control method of intelligent station SCD model design according to claim 1 is characterized by: Step 2 specifically includes: Download the initial SCD model exported in step 1; Run the desktop version of the program to modify the initial SCD model based on the actual working conditions on site; Save the modified SCD model, and during the SCD model saving process, modify the revision attribute of the SCD model, accumulating upward with a step size of 0.1; The download files required by the secondary device are exported and downloaded to the secondary device, wherein the download files include CID, CCD, and CSD files; the secondary device includes a protection device and a measurement and control device.
8. The whole process control method of intelligent station SCD model design according to claim 1 is characterized by: In step 3, the secondary device is connected online, the current working version SCD model is imported, the download file in the secondary device is obtained through MMS or FTP, and a consistency comparison and online function debugging are performed with the content of the current working version SCD model, a comparison report and the final SCD model are generated, and the final SCD model is resubmitted and signed back to the design end.
9. The whole process control method of intelligent station SCD model design according to claim 1 is characterized by: In step 4, first perform IEC61850 syntax check and semantic check on the SCD model signed back in the construction status; if the syntax check and semantic check fail, it will prompt that it cannot be signed back and needs to be modified again; if the syntax check and semantic check pass, a consistency check is performed with the SCD model content of the current version of the database. If the consistency check passes, the debugging is terminated. Otherwise, a difference comparison analysis is performed on the SCD model signed back in the construction status and the exported initial SCD model, and a difference report is generated and visualized.
10. A method for controlling the entire process of SCD model design for an intelligent station according to claim 9, characterized in that: The difference comparison analysis is specifically as follows: a difference comparison is performed on the xml structure of the SCD model to determine the detailed differences between the SCD model signed back under construction and the exported initial SCD model. The content of the difference comparison specifically includes IED, bay, transformer, live equipment, data object, voltage level, IP address, subnet mask, gateway, Mac address, VLan ID, APPID, maximum / minimum time, port information, port type, and port connection relationship.
11. A whole-process control system for designing an SCD model of an intelligent station, using the method described in any one of claims 1 to 10, characterized in that: The system includes: a design tool module, an integrator tool module, and an online verification tool module; The design tool module is used for design-side control of the smart station SCD model and exporting the initial SCD model; it is also used to check the signed-in SCD model by checking the consistency with the SCD model content of the current version of the database; The integrator tool module is used to modify the initial SCD model at the intelligent station site and download the download files required by the secondary device to the secondary device; The online verification tool module is used to connect to the secondary device online, import the current working version SCD model, obtain the downloaded file in the secondary device through MMS or FTP, perform consistency comparison and online function debugging with the content of the current working version SCD model, generate a comparison report and the final SCD model, and sign the final SCD model back to the design tool module.
12. The whole process control system of intelligent station SCD model design according to claim 11 is characterized by: The design tool module is developed using B / S architecture and front-end and back-end separation WEB technology, is deployed in a server-based manner, and stores the smart station SCD model design data in a database for design-side management and control.
13. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-10.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
