RTDS real-time simulation test system and method for relay protection device
By combining an automated testing platform with RTDS real-time simulation equipment, automated RTDS real-time simulation testing of relay protection devices has been realized, solving the problems of low testing efficiency and incomplete data recording in existing technologies, and improving the efficiency and accuracy of the testing system.
Patent Information
- Application Number
- CN202511098452.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-06
- Publication Date
- 2025-11-07
AI Technical Summary
In existing technologies, real-time simulation testing of relay protection devices relies on manual operation, which is inefficient, has incomplete test coverage, and cannot automatically verify protection event transmission messages and obtain fault waveform files, resulting in high test complexity and high cost.
An RTDS real-time simulation test system and method are provided, including an automated test platform, an RTDS real-time simulation device and a communication protocol engine module. The automated platform establishes a communication connection with the device, applies electrical fault signals, verifies the operation of protection outputs, and automatically generates test reports.
It has achieved automated testing, reduced testing complexity and labor costs, improved testing efficiency, can completely record test data, simplified operation processes, and improved the flexibility and accuracy of the testing system.
Smart Images

Figure CN120908571A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of relay protection test of power equipment, and particularly relates to an RTDS real-time simulation test system and method for a relay protection device. BACKGROUND
[0002] With the rapid development of power systems, the complexity of power grid structure is changing, and higher requirements are put forward for the reliability of relay protection devices, and the test coverage needs to be improved to meet the test requirements. RTDS (Real Time Digital Simulation) is a device specially designed for studying electromagnetic transient phenomena in power systems, and is widely used in electrical equipment simulation experiments, especially in relay protection device calibration tests. It is an important test tool for studying and analyzing the characteristics of power systems and conducting closed-loop tests on relay protection.
[0003] The RTDS real-time simulation process of the relay protection device can form thousands of test cases according to the combination of different test items such as system operating state, fault point position and fault type. The repeatability and complexity of the test are very high, and the amount of test result data is huge. Relying on manual testing and report sorting is time-consuming and laborious, and the efficiency is low. It is urgent to realize the automation of the RTDS real-time simulation test of the relay protection device to save time and improve test efficiency.
[0004] Currently, the RTDS real-time simulation of the relay protection device adopts a manual testing method. The protection panel and protection setting value of the relay protection device to be tested need to be manually input for each test item. Meanwhile, the parameter setting of the RTDS real-time simulation device is complex, the number of test cases is huge, each test item needs to be manually loaded, the test result data is scattered, and the problems of missed test, wrong test and incomplete test coverage are prone to occur. The workload of test report sorting is large. In addition, the protection event message cannot be verified during the test process, and the fault recording file relies on a special recording device for storage, and the actual generated recording file of the device cannot be obtained. SUMMARY
[0005] The present application aims to solve at least one of the technical problems in the background art, and provides an RTDS real-time simulation test system and method for a relay protection device.
[0006] To achieve the above-mentioned purpose, the present application provides an RTDS real-time simulation test system for a relay protection device, comprising: an automatic test platform and an RTDS real-time simulation device. The analog output interface of the RTDS real-time simulation device is connected to the analog input terminal of the relay protection device to be tested, the switch input interface of the RTDS real-time simulation device is connected to the switch output terminal of the relay protection device to be tested, and the switch output interface of the RTDS real-time simulation device is connected to the switch input terminal of the relay protection device to be tested. The automatic test platform drives the RTDS real-time simulation device to apply an electrical fault signal to the relay protection device to be tested, and verifies the protection outlet action of the relay protection device to be tested. The automatic test platform sends a pressboard on-off and setting value setting command to the relay protection device to be tested, reads the protection event uploading message and fault recording file of the relay protection device to be tested, analyzes the protection outlet action, judges the result, and writes the test report.
[0007] According to an aspect of the present application, the automatic test platform comprises: a test template editing module for making a test case; a communication protocol engine module for establishing a communication point table for the relay protection device to be tested, and the automatic test platform establishes a communication connection with the relay protection device to be tested through the communication protocol engine module; an RTDS driving module, and the automatic test platform establishes a communication connection with the RTDS real-time simulation device through the RTDS driving module.
[0008] According to an aspect of the present application, the test report records the test case, the result value of the test case, and the test conclusion, the result value of the test case comprises protection outlet action verification and protection event uploading message verification, and the test conclusion comprises whether the test result is qualified.
[0009] To achieve the above object, the present application further provides an RTDS real-time simulation test method for a relay protection device, comprising: modeling the relay protection device to be tested, and generating a communication point table for the relay protection device to be tested; making a test case according to the type of the relay protection device to be tested and the communication point table; according to the test case, the automatic test platform sends a pressboard on-off and setting value modification command to the relay protection device to be tested, so that the relay protection device to be tested meets the test state requirement; according to the test case, the automatic test platform sends an electrical fault parameter command to the RTDS real-time simulation device, and according to the electrical fault parameter, the RTDS real-time simulation device applies an electrical fault to the relay protection device to be tested, and verifies the protection outlet action of the relay protection device to be tested; the automatic test platform acquires the outlet action of the relay protection device to be tested, and completes the protection outlet action verification; The automatic test platform obtains the protection event uploading message of the relay protection device to be tested, and completes protection event uploading message verification. The automatic test platform generates a test report according to the protection outlet action verification and the protection event uploading message verification. The automatic test platform obtains the fault recording file of the relay protection device to be tested, saves the fault recording file to the local, and records the path and file name of the fault recording file in the test report.
[0010] According to one aspect of the present application, the automatic test platform sends electrical fault parameter instructions to the RTDS real-time simulation device, including system operation state, fault type, fault location, and fault duration.
[0011] According to one aspect of the present application, the protection outlet action verification includes: The RTDS real-time simulation device outputs a result file in an EXCEL file format after executing each test case, and the automatic test platform parses the result file output by the RTDS real-time simulation device to obtain the outlet name and outlet action, wherein the outlet action includes non-action and specific action time, and according to the expected result of the test case, it is judged whether the protection outlet action is qualified.
[0012] According to one aspect of the present application, the protection event uploading message verification includes: The automatic test platform obtains the protection event uploading message, extracts the event name, event state, event timestamp, and fault parameter according to the expected result of the test case, judges whether the protection event uploading is qualified, saves the obtained event message in an xml text format, saves to the local, and records the file path and file name in the test report.
[0013] According to one aspect of the present application, the fault recording file of the relay protection device to be tested is obtained by the following specific operation: After executing each test item in the test case, the automatic test platform performs file operation to obtain the latest generated fault recording file under the COMTRADE folder of the relay protection device to be tested, saves the fault recording file to the local, and records the path and file name of the fault recording file in the test report.
[0014] To achieve the above purpose, the present application further provides an electronic device, which comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program is executed by the processor to implement the RTDS real-time simulation test method for relay protection device as described above.
[0015] To achieve the above object, the application further provides a computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the RTDS real-time simulation test method for a relay protection device.
[0016] According to the scheme of the application, the application provides an RTDS real-time simulation test system and method for a relay protection device.
[0017] In the application, after the test is started, the test data is automatically filled and the result is judged, and a test report is automatically generated after the test is completed, replacing the manual processing of test report data, improving the utilization rate and flexibility of the test system. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 A structural block diagram of an RTDS real-time simulation test system for a relay protection device according to an embodiment of the application is schematically shown; Figure 2 A flowchart of an RTDS real-time simulation test method for a relay protection device according to an embodiment of the application is schematically shown. DETAILED DESCRIPTION
[0019] The content of the application will now be discussed with reference to exemplary embodiments. It should be understood that the discussed embodiments are only for better understanding and thus realizing the content of the application by those of ordinary skill in the art, rather than implying any limitation on the scope of the application.
[0020] As used herein, the term "comprising" and variations thereof are to be construed as meaning "including but not limited to". The term "based on" is to be construed as "based at least in part on". The terms "one embodiment" and "an embodiment" are to be construed as "at least one embodiment".
[0021] Figure 1 A structural block diagram of an RTDS real-time simulation test system for a relay protection device according to an embodiment of the application is schematically shown. As Figure 1As shown, in the embodiment, the RTDS real-time simulation test system for the relay protection device comprises an automatic test platform and an RTDS real-time simulation device. The automatic test platform is internally provided with an RTDS driving module, through which the RTDS real-time simulation device is controlled to apply an electrical fault to the relay protection device to be tested, and an RTDS result output file of the relay protection device to be tested is generated. The automatic test platform is internally further provided with a communication protocol engine module, through which data communication is performed between the automatic test platform and the relay protection device to be tested through IEC61850 protocol, and a protection event sending message and a fault recording file are read. The automatic test platform is internally further provided with a test template editing module, which is used for designing and editing a test case. The automatic test platform is internally further provided with an automatic test main module, which is used for executing a test task and outputting a final test report.
[0022] In the embodiment, the RTDS real-time simulation device is composed of a real-time simulation software platform and a real-time simulation hardware platform, wherein: The real-time simulation software platform comprises mainly RSCAD software, i.e., a graphical user interface, which is used for building a system simulation model, setting or modifying system parameters in simulation, acquiring system data, and analyzing simulation results.
[0023] The real-time simulation hardware platform comprises a digital and analog input and output module and a power amplifier module. Figure 1 In the embodiment, the switch input interface and the switch output interface of the RTDS real-time simulation device belong to the digital and analog input and output module, and the analog output interface belongs to the power amplifier module.
[0024] In the embodiment, the interaction between the automatic test platform and the RTDS real-time simulation device is realized by controlling the real-time simulation software platform (RSCAD software) through the RTDS driving module built in the automatic test platform.
[0025] Further, according to an embodiment of the present application, the automatic test platform, the RTDS real-time simulation device and the relay protection device to be tested are connected to the networking switch through a twisted pair, so as to realize the communication connection and data transmission among the devices. The twisted pair is low in cost and easy to obtain, and the use of the twisted pair as the data transmission medium under the premise of meeting the signal transmission condition can effectively reduce the communication cost. The analog output interface of the RTDS real-time simulation device is connected to the analog input terminal of the relay protection device to be tested, and the analog output interface functions to output analog quantity to the relay protection device to be tested according to the set test parameters. The analog quantity includes voltage and current. The switch input interface is connected to the switch output terminal of the relay protection device to be tested, and the switch input interface functions to receive the protection outlet action. The switch output interface is connected to the switch input terminal of the relay protection device to be tested, and the switch output interface functions to output DC excitation to the switch input of the relay protection device to be tested according to the set test parameters. The DC excitation type is generally 110VDC or 220VDC.
[0026] Further, according to an embodiment of the present application, the automatic test platform generates test cases according to the dynamic mode test requirements of the power system relay protection product. According to the test cases, the automatic test platform issues the pressboard switching and setting value setting instructions to the relay protection device to be tested, and issues the test parameter instructions to the RTDS real-time simulation device. The automatic test platform verifies the protection outlet action and the protection event uploading message, and generates a test report.
[0027] In the embodiment, the test cases are generated through the test template editing module. The test cases have the characteristics of reusability and effectiveness. According to the open design of the RTDS real-time simulation test system for the relay protection device, the test cases are generated according to the type of the relay protection device to be tested. The relay protection device includes line protection, transformer protection, reactor protection, bus protection, generator-transformer protection and the like. The test cases have strong extensibility.
[0028] The test cases include a plurality of test files in XML format, and each test file corresponds to a test item, such as in-zone metallic fault, out-zone metallic fault, developing and converting fault and the like. The test file includes the pressboard switching and setting value setting instructions, the electrical fault parameter issuing instructions, the protection outlet action verification logic, the protection event uploading message verification logic and the fault recording reading instructions. The automatic test main module reads and writes the test cases, and displays the test case content on the specified interface of the PC for viewing and modification.
[0029] In this implementation, the test report is automatically generated by the program and is in Word format. The test report records test cases, test case result values, and test conclusions. Test case result values include verification of protection exit actions and verification of protection event transmission messages. Test conclusions are automatically entered into the report after each test item is completed during the actual testing process, including whether the test result is qualified or unqualified. Unqualified test cases are highlighted in red on a designated interface on the PC for troubleshooting.
[0030] The test report in this invention can be customized according to user needs, has good scalability, and automatically writes and saves test data and results after each test project is completed, effectively reducing test complexity and labor costs and improving test efficiency.
[0031] Furthermore, to achieve the above objectives, the present invention also provides an RTDS real-time simulation test method for relay protection devices, such as... Figure 2 As shown, the specific steps include: Step S101: Set up the test environment by connecting the automatic test platform, RTDS real-time simulation equipment, and the relay protection device under test to the same switch; the automatic test platform configures the IEC61850 communication parameters through the communication protocol engine module and establishes a communication connection with the relay protection device under test. Step S102: Model the relay protection device under test and generate a communication point table for the relay protection device under test; the communication point table is read online and automatically generated by the communication protocol engine module; Step S103: Create test cases according to the type of relay protection device under test and the communication point table. The test cases include multiple test files in XML format, each corresponding to a test item, such as: metallic fault within the zone, metallic fault outside the zone, developing and transitional faults, etc. The test files include: pressure plate activation / deactivation and setting instructions, electrical fault parameter issuance instructions, protection output operation verification logic, protection event transmission verification logic, and fault waveform reading instructions; Step S104: Start the test. According to the test instructions, the communication protocol engine module performs pressure plate activation / deactivation and setting value modification operations on the relay protection device under test to make the relay protection device under test meet the test status requirements. Step S105: According to the test instruction, the RTDS drive module issues test parameters to the RTDS real-time simulation device. According to the test parameters, the RTDS real-time simulation device applies electrical fault quantities to the relay protection device to be tested to verify the protection outlet action of the relay protection device to be tested. Different test items correspond to different test parameters; test item examples: line protection device in-zone metallic instantaneous short-circuit fault, simulate K2, K3, K4 points in the protection zone Various metallic instantaneous short-circuit faults, fault types include single-phase grounding, two-phase short-circuit grounding, two-phase inter-phase short-circuit, three-phase short-circuit (distance measurement test condition is single power line end fault); Step S106: Protection outlet action verification, the specific operation is as follows: The RTDS real-time simulation device receives the protection outlet action of the relay protection device to be tested. The RTDS drive module generates a corresponding RTDS result output file in EXCEL file format. The automatic test main module parses the RTDS result output file to obtain the protection outlet name and protection outlet action. The protection outlet action includes: no action, specific action time (unit: ms), outlet name examples: local side jump A, local side jump B, local side jump C, opposite side jump A, opposite side jump B, opposite side jump C, outlet time examples: 21 ms, 25 ms, 23 ms, no action. According to the expected result of the test case, it is judged whether the protection outlet action is qualified; Step S107: Protection event upload message verification, the specific operation is as follows: After each test item is executed, the protection event upload message of the relay protection device to be tested is obtained through the communication protocol engine module. The automatic test main module parses the protection event upload message to extract event name, event state, event timestamp, fault parameter and other information. According to the expected result of the test case, it is judged whether the protection event upload message is qualified. At the same time, the event message obtained is saved in.xml text format and saved in the local folder (PC machine where the automatic test platform is located). The file path and file name are recorded in the test report. The file name format is: fault type + generation time (year, month, day, hour, minute, second), such as K2AN_20250215_103125.xml, for problem analysis; Step S108: Device fault recording reading, the specific operation is as follows: After each test item is executed, the file operation is performed through the communication protocol engine module to obtain the latest generated recording file under the relay protection device / COMTRADE folder. The COMTRADE file type includes the following five types:.hdr,.dat,.cfg,.mid,.des. The recording file is saved in the local folder (PC machine where the automatic test platform is located), and the file path and file name are recorded in the test report for problem analysis; Step S109: write the test data, the protection export action condition verification result and the protection event uploading message verification result into the test report; Step S110: judge whether it is the last test case, and execute the above steps S104 to S109 in a loop until all test cases are executed, and a test report (in word format) is generated, which is saved directly in the local (the PC where the automatic test platform is located) for the test personnel to review.
[0032] According to the above scheme of the present application, after the start test button is clicked, the test case can be automatically loaded, and the instructions are executed in sequence, so that one-key operation is realized, and the user experience is improved. The test process is effectively simplified, the test time is shortened, the test efficiency is improved, and the present application has a strong practical value.
[0033] Compared with the prior art, the present application does not depend on the fault recorder, effectively reduces the cost and period of test environment construction, and can obtain the fault recording file generated by the device, which is convenient for problem analysis. In addition, the present application can also verify the protection event uploading message, the test record data is complete, and the test result is accurate.
[0034] At present, the test system and the test method of the present application have been successfully applied to the verification work of the RTDS real-time simulation test of the relay protection device, can fully test the action performance of the relay protection device in various operating conditions and fault states, effectively improve the test efficiency and reduce the labor cost, and has very important reference significance for improving the operation reliability and safety of the intelligent substation.
[0035] Further, in order to achieve the above purpose, the present application also provides an electronic device, which comprises a processor, a memory and a computer program stored on the memory and executable on the processor, and the computer program is executed by the processor to realize the RTDS real-time simulation test method for the relay protection device as described above.
[0036] Further, in order to achieve the above purpose, the present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by the processor to realize the RTDS real-time simulation test method for the relay protection device as described above.
[0037] Those skilled in the art can realize that the modules and algorithm steps described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software mode depends on the specific application and design constraints of the technical scheme. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0038] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described apparatus and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0039] In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other ways. For example, the apparatus embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed modules can be indirect coupling or communication connection through some interfaces, devices or modules, and can be electrical, mechanical or other forms.
[0040] The modules described as separate components can or can not be physically separate, and the components shown as modules can or can not be physical modules, i.e., can be located in one place, or can be distributed to a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0041] In addition, each functional module in the embodiments of the present application can be integrated into a processing module, or each module can exist physically independently, or two or more modules can be integrated into one module.
[0042] If the functions are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part of the present application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method for transmitting / receiving of the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various program code storage media.
[0043] The above description is merely that of the preferred embodiments of the application and of the principles thereof. It will be appreciated that those skilled in the art will be able to devise numerous alternative arrangements based on the principles described herein without departing from the scope of the application as defined by the appended claims, and their equivalents. For example, the features recited in the specification of the application but not in the claims of the application, or in the claims of the application but not in the specification, can be combined with features of the claims of the application or of the specification of the application, respectively, to form alternative embodiments of the application.
[0044] It should be understood that the sequence numbers of the steps in the summary and the embodiments of the application do not absolutely represent the order of execution, and the execution order of the processes should be determined according to their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the application.
Claims
1. An RTDS real-time simulation test system for a protective relay, characterized in that, The application relates to an automatic test platform and an RTDS real-time simulation device. An analog output interface of the RTDS real-time simulation device is connected with an analog input terminal of a relay protection device to be tested, a switching value input interface of the RTDS real-time simulation device is connected with an output terminal of the relay protection device to be tested, and a switching value output interface of the RTDS real-time simulation device is connected with an input terminal of the relay protection device to be tested. The automatic test platform drives the RTDS real-time simulation device to apply an electrical fault signal to the relay protection device to be tested, and verifies the protection outlet action of the relay protection device to be tested. The automatic test platform sends a pressboard on-off command and a setting value modification command to the relay protection device to be tested, reads a protection event uploading message and a fault recording file of the relay protection device to be tested, analyzes the protection outlet action, judges the result and writes a test report. The automatic test platform comprises:
2. The RTDS real-time simulation test system for a protective relay according to claim 1, wherein, an automatic test main module which executes a test task and outputs a final test report; a test template editing module which makes a test case; a communication protocol engine module which establishes a communication point table for the relay protection device to be tested; the automatic test platform establishes a communication connection with the relay protection device to be tested through the communication protocol engine module; an RTDS driving module which establishes a communication connection between the automatic test platform and the RTDS real-time simulation device. The test report records a test case, a result value of the test case and a test conclusion, the result value of the test case comprises protection outlet action verification and protection event uploading message verification, and the test conclusion comprises whether the test result is qualified.
3. The RTDS real-time simulation test system for a protective relay according to claim 1 or 2, wherein, The application relates to an automatic test platform and an RTDS real-time simulation device.
4. A method for RTDS real-time simulation testing of a protective relay, characterized in that, The application relates to an automatic test platform and an RTDS real-time simulation device. According to the test case, the automatic test platform sends a pressboard on-off command and a setting value modification command to the relay protection device to be tested, so that the relay protection device to be tested meets the test state requirement. According to the test case, the automatic test platform sends an electrical fault parameter instruction to the RTDS real-time simulation device, the RTDS real-time simulation device applies an electrical fault to the relay protection device to be tested according to the electrical fault parameter, and the protection outlet action of the relay protection device to be tested is verified. The automatic test platform obtains the outlet action of the relay protection device to be tested, and completes the protection outlet action verification. The automatic test platform obtains the protection event uploading message of the relay protection device to be tested, and completes the protection event uploading message verification. The automatic test platform generates a test report according to the protection outlet action verification and the protection event uploading message verification. The automatic test platform obtains a fault recording file of the relay protection device to be tested, saves the fault recording file to a local place, and records a fault recording file path and a file name in the test report. The automatic test platform sends an electrical fault parameter instruction to the RTDS real-time simulation device, and the electrical fault parameter instruction comprises a system running state, a fault type, a fault position and a fault duration. The protection outlet action verification comprises:
5. The RTDS real-time simulation test method for a relay protection device according to claim 4, characterized in that, 6. The RTDS real-time simulation test method for a relay protection device according to claim 4, characterized in that, The RTDS real-time simulation device outputs a result file in an EXCEL file format for each executed test case, the automatic test platform parses the result file output by the RTDS real-time simulation device, acquires an outlet name and an outlet action condition, the outlet action condition includes: no action, a specific action time, and according to an expected result of the test case, whether the protection outlet action condition is qualified is judged.
7. The RTDS real-time simulation testing method for a protective relay device according to claim 4, wherein, The protection event uploading message verification includes: The automatic test platform acquires the protection event uploading message, extracts an event name, an event state, an event time tag and fault parameters for each executed test case, according to an expected result of the test case, whether the protection event uploading is qualified is judged, the acquired event message is saved in an xml text format and saved to the local, and a file path and a file name are recorded in a test report.
8. The RTDS real-time simulation test method for a relay protection device according to any one of claims 4-7, characterized in that, The specific operation of acquiring the fault recording file of the to-be-tested relay protection device is as follows: After each test item in the test case is executed, the automatic test platform performs file operation, acquires the latest generated fault recording file under the to-be-tested relay protection device / COMTRADE folder, saves the fault recording file to the local, and records a fault recording file path and a file name in a test report.
9. An electronic device, characterized by The computer program is stored on the computer readable storage medium and is executed by the processor to implement the RTDS real-time simulation test method for the relay protection device.
10. A computer readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium and is executed by the processor to implement the RTDS real-time simulation test method for the relay protection device.