CN113655731A - Relay protection device function simulation method and system - Google Patents
Relay protection device function simulation method and system Download PDFInfo
- Publication number
- CN113655731A CN113655731A CN202110768606.XA CN202110768606A CN113655731A CN 113655731 A CN113655731 A CN 113655731A CN 202110768606 A CN202110768606 A CN 202110768606A CN 113655731 A CN113655731 A CN 113655731A
- Authority
- CN
- China
- Prior art keywords
- relay protection
- database
- protection
- logic processing
- processing result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000004088 simulation Methods 0.000 title claims abstract description 20
- 230000006870 function Effects 0.000 claims abstract description 25
- 238000012360 testing method Methods 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims description 45
- 230000005284 excitation Effects 0.000 claims description 41
- 238000003860 storage Methods 0.000 claims description 25
- 230000008569 process Effects 0.000 claims description 11
- 238000005259 measurement Methods 0.000 claims description 10
- 238000012423 maintenance Methods 0.000 abstract description 3
- 238000012827 research and development Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B17/00—Systems involving the use of models or simulators of said systems
- G05B17/02—Systems involving the use of models or simulators of said systems electric
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Emergency Protection Circuit Devices (AREA)
Abstract
The invention discloses a relay protection device function simulation method and system, which realize relay protection device function simulation, can greatly improve the research and development efficiency and the test efficiency of a relay protection module, and well reduce the maintenance cost, the learning cost and the labor cost.
Description
Technical Field
The invention relates to a function simulation method and system for a relay protection device, and belongs to the technical field of relay protection.
Background
In the current relay protection field, the development and the test of the relay protection device need to be carried out based on real devices, but each real relay protection device means a longer production period and higher development cost, and a relay protection device function simulation technology is urgently needed.
Disclosure of Invention
The invention provides a relay protection device function simulation method and system, and solves the problems disclosed in the background technology.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a relay protection device function simulation method comprises the following steps:
receiving an excitation signal from a virtual tester;
converting the excitation signal into excitation data, and sending the excitation data to a database for storage;
responding to the storage of the excitation data, acquiring relevant data of logic processing from a database, performing relay protection logic processing, and sending a relay protection logic processing result to the database for storage;
responding to the storage of the relay protection logic processing result, acquiring the relay protection logic processing result from the database for displaying, and checking with an expected result;
and sending a command for driving the hardware according to the relay protection logic processing result.
The excitation signal is 0/1 series, sine wave or square wave.
The database is SQLite3 database.
The relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, protection and measurement integrated device, measurement and control device, stability and control device, process layer equipment and generator-transformer unit protection.
A relay protection device function simulation system comprises an interface module, a logic module and a driving module;
wherein,
a driving module: receiving an excitation signal from a virtual tester; converting the excitation signal into excitation data, and sending the excitation data to a database for storage; sending a command for driving hardware according to the relay protection logic processing result;
a logic module: responding to the storage of the excitation data, acquiring relevant data of logic processing from a database, performing relay protection logic processing, and sending a relay protection logic processing result to the database for storage;
an interface module: and responding to the storage of the relay protection logic processing result, and acquiring the relay protection logic processing result from the database for displaying so as to check the relay protection logic processing result with an expected result.
The excitation signal is 0/1 series, sine wave or square wave.
The database is SQLite3 database.
The relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, protection and measurement integrated device, measurement and control device, stability and control device, process layer equipment and generator-transformer unit protection.
The interface module is a Linux interface module or a Windows interface module developed by QT language.
The invention achieves the following beneficial effects: the invention realizes the function simulation of the relay protection device, can greatly improve the research and development efficiency and the test efficiency of the relay protection module, and well reduces the maintenance cost, the learning cost and the labor cost.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a block diagram of the system of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
As shown in fig. 1, a method for simulating functions of a relay protection device includes the following steps:
step 1, receiving an excitation signal from a virtual tester; wherein, the excitation signal is 0/1 sequence, sine wave or square wave;
step 2, converting the excitation signal into excitation data, and sending the excitation data to a database for storage; the database adopts an SQLite3 database;
step 3, responding to the excitation data storage, acquiring relevant data of logic processing from the database, performing relay protection logic processing, and sending a relay protection logic processing result to the database for storage;
step 4, responding to the storage of the relay protection logic processing result, acquiring the relay protection logic processing result from the database for displaying, and checking with an expected result; the relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, protection and measurement integrated device, measurement and control device, stability and control device, process layer equipment and generator-transformer group protection;
and 5, sending a command for driving the hardware according to the relay protection logic processing result.
The method realizes the function simulation of the relay protection device, can greatly improve the research and development efficiency and the test efficiency of the relay protection module, and well reduces the maintenance cost, the learning cost and the labor cost.
As shown in fig. 2, the software corresponding to the method, namely, the relay protection device function simulation system, includes an interface module, a logic module, and a driving module.
An interface module: and responding to the storage of the relay protection logic processing result, and acquiring the relay protection logic processing result from the database for displaying so as to check the relay protection logic processing result with an expected result.
The interface module is developed based on QT language, and the software interface is compiled into a Linux version running in the embedded equipment and a Windows version running in the PC through compiling parameter support and control, namely the interface module is a Linux interface module or a Windows interface module, and the interface number, the interface operation mode and the interface resolution ratio of the Linux version and the Windows version are kept consistent.
The development interface module completely uses the native interfaces of QT and C + + languages, does not additionally introduce Windows or Linux characteristic contents, and then configures compilers and device types of Windows and Linux versions in a QTCreator (development tools of QT and C + + languages) respectively in a code compiling stage, wherein the compiler of the Windows version is Mingw4.82\ bin \ g + +. exe, the device type is PC, and the compiler of the Linux version is embedded equipment.
The interface module specifically comprises a fixed value interface, an event interface, an alarm interface, a system configuration interface and the like.
A logic module: and responding to the excitation data storage, acquiring relevant data of logic processing from the database, performing relay protection logic processing, and sending a relay protection logic processing result to the database for storage.
The logic module is mainly used for processing service logics related to the relay protection device, such as modification of a fixed value, uploading events, protection alarm, modification of system configuration, various relay protection logics and the like, and specifically comprises a line protection device, a transformer protection device, a bus protection device, a reactor protection device, a protection and test integrated device, a measurement and control device, a stability and control device, a process layer device, a generator-transformer unit protection device and the like.
In order to improve the code execution efficiency, the logic module is still developed by adopting C language, and binary files with different versions are compiled according to Windows and Linux platforms, wherein the Windows platform is a DLL file, and the Linux is a.a file.
A driving module: receiving an excitation signal from a virtual tester; converting the excitation signal into excitation data, and sending the excitation data to a database for storage; and sending a command for driving the hardware according to the relay protection logic processing result.
The driver module is mainly based on a real embedded Linux hardware driver, code encapsulation is carried out, and a Windows virtual driver is added. For a user calling the hardware driver, whether the real Linux hardware driver or the Windows virtual driver is actually called is controlled by the incoming parameter isWin (isWin = true calls the Windows virtual driver, isWin = false calls the real Linux hardware driver, and isWin defaults to false). When the Windows virtual drive is called, because real hardware equipment does not exist, a return result is directly simulated, and real hardware control is not performed.
The virtual tester is used for providing external excitation signals, such as 0/1 sequence, sine wave, square wave and the like. The virtual tester is an independent software program and outputs various excitation signals outwards by realizing a standard mathematical algorithm.
The database is an SQLite3 database and stores dynamic data and static configuration data generated in the operation process.
The dynamic data refers to: real-time data generated by the relay protection device in the operation process, such as alarm information sent by a device fault, log information and a recording file recorded by the device fault, a real-time value modified by a fixed value in the operation process, and the like.
The static data refers to: configuration data preset by developers before the relay protection device is operated, such as an IP address, a port number, a bit rate, an 61859 model file, a fixed value maximum value minimum value, a default value and the like.
The interaction mode of the database and the interface module is 2 types: firstly, providing data for an interface for display; and secondly, receiving data modification caused by interface operation and persisting the data modification into a database.
The interaction mode of the database and the logic module is 2 types: firstly, when a logic module carries out logic operation, data are obtained from a data center; and secondly, the logic module stores the operation result to a database.
The interaction mode of the database and the driving module is 2 types: firstly, driving the module to external excitation, converting the excitation signal into data and storing the data in a database. Secondly, when the hardware driving layer controls external hardware equipment, required data are obtained from the data center layer, and the obtained data generally comprise switching values and analog values; switching values such as on and off of a pressing plate, on and off of a relay, on and off of a buzzer; the analog quantity outputs a certain amount of voltage and current to the outside.
Taking the Windows version as an example, the final form of the system (hereinafter referred to as simulation software) is an exe file which can run on a Windows platform, and the limitation of the device size is eliminated.
The starting mode is as follows:
1. executable file compiled into exe format
2. And when the exe is started by double clicking, each module is loaded when the simulation software is started.
When the simulation software is started, the protection judgment logic is operated periodically and circularly inside like other operating systems.
The following tests are mainly performed on simulation software:
1. and (4) functional test: adding specific excitation from the outside through the virtual tester, storing the data in a database after the simulation software driving module receives the excitation, and informing a logic module to process the data; after the logic module is processed according to the set logic, the logic module is stored in a database, and in an interface module, if the processing result accords with expectation, the logic of the code is correct; if not, the defects and the holes of the codes and the designs are found through simulation.
2. And (3) performance testing: the simulation software is run for a long time, usually in week units, such as 7 × 24 hours continuously, and the interface module and the database are checked for abnormalities without interruption.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present invention is not limited to the above embodiments, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are included in the scope of the claims of the present invention which are filed as the application.
Claims (9)
1. A relay protection device function simulation method is characterized by comprising the following steps:
receiving an excitation signal from a virtual tester;
converting the excitation signal into excitation data, and sending the excitation data to a database for storage;
responding to the storage of the excitation data, acquiring relevant data of logic processing from a database, performing relay protection logic processing, and sending a relay protection logic processing result to the database for storage;
responding to the storage of the relay protection logic processing result, acquiring the relay protection logic processing result from the database for displaying, and checking with an expected result;
and sending a command for driving the hardware according to the relay protection logic processing result.
2. The method for simulating the functions of a relay protection device according to claim 1, wherein the excitation signal is 0/1 sequence, sine wave or square wave.
3. The relay protection device function simulation method according to claim 1, wherein the database is SQLite3 database.
4. The method for simulating the functions of the relay protection device according to claim 1, wherein the relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, protection and test integrated device, measurement and control device, stability and control device, process layer equipment and generator-transformer protection.
5. A relay protection device function simulation system is characterized by comprising an interface module, a logic module and a driving module;
wherein,
a driving module: receiving an excitation signal from a virtual tester; converting the excitation signal into excitation data, and sending the excitation data to a database for storage; sending a command for driving hardware according to the relay protection logic processing result;
a logic module: responding to the storage of the excitation data, acquiring relevant data of logic processing from a database, performing relay protection logic processing, and sending a relay protection logic processing result to the database for storage;
an interface module: and responding to the storage of the relay protection logic processing result, and acquiring the relay protection logic processing result from the database for displaying so as to check the relay protection logic processing result with an expected result.
6. The relay protection device function simulation system according to claim 5, wherein the excitation signal is 0/1 series, sine wave or square wave.
7. The relay protection device function simulation system according to claim 5, wherein the database is SQLite3 database.
8. The relay protection device function simulation system according to claim 5, wherein the relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, protection and measurement integrated device, measurement and control device, stability and control device, process layer equipment and generator-transformer protection.
9. The relay protection device function simulation system according to claim 5, wherein the interface module is a Linux interface module or a Windows interface module developed in QT language.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768606.XA CN113655731B (en) | 2021-07-07 | 2021-07-07 | Relay protection device function simulation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768606.XA CN113655731B (en) | 2021-07-07 | 2021-07-07 | Relay protection device function simulation method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113655731A true CN113655731A (en) | 2021-11-16 |
CN113655731B CN113655731B (en) | 2024-07-02 |
Family
ID=78489153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110768606.XA Active CN113655731B (en) | 2021-07-07 | 2021-07-07 | Relay protection device function simulation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113655731B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499937A (en) * | 2009-03-16 | 2009-08-05 | 盛科网络(苏州)有限公司 | Software and hardware collaborative simulation verification system and method based on FPGA |
CN104101791A (en) * | 2013-04-11 | 2014-10-15 | 云南电网公司曲靖供电局 | Relay protection device fixed vale automatic test method and system |
US20150281278A1 (en) * | 2014-03-28 | 2015-10-01 | Southern California Edison | System For Securing Electric Power Grid Operations From Cyber-Attack |
CN106886411A (en) * | 2017-02-17 | 2017-06-23 | 南京国电南自电网自动化有限公司 | A kind of protective relaying device logic figure collocation method based on QT |
US20180059186A1 (en) * | 2015-07-10 | 2018-03-01 | Qibei YANG | High-voltage circuit breaker opening and closing time online monitoring apparatus, smart multi-dimensional big data analyzing expert system for high-voltage circuit breaker in power grid and method therefor |
US20200279064A1 (en) * | 2019-03-01 | 2020-09-03 | Synopsys, Inc. | Automatic Testbench Generator for Test-Pattern Validation |
CN111723481A (en) * | 2020-06-17 | 2020-09-29 | 国网重庆市电力公司电力科学研究院 | Relay protection equipment simulation verification method and device and readable storage medium |
CN112036023A (en) * | 2020-08-26 | 2020-12-04 | 南京国电南自维美德自动化有限公司 | Software integrated generation system for generator transformer bank protection device |
-
2021
- 2021-07-07 CN CN202110768606.XA patent/CN113655731B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499937A (en) * | 2009-03-16 | 2009-08-05 | 盛科网络(苏州)有限公司 | Software and hardware collaborative simulation verification system and method based on FPGA |
CN104101791A (en) * | 2013-04-11 | 2014-10-15 | 云南电网公司曲靖供电局 | Relay protection device fixed vale automatic test method and system |
US20150281278A1 (en) * | 2014-03-28 | 2015-10-01 | Southern California Edison | System For Securing Electric Power Grid Operations From Cyber-Attack |
US20180059186A1 (en) * | 2015-07-10 | 2018-03-01 | Qibei YANG | High-voltage circuit breaker opening and closing time online monitoring apparatus, smart multi-dimensional big data analyzing expert system for high-voltage circuit breaker in power grid and method therefor |
CN106886411A (en) * | 2017-02-17 | 2017-06-23 | 南京国电南自电网自动化有限公司 | A kind of protective relaying device logic figure collocation method based on QT |
US20200279064A1 (en) * | 2019-03-01 | 2020-09-03 | Synopsys, Inc. | Automatic Testbench Generator for Test-Pattern Validation |
CN111723481A (en) * | 2020-06-17 | 2020-09-29 | 国网重庆市电力公司电力科学研究院 | Relay protection equipment simulation verification method and device and readable storage medium |
CN112036023A (en) * | 2020-08-26 | 2020-12-04 | 南京国电南自维美德自动化有限公司 | Software integrated generation system for generator transformer bank protection device |
Also Published As
Publication number | Publication date |
---|---|
CN113655731B (en) | 2024-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107831757B (en) | dSPACE-based motor controller hardware-in-loop automatic test system and method | |
US9274930B2 (en) | Debugging system using static analysis | |
CN110930131A (en) | Vehicle maintenance method, device, equipment and medium | |
CN104268074A (en) | Application software online debugging method based on DCS | |
US20050229161A1 (en) | Generic user interface testing framework with load-time libraries | |
CN110908915B (en) | Test coverage rate display method and device and computer system | |
US20130179867A1 (en) | Program Code Analysis System | |
CN111338925A (en) | Applet test method, device and system, electronic equipment and storage medium | |
CN115129322A (en) | Method and device for generating automatic driving software installation package and electronic equipment | |
CN109932588B (en) | Avionics equipment verification test engine | |
CN111708704B (en) | Cloud real machine testing method, device, terminal and storage medium | |
CN113918465A (en) | Compatibility testing method and device, electronic equipment and readable storage medium | |
CN109582318B (en) | Processing method and device for Portobuf localization, terminal and storage medium | |
CN113655731A (en) | Relay protection device function simulation method and system | |
CN110990177A (en) | Fault repairing method, device, system, storage medium and electronic equipment | |
US9710360B2 (en) | Optimizing error parsing in an integrated development environment | |
CN112463188B (en) | Network card firmware automatic upgrading method and device and computer readable storage medium | |
CN112506871B (en) | Automated task management and log management method, system, electronic device and medium | |
CN113986263A (en) | Code automation test method, device, electronic equipment and storage medium | |
CN109634636B (en) | Application processing method, device, equipment and medium | |
CN111061244A (en) | Automatic testing method for power distribution master station monitoring system | |
CN112732522A (en) | Configurable log storage and analysis method and system for vehicle-mounted MCU | |
CN110865573A (en) | Control system based on python | |
CN115883431B (en) | Terminal communication protocol performance test system, method, vehicle and storage medium | |
CN114779667A (en) | Method and device for realizing control logic of mining equipment and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |