CN105302780A - Optimized SCD file editing method - Google Patents

Optimized SCD file editing method Download PDF

Info

Publication number
CN105302780A
CN105302780A CN201510682943.1A CN201510682943A CN105302780A CN 105302780 A CN105302780 A CN 105302780A CN 201510682943 A CN201510682943 A CN 201510682943A CN 105302780 A CN105302780 A CN 105302780A
Authority
CN
China
Prior art keywords
scd file
scd
sub
file
ied
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510682943.1A
Other languages
Chinese (zh)
Other versions
CN105302780B (en
Inventor
温东旭
郑运召
赵成功
杨辉
杨震晖
邢玉龙
万首丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201510682943.1A priority Critical patent/CN105302780B/en
Publication of CN105302780A publication Critical patent/CN105302780A/en
Application granted granted Critical
Publication of CN105302780B publication Critical patent/CN105302780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to an optimized SCD file editing method. The method comprises: reading an SCD file in a disc, acquiring n mutually independent sub-SCD files through a decoupling mode, editing the sub-SCD files one by one, and then obtaining a new integral SCD file through a combination mode. IEDs in SCD files are relatively independent and greatly influence the sizes of the SCD files, and grouping is performed according to the IEDs to form SCD files which are easy to realize; moreover, when the sub-SCD files with relatively small volumes are operated, less memory is occupied, so that by using the method, editing operation of the SCD files of multiple IEDs can be realized.

Description

A kind of SCD file edit methods of optimization
Technical field
The present invention relates to intelligent substation field, the SCD file edit methods of particularly a kind of optimization.
Background technology
Along with speeding up the construction of intelligent station, the extension of intelligent station scale, the raising of intelligence degree, the equipment such as switch, merge cells, intelligent terminal all add the model of oneself, and are all increased in SCD file by model.In SCD file, device number reaches after some or size reach some, and committed memory is very many.
With present 32-bit operating system, Installed System Memory maximum address scope is 4G, and the internal memory of configuration 4G, usually available internal memory is less than 3.2G.Operating system takies about about 1G, therefore to application program use memory headroom only slightly larger than 2G.
For the SCD file more than 200M, or more than the SCD file of 500 IED, due to needs its node added, delete, edit, the operation such as insertion, so need all to be loaded into internal memory, usually with DOM mode resolution file, committed memory is very large, usually more than 2G internal memory is needed, therefore, after being loaded into file, calculator memory is in critical conditions, operating speed is seriously slack-off, once in a while, internal memory application failure can be caused, and cause work to preserve.
SCD file is formed by SCL language editor, it is the full station CONFIG.SYS in intelligent substation, usually by Header, Substation, Communication, IED, DateTypeTemplates totally 5 parts form, except IED part constantly increases along with the increase being loaded into IED quantity, Main Function is accounted on internal memory impact.
Existing SCD file editing process as shown in Figure 1, is that whole object processes with SCD, first SCD file is loaded into internal memory, then edits it in internal memory, adds, inserts and the operation such as deletion.Therefore for the SCD file of many IED, committed memory is more, and easily causes system processing speed slack-off, the problems such as program crashing.
Summary of the invention
The object of this invention is to provide a kind of SCD file edit methods of optimization, in order to solve the large problem of existing edit mode committed memory.
For achieving the above object, the solution of the present invention comprises:
A SCD file edit methods for optimization, it is characterized in that, step is as follows:
A) by SCD file decoupling zero be some sub-SCD file;
B) respectively editing operation is carried out to each sub-SCD file, and be saved in the sub-SCD file of each correspondence;
C) each sub-SCD file merging is saved as SCD file to disk.
Further, open SCD file in disk and adopt SAX mode.
Further, sub-SCD file internal memory employing DOM mode editor preservation for another example.
Further, divide into groups according to IED quantity during decoupling zero SCD file.
This patent proposes the optimization method of a kind of SCD file editor, in disk, read SCD file, obtains the individual separate sub-SCD file of n, one by one after antithetical phrase SCD file editor, then obtain new complete S CD file by the mode merged by the mode of decoupling zero.In SCD file, IED is relatively independent, and the file size impact of IED on SCD is comparatively large, divide into groups according to IED and form sub-SCD file to be easy to realize, and when the sub-SCD file of small volume is operated, internal memory occupies less, can be realized the editing operation of the SCD file of many IED by the method.
Accompanying drawing explanation
Fig. 1 is existing edit mode process flow diagram;
Fig. 2 is the edit mode process flow diagram of embodiment.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described in detail.
A SCD file editor's optimization method, reads SCD file in disk, obtains the individual separate sub-SCD file of n, one by one after antithetical phrase SCD file editor, then obtain new complete S CD file by the mode merged by the mode of decoupling zero.
Its detailed step is as follows:
A) SCD file is read from disk, as adopted SAX mode;
B) to SCD file, with IED quantity, decoupling zero is multiple sub-SCD file; Antithetical phrase SCD file is loaded into after internal memory carries out editing operation from disk employing DOM mode and is saved in sub-SCD file;
C) sub-SCD file merging saves as SCD file to disk.
Usually, the sub-SCD after each decoupling zero has its relative independentability, and what can complete itself opens editor, preserves release.As long as therefore asynchronously edit all sub-SCD file, just have a large amount of internal memories idle.
Concrete, as shown in Figure 2, to comprise the SCD file of 1000 IED, SCD file size is about 200M, when utilizing traditional means editor SCD file, uses internal memory more than 2G.
First in disk, open SCD file in SAX mode, now editing operation is not carried out to wherein IED; Secondly, comprise 100 IED according in every sub-SCD, splitting SCD file is 10 sub-SCD file; Then, antithetical phrase SCD file carries out editing operation one by one, and sub-SCD file small volume, opens internal memory also in tolerance interval.Adopt DOM mode to be loaded into sub-SCD file from disk, use for reference the operations such as traditional approach is edited it, added in internal memory, deletion, and preserve dom tree in the sub-SCD file of disk.
Treat that all sub-SCD file editors are complete, union operation is carried out to all edited sub-SCD file, obtain the SCD file of about 1000 new IED.
According to the method for decoupling zero, large SCD file is converted to little SCD file, decreases memory cost largely, and antithetical phrase SCD file editor decreases IED increases impact on SCD file volume.
Above embodiment can be completed by an instrument, can support that open multiple SCD edits preservation simultaneously, merges; Also can be coordinated by multiple instrument, Uncoupled procedure is responsible for by an instrument, and an instrument is responsible for editor and is preserved, and merging is responsible for by an instrument.
Above embodiment adopts the mode of carrying out decoupling zero with IED quantity.Such as:
Comprise the SCD file of 1000 IED, SCD file, according to SCL model, wherein contains 1 Header, 1 Substation, 1 Communication, 1000 IED, 1 DateTypeTemplates.
Be that publicly-owned element forms 12 sub-SCD file in conjunction with other elements with Header.
SUBSCD1 is formed by Header and 1 Substation;
SUBSCD2 is formed by Header and 1 Communication;
SUBSCD3 is formed by Header and 100 IED and 1 DateTypeTemplates;
……
SUBSCD12 is formed by Header and 100 IED and 1 DateTypeTemplates.
The sub-SCD file SUBCD3-SUBCD12 be made up of Header, IED, DateTypeTemplates is and carries out the decoupling zero mode of dividing into groups according to IED quantity.
As other embodiments, also decoupling zero, merging can be carried out according to other rules.
Be presented above the embodiment that the present invention relates to, but the present invention is not limited to described embodiment.Under the thinking that the present invention provides; the mode easily expected to those skilled in the art is adopted to convert the technological means in above-described embodiment, replace, revise; and the effect played goal of the invention that is substantially identical with the relevant art means in the present invention, that realize is also substantially identical; the technical scheme of such formation is carried out fine setting to above-described embodiment and is formed, and this technical scheme still falls within the scope of protection of the present invention.

Claims (4)

1. the SCD file edit methods optimized, it is characterized in that, step is as follows:
A) by SCD file decoupling zero be some sub-SCD file;
B) respectively editing operation is carried out to each sub-SCD file, and be saved in the sub-SCD file of each correspondence;
C) each sub-SCD file merging is saved as SCD file to disk.
2. the SCD file edit methods of a kind of optimization according to claim 1, is characterized in that, opens SCD file and adopt SAX mode in disk.
3. the SCD file edit methods of a kind of optimization according to claim 1, is characterized in that, sub-SCD file for another example internal memory adopts DOM mode editor to preserve.
4. the SCD file edit methods of a kind of optimization according to claim 1 or 2 or 3, is characterized in that, divide into groups during decoupling zero SCD file according to IED quantity.
CN201510682943.1A 2015-10-20 2015-10-20 A kind of SCD file edit methods of optimization Active CN105302780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510682943.1A CN105302780B (en) 2015-10-20 2015-10-20 A kind of SCD file edit methods of optimization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510682943.1A CN105302780B (en) 2015-10-20 2015-10-20 A kind of SCD file edit methods of optimization

Publications (2)

Publication Number Publication Date
CN105302780A true CN105302780A (en) 2016-02-03
CN105302780B CN105302780B (en) 2018-11-09

Family

ID=55200059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510682943.1A Active CN105302780B (en) 2015-10-20 2015-10-20 A kind of SCD file edit methods of optimization

Country Status (1)

Country Link
CN (1) CN105302780B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106355305A (en) * 2016-08-18 2017-01-25 许继集团有限公司 Decoupling method and device for smart substation SCD model information section
CN107506339A (en) * 2017-08-08 2017-12-22 许继集团有限公司 A kind of SCD nodes verification error localization method and device based on character skew
CN107958345A (en) * 2017-12-13 2018-04-24 许继集团有限公司 A kind of SCD file collocation method and device based on database and file fragment
CN109347206A (en) * 2018-11-09 2019-02-15 北京四方继保自动化股份有限公司 A kind of online compatibilizing method of fault message main website based on IEC61850 communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996251A (en) * 2010-11-17 2011-03-30 浙江省电力试验研究院 Rapid processing method of large SCL (substation configuration language) document
EP2713303A1 (en) * 2012-09-28 2014-04-02 ABB Technology AG Area of responsibility based access in control systems
CN104867058A (en) * 2015-05-22 2015-08-26 国网四川省电力公司技能培训中心 IED visualization method of intelligent transformer substation SCD file
CN104967619A (en) * 2015-06-17 2015-10-07 深圳市腾讯计算机系统有限公司 File pushing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996251A (en) * 2010-11-17 2011-03-30 浙江省电力试验研究院 Rapid processing method of large SCL (substation configuration language) document
EP2713303A1 (en) * 2012-09-28 2014-04-02 ABB Technology AG Area of responsibility based access in control systems
CN104867058A (en) * 2015-05-22 2015-08-26 国网四川省电力公司技能培训中心 IED visualization method of intelligent transformer substation SCD file
CN104967619A (en) * 2015-06-17 2015-10-07 深圳市腾讯计算机系统有限公司 File pushing method, device and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
熊华强等: ""智能变电站SC D 文件可视化管理和分析决策系统的设计与实现"", 《电力自动化设备》 *
王斌: ""基于IEC61850的数字化变电站新型系统配置器设计"", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
陈荣鑫等: ""基于并行子树构建的XML解析方法"", 《计算机科学》 *
骆启松等: ""IEC61850一次设备配置模型校验方法研究"", 《广东电力》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106355305A (en) * 2016-08-18 2017-01-25 许继集团有限公司 Decoupling method and device for smart substation SCD model information section
CN106355305B (en) * 2016-08-18 2019-12-13 许继集团有限公司 decoupling method and device for SCD model information section of intelligent substation
CN107506339A (en) * 2017-08-08 2017-12-22 许继集团有限公司 A kind of SCD nodes verification error localization method and device based on character skew
CN107958345A (en) * 2017-12-13 2018-04-24 许继集团有限公司 A kind of SCD file collocation method and device based on database and file fragment
CN109347206A (en) * 2018-11-09 2019-02-15 北京四方继保自动化股份有限公司 A kind of online compatibilizing method of fault message main website based on IEC61850 communication
CN109347206B (en) * 2018-11-09 2021-07-27 北京四方继保自动化股份有限公司 Fault information master station online capacity increasing method based on IEC61850 communication

Also Published As

Publication number Publication date
CN105302780B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN105302780A (en) Optimized SCD file editing method
CN105224237B (en) A kind of date storage method and device
CN102693305B (en) A kind of fileinfo method for previewing and system
CN102737108B (en) Method and device for processing flow diagram
CN106843759B (en) A kind of rapid read-write method based on dynamical system result data
CN101145384A (en) Semiconductor memory apparatus and data masking method of the same
CN108037725A (en) A kind of method and apparatus for reading and writing plc data
CN104216987A (en) Timestamp-based method for capturing incremental data and supporting delete operation
CN113094355A (en) Model instantiation method, device, equipment and medium based on domestic communication protocol
CN103399848A (en) Engine test data standardized specific format leading-in processing method
CN104408128B (en) A kind of reading optimization method indexed based on B+ trees asynchronous refresh
CN105354253A (en) SCD file decoupling method
CN105205845A (en) Webpage animation rendering method and device
CN102419731A (en) Instrumentation and dynamic test coverage information extraction method of C-language embedded software
CN106446133A (en) Method and device for simultaneous butt joint of two databases
CN102236068B (en) A kind of method and apparatus of chip testing
CN101894098B (en) Embedded font data processing method and device
CN103577573A (en) Intelligent document engine technology for generating dynamic complicated tables on basis of Word 2007/Open XML
CN104572730A (en) Method and device for importing and exporting digital resources
CN110083311B (en) SSD descriptor-based software and hardware interaction issuing method and system
CN107204892A (en) Power telecom network service data processing method and processing device
CN107016112A (en) A kind of method of heterogeneous storage system map publishing
CN103646065A (en) Object-oriented business report form module establishing method
CN105224525A (en) The interpretation method of Chinese address and system
CN107229564B (en) Pressure simulation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant