Disclosure of Invention
In order to solve the problems, the invention provides a relay protection automatic test method, Device and system based on wave recording file playback, which can quickly generate wave recording file playback test configuration and automatically complete a test according to example information of Intelligent Electronic Devices (IEDs) to be tested, reduce manual operation steps and improve test efficiency.
The technical purpose is achieved, the technical effect is achieved, and the invention is realized through the following technical scheme:
in a first aspect, the present invention provides an automatic relay protection testing method based on wave recording file playback, including:
acquiring an automatic test template corresponding to the IED to be tested and used for replaying the wave recording file;
acquiring an SCD or CID file of the IED to be tested, and mapping related channels in the wave recording file to corresponding channels of the IED to be tested by combining the mapping relation in the automatic test template based on the example information of the IED to be tested;
generating playback data;
outputting test data to the IED to be tested based on the playback data and the time information thereof, and collecting the response of the IED to be tested, wherein the state of the IED to be tested is set according to the automatic test template;
and judging whether the response of the IED to be tested accords with the expected setting, and finishing the automatic relay protection test based on the playback of the recording file.
Preferably, the automatic test template comprises:
(1) mapping relation of voltage and current channels in the wave recording file; for the analog quantity input voltage and current of the IED to be tested, mapping the voltage and current channels in the wave recording file to the analog quantity input channel of the IED to be tested; for digital quantity input voltage and current of the IED, mapping voltage and current channels in a wave recording file to an internal SV channel of the IED to be tested;
(2) mapping relation of switching value channels in the wave recording file; for the hard contact input quantity and output quantity of the IED to be tested, mapping a switching quantity channel in the wave recording file to a hard contact input quantity channel and an output quantity channel of the IED to be tested; mapping a switching value channel in the recording file to an internal GOOSE channel of the IED to be tested according to the GOOSE input quantity and the GOOSE output quantity of the IED to be tested;
(3) the incidence relation between the switching value in the recording file and the protection event remote communication quantity;
(4) protecting the starting remote communication quantity to be used as a time reference point;
(5) and the soft pressure plate and the protection fixed value of the IED which needs to be operated in the test process are used for setting the state of the IED to be tested.
Preferably, the playback data includes an analog quantity, an SV packet, a hard-wired switch quantity, and a GOOSE packet, and the specific generation process of generating the playback data is as follows:
for analog quantity output, carrying out interpolation calculation on analog quantity data in a wave recording file according to sampling frequency, voltage and current data of the wave recording file to obtain an analog quantity sampling value sequence with time information and frequency as a set value;
for SV message output, performing interpolation calculation on SV message data of the wave recording file according to sampling frequency, voltage and current data of the wave recording file and frequency parameters of an SV control block, calculating a value of an SV channel, and generating an SV message sequence with time information meeting the frequency requirement of the SV control block;
for the output of the hard contact output quantity, generating a hard contact output quantity sequence with time information according to the hard contact output quantity data of the wave recording file;
and for GOOSE message output, generating a GOOSE message sequence with time information according to the GOOSE switching value data of the wave recording file.
Preferably, the outputting test data to the IED to be tested based on the playback data and the time information thereof and collecting a response of the IED to be tested specifically include:
according to the playback data and the time information thereof, outputting an analog quantity, an SV message, a hard contact switching quantity and a GOOSE message to the IED to be tested, and simultaneously recording the hard contact switching quantity, the GOOSE switching quantity and an MMS report output by the IED to be tested; the MMS report comprises a protection starting remote signaling amount report and a protection event remote signaling amount report.
Preferably, the determining whether the response of the IED to be tested conforms to an expected setting specifically includes:
judging one, comparing the recorded hard contact switching value and GOOSE switching value output by the IED to be tested with data corresponding to a switching value channel in a wave recording file mapped by the recorded hard contact switching value and GOOSE switching value, if the action behaviors are consistent and the action time difference is smaller than a set threshold, judging that the test result of the part is qualified, otherwise, judging that the test result of the part is unqualified;
judging whether the absolute report time of a protection starting remote signaling quantity report output by the IED to be tested is used as a time reference zero point, calculating the relative report time of the protection event remote signaling quantity report, comparing the relative report time with the action time of a switching value channel in a wave recording file mapped by the protection event remote signaling quantity, and if the time difference is smaller than a set threshold value, judging that the test result of the part is qualified, otherwise, judging that the test result of the part is unqualified;
and when the judgment results of the first judgment result and the second judgment result are qualified, judging that the response of the IED to be tested is in accordance with the expected setting, otherwise, judging that the response of the IED to be tested is not in accordance with the expected setting.
Preferably, the set threshold is 5 ms.
In a second aspect, the present invention provides an automatic relay protection testing apparatus based on wave recording file playback, including:
the automatic test template acquisition module is used for acquiring an automatic test template which corresponds to the IED to be tested and is used for replaying the recording file;
the channel mapping module is used for acquiring an SCD (substation configuration description) or CID (terminal identification) file of the IED to be tested, and mapping related channels in the wave recording file to corresponding channels of the IED to be tested by combining the mapping relation in the automatic test template based on the example information of the IED to be tested;
the playback data generation module is used for generating playback data;
the response acquisition module of the IED to be tested is used for outputting test data to the IED to be tested based on the playback data and the time information thereof and acquiring the response of the IED to be tested, wherein the state of the IED to be tested is set according to the automatic test template;
and the response judgment module is used for judging whether the response of the IED to be tested accords with the expected setting or not and finishing the automatic relay protection test based on the playback of the recording file.
Preferably, the automatic test template comprises:
(1) mapping relation of voltage and current channels in the wave recording file; for the analog quantity input voltage and current of the IED to be tested, mapping the voltage and current channels in the wave recording file to the analog quantity input channel of the IED to be tested; for digital quantity input voltage and current of the IED, mapping voltage and current channels in a wave recording file to an internal SV channel of the IED to be tested;
(2) mapping relation of switching value channels in the wave recording file; for the hard contact input quantity and output quantity of the IED to be tested, mapping a switching quantity channel in the wave recording file to a hard contact input quantity channel and an output quantity channel of the IED to be tested; mapping a switching value channel in the recording file to an internal GOOSE channel of the IED to be tested according to the GOOSE input quantity and the GOOSE output quantity of the IED to be tested;
(3) the incidence relation between the switching value in the recording file and the protection event remote communication quantity;
(4) protecting the starting remote communication quantity to be used as a time reference point;
(5) soft-pressing and protection settings of the IED that need to be operated during the test.
Preferably, the playback data includes an analog quantity, an SV packet, a hard-wired switch quantity, and a GOOSE packet, and the specific process of generating the playback data by the playback data generation module is as follows:
for analog quantity output, carrying out interpolation calculation on analog quantity data in a wave recording file according to sampling frequency, voltage and current data of the wave recording file to obtain an analog quantity sampling value sequence with time information and frequency as a set value;
for SV message output, performing interpolation calculation on SV message data of the wave recording file according to sampling frequency, voltage and current data of the wave recording file and frequency parameters of an SV control block, calculating a value of an SV channel, and generating an SV message sequence with time information meeting the frequency requirement of the SV control block;
for the output of the hard contact output quantity, generating a hard contact output quantity sequence with time information according to the hard contact output quantity data of the wave recording file;
and for GOOSE message output, generating a GOOSE message sequence with time information according to the GOOSE switching value data of the wave recording file.
In a third aspect, the present invention provides an automatic relay protection testing system based on wave recording file playback, including:
a processor adapted to implement various instructions;
a storage device adapted to store a plurality of instructions adapted to be loaded by a processor and to perform any of the steps of the first aspect.
Compared with the prior art, the invention has the beneficial effects that:
according to the automatic relay protection testing method, device and system based on wave recording file playback, a user only needs to import an SCD file or a CID file and select an IED to be tested, and other work is automatically completed by a testing system without manual participation; the method can realize playback test of the same type of recording files of the same type IED, and can be repeatedly used only by editing the automatic test template once.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of the principles of the invention is provided in connection with the accompanying drawings.
Example 1
In the embodiment of the present invention, an automatic relay protection testing method based on wave recording file playback is provided, as shown in fig. 1, including the following steps:
acquiring an automatic test template corresponding to the IED to be tested and used for replaying the wave recording file;
in an embodiment of the present invention, the method for editing the wave recording file playback automatic test template according to the ICD file and the specification of the IED to be tested specifically includes the following steps:
(1) mapping voltage and current channels in the wave recording file; for the analog quantity input voltage and current of the IED to be tested, mapping the voltage and current channels in the wave recording file to the analog quantity input channel of the IED to be tested; for digital quantity input voltage and current of the IED to be tested, mapping voltage and current channels in the wave recording file to an internal SV channel of the IED to be tested;
(2) mapping a switching value channel in a wave recording file; for the hard contact input quantity and output quantity of the IED to be tested, mapping a switching quantity channel in the wave recording file to a hard contact input quantity channel and a hard contact output quantity channel; mapping a switching value channel in the recording file to an internal GOOSE channel of the IED to be tested according to the GOOSE input quantity and the GOOSE output quantity of the IED to be tested;
(3) the correlation relationship between the switching value in the wave recording file and the protection event remote signaling quantity is used for correlating the protection event remote signaling quantity to the switching value in the wave recording file;
(4) setting protection starting remote communication quantity as a time reference point;
(5) and setting a soft pressure plate and a protection fixed value of the IED to be operated in the test process, wherein the soft pressure plate and the protection fixed value are used for setting the state of the IED to be tested, namely setting the working condition of protection.
Acquiring an SCD or CID file of the IED to be tested, and mapping related channels in the wave recording file to corresponding channels of the IED to be tested by combining the mapping relation in the automatic test template based on the example information of the IED to be tested; in a preferred implementation manner of the embodiment of the present invention, the following are specifically performed:
acquiring an SCD (substation configuration description) or CID (terminal identification) file of the IED to be tested, analyzing instance information of the IED to be tested, and mapping voltage, current and switching value channels in the wave recording file to corresponding SV (sampled value) channels or GOOSE (generic object oriented substation event) channels according to the association information of the external virtual terminal and the internal virtual terminal in the instance information and the mapping relation in the automatic test template;
taking south rey relay protection PCS-931D as an example, the mapping relationship between the internal SV channel in the automatic test template and the voltage/current channel in the recording file is shown in table 1.
TABLE 1 mapping relationships in PCS-931D automatic test templates
Internal SV channel name
|
Internal SV channel path
|
Channel number in recording file
|
Protecting A-phase voltage
|
SVLD1/SVINUATVTR1.Vol
|
1
|
Protecting phase-B voltage
|
SVLD1/SVINUBTVTR1.Vol
|
2
|
Protecting C-phase voltage
|
SVLD1/SVINUCTVTR1.Vol
|
3
|
Protection of phase a current
|
SVLD1/SVINA1TCTR1.Amp
|
5
|
Protecting phase B current
|
SVLD1/SVINB1TCTR1.Amp
|
6
|
Protecting C-phase current
|
SVLD1/SVINC1TCTR1.Amp
|
7
|
Protection of contemporaneous voltage
|
SVLD1/SVINUXTVTR1.Vol
|
4 |
The association information of the external SV channel and the internal SV channel in the IED instance information is shown in table 2, and the external SV channel is from the SV of the device ML 2201A.
Table 2 association information of external virtual terminals and internal virtual terminals in IED instance information
Internal SV channel name
|
Internal SV channel path
|
External SV channel path
|
Protecting A-phase voltage
|
SVLD1/SVINUATVTR1.Vol
|
ML2201AMU/TVTR2.Vol
|
Protecting phase-B voltage
|
SVLD1/SVINUBTVTR1.Vol
|
ML2201AMU/TVTR3.Vol
|
Protecting C-phase voltage
|
SVLD1/SVINUCTVTR1.Vol
|
ML2201AMU/TVTR4.Vol
|
Protection of phase a current
|
SVLD1/SVINA1TCTR1.Amp
|
ML2201AMU/TCTR1.Amp
|
Protecting phase B current
|
SVLD1/SVINB1TCTR1.Amp
|
ML2201AMU/TCTR2.Amp
|
Protecting C-phase current
|
SVLD1/SVINC1TCTR1.Amp
|
ML2201AMU/TCTR3.Amp
|
Protection of contemporaneous voltage
|
SVLD1/SVINUXTVTR1.Vol
|
ML2201AMU/TVTR8.Vol |
And combining the table 1 and the table 2 to generate the mapping relation between the voltage/current channel and the SV channel in the wave recording file.
Generating playback data; in an embodiment of the present invention, the playback data includes an analog quantity, an SV packet, a hard-wired switch quantity, and a GOOSE packet, and the specific process of generating the playback data is as follows:
for analog quantity output, carrying out interpolation calculation on analog quantity data in a wave recording file according to sampling frequency, voltage and current data of the wave recording file to obtain an analog quantity sampling value sequence with time information and frequency as a set value;
for SV message output, performing interpolation calculation on SV message data of the wave recording file according to sampling frequency, voltage and current data of the wave recording file and frequency parameters of an SV control block, calculating a value of an SV channel, and generating an SV message sequence with time information meeting the frequency requirement of the SV control block;
for the output of the hard contact output quantity, generating a hard contact output quantity sequence with time information according to the hard contact output quantity data of the wave recording file;
and for GOOSE message output, generating a GOOSE message sequence with time information according to the GOOSE switching value data of the wave recording file.
Setting a soft pressure plate and a protection constant value of the IED according to the automatic test template;
still taking PCS-931D as an example, the wave recording file in the automatic test template is used to test the distance protection whole set of functions of PCS-931D, the differential soft pressing plate is set to 1, the reclosing soft pressing plate is set to 0, the distance protection function constant value is set to 1, the zero sequence protection function constant value is set to 0, the line positive sequence impedance constant value is set to 10 Ω, and the distance protection impedance constant value is set to 7 Ω.
Outputting test data to the IED to be tested based on the playback data and the time information thereof, and collecting the response of the IED to be tested, wherein the state of the IED to be tested is set according to the automatic test template; in a preferred implementation manner of the embodiment of the present invention, the method specifically includes the following steps:
outputting an analog quantity, an SV Message, a hard contact switching quantity and a GOOSE Message to the IED to be tested according to the playback data and the time information thereof, and simultaneously recording the hard contact switching quantity, the GOOSE switching quantity and an MMS report (manipulating Message specification) output by the IED to be tested; the MMS report is a manufacturing message standard report, and comprises a protection starting remote signaling report and a protection event remote signaling report;
judging whether the response of the IED to be tested accords with the expected setting or not, and finishing the automatic relay protection test based on the playback of the recording file; in a preferred implementation manner of the embodiment of the present invention, the method specifically includes the following steps:
judging one, comparing the recorded hard contact switching value and GOOSE switching value output by the IED to be tested with data corresponding to a switching value channel in a wave recording file mapped by the recorded hard contact switching value and GOOSE switching value, if the action behaviors are consistent and the action time difference is smaller than a set threshold, judging that the test result of the part is qualified, otherwise, judging that the test result of the part is unqualified; wherein the set threshold is 5 ms;
judging whether the absolute report time of a protection starting remote signaling quantity report output by the IED to be tested is used as a time reference zero point, calculating the relative report time of the protection event remote signaling quantity report, comparing the relative report time with the action time of a switching value channel in a wave recording file mapped by the protection event remote signaling quantity, and if the time difference is smaller than a set threshold value, judging that the test result of the part is qualified, otherwise, judging that the test result of the part is unqualified; wherein the set threshold is 5 ms;
and when the judgment results of the first judgment result and the second judgment result are qualified, judging that the response of the IED to be tested is in accordance with the expected setting, otherwise, judging that the response of the IED to be tested is not in accordance with the expected setting.
Example 2
Based on the same inventive concept as embodiment 1, the embodiment of the present invention provides an automatic relay protection testing apparatus based on wave recording file playback, including:
the automatic test template acquisition module is used for acquiring an automatic test template which corresponds to the IED to be tested and is used for replaying the recording file;
the channel mapping module is used for acquiring an SCD (substation configuration description) or CID (terminal identification) file of the IED to be tested, and mapping related channels in the wave recording file to corresponding channels of the IED to be tested by combining the mapping relation in the automatic test template based on the example information of the IED to be tested;
the playback data generation module is used for generating playback data;
the response acquisition module of the IED to be tested is used for outputting test data to the IED to be tested based on the playback data and the time information thereof and acquiring the response of the IED to be tested, wherein the state of the IED to be tested is set according to the automatic test template;
and the response judgment module is used for judging whether the response of the IED to be tested accords with the expected setting or not and finishing the automatic relay protection test based on the playback of the recording file.
The automatic test template comprises:
(1) mapping relation of voltage and current channels in the wave recording file; for the analog quantity input voltage and current of the IED to be tested, mapping the voltage and current channels in the wave recording file to the analog quantity input channel of the IED to be tested; for digital quantity input voltage and current of the IED, mapping voltage and current channels in a wave recording file to an internal SV channel of the IED to be tested;
(2) mapping relation of switching value channels in the wave recording file; for the hard contact input quantity and output quantity of the IED to be tested, mapping a switching quantity channel in the wave recording file to a hard contact input quantity channel and an output quantity channel of the IED to be tested; mapping a switching value channel in the recording file to an internal GOOSE channel of the IED to be tested according to the GOOSE input quantity and the GOOSE output quantity of the IED to be tested;
(3) the incidence relation between the switching value in the recording file and the protection event remote communication quantity;
(4) protecting the starting remote communication quantity to be used as a time reference point;
(5) soft-pressing and protection settings of the IED that need to be operated during the test.
The playback data comprises analog quantity, SV messages, hard connection opening quantity and GOOSE messages, and the specific process of generating the playback data by the playback data generation module is as follows:
for analog quantity output, carrying out interpolation calculation on analog quantity data in a wave recording file according to sampling frequency, voltage and current data of the wave recording file to obtain an analog quantity sampling value sequence with time information and frequency as a set value;
for SV message output, performing interpolation calculation on SV message data of the wave recording file according to sampling frequency, voltage and current data of the wave recording file and frequency parameters of an SV control block, calculating a value of an SV channel, and generating an SV message sequence with time information meeting the frequency requirement of the SV control block;
for the output of the hard contact output, generating a hard contact output sequence with time information according to the hard contact switching value data of the wave recording file;
and for GOOSE message output, generating a GOOSE message sequence with time information according to the GOOSE switching value data of the wave recording file.
The rest of the process was the same as in example 1.
Example 3
Based on the same inventive concept as embodiment 1, the embodiment of the present invention provides an automatic relay protection test system based on wave recording file playback, including:
a processor adapted to implement various instructions;
a storage device adapted to store a plurality of instructions adapted to be loaded by a processor and to perform the steps of any of embodiment 1.
The rest of the process was the same as in example 1.
In summary, according to the automatic relay protection testing method and system based on wave recording file playback provided by the invention, a user only needs to import an SCD file or a CID file and select an IED to be tested, and other work is automatically completed by a testing system without manual participation; the method can realize playback test of the same type of recording files of the same type IED, and can be repeatedly used only by editing the automatic test template once.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.