Empty terminal auxiliary design method based on common template and key character coupling
The invention belongs to intelligent substation SCD file configuring technical field, more particularly, to one kind are based on common template and pass
The empty terminal auxiliary design method of key characters coupling.
In intelligent substation, with the digitized of intelligent electronic device signal transmission, based on terminal block in former normal station
Hardwire design becomes " empty terminal " design based on device model functional interface index, and the empty terminal association between device becomes
The main contents of intelligent substation secondary design.At present, empty terminal design flow process mainly have following two：
（1）Conventional design method
①IED（Intelligentelectronicdevice, intelligent electronic device）Producer is with CAD diagram or EXCEL table
Empty terminal raw data is supplied to designing institute by mode；
2. designing institute is analyzed to data, determines design and drawing expression-form, manually replicate, paste,
The modes such as editor carry out empty terminal design in AutoCAD mapping software or Microsoft Excel editing machine, form design finished product；
3. system integrator carries out empty terminal two secondary association in strict accordance with the drawing that designing institute provides on configuration software, closes
The empty terminal of connection must be consistent with design drawing, generates SCD on this basis（substationconfigurationdescripti
On, whole station CONFIG.SYS）File is for commissioning test；
4. when mistake in empty terminal design or producer need to change ICD（IEDcapability description, IED energy
Power describes file）During model file, designing institute, integrator need to redesign according to above-mentioned flow process, the empty terminal of association is for system
（2）It is designed by means of the auxiliary software with configuration feature
1. ICD model file is directly supplied to designing institute by IED producer, wherein contains the empty terminal information of device；
2. designing institute, to assist software as platform, imports ICD file and reads void terminal information therein, analysis determination sets
After meter scheme, directly on auxiliary software, empty terminal association is carried out manually by modes such as line, click, draggings, for configuration
Identical is spaced, and can be utilized the function of " typical spacing duplication " to effectively improve design efficiency；
3. after the completion of empty terminal association, designing institute can directly generate SCD file using auxiliary software；
4., when mistake in empty terminal design or producer need to change ICD model file, designing institute is directly in auxiliary software
On be modified and regenerate SCD file.
In above-mentioned void terminal design method, method（2）Compared with method（1）There is certain improvement, designing institute can be soft using auxiliary
Part directly carries out empty terminal design and generates SCD file, and whole design process is all completed by designing institute, without Jie of integrator
Enter thus avoiding the error that Secondary Design is brought.But still have the following disadvantages：
（1）The association process of empty terminal mainly manually completes, inefficiency and be easily introduced error；
（2）Device that " typical spacing duplication " functional requirement is configured is identical just to be carried out, the compatibility to product
Content of the invention
In order to overcome inefficiency in both the above void terminal design method, be easily introduced error and compatibility is not high not
Foot, the present invention provides a kind of empty terminal auxiliary design method based on common template and key character coupling, and the method is using each
Individual producer void terminal names and the similarity of definition, empty terminal to be associated and common template are carried out key character and mate, adjust
Whole void terminal order to be associated, is allowed to consistent with function identical void terminal position in common template, thus completing empty terminal
Auto-associating.For can not coupling completely empty terminal, the seeking scope of empty terminal can be reduced, reduce the work of manual association
The technical solution adopted for the present invention to solve the technical problems is：
A kind of empty terminal auxiliary design method based on common template and key character coupling, comprises the steps：
（1）First, common template storehouse and key character matrix storehouse are created, common template storehouse includes IED
（Intelligentelectronicdevice, intelligent electronic device）Empty terminal data and its mutual associated data；Close
Key characters matrix storehouse includes the key character matrix according to type of device classification；
（2）Void terminal to be associated is carried out point by the mutual incidence relation of type of device, each device, information exchange type
（3）Read the data of a certain group of void terminal to be associated, including input equipment classification, model and empty terminal data, defeated
Go out device classification, model and empty terminal data, information exchange type；
（4）Selected from common template storehouse according to the void to be associated input of terminal, output device classification and information exchange type
Take a common template；
（5）It is respectively compared common template and input in void terminal initial data to be associated（Output）Empty terminal names, if phase
With then steering step（6）, conversely, turning to（7）；
（6）Directly replicate the association input of common template（Output）Empty terminal inputs as the association of file to be associated（Defeated
Go out）And turn to step（13）；
（7）According to input（Output）Device classification and information exchange type choose corresponding pass from key character matrix storehouse
Key characters matrix；
（8）Ask common template association input（Output）The correlation matrix of empty terminal；
（9）According to correlation matrix, key character matrix is ranked up, obtains new key character matrix；
（10）Ask input to be associated（Output）The correlation matrix to new key character matrix for the empty terminal；
（11）The correlation matrix obtained according to previous step is to input to be associated（Output）Empty terminal enters ranks sequence, and acquisition is treated
The association input of the empty terminal of association（Output）；
（12）Inputted according to the association that previous step is obtained（Output）Empty terminal is carried out classification associated：For association input
（Output）Uniquely, auto-associating successively；For association input（Output）Not unique, manual association；
（13）Check whether that all void terminal group to be associated are complete association, if also not associated empty terminal group, turn
To step（3）, otherwise, terminate；
Step（1）In, described IED specifically includes route protection, circuit observing and controlling, circuit combining unit, circuit intelligence eventually
End, route protection measurement and control integration device, circuit intelligent terminal's combining unit integrated apparatus, main transformer protection, main transformer observing and controlling, master
Become combining unit, main transformer intelligent terminal, main transformer protection measurement and control integration device, the one makeup of main transformer intelligent terminal's combining unit
Put, capacitor protection measurement and control integration device, capacitor intelligent terminal, capacitor combining unit, capacitor intelligent terminal merge
Unit integral device, stand with become protection measurement and control integration device, stand with become intelligent terminal, stand with become combining unit, stand use change
Intelligent terminal's combining unit integrated apparatus.
Step（1）In, described empty terminal data includes empty terminal numbering, empty terminal names, empty terminal definition and soft pressure
Plate facilities；Wherein empty terminal names refer to producer according to set by IEC61850 specification can by intelligent electronic device from
The functional interface index of body identification, empty terminal definition refers to the natural language description of functional interface.
Step（1）In, described associated data refers to that extract from empty terminal data is existed with other void terminals
The empty terminal data of information exchange, inputs including association and associates output.
Step（1）In, described key character refers to from expression way difference, the empty terminal names of one group of function identical
And a series of common semanteme characteristic character being extracted in definition；Key character is extracted and by row to the empty terminal of same device
Sequence defines key character matrix.
Step（2）In, described type of device specifically refers to the IED device described in claim 2；Each device is mutual
Incidence relation refer to the input and output incidence relation between the empty terminal data of two devices.
Step（2）In, described information exchange type is divided into GOOSE void terminal information exchange and SV void terminal information to hand over
Step（2）In, described void terminal packet to be associated refers to input equipment with datum quantity, and the input of this device is empty
Terminal and have the empty terminal of all output devices of same type information exchange to be set to one group therewith.
Step（8）In, described correlation matrix is asked for as follows：
If comprising key character B then it is assumed that A and B is related in the title of empty terminal A or definition, correlation coefficient is 1,
Otherwise then it is assumed that the two is unrelated, correlation coefficient is 0；A general set of keyword symbol contains multiple key characters, and certain empty terminal is to institute
The correlation coefficient sum having key character is the correlation coefficient that this empty terminal accords with to this set of keyword；Each empty terminal is to each
Set of keyword symbol seeks correlation coefficient, you can obtain correlation matrix（A is empty terminal, and B is key character matrix）：
Step（9）In, described row sorting operation includes：
1. n=1, the total line number of N=correlation matrix are set；
2. all correlation coefficienies of line n are read；
3. seek row number Col of maximum in read correlation coefficient；
4. create new key character matrix, and make its line n data accord with the number of matrix Col row for original keyword
5. judge whether n is equal with N, if unequal, make n=n+1, turn to step 2.；If equal, terminate.
Step（11）In, described row sorting operation includes：
1. n=1, the total line number of N=correlation matrix are set；
2. the n-th all correlation coefficienies of row are read；
3. seek line number Row of maximum in read correlation coefficient；
4. make the association input of void terminal to be associated（Output）Line n data is to be originally inputted（Output）Empty terminal Row
The data of row；
5. judge whether n is equal with N, if unequal, make n=n+1, turn to step 2.；If equal, terminate.
The invention has the beneficial effects as follows：
（1）The present invention can assist designer to carry out the empty terminal design of intelligent substation, and the association for same type is closed
System is it is only necessary to design once, you can complete the auto-associating of overwhelming majority void terminals, and the empty terminal being unable to auto-associating on a small quantity can contract
The little range of choice carries out manual association.The time of auto-associating spends in second level, and the job content of designer can be numerous by the past
Trivial repeatability machinery work is changed into the optimization to system and the analysis to data, thus lifting design efficiency and quality.
（2）By the fuzzy search being then based on Partial key character, therefore requiring nothing more than empty terminal has certain similarity to be
Can, the product of compatible domestic existing major part producer, there is preferable practicality.
（3）With the standardization of intelligent substation design, domestic secondary producer intelligent electronic device External Functionality Interface
Standardization, the matching rate of key character can improve therewith, and this invention will have further popularization and application space.
Fig. 1 is the empty terminal design general flow chart based on common template and key character coupling；
Fig. 2 is row sequence flow chart；
Fig. 3 is row sequence flow chart；
Fig. 4 is the flow chart of empty terminal design implementation process.
In order to the principle of the present invention is described, is combined accompanying drawing and demonstrated with an instantiation and carry out empty terminal using the present invention
The process of association.Using the data of certain 220kV intelligent substation, and with 220kV line segregation combining unit, intelligent terminal to line
As a example the empty terminal association of road protection, explanation the inventive method realizes the process of empty terminal auto-associating.
1st, initial data
220kV circuit 1 interval route protection, combining unit, intelligent terminal are state's electricity south equipment certainly, 220kV circuit 2
It is spaced apart the equipment of southern auspicious relay protection.State's electricity south from and southern auspicious relay protection same type device void terminal character similarity 50% about.
2nd, create common template
Manual configuration is carried out to the empty terminal of the equipment at circuit 1 interval, as common template, after configuration, available two lead to
With template, as shown in table 1, table 2：
Table 1 combining unit-route protection common template void terminal arrangement table
Table 2 intelligent terminal-route protection common template void terminal arrangement table
3rd, void terminal packet to be associated
The empty terminal at circuit 2 interval is void terminal to be associated, according to the incidence relation between device and information exchange type, can
It is classified as two groups：
Table 3 void terminal packet to be associated
||Information exchange type
4th, first first group in void terminal to be associated is associated.Selection combining unit-route protection is common template.
Analysis common template and file input and output to be associated void terminal data, extract combining unit, route protection key character respectively
Table 4 key character Matrix List
5th, calculate the correlation matrix to key character matrix for the common template
Calculating combining unit to the correlation matrix of key character matrix is：
Route protection to the correlation matrix of key character matrix is：
6th, according to correlation matrix, key character row matrix is sorted, obtain new key character matrix：
The new key character Matrix List of table 5
7th, ask void terminal to be associated that new key is accorded with the correlation matrix of matrix
Calculating combining unit to the correlation matrix of new key character matrix is：
Route protection to the correlation matrix of new key character matrix is：
8th, ranks sequence is entered according to correlation matrix to the empty terminal of combining unit
Location tables after combining unit adjustment in table 6 file to be associated
Location tables after route protection adjustment in table 7 file to be associated
||Empty terminal names
||Empty terminal definition
||Protection voltage A phase
||Start voltage A phase
||Protection voltage B phase
||Start voltage B phase
||Protection voltage C phase
||Start voltage C phase
||Switch 1 protective current A phase
||Switch 1 starting current A phase
||Switch 1 protective current B phase
||Switch 1 starting current B phase
||Switch 1 protective current C phase
||Switch 1 starting current C phase
||Protection synchronous voltage
||Communication channel delay 1
9th, empty terminal association
Table 6, the combining unit of table 7, line protective devices void terminal after sequence are corresponded, carries out auto-associating：
Table 8 combining units-route protection auto-associating void terminal arrangement table
According to upper table, the 11st row line protection empty terminal " SVIN5SVLD1/SVINC1TCTR1 $ MX $ Amp switch 1
Protective current C phase " corresponds to two outputs of combining unit simultaneously.It is analyzed understand, due to combining unit key character
" PC " is contained in " 5'TCTR''Amp1''PC'' electric current ' ' C'' sampled value 1'' electric current 1' ", and in its empty terminal " SVOUT7 "
" AmpChB " also contains " pC " character, case-insensitive in program, thus increasing correlation coefficient, leads to there are two void simultaneously
Terminal and this set of keyword symbol is corresponding to be caused.
Because the empty number of terminals of this type is less, and reduce the range of choice of empty terminal, therefore can have been closed by adjustment
Key characters or manual mode complete to associate.Be easy in above-mentioned case knowing should selection combining unit " SVOUT6MU/
TCTR3 $ MX $ AmpC phase protective current 1_9-2 " void terminal is corresponding with route protection input side.
10th, second group of empty terminal association can be completed in the same manner, final statistics can obtain the correct matching rate of empty terminal 90%.