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 are imitative
True implementation method and analogue system.
Background technique
With the continuous development and progress of computer technology and power system automation technology, grid monitoring system is in power grid
It produces each link to be widely applied, the diversified electricity adaptable with the period technical level and application requirement occurs
Net monitoring system, e.g., integrated automation of transformation stations monitoring system, concentrator station monitoring system, Dispatching monitor and control system, regulation integration
Monitoring system etc., these monitoring systems are different majors, different stage power grid producers provide convenience flexible power grid
The means such as monitoring, regulation, management provide technology for power grid security, stable operation and guarantee.
Grid monitoring system is the main tool that power grid producers carry out power grid monitoring, regulation, management, is power grid production
The main working environment of personnel reinforces the training of power grid producers, skillfully grasps the application method of all kinds of grid monitoring systems
And the means of administration of power networks, regulation, it raises labour productivity to power grid manufacturing enterprise, reduce operating accident with 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 construct the Training Environment with production scene height one kind, and grid simulation training system has higher
Authenticity, consistency and better result of training.
There are two types of methods for monitoring system emulation:
(1) advocate approach
Using the function of realizing supervisory control simulation with the consistent true monitoring system in scene, according to the implementation of automated system
Process constructs monitoring system database, draws monitoring system picture, establishes remote control remote regulating remote signalling information table, then, exploitation monitoring
The communication interface of system and analogue system, communication interface generally use the communication protocol of standard to be communicated.
The disadvantage is that: true monitoring system is purchased, it is at high cost;Construct system according to automated system implementation process, picture,
Very poor, the maintainable difference of compatibility of the modules such as database, platform;The management of homologous ray is not difficult to be integrated into one, and system opens
Dynamic, monitoring difficulty, availability be not high;Different monitoring systems using different communication protocols, specification content description there is also
Difference, debugging are difficult.
(2) simulation
Based on Power System Simulator support platform, using with the consistent database of Power System Simulator, model data,
Then picture format, communication format emulate the man-machine interface of monitoring system using man-machine interface emulation technology, including draw
The emulation of face style, Dynamic data display mode, look & feel, interface menu and operational instrument etc. is realized and actual monitored system
The monitoring system Simulation Interface for uniting almost the same.
The disadvantage is that: monitoring system emulation is realized using analog form, only to monitoring interface style, display mode and operation side
Formula is emulated, it is difficult to be accomplished completely the same with actual monitored system;More set monitoring system emulation share a set of simulation data base,
It is interfered with each other between monitoring system emulation module, influences result of training, without really realizing the purpose of more set monitoring system emulation,
In mostly set monitoring system associative simulation training, effect is poor.
Summary of the invention
For the problems in background technique, the purpose of the present invention is to provide a kind of for the more of grid simulation training system
Supervisory control simulation implementation method and analogue system are supported to realize more set monitoring system emulation, monitoring on a set of Power System Simulator
It is mutually indepedent between system simulation module, do not interfere with each other, the abilities with good more monitoring associative simulation trainings.
To achieve the goals above, technical scheme is as follows:
A kind of more supervisory control simulation implementation methods for grid simulation training system, which is characterized in that the method includes
Following steps:
(1) monitoring interface and picture display styles of simulation object are carried out using dynamic icon, dynamic menu technology complete
Face emulation, including picture style, look & feel, main menu, actions menu and operating process, realize virtual supervisory control simulation training
Environment;
(2) supervisory control simulation database is initialized, building remote signalling merges table;
(3) monitoring logic emulation module receives and processes the action event of monitoring interface emulation module transmission;
(4) judge whether to be grid simulation event;
(5) if it is, building grid simulation event communication packet, is inserted into grid simulation event down queue, executes later
Step (6);If it is not, then directly executing step (6);
(6) judge whether grid simulation event upstream queue has event;
(7) if it is, event in processing grid simulation event upstream queue, later return step (6);If not,
Then return step (3);
(8) front-end system emulation module sub thread receives and processes the uplink event of Power System Simulator;
(9) judge whether grid simulation event down queue has event;
(10) event in front-end system emulation module sub thread processing grid simulation event down queue.
Further, in step (1), dynamic icon emulation technology realizes that process is as follows:
(1.1.1) establishes icon library: using analogue system icon editing machine generation represent certain power equipment, telemetering amount,
The graphic element of remote signalling amount, and store into an individual icon file;Then, icon file is numbered, each number
A corresponding icon file, forms icon library;
(1.1.2) needs some database fields to be shown from the selection of supervisory control simulation database, is mapped to certain in icon library
A icon establishes the incidence relation of the database fields and icon by icon number, and 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 of the realization database fields of icon state;
Various icons constitute monitored picture together with line, text, realize that monitored picture shows the imitative of content and display styles
Very.
Further, in step (1), dynamic menu emulation technology realizes that process is as follows:
The function of monitoring system is defined as event by (1.2.1), establishes the monitoring system for being suitble to whole monitoring system emulation
Function and event correlation table;
The function of the currently simulated monitoring system of (1.2.2) analysis establishes 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, and simulation generates the main menu of monitoring interface;
(1.2.4) generates actions menu according to action type read operation Menu Profile, simulation.
Further, detailed process is as follows for step (1.2.3):
The menu handle at monitoring interface emulation module GetMenu () first acquisition interface;
Then main menu configuration file is read, the information of menus at different levels is obtained, and InsertMenu () is called to generate monitoring
Interface main menu;
Public menu event is set for each menu item and handles function MainMenu_Proc () function, MainMenu_
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, detailed process is as follows for step (1.2.4):
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 InsertMenu () is called to generate bullet
Formula actions menu out, finally calls TrackPopupMenu () to show the menu, and simulation generates actions menu;
Public menu event is set for each menu item and handles function ControlMenu_Proc () function,
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), it includes plant stand in table that the remote signalling, which merges, remote signalling title, remote signalling state, is merged
Remote signalling number and remote signalling serial number owner pointer;
The combined remote signalling number indicates the remote signalling number that the merging remote signalling merges;
The remote signalling serial number owner pointer indicates serial number of the remote signalling of first merging in remote signalling table.
Further, step (3) includes the following steps:
(3.1) monitoring logic emulation module monitors network communication interface, what reception was sent from monitoring interface emulation module
Action event sends communication data packet according to certain format;
(3.2) monitoring logic emulation module action event is handled:
(3.2.1) selects the process of event handling according to command word;
(3.2.2) determines object to be treated in event according to the plant stand title in data packet, keyword, imitative from monitoring
Acquisition in true data library is handled, and supervisory control simulation database is written in processing result;
The image content that (3.2.3) is shown according to monitoring interface emulation module reads number from supervisory control simulation database again
According to the display content of refreshing monitoring interface emulation module.
Further, in step (4), the type in packet header is that 1 table indicates that event is grid simulation event, needs power grid imitative
True system is handled.
Further, in step (7), monitoring logic emulation module is periodically read from grid simulation event upstream queue
It takes event and is handled, detailed process is as follows:
(7.1) process of event handling is selected according to command word;
(7.2) object to be treated in event is determined according to the plant stand title in data packet, keyword, from supervisory control simulation
It obtains and is handled in database, and supervisory control simulation database is written in processing result;
(7.3) image content shown according to monitoring interface emulation module reads data from supervisory control simulation database again,
Refresh the display content of monitoring interface emulation module.
Further, step (8) includes the following steps:
(8.1) network communication interface for monitoring Power System Simulator, receives on the grid simulation from Power System Simulator
Act part;
(8.2) grid simulation event upstream queue is constructed, grid simulation uplink event is inserted into grid simulation event uplink
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 be sky, then it represents that without event in queue.
A kind of more supervisory control simulation systems for grid simulation training system, the system comprises monitoring interfaces to emulate 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 for imitating 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 used to handle the action event from monitoring interface emulation module and comes from preposition
The grid simulation event of system simulation module, the data handling procedure of simulated monitoring system realize the function of monitoring system emulation;
The front-end system emulation module is realized as a sub thread of monitoring logic emulation module, imitative by power grid
Real event part upstream queue and grid simulation event down queue and monitoring logic emulation module interaction data, with the shape of network communication
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 to store the graphic picture file of entire monitoring system emulation module, for simulation prison
The menu display function of control system provides support.The supervisory control simulation database is for storing entire monitoring system emulation module
Power grid, substation equipment, monitoring device operating status, provided in real time for the dynamic surveillance and operating function of simulated monitoring system
Data.
Further, the supervisory control simulation database includes remote signalling table and remote signalling merging table;
The remote signalling table is constructed by Power System Simulator, is established according to the most detailed remote signalling classification method of substation entire imitative
The characteristics of whole remote signals of true system, supervisory control simulation logic module is according to supervisory control simulation, the signal in remote signalling table is carried out
Classification merges, and forms the remote signalling needed suitable for this supervisory control simulation and merges table, the treatment process for analog remote signaling signal.
The beneficial effect of the present invention compared with the existing technology is:
(1) using picture, database, the platform etc. emulated with the consistent support platform of Power System Simulator, monitoring system
Good compatibility, the maintainability of module are good.
(2) integrated design is carried out using identical support platform, starting, monitoring, management of system etc. are easy, availability
It is good.
(3) front-end system emulation module has been designed and developed, monitoring system emulation module has been realized and Power System Simulator is logical
Communication protocol, Power System Simulator can be communicated with different monitoring system simulation module, are easy to expand and be debugged.
(4) monitoring system emulation module event to be treated is decomposed into supervisory control simulation event and grid simulation event,
It is handled by supervisory control simulation module and Power System Simulator classification, entire analogue system has better scalability.
(5) each monitoring system emulation module possesses independent picture collection, database, can support that multiple monitoring systems are imitative
True module interference-free operation has the ability of more monitoring associative simulation trainings.
Detailed description of the invention
Fig. 1 is the structural block diagram of more supervisory control simulation systems of the invention.
Fig. 2 is the event handler procedure schematic diagram of monitoring logic emulation module of the invention.
Fig. 3 is the structural schematic diagram of grid simulation event down queue of the invention.
Fig. 4 is the event handler procedure schematic diagram of front-end system emulation module of the invention.
Specific embodiment
With reference to the accompanying drawings and detailed description, detailed elaboration is made to specific embodiments of the present invention.These tools
Body embodiment is only not supposed to be a limitation to the present invention for narration or implementation principle, and protection scope of the present invention is still with power
Subject to benefit requires, including obvious changes or variations etc. made on this basis.
The present invention relates to a kind of more supervisory control simulation implementation methods, this method realizes monitoring system emulation using " simulation ",
Wherein each monitoring system emulation module is all based on Power System Simulator support platform, and monitoring system emulates the picture lattice being 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 handle picture collection, the database administered, monitor for simulated implementation
The function of system;Event to be treated is decomposed into supervisory control simulation event and grid simulation event by monitoring system emulation module,
Supervisory control simulation event is handled by monitoring system emulation module, the event handler procedure of simulated monitoring system, and grid simulation event
It is sent to Power System Simulator by communication interface, processing is carried out by Power System Simulator and processing result is sent to monitoring system
System emulation module realizes the information exchange and coordinated operation of Power System Simulator and supervisory control simulation module, simulated implementation monitoring system
Monitoring, adjusting, control function of the system emulation module to simulated grid.
As shown in Figure 1, each monitoring system emulation module is imitative including a monitoring interface emulation module, a monitoring logic
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 connect by front-end system emulation module with Power System Simulator, and information exchange is carried out, and realizing 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 technologies realize that process is as follows:
1.1.1 establishing icon library
The graphic element for representing certain power equipment, telemetering amount, remote signalling amount is generated using analogue system icon editing machine, and
Store into an individual icon file;Then, icon file is numbered, the corresponding icon file of each number, shape
At icon library.
Typical icon library is as follows:
1.1.2 monitored picture is drawn using icon library
From supervisory control simulation database selection need some database fields to be shown, some icon being mapped in icon library,
The incidence relation of the database fields and icon is established by icon number, monitoring interface emulation module is aobvious according to the value of database fields
The corresponding state of diagram symbol, with the graphic representation of the value of the realization database fields of icon state.
Together with the pels such as various icons and line, text, monitored picture is constituted, realizes that monitored picture shows content and display wind
The emulation of lattice.
The icon of breaker apparatus is drawn as follows:
1.2 dynamic menu emulation technologies realize that process is as follows:
1.2.1 the function of monitoring system is defined as event, establishes the monitoring system function for being suitble 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 indicates to be handled by monitoring interface emulation module;
Supervisory control simulation processing indicates to be handled by monitoring logic emulation module;
Grid simulation processing indicates that needing to be sent to Power System Simulator is handled.
1.2.2 the function of analyzing currently simulated monitoring system establishes the menu of the monitoring system, actions menu is matched
Set file, including main menu configuration file and actions menu configuration file.
Typical main menu configuration file is as follows:
Serial 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 |
It exits |
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 |
The switching of picture figure layer |
00102 |
…… |
|
|
|
Typical operation Menu Profile is as follows:
1.2.3 monitoring interface emulation module reads main menu configuration file, and simulation generates the main menu of monitoring interface.
The menu handle at monitoring interface emulation module GetMenu () first acquisition interface;
Then main menu configuration file is read, the information of menus at different levels is obtained, and InsertMenu () is called to generate monitoring
Interface main menu.
Public menu event is set for each menu item and handles function MainMenu_Proc () function, MainMenu_
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 generates 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 InsertMenu () is called to generate bullet
Formula actions menu out, finally calls TrackPopupMenu () to show the menu, and simulation generates actions menu;
Public menu event is set for each menu item and handles function ControlMenu_Proc () function,
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 event from monitoring interface emulation module and emulates from front-end system
The grid simulation event of module, the data handling procedure of simulated monitoring system realize the function of monitoring system emulation.Monitoring logic
Emulation module action event resolves into supervisory control simulation event and grid simulation event, and first processing supervisory control simulation event will be handled
As a result supervisory control simulation database is written and pushes display data to monitoring interface emulation module, it is logical then to construct grid simulation event
Letter packet, is inserted into grid simulation event down queue, sends grid simulation for grid simulation event 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
Supervisory control simulation database is written, to monitoring interface emulation module in processing result by the grid simulation uplink event of 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, building remote signalling merge table
Supervisory control simulation database includes remote signalling table and remote signalling merging table, and wherein remote signalling table is constructed by Power System Simulator, is pressed
Whole remote signals of entire analogue system, supervisory control simulation logic module root are established according to the most detailed remote signalling classification method of substation
Signal in remote signalling table is carried out classification merging by the characteristics of according to supervisory control simulation, is formed and is suitable for the remote signalling that this supervisory control simulation needs
Merge table, the treatment process for analog remote signaling signal.
Remote signalling table:
Wherein, the value " whether merged " is " merging ", indicates that signal needs merge with other signals;
The recording mechanism for the upper signal that " merging pointer 1 " storage merges with current demand signal, 0 indicates a supreme signal;
The recording mechanism for the next signal that " merging pointer 2 " storage merges with current demand signal, 0 indicates no next signal;
" serial number of remote signalling merging table " storage remote signalling merges the remote signalling serial 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: " combined remote signalling number " describes the remote signalling number of merging remote signalling merging;
" remote signalling serial number owner pointer " describes serial number of the remote signalling of first merging in remote signalling table;
" 500kV5011 switchs the movement of first set trip protection " in upper table is from 3 remote signalling merging, first remote signalling
Remote signalling table the 1st row record.
2.2 receive and process the action event of monitoring interface emulation module transmission
2.2.1 monitoring logic emulation module monitors network communication interface, what reception was sent from monitoring interface emulation module
Action event, communication data packet are sent according to lower column format:
Packet header:
Intcmd;// command word
Int size;The byte number of // data packet
Int type;// event type
Data 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 event is handled
2.2.2.1 the process of event handling is selected according to command word;
2.2.2.2 object to be treated in event is determined according to the plant stand title in data packet, keyword, it is imitative from monitoring
Acquisition in true data library is handled, and supervisory control simulation database is written in processing result;
2.2.2.3 the image content shown according to monitoring interface emulation module reads number 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 is that 1 table indicates that event is grid simulation event, and Power System Simulator is needed to be handled.
2.4 building grid simulation event communication packets, are inserted into grid simulation event down queue
According to the communication bag of the format building grid simulation data of 2.2.1, it is inserted into grid simulation event down queue, the team
The structure of column 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, and monitoring logic emulates 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 is handled from grid simulation event upstream queue, has
Body process is as follows:
2.6.1 the process of event handling is selected according to command word;
2.6.2 object to be treated in event is determined according to the plant stand title in data packet, keyword, from supervisory control simulation
Acquisition in database is handled, and supervisory control simulation database is written in processing result;
2.6.3 the image content shown according to monitoring interface emulation module reads data from supervisory control simulation database again,
Refresh the display content of monitoring interface emulation module.
(3) front-end system emulation module
Pervious supervisory control simulation uses following manner: each supervisory control simulation does not have special supervisory control simulation database, they
Data be stored in simulation data base, when leading to multiple supervisory control simulation application modules while running, their state is mutually concerned with
It disturbs, cannot support more supervisory control simulations.
Front-end system emulation module realizes that it passes through grid simulation as a sub thread 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 communication
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 process the uplink event of Power System Simulator
3.1.1 the network communication interface for monitoring Power System Simulator, receives on the grid simulation from Power System Simulator
Act part.
The format of communication bag is similar to the communication data packet format in 2.2.1.
3.1.2 grid simulation event upstream queue is constructed, grid simulation uplink event is inserted into grid simulation event uplink
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 data packet are extracted from grid simulation event downlink event, call network communication interface function
The packet header of event, data packet are sent Power System Simulator by writeSocket () function.
(4) supervisory control simulation picture collection
It is drawn using picture editing's tool that Power System Simulator platform provides, the picture format one with Power System Simulator
It causes, the picture of supervisory control simulation picture and Power System Simulator can call mutually.
(5) supervisory control simulation database
The database management tools creation that supervisory control simulation database is provided using Power System Simulator platform, with grid simulation
The structure of system database, table, attribute are identical, can be beaten using the database management tools that Power System Simulator platform provides
It opens, 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, building remote signalling merge table ".