More supervisory control simulation implementation methods and analogue system for grid simulation training system
Technical field
The present invention relates to dispatching of power netwoks control field, more particularly to a kind of more monitoring for grid simulation training system to imitate
True implementation method and analogue system.
Background technology
With the continuous development and progress of computer technology and power system automation technology, grid monitoring system is in power network
Produce each link to be widely applied, the diversified electricity adaptable with the period technical merit and application requirement occur
Net monitoring system, e.g., integrated automation of transformation stations monitoring system, concentrator station monitoring system, Dispatching monitor and control system, regulation and control integration
Monitoring system etc., these monitoring systems are different majors, different stage power network producers provide convenient, flexible power network
The means such as monitoring, regulation and control, management, provide technology for power grid security, stable operation and ensure.
Grid monitoring system is that power network producers carry out power network monitoring, regulation and control, the main tool of management, is power network production
The main working environment of personnel, strengthen the training of power network producers, skillfully grasp the application method of all kinds of grid monitoring systems
And administration of power networks, the means of regulation and control, power network manufacturing enterprise is raised labour productivity, operating accident is reduced there is important meaning
Justice, therefore, monitoring system emulation are the critical function modules of grid simulation training system, are realized on a set of Power System Simulator
A variety of supervisory control simulations, can build the Training Environment highly a kind of with production scene, and grid simulation training system has higher
Authenticity, uniformity and more preferable result of training.
Monitoring system emulation has two methods:
(1) advocate approach
The function of supervisory control simulation is realized using the true monitoring system consistent with scene, according to the implementation of automated system
Process structure monitoring system database, draw monitoring system picture, establish remote control remote regulating remote signalling information table, then, exploitation monitoring
The communication interface of system and analogue system, communication interface are typically communicated using the communication protocol of standard.
Shortcoming is:True monitoring system is purchased, cost is high;Carry out constructing system according to automated system implementation process, picture,
Compatible very poor, the maintainable difference of the modules such as database, platform;The management of different system is difficult to be integrated into one, and system opens
Dynamic, monitoring difficulty, availability be not high;Different monitoring systems using different communication protocols, stipulations content description there is also
Difference, debugging are difficult.
(2) simulation
Based on Power System Simulator support platform, using the database consistent with Power System Simulator, model data,
Picture format, communication format, then the man-machine interface of monitoring system is emulated using man-machine interface emulation technology, including drawn
The emulation of face style, Dynamic data display mode, look & feel, interface menu and operation instrument etc., realize and actual monitored system
The monitoring system Simulation Interface for uniting basically identical.
Shortcoming is:Realize that monitoring system emulates using analog form, only to monitoring interface style, display mode and operation side
Formula is emulated, it is difficult to is accomplished completely the same with actual monitored system;More set monitoring system emulation share a set of simulation data base,
Interfered between monitoring system emulation module, influence result of training, the purposes emulated without the more set monitoring systems of really realization,
In set monitoring system associative simulation training more, effect is poor.
The content of the invention
The problem of in background technology, it is an object of the invention to provide a kind of for the more of grid simulation training system
Supervisory control simulation implementation method and analogue system, support to realize more set monitoring system emulation, monitoring on a set of Power System Simulator
Between system simulation module independently of each other, do not interfere with each other, there is the ability of good more monitoring associative simulation trainings.
To achieve these goals, technical scheme is as follows:
A kind of more supervisory control simulation implementation methods for grid simulation training system, it is characterised in that methods described includes
Following steps:
(1) monitoring interface and picture display styles of simulation object are carried out using dynamic icon, dynamic menu technology complete
Face emulates, including picture style, look & feel, main menu, actions menu and operating process, realizes virtual supervisory control simulation training
Environment;
(2) supervisory control simulation database is initialized, structure remote signalling merges table;
(3) monitoring logic emulation module receives and handles the Action Events of monitoring interface emulation module transmission;
(4) judge whether it is grid simulation event;
(5) if it is, structure grid simulation event communication bag, inserts grid simulation event down queue, perform afterwards
Step (6);If it is not, then directly perform step (6);
(6) judge whether grid simulation event upstream queue has event;
(7) if it is, event in processing grid simulation event upstream queue, afterwards return to step (6);If not,
Then return to step (3);
(8) front-end system emulation module sub-line journey receives and handles the up event of Power System Simulator;
(9) judge whether grid simulation event down queue has event;
(10) event in front-end system emulation module sub-line journey processing grid simulation event down queue.
Further, in step (1), dynamic icon emulation technology implementation process is as follows:
(1.1.1) establishes icon storehouse:Using analogue system icon editing machine generation represent certain power equipment, remote measurement amount,
The graphic element of remote signalling amount, and store into a single icon file;Then, icon file is numbered, each numbering
A corresponding icon file, forms icon storehouse;
Some database fields that (1.1.2) needs to show from the selection of supervisory control simulation database, are mapped to certain in icon storehouse
Individual icon, the incidence relation of the database fields and icon is established by icon numbering, monitoring interface emulation module is according to database
The value in domain shows the corresponding state of icon, with the graphic representation of the value for realizing database fields of icon state;
Various icons form monitored picture together with line, word, realize the imitative of monitored picture display content and display styles
Very.
Further, in step (1), dynamic menu emulation technology implementation process is as follows:
The function of monitoring system is defined as event by (1.2.1), establishes the monitoring system for being adapted to whole monitoring system emulation
Function and event correlation table;
The function of the currently simulated monitoring system of (1.2.2) analysis, establish the menu of the monitoring system, actions menu
Configuration file, including main menu configuration file and actions menu configuration file;
(1.2.3) monitoring interface emulation module reads main menu configuration file, the main menu of simulation generation monitoring interface;
(1.2.4) is according to action type read operation Menu Profile, simulation generation actions menu.
Further, the detailed process of step (1.2.3) is as follows:
Monitoring interface emulation module GetMenu () first obtains the menu handle at interface;
Then main menu configuration file is read, obtains the information of menus at different levels, and calls InsertMenu () generation monitoring
Interface main menu;
Public menu event is set to handle function MainMenu_Proc () function, MainMenu_ for each menu item
Proc () is that keyword searches main menu configuration file with " pad name ", the Case Number of menu is obtained, to from main menu
Operation handled.
Further, the detailed process of step (1.2.4) is as follows:
Monitoring interface emulation module obtains action type keyword according to the operating point chosen;
Menu.GetSubMenu () is called to obtain the handle of pop-up menu;
Then read operation Menu Profile, obtains the information of menus at different levels, and calls InsertMenu () to generate bullet
Go out formula actions menu, finally call TrackPopupMenu () to show the menu, simulation generation actions menu;
Public menu event is set to handle function ControlMenu_Proc () function for each menu item,
ControlMenu_Proc () with " pad name " for keyword search operation Menu Profile, compile by the event for obtaining menu
Number, the operation from actions menu is handled.
Further, in step (2), the remote signalling, which merges table, includes plant stand, remote signalling title, remote signalling state, merging
Remote signalling number and remote signalling sequence number owner pointer;
The remote signalling number of the merging represents the remote signalling number that the merging remote signalling merges;
The remote signalling sequence number owner pointer represents sequence number of the remote signalling of first merging in remote signalling table.
Further, step (3) comprises the following steps:
(3.1) monitoring logic emulation module monitors network communication interface, receives what is sent from monitoring interface emulation module
Action Events, communication data packet is sent according to certain form;
(3.2) monitoring logic emulation module Action Events are handled:
(3.2.1) selects the flow of event handling according to command word;
(3.2.2) plant stand title in packet, keyword determine to need object to be processed in event, imitative from monitoring
Acquisition in true data storehouse is handled, and result is write supervisory control simulation database;
The image content that (3.2.3) is shown according to monitoring interface emulation module, read number from supervisory control simulation database again
According to the display content of refreshing monitoring interface emulation module.
Further, in step (4), type in packet header indicates that event is grid simulation event, it is necessary to which power network is imitated for 1 table
True system is handled.
Further, in step (7), monitoring logic emulation module is periodically read from grid simulation event upstream queue
Take event and handled, detailed process is as follows:
(7.1) flow of event handling is selected according to command word;
(7.2) the plant stand title in packet, keyword determine to need object to be processed in event, from supervisory control simulation
Process object is obtained in database to be handled, and result is write supervisory control simulation database;
(7.3) image content shown according to monitoring interface emulation module, data are read from supervisory control simulation database again,
Refresh the display content of monitoring interface emulation module.
Further, step (8) comprises the following steps:
(8.1) network communication interface of Power System Simulator is monitored, is received on the grid simulation from Power System Simulator
Act part;
(8.2) grid simulation event upstream queue is built, it is up that the up event of grid simulation is inserted into grid simulation event
Queue.
Further, in step (9), front-end system emulation module obtains grid simulation event down queue according to queue heads
Event, if the pointer of queue heads for sky, then it represents that without event in queue.
A kind of more supervisory control simulation systems for grid simulation training system, the system include monitoring interface emulation mould
Block, monitoring logic emulation module, front-end system emulation module, and supervisory control simulation picture collection and supervisory control simulation database, it is special
Sign is:
The monitoring interface emulation module is used to imitate the monitoring interface and picture display styles of simulation object comprehensively
Very, virtual supervisory control simulation Training Environment is realized;
The monitoring logic emulation module is for Action Events of the processing from monitoring interface emulation module and from preposition
The grid simulation event of system simulation module, the data handling procedure of simulated monitoring system, realize the function that monitoring system emulates;
The front-end system emulation module is realized as a sub-line journey of monitoring logic emulation module, is imitated by power network
Real event part upstream queue and grid simulation event down queue and monitoring logic emulation module interaction data, with the shape of network service
Formula exchanges data, the data acquisition of simulated monitoring system and distant place control function with Power System Simulator;
The supervisory control simulation picture collection is used for the graphic picture file for storing whole monitoring system emulation module, is supervised for simulation
The menu display function of control system provides support.The supervisory control simulation database is used to store whole monitoring system emulation module
Power network, substation equipment, the running status of monitoring device, dynamic surveillance and operating function for simulated monitoring system provide in real time
Data.
Further, the supervisory control simulation database includes remote signalling table and remote signalling merges table;
The remote signalling table is built by Power System Simulator, is established according to the most detailed remote signalling sorting technique of transformer station whole imitative
Whole remote signals of true system, supervisory control simulation logic module are carried out the signal in remote signalling table according to the characteristics of supervisory control simulation
Classification merges, and the remote signalling that formed needs suitable for this supervisory control simulation merges table, the processing procedure for analog remote signaling signal.
The present invention is relative to the beneficial effect of prior art:
(1) support platform consistent with Power System Simulator, picture, database, the platform etc. of monitoring system emulation are used
Module it is compatible good, maintainable good.
(2) integrated design, the startup of system, monitoring, management etc. is carried out using identical support platform easy, availability
It is good.
(3) front-end system emulation module has been designed and developed, monitoring system emulation module has been realized and leads to Power System Simulator
Communication protocol, Power System Simulator can communicate with different monitoring system simulation module, easily expand and debug.
(4) event to be processed is needed to be decomposed into supervisory control simulation event and grid simulation event monitoring system emulation module,
Handled by supervisory control simulation module and Power System Simulator classification, whole analogue system has more preferable autgmentability.
(5) each monitoring system emulation module possesses independent picture collection, database, and multiple monitoring systems can be supported to imitate
True module interference-free operation, there is the ability of more monitoring associative simulation trainings.
Brief description of the drawings
Fig. 1 is the structured flowchart of more supervisory control simulation systems of the present invention.
Fig. 2 is the event handler procedure schematic diagram of the monitoring logic emulation module of the present invention.
Fig. 3 is the structural representation of the grid simulation event down queue of the present invention.
Fig. 4 is the event handler procedure schematic diagram of the front-end system emulation module of the present invention.
Embodiment
With reference to the accompanying drawings and detailed description, specific embodiments of the present invention are made with detailed elaboration.These tools
Body embodiment is only not used for limiting the scope of the present invention or implementation principle for narration, and protection scope of the present invention is still with power
Profit requires to be defined, including obvious changes or variations made on this basis etc..
The present invention relates to a kind of more supervisory control simulation implementation methods, this method realizes that monitoring system emulates using " simulation ",
Wherein each monitoring system emulation module is all based on Power System Simulator support platform, the picture lattice that monitoring system emulation is related to
Formula, database table, management tool etc. are all consistent with Power System Simulator, but each monitoring system emulation module has independent picture
Face collection, database, monitoring system emulation module are handled picture collection, the database administered, are monitored for simulated implementation
The function of system;Monitoring system emulation module need to event to be processed be decomposed into supervisory control simulation event and grid simulation event,
Supervisory control simulation event is handled by monitoring system emulation module, the event handler procedure of simulated monitoring system, and grid simulation event
Power System Simulator is sent to by communication interface, is handled by Power System Simulator and result is sent to monitoring system
System emulation module, realize information exchange and the coordinated operation of Power System Simulator and supervisory control simulation module, simulated implementation monitoring system
Unite monitoring of the emulation module to simulated grid, regulation, control function.
As shown in figure 1, each monitoring system emulation module includes a monitoring interface emulation module, a monitoring logic is imitated
True module, a front-end system emulation module, and supervisory control simulation picture collection and supervisory control simulation database.Monitoring system emulates mould
Block is connected by front-end system emulation module with Power System Simulator, carries out information exchange, and realization has more supervisory control simulation trainings
The grid simulation training system of function.
(1) monitoring interface emulation module
The monitoring interface and picture display styles of simulation object are imitated comprehensively using dynamic icon, dynamic menu technology
Very, including picture style, look & feel, main menu, actions menu, operating process etc., virtual supervisory control simulation training ring is realized
Border.
1.1 dynamic icon emulation technology implementation process are as follows:
1.1.1 establish icon storehouse
Generated using analogue system icon editing machine and represent certain power equipment, remote measurement amount, the graphic element of remote signalling amount, and
Store into a single icon file;Then, icon file is numbered, each corresponding icon file of numbering, shape
Into icon storehouse.
Typical icon storehouse is as follows:
1.1.2 monitored picture is drawn using icon storehouse
Some database fields for needing to show from the selection of supervisory control simulation database, some icon being mapped in icon storehouse,
The incidence relation of the database fields and icon is established by icon numbering, monitoring interface emulation module shows according to the value of database fields
The corresponding state of diagram symbol, with the graphic representation of the value for realizing database fields of icon state.
Together with the pels such as various icons and line, word, monitored picture is formed, realizes monitored picture display content and display wind
The emulation of lattice.
The icon of breaker apparatus is drawn as follows:
1.2 dynamic menu emulation technology implementation process are as follows:
1.2.1 the function of monitoring system is defined as event, establishes the monitoring system work(for being adapted to whole monitoring system emulation
Energy and event correlation table.
Typical monitoring system function and event correlation table are as follows:
Wherein:Monitoring interface processing represents to be handled by monitoring interface emulation module;
Supervisory control simulation processing represents to be handled by monitoring logic emulation module;
Grid simulation processing expression, which needs to be sent to Power System Simulator, to be handled.
1.2.2 the function of currently simulated monitoring system is analyzed, establishes the menu of the monitoring system, actions menu is matched somebody with somebody
Put file, including main menu configuration file and actions menu configuration file.
Typical main menu configuration file is as follows:
Sequence number |
Pad name and level |
Monitoring function |
Case Number |
1 |
File |
‐ |
‐ |
2 |
File/opening |
Adjust picture file |
001 |
3 |
Documents per minute secant |
‐ |
‐ |
4 |
File/closing |
Exit |
002 |
5 |
Management |
‐ |
‐ |
6 |
Management/amplification |
00101 |
Monitoring interface processing |
7 |
Management/diminution |
00101 |
Monitoring interface processing |
8 |
Management/cut-off rule |
‐ |
‐ |
9 |
Management/figure layer switching |
Picture figure layer switches |
00102 |
…… |
|
|
|
Typical operation Menu Profile is as follows:
1.2.3 monitoring interface emulation module reads main menu configuration file, the main menu of simulation generation monitoring interface.
Monitoring interface emulation module GetMenu () first obtains the menu handle at interface;
Then main menu configuration file is read, obtains the information of menus at different levels, and calls InsertMenu () generation monitoring
Interface main menu.
Public menu event is set to handle function MainMenu_Proc () function, MainMenu_ for each menu item
Proc () is that keyword searches main menu configuration file with " pad name ", the Case Number of menu is obtained, to from main menu
Operation handled.
1.2.4 according to action type read operation Menu Profile, simulation generation actions menu.
Monitoring interface emulation module obtains action type keyword according to the operating point chosen;
Menu.GetSubMenu () is called to obtain the handle of pop-up menu;
Then read operation Menu Profile, obtains the information of menus at different levels, and calls InsertMenu () to generate bullet
Go out formula actions menu, finally call TrackPopupMenu () to show the menu, simulation generation actions menu;
Public menu event is set to handle function ControlMenu_Proc () function for each menu item,
ControlMenu_Proc () with " pad name " for keyword search operation Menu Profile, compile by the event for obtaining menu
Number, the operation from actions menu is handled.
(2) monitoring logic emulation module
Monitoring logic emulation module handles the Action Events from monitoring interface emulation module and emulated from front-end system
The grid simulation event of module, the data handling procedure of simulated monitoring system, realize the function that monitoring system emulates.Monitoring logic
Emulation module Action Events resolve into supervisory control simulation event and grid simulation event, handle supervisory control simulation event first, will handle
As a result write supervisory control simulation database and push display data to monitoring interface emulation module, then build grid simulation event and lead to
Letter bag, inserts grid simulation event down queue, grid simulation event is sent into grid simulation by front-end system emulation module
System.
Meanwhile monitoring logic emulation module periodically search grid simulation event upstream queue, processing come from front-end system
The up event of grid simulation of emulation module, result is write into supervisory control simulation database, to monitoring interface emulation module
Push display data.
The event handler procedure of monitoring logic emulation module is as shown in Figure 2.
2.1 initialization supervisory control simulation databases, structure remote signalling merge table
Supervisory control simulation database includes remote signalling table and remote signalling merges table, and wherein remote signalling table is built by Power System Simulator, pressed
Whole remote signals of whole analogue system, supervisory control simulation logic module root are established according to the most detailed remote signalling sorting technique of transformer station
The characteristics of according to supervisory control simulation, the signal in remote signalling table is subjected to classification merging, is formed and be applied to the remote signalling that this supervisory control simulation needs
Merge table, the processing procedure for analog remote signaling signal.
Remote signalling table:
Wherein, the value " whether merged " is " merging ", represents that the signal needs to merge with other signals;
" merge the recording mechanism that pointer 1 " stores the upper signal merged with current demand signal, 0 represents a supreme signal;
" merge the recording mechanism that pointer 2 " stores the next signal merged with current demand signal, 0 indicates no next signal;
" remote signalling merges the sequence number of table " storage remote signalling merges the remote signalling sequence number in table, and the remote signalling is by multiple distant in remote signalling table
Letter merges.
3 remote signalling of content representation in above table are merged into a merging remote signalling, and the remote signalling generated after merging stores
Merge the 1st row in remote signalling table.
Remote signalling merges table:
Wherein:" the remote signalling number of merging " describes the remote signalling number of merging remote signalling merging;
" remote signalling sequence number owner pointer " describes sequence number of the remote signalling of first merging in remote signalling table;
" action of 500kV5011 switch first set trip protections " in upper table is merged, first remote signalling by 3 remote signalling
Remote signalling table the 1st row record.
2.2 receive and handle the Action Events of monitoring interface emulation module transmission
2.2.1 monitoring logic emulation module monitors network communication interface, receives what is sent from monitoring interface emulation module
Action Events, communication data packet are sent according to lower column format:
Packet header:
Intcmd;// command word
Int size;The byte number of // packet
Int type;// event type
Packet:
Char st[24];// plant stand title
Chanr key [64] // keyword
Int value;// value
Char ext[];// extended byte number
2.2.2 monitoring logic emulation module Action Events are handled
2.2.2.1 the flow of event handling is selected according to command word;
2.2.2.2 the plant stand title in packet, keyword determine to need object to be processed in event, imitative from monitoring
Acquisition in true data storehouse is handled, and result is write supervisory control simulation database;
2.2.2.3 the image content shown according to monitoring interface emulation module, number is read from supervisory control simulation database again
According to the display content of refreshing monitoring interface emulation module.
2.3 judge whether it is grid simulation event
Type in packet header indicates that event is grid simulation event, it is necessary to which Power System Simulator is handled for 1 table.
2.4 structure grid simulation event communication bags, insert grid simulation event down queue
The communication bag of grid simulation data is built according to 2.2.1 form, inserts grid simulation event down queue, the team
The structure of row is as shown in Figure 3.
Whether 2.5 grid simulation event upstream queues have event
Grid simulation event upstream queue is similar to the grid simulation event down queue in 2.3, monitoring logic emulation mould
Root tuber obtains the event of grid simulation event upstream queue according to queue heads, if the pointer of queue heads is sky, then it represents that in queue
Without event.
Event in 2.6 processing grid simulation event upstream queues
Monitoring logic emulation module periodically reads event and handled from grid simulation event upstream queue, has
Body process is as follows:
2.6.1 the flow of event handling is selected according to command word;
2.6.2 the plant stand title in packet, keyword determine to need object to be processed in event, from supervisory control simulation
Acquisition in database is handled, and result is write supervisory control simulation database;
2.6.3 the image content shown according to monitoring interface emulation module, data are read from supervisory control simulation database again,
Refresh the display content of monitoring interface emulation module.
(3) front-end system emulation module
Supervisory control simulation in the past uses following manner:Each supervisory control simulation does not have special supervisory control simulation database, they
Data be stored in simulation data base, when causing multiple supervisory control simulation application modules while running, their state is mutually concerned with
Disturb, it is impossible to Zhi Chi Duo Prison control emulation.
Front-end system emulation module realizes that it passes through grid simulation as a sub-line journey of monitoring logic emulation module
Event upstream queue and grid simulation event down queue and monitoring logic emulation module interaction data, in the form of network service
Data, the data acquisition of simulated monitoring system and distant place control function are exchanged with Power System Simulator.
The event handler procedure of front-end system emulation module is as shown in Figure 4.
3.1 receive and handle the up event of Power System Simulator
3.1.1 the network communication interface of Power System Simulator is monitored, is received on the grid simulation from Power System Simulator
Act part.
The form of communication bag is similar to the communication data packet form in 2.2.1.
3.1.2 grid simulation event upstream queue is built, it is up that the up event of grid simulation is inserted into grid simulation event
Queue.
Grid simulation event upstream queue is similar to the grid simulation event down queue in 2.3.
Whether 3.2 grid simulation event down queues have event
Front-end system emulation module obtains the event of grid simulation event down queue according to queue heads, if queue heads
Pointer is sky, then it represents that without event in queue.
Event in 3.3 processing grid simulation event down queues
Communication bag packet header and packet are extracted from the descending event of grid simulation event, calls network communication interface function
The packet header of event, packet are sent to Power System Simulator by writeSocket () function.
(4) supervisory control simulation picture collection
The picture editing's instrument provided using Power System Simulator platform is drawn, the picture format one with Power System Simulator
Cause, the picture of supervisory control simulation picture and Power System Simulator can call mutually.
(5) supervisory control simulation database
The database management tools that supervisory control simulation database is provided using Power System Simulator platform create, with grid simulation
The structure of system database, form, attribute are identical, and the database management tools provided using Power System Simulator platform can be beaten
Open, edit, management and monitoring simulation data base;
The grid model data of supervisory control simulation database is identical with the grid model data of grid simulation database, prison
Control simulation data base has only expanded the model data of remote signalling merging table, and the association for establishing remote signalling table and remote signalling merging table is closed
System, specific implementation are shown in " 2.1 initialization supervisory control simulation databases, structure remote signalling merge table ".