The content of the invention
It is a primary object of the present invention to overcoming deficiency of the prior art, there is provided a kind of power scheduling distant place history note
Inquiry system and method are recorded, the history alarm information inquired about in scheduling station in the transformer station of a distant place can be effectively realized, is easy to row
Failure is looked into, so as to avoid the step of inquiring about of manually entering the station, the working strength for mitigating operations staff simultaneously improves work execution efficiency, more
The good normal operation service for dispatch automated system, has broad application prospects.
In order to achieve the above object, the technical solution adopted in the present invention is:
A kind of power scheduling distant place historical record inquiry system, including be sequentially connected and follow stipulations and interact communication
Main website, remote station and background monitoring system, the main website are located at the dispatching terminal of power system, and the remote station is with after
Platform monitoring system is located at the scheduled end of power system, and the background monitoring system is filled with the protection device at scheduled end and observing and controlling
Put connected;
The main website, for set after querying condition to remote station issue historical record calling order, and according to
It is actually needed selection page number and carries out inquiry operation, the historical record feedback information uploaded according to remote station will be inquired about and tied
Fruit is shown in query interface;
The remote station, for being ordered to the record calling of background monitoring system forwarding history, and is forwarded to main website
The historical record feedback information that background monitoring system is uploaded;
The background monitoring system, order is called for receiving and responding the historical record of remote station forwarding, and
The historical record feedback information that the local search completed according to querying condition is obtained is uploaded to remote station.
The system of the present invention is further arranged to:The querying condition include the time started, the end time, alarm type,
Comprising character string and every page of record quantity, and by being set on query interface.
The system of the present invention is further arranged to:The historical record calling order includes the calling order of historical record quantity
Call and order with historical record content.
The system of the present invention is further arranged to:After the main website setting querying condition history note is issued to remote station
Record calling order, remote station is parsed after querying condition to the record calling order of background monitoring system forwarding history;Backstage
Monitoring system response historical record calling order, and recorded according to the local qualified history alarm of querying condition inquiry, press
Page storage, and recorded to the history alarm of main website upload first page;Main website receives and shows the history alarm record of first page, and
Page selection querying command is issued after selection page number so that background monitoring system is uploaded accordingly to main website according to actual needs
The history alarm record of page selection number.
The system of the present invention is further arranged to:The main website orders obtained history to be accused according to historical record calling is issued
Alert to record backward remote station and issue the calling order of historical record content, remote station is to background monitoring system forwarding history
Record content calling order;Background monitoring system response historical record content calling order, uploads to main website and meets querying condition
History alarm record content.
The system of the present invention is further arranged to:The remote station and background monitoring system are carried out by messaging bus
Interactive correspondence is substituted with graph gateway machine.
The system of the present invention is further arranged to:The interactive correspondence uses heartbeat message interactive mode.
The system of the present invention is further arranged to:The stipulations are DL476 stipulations, between the main website and remote station
Set up TCP connections.
The present invention also provides a kind of power scheduling distant place historical record querying method, comprises the following steps:
1) by issuing historical record to remote station after the main website at electric power system dispatching end setting querying condition
Calling order;
2) call order to be transmitted to historical record by remote station to supervise positioned at the backstage at the scheduled end of power system
Control system;
3) historical record that remote station forwards is received and responded by background monitoring system call order, and to remote
Dynamic work station uploads the historical record feedback information that the local search completed according to querying condition is obtained;
4) historical record feedback information is transmitted to main website by remote station;
5) the historical record feedback information that main website is uploaded according to remote station includes Query Result in query interface,
And stop according to actual needs or re-start inquiry operation.
The method of the present invention is further arranged to:The step 1) specifically, main website is set on query interface as needed
Put querying condition, wherein querying condition includes time started, end time, alarm type, includes character string and every page of record number
Amount;After main website setting querying condition the calling order of historical record quantity is issued to remote station;
The step 2) specifically, remote station is received after the calling order of historical record quantity, obtained by packet parsing
Querying condition is obtained, and is sent by messaging bus to background monitoring system;
The step 3) specifically, background monitoring system inquires about local qualified history alarm note according to querying condition
Record, is stored by page, and the history alarm record of first page is sent to remote station by messaging bus;
The step 4) specifically, remote station receives the history alarm note for the first page that background monitoring system is uploaded
Record, and it is transmitted to main website;
The step 5) specifically, main website receives and shows that the history alarm of first page is recorded in query interface, and root
According to needing to choose whether to continue, perhaps replacing querying condition continues to inquire about in query history record;
If main website selection continues query history record content, send page selection number after selection page number according to actual needs and look into
Order is ask, i.e., to the history alarm record queries order of remote station transmission band page selection number;Remote station passes through message
The history alarm record queries order of Bus repeater band page selection number is to background monitoring system, and background monitoring system is looked into corresponding
Ask result and be uploaded to main website through remote station, main website receives Query Result and is shown in by page in query interface;
Continue to inquire about if querying condition is changed in main website selection, return to step 1), perform step 1)~step 5).
Compared with prior art, the invention has the advantages that:
1st, the present invention is provided power scheduling distant place historical record inquiry system and method, can be effectively realized in scheduling master
The history alarm information stood in inquiry distant place transformer station, is easy to investigate failure, so as to avoid the step of inquiring about of manually entering the station, mitigates
The working strength of operations staff simultaneously improves work execution efficiency, is preferably the normal operation service of dispatch automated system.
2nd, the remote station that the present invention is used only is responsible for the secondary assembling and forwarding of message, the excessive telemechanical without taking
Machine system resource, will not destroy the stability of remote station system.
3rd, the present invention is effectively avoided because history alarm records knot that is excessive and causing by the way of by page inquiry
Sent on fruit it is slow, situations such as block, search efficiency can be greatly improved.
4th, the present invention can effectively realize normalizing operation using DL476 stipulations;And for remote station with after
Platform monitoring system is substituted with graph gateway machine, then can omit remote station this link, by main website directly and graph gateway
Machine sets up the inquiry of distant place history alarm record.
The above is only the general introduction of technical solution of the present invention, in order to be better understood upon the technological means of the present invention, under
With reference to accompanying drawing, the invention will be further described in face.
Embodiment
With reference to Figure of description, the present invention is further illustrated.
The present invention provides a kind of power scheduling distant place historical record inquiry system, as shown in figure 1, including being sequentially connected and abiding by
Main website 1, remote station 2 and background monitoring system 3 that stipulations DL476 stipulations interact communication are followed, the main website 1 is located at electricity
The dispatching terminal of Force system, the remote station 2 and background monitoring system 3 are located at the scheduled end of power system, the backstage
Monitoring system 3 is connected with the protection device and measure and control device at scheduled end.
TCP connections are set up between the main website 1 and remote station 2, for setting after querying condition to remote station 2
Historical record calling order is issued, and selection page number carries out inquiry operation according to actual needs, according to remote station 2
The historical record feedback information of upload includes Query Result in query interface;Wherein, querying condition includes time started, knot
Beam time, alarm type, comprising character string and every page of record quantity, and by being set on query interface.
The remote station 2, for the record calling order of the forwarding history of background monitoring system 3, and to 1 turn of main website
Send out the historical record feedback information that background monitoring system 3 is uploaded.The remote station 2 and background monitoring system 3 pass through message
Bus interacts communication or substituted with graph gateway machine, and wherein interactive correspondence uses heartbeat message interactive mode.
The background monitoring system 3, order is called for receiving and responding the historical record of the forwarding of remote station 2, and
And the historical record feedback information that the local search completed according to querying condition is obtained is uploaded to remote station 2.
After the main website setting querying condition historical record calling order, remote station parsing are issued to remote station
Go out after querying condition to the record calling order of background monitoring system forwarding history;Background monitoring system response historical record calling life
Order, and local qualified history alarm record is inquired about according to querying condition, stored by page, and first page is uploaded to main website
History alarm is recorded;Main website receives and shows the history alarm record of first page, and is issued according to actual needs after selection page number
Page selection querying command so that the history alarm that background monitoring system uploads corresponding page selection number to main website is recorded.
The main website orders obtained history alarm to record backward remote station according to the calling of historical record quantity is issued
The calling order of historical record content is issued, remote station is ordered to the record content calling of background monitoring system forwarding history;Afterwards
The response historical record content calling order of platform monitoring system, the history alarm record content for meeting querying condition is uploaded to main website.
The power scheduling distant place historical record inquiry system that the present invention is provided, historical record is realized using DL476 stipulations
Inquiry, is easy to increase the extension of agreement, it is necessary to which explanation, this programme follows DL476 stipulations, the ASDU of expansion basic principle
It is the frame structure and communication flow for not changing DL476 agreements.
The present invention provides a kind of power scheduling distant place historical record querying method, comprises the following steps:
1) by issuing historical record to remote station after the main website at electric power system dispatching end setting querying condition
Calling order;
2) call order to be transmitted to historical record by remote station to supervise positioned at the backstage at the scheduled end of power system
Control system;
3) historical record that remote station forwards is received and responded by background monitoring system call order, and to remote
Dynamic work station uploads the historical record feedback information that the local search completed according to querying condition is obtained;
4) historical record feedback information is transmitted to main website by remote station;
5) the historical record feedback information that main website is uploaded according to remote station includes Query Result in query interface,
And stop according to actual needs or re-start inquiry operation.
A kind of power scheduling distant place historical record querying method, is embodied as,
1) main website sets querying condition on query interface as needed, and wherein querying condition includes the time started, terminated
Time, alarm type, include character string and every page record quantity;After main website setting querying condition history is issued to remote station
Record quantity calling order;
2) remote station is received after the calling order of historical record quantity, obtains querying condition by packet parsing, and lead to
Messaging bus is crossed to send to background monitoring system;
3) background monitoring system is inquired about local qualified history alarm according to querying condition and recorded, and is stored by page, and
The history alarm record of first page is sent to remote station by messaging bus;
4) remote station receives the history alarm record for the first page that background monitoring system is uploaded, and is transmitted to main website;
5) main website receive and show first page history alarm record in query interface, and choose whether as needed after
Querying condition is perhaps changed in continuous query history record to continue to inquire about;
If main website selection continues query history record content, send page selection number after selection page number according to actual needs and look into
Order is ask, i.e., to the history alarm record queries order of remote station transmission band page selection number;Remote station passes through message
The history alarm record queries order of Bus repeater band page selection number is to background monitoring system, and background monitoring system is looked into corresponding
Ask result and be uploaded to main website through remote station, main website receives Query Result and is shown in by page in query interface;
Continue to inquire about if querying condition is changed in main website selection, return to step 1), perform step 1)~step 5).
In order to perform the above method, the present invention establishes the logic of transformer station's distant place historical query message interaction process, and
Detailed setting has been carried out to the form of message, has been discussed in detail below in conjunction with Fig. 2.
1st, main website 1 initially sets up TCP with remote station 2 and is connected, and port numbers can fix and use 3002, be successfully established
After TCP connections, main website 1 sends the A_ASSOCIATE connections in DL476 to remote station 2, and remote station 2 is returned to main website 1
A_ASSOCIATE_ACK is returned, heartbeat message interaction can be started by completing main website 1 and remote station 2 after DL476 connections.
2nd, when main website 1 needs calling substation history alarm record, it is necessary first to set and inquire about in corresponding query interface
Condition, such as time started, the end time, alarm type, include character string and every page record quantity.Querying condition is set to complete
Afterwards, main website 1 sends corresponding history alarm record calling message to remote station 2, and the message utilizes BID in DL476 messages
Number for 39 ASCII character block ASDU realize.Specific message is defined as follows shown in table 1.
Table 1
Asked in table 1 service data form be:
SERVICE::GetHisAlarm (StartTime=YYYY-MM-DD HH:MM:SS.mmm, EndTime=
YYYY-MM-DD HH:MM:SS.mmm, AlarmType=1, PerPageNum=50, KeyWork=main transformer)
Wherein SERVICE is name space, and this is unique mark;
The required parameter that it is the service in Service name, bracket that GetHisAlarm, which is,;
Initial time, the i.e. time started of StratTime query history alarm records for needed for, the form of time is
YYYY-MM-DD HH:MM:SS.mmm, wherein, the YYYY expressions of years, MM is month, and DD is the date, and mmm is millisecond.24 hours
System, virtual value is (00-23), and the scope of MM and SS value is (00-59), and the scope of mmm value is (000-999).The moon, day,
When, each 2 characters of minute, second, ten should mend 0 during less than 10,3 characters of millisecond, and ten should mend 0 during less than 10, hundred during less than 100
Position should mend 0;
The end time of EndTime query history alarm records for needed for, the same StartTime of time format;
AlarmType is alarm type, and the definition on alarm type refers to alert the regulation in the function that direct transfers, such as table
Shown in 2:
Parameter value |
Alarm Classification |
0 |
All types |
1 |
Accident |
2 |
It is abnormal |
3 |
It is out-of-limit |
4 |
Displacement |
5 |
Inform |
6 |
Operation |
Table 2
PerPageNum be in the history alarm quantity called every time, the quantity and the inquiry system of main website 1 every page can show
The alarm quantity shown is consistent;
KeyWork is keyword, i.e., substation query warning record when need to using the content of KeyWord parameters as inquiry mistake
Filter condition.
3rd, remote station 2 is received after the history alarm querying command that above-mentioned main website 1 is sent out, and message is passed through into messaging bus
Send to background monitoring system.
4th, background monitoring system calls local history alarm to record according to querying condition, according in parameter PerPageNum
Value carries out Fragmentation, and the data of first page are sent into remote station by DL476 messages.Specific message format such as table 3
It is shown.
Table 3
Wherein, sending sequence number for header portion can directly use 0x00H with Receive sequence number.Wall scroll history alarm record data
Form be:<Alarm level><Space>Alarm time<Space>Device name<Space>Warning content<Space>Alarm cause.
Alarm level is with reference to described in table 2, warning content preferably reference《Grid equipment generic data model Naming conventions》, for example, certain
Alert record data content for "<1>2013-05-24 09:52:59.651, Wu Zhuan stations, Tianjin/220kV.2202 switches/three-phase
Inconsistent trip operation ".
5th, remote station is received after back-end data, is rewritten and is sent sequence number and Receive sequence number, and forwards the packet
To main website.
6th, main website receives after history alarm record data progress data parsing, then shows the in corresponding query page
One page history alarm information.
7th, can be total by message between remote station and monitoring backstage after a GetHisAlarm service was carried out
Line sets up heartbeat interaction, when continuous three heartbeat messages of monitoring backstage do not receive the confirmation of remote station, monitoring backstage
Remove the history alarm record inquired about before caching.
8th,, please still using the DL476 message formats of table 1 when main website needs to inquire about the history alarm information of other page numbers
The data form for asking service is:
SERVICE::GetHisAlarmPage (PageNo=3)
Wherein, the page number that PageNo parameters are inquired about for needed for.
9th, when the closing of main website query page or reset querying condition are inquired about, main website first issues termination inquiry life
Order, using the DL476 message formats of table 1, the data form of request service is:
SERVICE::StopHisAlarm()
10th, background monitoring system is received after the termination querying command of remote station forwarding, removes the slow of this inquiry
Deposit data, terminates the heartbeat message interaction between remote station.
The innovative point of the present invention is the flow for improving scheduling distant place historical record inquiry, improves search efficiency, subtracts
Few artificial normal operation service for participating in, being preferably dispatch automated system.
General principle, principal character and the advantage of the present invention has been shown and described above.The technical staff of the industry should
Understand, the present invention is not limited to the above embodiments, the original for simply illustrating the present invention described in above-described embodiment and specification
Reason, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes and improvements
It all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appending claims and its equivalent circle
It is fixed.