CN111965587B - Automatic test method and automatic test platform for stability of electric energy meter - Google Patents

Automatic test method and automatic test platform for stability of electric energy meter Download PDF

Info

Publication number
CN111965587B
CN111965587B CN202010867605.6A CN202010867605A CN111965587B CN 111965587 B CN111965587 B CN 111965587B CN 202010867605 A CN202010867605 A CN 202010867605A CN 111965587 B CN111965587 B CN 111965587B
Authority
CN
China
Prior art keywords
electric energy
energy meter
relay
increment
load
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.)
Active
Application number
CN202010867605.6A
Other languages
Chinese (zh)
Other versions
CN111965587A (en
Inventor
钱亮
左勇
满翠芳
朱若兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Nanrui Zhongtian Electric Power Electronics Co ltd
Original Assignee
Anhui Nanrui Zhongtian Electric Power Electronics Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Anhui Nanrui Zhongtian Electric Power Electronics Co ltd filed Critical Anhui Nanrui Zhongtian Electric Power Electronics Co ltd
Priority to CN202010867605.6A priority Critical patent/CN111965587B/en
Publication of CN111965587A publication Critical patent/CN111965587A/en
Application granted granted Critical
Publication of CN111965587B publication Critical patent/CN111965587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Abstract

The invention discloses an automatic test method for stability of an electric energy meter and an automatic test platform thereof. The test method comprises the following steps: setting test parameters of an electric energy meter; driving the electric energy meter to be switched on; judging whether the state of the relay is correct, if so, recording the current active energy of the electric energy meter and recording the energy of the load; repeating the steps until the recorded total times of success and failure of the relay action reach an expected experiment time; calculating the action success rate of the relay, comparing the increment with a theoretical value, obtaining an electric quantity accumulated error, the first action times of the relay of the electric energy meter and the second action times of the relay of the electric energy meter, and generating a corresponding statistical view according to the calculation to show the stability performance of the electric energy meter. The invention has high flexibility and expandability, reduces manual misjudgment and repeated test work, is not tired, fully utilizes the off-duty time and improves the meter checking efficiency. In addition, the testing method can meet various testing requirements, expand testing range and improve testing precision.

Description

Automatic test method and automatic test platform for stability of electric energy meter
Technical Field
The invention relates to an automatic test method in the technical field of ammeter test, in particular to an automatic test method for the stability of an ammeter, and further relates to an automatic test platform for the stability of the ammeter.
Background
The electric energy quality is not only related to the safe and economic operation of the power grid, but also affects the normal operation of the electric load with the size. With the development of modern industrial technology, the power grid structure is becoming increasingly complex; meanwhile, many power sensitive devices are applied to production, and the requirements of the devices on the power quality are high, and new power quality problems are caused. It is very important to detect whether the ammeter works normally in various severe environments on site, traditional detection is carried out manually through manual testing, but the huge workload and some tests are impossible to realize, the test efficiency is low, and the test range is narrow.
Disclosure of Invention
The invention provides an automatic test method and an automatic test platform for the stability of an electric energy meter, which are used for solving the technical problems that partial test cannot be realized, the efficiency is low and the range is narrow in the existing electric meter test method.
The invention is realized by adopting the following technical scheme: an automatic test method for the stability of an electric energy meter comprises the following steps:
(1) Resetting an electric energy meter, and setting test parameters of the electric energy meter;
(2) Driving the electric energy meter to be switched on, and reading a state word of a relay of the electric energy meter;
(3) Judging whether the state of the relay is correct or not according to the state word of the relay;
when the state of the relay is correct, the current active energy of the electric energy meter and the load record electric energy are read and recorded;
(4) Sequentially repeating the step (2) and the step (3) until the recorded total times of success and failure of the relay action reach an expected experiment time;
(5) Calculating the action success rate of the relay according to the switching-off successful action times, switching-on successful action times and the experiment total times of the relay;
analyzing and calculating the total electric energy increment of the electric energy meter, and comparing the total electric energy increment with a total electric quantity theoretical increment to obtain an electric quantity accumulated error;
analyzing and calculating a single electric quantity increment of the electric energy meter, and comparing the single electric quantity increment with an electric quantity single increment of an actual electric energy meter to obtain first action times of an electric energy meter relay which affects the metering of the electric energy meter;
analyzing and calculating the total increment of the load record electric quantity of the electric energy meter, and comparing the total increment of the load record electric quantity with the total increment of the electric quantity of an actual electric energy meter to determine the experiment first time that the single increment is inconsistent with the actual increment, thereby obtaining the second action times of the electric energy meter relay which affects the freezing of the load record of the electric energy meter;
(6) And generating a corresponding statistical view to show the stability of the electric energy meter according to the action success rate, the electric quantity accumulated error, the action times of the electric energy meter relay, the first action times of the electric energy meter relay and the second action times of the electric energy meter relay.
According to the invention, test parameters are set firstly, then switching on is carried out, whether the state of the relay is correct is judged, the current active energy and the load record energy are obtained, the steps are repeated until the total number of relay actions reaches the expected experiment number, then the action success rate is calculated according to the switching-on and switching-off successful action number and the experiment total number of the relay, the theoretical increment of the total electric quantity is compared with the theoretical increment of the total electric quantity to obtain the electric quantity accumulated error, the single electric quantity increment is compared with the actual increment to obtain the first electric quantity relay action number, the load record energy total increment is compared with the actual load electric quantity total increment to obtain the experiment number of times, the second electric energy relay action number is further obtained, and finally a statistical view is generated according to the comparison calculation result, so that the automatic measurement of the electric energy meter is realized. Therefore, the test method can meet various test requirements without manual test in the measurement process, and the test is automatically performed without manual test errors, so that the technical problems that the existing ammeter test method cannot be realized in part of test, is low in efficiency and narrow in range are solved, and the technical effects of high test efficiency, wide test range and high test precision are obtained.
As a further improvement of the above scheme, in step (1), it is further determined whether the test parameter is set successfully, if so, step (2) is performed, otherwise, step (1) is performed.
As a further improvement of the above-described scheme, when the state of the relay is incorrect, the electric energy meter is rechecked, and step (1) is performed.
As a further improvement of the above solution, the automatic test method further includes the steps of:
(7) Performing a fee control character passing function experiment; the interface of the fee control character passing function experiment provides all operation commands of the fee control function and can modify the load record mode character; the experimental parameters of the fee control character passing function experiment comprise environmental temperature, commands, time delay and times, and the operation commands are one or more of brake opening, brake closing, brake opening time delay, brake closing permission, electricity protection and electricity protection releasing.
As a further improvement of the scheme, the test command of the electric energy meter is sent to the concentrator through the main station, and then the electric energy meter is issued through the concentrator.
As a further improvement of the scheme, the test parameters comprise the expected experiment times, an electric energy meter load record mode word, a load record period, a switching-on and switching-off command issuing period, a switching-off delay time, an expected command issuing period, an electric energy meter access voltage current, an electric energy meter constant and an electric energy meter working temperature and humidity; the load recording period, the opening and closing command issuing period and the expected command issuing period are consistent.
The invention also provides an automatic test method for the stability of the electric energy meter, which comprises the following steps:
s1: setting test parameters of the electric energy meter through an upper computer of the electric energy meter;
after S1 is completed, S2: judging whether the test parameters are set successfully, if so, carrying out S3, otherwise, carrying out S1;
s3: sending an ammeter switching-on command to drive the ammeter to be switched on;
after S3 is completed, S4: judging whether the state of the relay is correct or not;
when the state of the relay is correct, S5: reading and recording the current active energy of the electric energy meter and the load recording electric energy;
after S5 is completed, S6: recording the current electric quantity and calculating corresponding increment, and reading the load recorded electric quantity and calculating corresponding increment;
when the state of the relay is correct, S7 is also performed: delay setting time and sending an ammeter switching-on command;
after S7 is completed, S8: judging whether the state of the relay is correct or not;
after S6 and S8 are completed, S9 is performed: the cycle times are added with 1;
when the state of the relay is incorrect, S10: rechecking the electric energy meter and performing a step S1;
after S9 is completed, S11: judging whether the cycle number reaches a set cycle value;
when the number of cycles reaches the set cycle value, S12: comparing the current active energy, the load record energy, the current electric quantity and increment thereof with corresponding theoretical values, determining electric quantity accumulation errors, the first action times of the electric energy meter relay which affects the metering of the electric energy meter, the second action times of the electric energy meter relay which affects the freezing of the load record of the electric energy meter, and calculating the action success rate of the electric energy meter relay; generating a corresponding statistical view to show the stability of the electric energy meter according to the action success rate, the electric quantity accumulated error, the action times of the electric energy meter relay, the first action times of the electric energy meter relay and the second action times of the electric energy meter relay;
and when the cycle number does not reach the set cycle value, S3 is performed.
The invention also provides an automatic test platform for the stability of the electric energy meter, which comprises an upper computer, a communication interface, a communication network and an experimental device; the upper computer is used for controlling the test device through the communication interface and the communication network so as to realize the automatic test method for the stability of the electric energy meter; the experimental device comprises a high-low temperature box, a current switching module and a controllable load box; the high-low temperature box is used for providing a working environment for the electric energy meter and can change the temperature and humidity in the working environment; the current switching module is used for providing a character-moving current for the electric energy meter; the controllable load box is used for providing controllable load for the electric energy meter.
As a further improvement of the scheme, the test platform utilizes a pyqt5 module based on Python to manufacture an upper computer interface, utilizes a Python serial port module to construct a communication connection interface of an RS485 and carrier module to a serial port, and utilizes a pyechorts module to derive a statistical view of test data; the test platform realizes the test method through Python, controls experimental parameters, occurrence time and all operation experiments of the experimental device through the communication interface, runs the test method through the upper computer, and reads various data of the electric energy meter through the communication network.
The invention also provides an automatic test platform for the stability of the electric energy meter, which applies the automatic test method for the stability of the electric energy meter, and comprises the following steps:
the parameter setting module is used for resetting the electric energy meter and setting test parameters of the electric energy meter;
the driving module is used for driving the electric energy meter to be switched on and reading the state word of the relay of the electric energy meter;
the judging module is used for judging whether the state of the relay is correct or not according to the state word of the relay;
the reading module is used for reading and recording the current active energy and the load recording energy of the electric energy meter when the state of the relay is correct;
the repeated execution control module is used for driving the judging module I and the reading module until the recorded total times of success and failure of the relay action reach an expected experiment time;
the analysis and calculation module I is used for calculating the action success rate of the relay according to the switching-off successful action times, the switching-on successful action times and the experiment total times of the relay;
the analysis and calculation module II is used for analyzing and calculating the total electric energy increment of the electric energy meter and comparing the total electric energy increment with a total electric quantity theoretical increment so as to obtain an electric quantity accumulated error;
the analysis and calculation module III is used for analyzing and calculating the single electric quantity increment of the electric energy meter and comparing the single electric quantity increment with the single electric quantity increment of an actual electric energy meter so as to obtain the first action times of the electric energy meter relay which influences the metering of the electric energy meter;
the analysis and calculation module is used for analyzing and calculating the total increment of the load record electric quantity of the electric energy meter, comparing the total increment of the load record electric quantity with the total increment of the electric quantity of an actual electric energy meter to determine that the experiment with the single increment being inconsistent with the actual increment is carried out for the first time, and obtaining the action times II of the electric energy meter relay which affects the freezing of the load record of the electric energy meter;
the display module is used for generating a corresponding statistical view to display the stability performance of the electric energy meter according to the action success rate, the electric quantity accumulated error, the electric energy meter relay action times I and the electric energy meter relay action times II.
Compared with the existing ammeter test method, the automatic test method and the automatic test platform for the stability of the ammeter have the following beneficial effects:
1. the automatic test method for the stability of the electric energy meter comprises the steps of firstly setting test parameters, then switching on and judging whether the state of a relay is correct, obtaining the current active electric energy and the load record electric energy, then repeating the steps until the total number of relay actions reaches the expected experiment number, then calculating the action success rate according to the successful switching-on and switching-off action number and the experiment total number of the relay, comparing the theoretical increment of the total increment of the electric energy with the total increment of the total electric energy to obtain an electric energy accumulated error, comparing the single electric energy increment with the actual increment to obtain the first relay action number of the electric energy meter, comparing the total increment of the load record electric energy with the total increment of the actual load electric energy to obtain the second relay action number of the electric energy meter, and finally generating a statistical view through the comparison calculation result to realize automatic measurement of the electric energy meter. Therefore, the test method can meet various test requirements without manual test in the measurement process, so that the test range can be enlarged, the test is automatically performed, the test efficiency can be improved, and the test precision can be improved because no manual test error can be caused by adopting non-manual test.
2. The automatic test method for the stability of the electric energy meter is highly flexible and extensible, reduces manual misjudgment and repeated test work, is tireless forever, fully utilizes working hours, improves meter checking efficiency, can perform a large number of tests which cannot be completed manually, can be freely combined by protocol commands, can be randomly and flexibly controlled by test equipment, can perform meter tests of various types, and can realize automation by Python scripts.
3. The automatic test method for the stability of the electric energy meter can build a scene that a meter acquisition terminal possibly fails under special operation conditions, simulate and renew site failure phenomenon and keep the current working state of the electric energy meter for principle analysis. The test method can simulate the possible illegal working conditions in the work of various meters, and the best solution can be obtained through the recording and analysis of experimental data, so that the test method has very wide development space and very obvious effect.
4. The automatic test method for the stability of the electric energy meter can support the modification of the experiment times, the voltage and current magnitude, the temperature and humidity of the test environment, and the load recording mode word and the constant of the electric energy meter, so that the simulation of the experiment scheme to the real environment is realized, the stability of the electric energy meter is verified, the test is more convenient and rapid, and the test effect is better.
5. The electric energy meter stability automatic test platform has the same beneficial effects as the electric energy meter stability automatic test method, and is not described in detail herein.
Drawings
Fig. 1 is a flowchart of an automatic test method for stability of an electric energy meter according to embodiment 2 of the present invention.
Fig. 2 is a test frame diagram of the automatic test platform for stability of electric energy meter according to embodiment 3 of the present invention.
Fig. 3 is a schematic diagram of a test scheme of the automatic electric energy meter stability test platform in fig. 2.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Example 1
The embodiment provides an automatic test method for stability of an electric energy meter, which is used for testing the electric energy meter, can test a plurality of electric energy meters at the same time, and can test a single electric energy meter. The electric energy meter can be a single-phase meter or a three-phase meter, and the testing method is divided into a character-moving function experimental scheme and a cost control function experimental scheme. Most of electric energy meters in actual use are remote meters, and for more convenient testing, the test command of the electric energy meter is sent to the concentrator through the main station, and then the electric energy meter is issued through the concentrator. The same mode is adopted in the cost control function experiment, the upper computer is used as a master station system, and the performance of the ammeter relay is verified through the periodic cost control command test. In this embodiment, the automatic test method includes the following steps.
(1) And clearing the electric energy meter, and setting test parameters of the electric energy meter. In this embodiment, the test parameters include expected experiment times, a load recording mode word of the electric energy meter, a load recording period, a switch-off and switch-on command issuing period, a switch-off delay time, an expected command issuing period, an electric energy meter access voltage and current, an electric energy meter constant and an electric energy meter working temperature and humidity. The load recording period, the opening and closing command issuing period and the expected command issuing period are all consistent, for example, 1 minute. In addition, in this embodiment, it is further determined whether the test parameter is set successfully, if yes, step (2) is performed, otherwise step (1) is performed.
(2) And driving the electric energy meter to be switched on, and reading the state word of the relay of the electric energy meter. In this embodiment, the electric energy meter is switched on in a mode of issuing a switching-on command, and the status word is read through corresponding equipment. And after waiting for the switching-off delay time, judging whether the relay of the electric energy meter can successfully act, and reading the active electric energy of the current electric energy meter and the electric energy recorded by the load of the electric energy meter.
(3) And judging whether the state of the relay is correct according to the state word of the relay. The correctness of the relay affects the subsequent test, the relay in the correct state is normal, and the relay in the incorrect state is abnormal. When the state of the relay is correct, the current active energy of the electric energy meter and the load recording energy are read and recorded. And if the current active energy and the active energy in the current load record are read as initial values. And (3) when the state of the relay is incorrect, re-checking the electric energy meter, and performing the step (1).
(4) And (3) sequentially repeating the step (2) and the step (3) until the recorded total times of success and failure of the relay action reach an expected experiment time.
(5) And calculating the action success rate of the relay according to the switching-off success action times, switching-on success action times and the total experiment times of the relay. And analyzing and calculating the total increment of the electric energy meter, and comparing the total increment of the electric energy with a theoretical increment of the total electric quantity to obtain an electric quantity accumulated error. And analyzing and calculating the single electric quantity increment of the electric energy meter, and comparing the single electric quantity increment with the single electric quantity increment of an actual electric energy meter to obtain the first action times of the relay of the electric energy meter, which influence the metering of the electric energy meter. Analyzing and calculating the total increment of the load record electric quantity of the electric energy meter, and comparing the total increment of the load record electric quantity with the total increment of the electric quantity of an actual electric energy meter to determine the experiment first time that the single increment is inconsistent with the actual increment, namely comparing the specific third single increment and the actual increment to obtain the action times II of the electric energy meter relay which affects the freezing of the load record of the electric energy meter.
(6) And generating a corresponding statistical view to show the stability performance of the electric energy meter according to the action success rate, the electric quantity accumulated error, the first action number of the relay of the electric energy meter, the second action number of the relay of the electric energy meter.
(7) Performing a fee control character passing function experiment; the interface of the fee control character passing function experiment provides all operation commands of the fee control function and can modify the load record mode character. The experimental parameters of the fee control character passing function experiment comprise environmental temperature, commands, time delay and times, and the operation commands are one or more of brake opening, brake closing, brake opening time delay, brake closing permission, electricity protection and electricity protection release.
In summary, compared with the existing ammeter test method, the automatic test method for the stability of the ammeter of the embodiment has the following advantages:
1. the automatic test method for the stability of the electric energy meter comprises the steps of firstly setting test parameters, then switching on and judging whether the state of a relay is correct, obtaining the current active electric energy and the load record electric energy, then repeating the steps until the total number of relay actions reaches the expected experiment number, then calculating the action success rate according to the successful switching-on and switching-off action number and the experiment total number of the relay, comparing the theoretical increment of the total increment of the electric energy with the total increment of the total electric energy to obtain an electric energy accumulated error, comparing the single electric energy increment with the actual increment to obtain the first relay action number of the electric energy meter, comparing the total increment of the load record electric energy with the total increment of the actual load electric energy to obtain the second relay action number of the electric energy meter, and finally generating a statistical view through the comparison calculation result to realize automatic measurement of the electric energy meter. Therefore, the test method can meet various test requirements without manual test in the measurement process, so that the test range can be enlarged, the test is automatically performed, the test efficiency can be improved, and the test precision can be improved because no manual test error can be caused by adopting non-manual test.
2. The automatic test method for the stability of the electric energy meter can build a scene that a meter acquisition terminal possibly fails under special operation conditions, simulate and renew site failure phenomenon and keep the current working state of the electric energy meter for principle analysis. The test method can simulate the possible illegal working conditions in the work of various meters, and the best solution can be obtained through the recording and analysis of experimental data, so that the test method has very wide development space and very obvious effect.
3. The automatic test method for the stability of the electric energy meter can support the modification of the experiment times, the voltage and current magnitude, the temperature and humidity of the test environment, and the load recording mode word and the constant of the electric energy meter, so that the simulation of the experiment scheme to the real environment is realized, the stability of the electric energy meter is verified, the test is more convenient and rapid, and the test effect is better.
Example 2
Referring to fig. 1, the present embodiment provides an automatic test method for stability of an electric energy meter, where the test method is used for testing the electric energy meter, and may be used for testing multiple electric energy meters at the same time, or testing a single electric energy meter. The electric energy meter can be a single-phase meter or a three-phase meter, and the testing method is divided into a character-moving function experimental scheme and a cost control function experimental scheme. Most of electric energy meters in actual use are remote meters, and for more convenient testing, the test command of the electric energy meter is sent to the concentrator through the main station, and then the electric energy meter is issued through the concentrator. The same mode is adopted in the cost control function experiment, the upper computer is used as a master station system, and the performance of the ammeter relay is verified through the periodic cost control command test. The test method of the embodiment is designed based on a Python script, wherein Python is an object-oriented and explanatory computer programming language, and the Python language has the advantages that: the method has the advantages of simplicity, easy learning, high speed, portability, object-oriented, expansibility, embeddability, rich libraries and the like, and if the automatic meter test platform can be established by utilizing the powerful function of the Python script to complete the white box test, the gray box test and the black box test lamp, the function of a full-coverage platform tool for various tests of software and hardware can be innovatively realized, and an ammeter with more excellent performance is manufactured. Wherein the automatic test method comprises the following steps:
s1: setting test parameters of the electric energy meter through an upper computer of the electric energy meter; setting parameters: the parameters comprise a load recording mode word, a load recording starting time and a load recording interval; a set command: setting the environment temperature, setting experiment commands, setting time delay among the commands, and setting experiment times, such as: environmental stability 40 degrees, switching off, delaying setting period, switching on, and performing experiments 100 times;
after S1 is completed, S2: judging whether the test parameters are set successfully, if so, carrying out S3, otherwise, carrying out S1;
s3: sending an ammeter switching-on command to drive the ammeter to switch on;
after S3 is completed, S4: judging whether the state of the relay is correct or not;
when the state of the relay is correct, S5: reading and recording the current active energy of the electric energy meter and the load recording electric energy;
after S5 is completed, S6: recording the current electric quantity and calculating corresponding increment, and reading the load recorded electric quantity and calculating corresponding increment;
when the state of the relay is correct, S7 is also performed: delay setting time and sending an ammeter switching-on command;
after S7 is completed, S8: judging whether the state of the relay is correct or not;
after S6 and S8 are completed, S9 is performed: the cycle times are added with 1;
when the state of the relay is incorrect, S10: rechecking the electric energy meter and performing step S1;
after S9 is completed, S11: judging whether the cycle number reaches a set cycle value;
when the number of cycles reaches the set cycle value, S12: comparing the current active electric energy, the load recorded electric energy, the current electric quantity and increment thereof, the load recorded electric quantity and increment thereof with corresponding theoretical values, determining electric quantity accumulated errors, the first action times of the electric energy meter relay which influences the metering of the electric energy meter, the second action times of the electric energy meter relay which influences the freezing of the load record of the electric energy meter, and calculating the action success rate of the electric energy meter relay; generating a corresponding statistical view to show the stability performance of the electric energy meter according to the action success rate, the electric quantity accumulated error, the first action number of the relay of the electric energy meter, the second action number of the relay of the electric energy meter;
and when the cycle number does not reach the set cycle value, S3 is performed.
The test method comprises the following steps of: the experimental scheme of the fee-controlled character-moving function is generally as follows: an interface: all operation commands for providing the cost control function comprise switching off, switching on, switching off delay, switching on permission, electricity protection and electricity protection removal; providing an interface for modifying the load record mode word; the experiments included parameters: ambient temperature, command, delay, number of times, and evaluation after the experiment is completed.
The experimental contents of this example are as follows: the electric energy meter is installed on an experiment platform, experiment parameters are set according to requirements, experiment contents are drawn, after a test button on the PC is clicked, experiment tests are carried out on the electric energy meter according to the experiment contents set by a user, after the experiment times are completed, the system stops current output, and a test report and experiment data are provided.
Therefore, the automatic test method for the stability of the electric energy meter is highly flexible and extensible, reduces manual misjudgment and repeated test work, is tireless, fully utilizes working hours, improves meter checking efficiency, can perform a large number of tests which cannot be completed manually, can be freely combined by protocol commands, can be randomly and flexibly controlled by test equipment, can perform various meter tests, and can realize automation by Python scripts.
Example 3
Referring to fig. 2 and 3, the embodiment provides an automatic testing platform for stability of an electric energy meter, which includes an upper computer, a communication interface, a communication network and an experimental device. The upper computer is used for controlling the test device through the communication interface and the communication network so as to realize the automatic test method for the stability of the electric energy meter in the embodiment 1 or the embodiment 2. The experimental device comprises a high-low temperature box, a current switching module and a controllable load box. The high-low temperature box is used for providing a working environment for the electric energy meter and can change the temperature and humidity in the working environment. The current switching module is used for providing a character-moving current for the electric energy meter; the controllable load box is used for providing controllable load for the electric energy meter. The high-low temperature box, the current switching module and the controllable load box can be independently installed and also can be installed on a platform body.
In this embodiment, the test platform makes an upper computer interface by using a pyqt5 module based on Python to satisfy the test scheme and the visualization of the test result, builds a communication connection interface of the RS485 and the carrier module to the serial port by using a Python serial port module, and derives a statistical view of the test data, such as a line graph and a bar graph, by using a pyechorts module to realize the data visualization of the test result. The test platform realizes the test method through Python, controls the experimental parameters, the occurrence time and all operation experiments of the experimental device through the communication interface, and the upper computer runs the test method and reads various data of the electric energy meter through the communication network. The main body test scheme, the ammeter communication protocol and the high-low temperature box communication protocol are all realized by Python, and the characteristics of high Python modularization degree are utilized, so that the later-stage function increase and maintenance are facilitated.
The test platform is highly flexible and extensible, reduces manual misjudgment and repeated test work, is tireless, fully utilizes working hours, improves meter checking efficiency, can perform a large number of tests which cannot be completed manually, can be freely combined by protocol commands, can be randomly and flexibly controlled by test equipment, can perform meter testing of various types, and can realize automation by Python scripts. The method can create the scene that the meter acquisition terminal possibly fails under special operation conditions, simulate the phenomenon of field failure again and keep the current working state of the ammeter for principle analysis. The invention has the remarkable advantages of simulating the illegal working conditions possibly occurring in the work of various meters, obtaining the best solution through the recording and analysis of experimental data, having very wide development space and very remarkable beneficial effects.
Example 4
The embodiment provides an automatic test platform for stability of an electric energy meter, and the test platform applies the automatic test method for stability of the electric energy meter in embodiment 1. The test platform comprises a parameter setting module, a driving module, a judging module, a reading module, a repeated execution control module, an analysis calculation module I, an analysis calculation module II, an analysis calculation module III, an analysis calculation module IV and a display module.
The parameter setting module is used for resetting the electric energy meter and setting test parameters of the electric energy meter. The driving module is used for driving the electric energy meter to be switched on and reading the state word of the relay of the electric energy meter. The judging module is used for judging whether the state of the relay is correct or not according to the state word of the relay. And the reading module is used for reading and recording the current active energy and the load recording energy of the electric energy meter when the state of the relay is correct. The repeated execution control module is used for driving the judging module I and the reading module until the recorded total times of success and failure of the relay action reach an expected experiment time. The analysis and calculation module is used for calculating the action success rate of the relay according to the switching-off successful action times, switching-on successful action times and the total experiment times of the relay. The analysis and calculation module II is used for analyzing and calculating the total electric energy increment of the electric energy meter and comparing the total electric energy increment with a total electric quantity theoretical increment so as to obtain an electric quantity accumulated error. The analysis and calculation module III is used for analyzing and calculating single electric quantity increment of the electric energy meter and comparing the single electric quantity increment with the electric quantity single increment of an actual electric energy meter so as to obtain first relay action times of the electric energy meter, which influence the metering of the electric energy meter. The analysis and calculation module is used for analyzing and calculating the total increment of the load record electric quantity of the electric energy meter, comparing the total increment of the load record electric quantity with the total increment of the electric quantity of the actual electric energy meter to determine that the single increment is inconsistent with the actual increment for the first time of an experiment, and obtaining the second action times of the electric energy meter relay which affects the freezing of the load record of the electric energy meter. The display module is used for generating a corresponding statistical view to display the stability performance of the electric energy meter according to the action success rate, the electric quantity accumulation error, the action times of the electric energy meter relay, the first action times of the electric energy meter relay and the second action times of the electric energy meter relay.
Example 5
The present embodiment provides a computer terminal comprising a memory, a processor, and a computer program stored on the memory and executable on the processor. The steps of the automatic test method for stability of the electric energy meter of embodiment 1 or 2 are realized when the processor executes the program. When the method of embodiment 1 or 2 is applied, the application may be performed in the form of software, such as a program designed to run independently, and installed on a computer terminal, where the computer terminal may be a computer, a smart phone, a control system, and other devices of the internet of things. The method of embodiment 1 or 2 may also be designed as an embedded running program, and installed on a computer terminal, such as a single chip microcomputer.
Example 6
The present embodiment provides a computer-readable storage medium having a computer program stored thereon. The steps of the automatic test method for stability of the electric energy meter of embodiment 1 or 2 are realized when the program is executed by the processor. The method of embodiment 1 or 2 may be applied in the form of software, such as a program designed to be independently executable on a computer-readable storage medium, which may be a usb disk, designed as a U-shield, through which the program of the entire method is designed to be started by external triggering.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (2)

1. The automatic test method for the stability of the electric energy meter is characterized by comprising the following steps of:
s1: setting test parameters of the electric energy meter through an upper computer of the electric energy meter;
the test parameters comprise expected experiment times, an electric energy meter load recording mode word, a load recording period, a switching-on and switching-off command issuing period, switching-off delay time, an expected command issuing period, an electric energy meter access voltage current, an electric energy meter constant and an electric energy meter working temperature and humidity; the load recording period, the opening and closing command issuing period and the expected command issuing period are consistent;
after S1 is completed, S2: judging whether the test parameters are set successfully, if so, carrying out S3, otherwise, carrying out S1;
s3: sending an ammeter switching-on command to drive the ammeter to be switched on;
after S3 is completed, S4: judging whether the state of the relay is correct or not;
when the state of the relay is correct, S5: reading and recording the current electric quantity of the electric energy meter and the load recording electric quantity;
when the state of the relay is correct, S7 is also performed: delay setting time and sending a switch-off command of the electronic meter;
after S7 is completed, S8: judging whether the state of the relay is correct or not;
after S8 is completed, S6: recording the current electric quantity and calculating corresponding increment, and reading the load recorded electric quantity and calculating corresponding increment;
after S6 and S8 are completed, S9 is performed: the cycle times are added with 1;
when the state of the relay is incorrect, S10: rechecking the electric energy meter and performing a step S1;
after S9 is completed, S11: judging whether the cycle number reaches a set cycle value;
when the number of cycles reaches the set cycle value, S12: the current electric quantity recorded in the step S6 and the increment thereof,
Comparing the load record electric quantity and increment thereof with corresponding theoretical values, determining an electric quantity accumulated error, the first action times of the electric energy meter relay which affects the metering of the electric energy meter, the second action times of the electric energy meter relay which affects the freezing of the load record of the electric energy meter, and calculating the action success rate of the electric energy meter relay; generating a corresponding statistical view to show the stability of the electric energy meter according to the action success rate, the electric quantity accumulated error, the action times of the electric energy meter relay, the first action times of the electric energy meter relay and the second action times of the electric energy meter relay;
and when the cycle number does not reach the set cycle value, S3 is performed.
2. The automatic test platform for the stability of the electric energy meter is characterized by comprising an upper computer, a communication interface, a communication network and an experimental device; the upper computer is used for controlling the experimental device through the communication interface and the communication network so as to realize the automatic test method for the stability of the electric energy meter according to claim 1; the experimental device comprises a high-low temperature box, a current switching module and a controllable load box; the high-low temperature box is used for providing a working environment for the electric energy meter and can change the temperature and humidity in the working environment; the current switching module is used for providing a character-moving current for the electric energy meter; the controllable load box is used for providing controllable load for the electric energy meter.
CN202010867605.6A 2020-08-26 2020-08-26 Automatic test method and automatic test platform for stability of electric energy meter Active CN111965587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010867605.6A CN111965587B (en) 2020-08-26 2020-08-26 Automatic test method and automatic test platform for stability of electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010867605.6A CN111965587B (en) 2020-08-26 2020-08-26 Automatic test method and automatic test platform for stability of electric energy meter

Publications (2)

Publication Number Publication Date
CN111965587A CN111965587A (en) 2020-11-20
CN111965587B true CN111965587B (en) 2024-01-26

Family

ID=73390419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010867605.6A Active CN111965587B (en) 2020-08-26 2020-08-26 Automatic test method and automatic test platform for stability of electric energy meter

Country Status (1)

Country Link
CN (1) CN111965587B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112816934A (en) * 2021-03-01 2021-05-18 云南电网有限责任公司电力科学研究院 Method and system for judging error self-monitoring accuracy and timeliness of electric energy meter

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2081539U (en) * 1990-10-26 1991-07-24 郑五星 Automatic numeral type electric metering on-line detecting instrument
CN1066508A (en) * 1992-05-11 1992-11-25 江西省电力试验研究所 Intelligence testing device of watthour meter
KR20040037610A (en) * 2002-10-29 2004-05-07 서창전기통신 주식회사 The watt-hour meter test system using local device
CN101770007A (en) * 2008-12-31 2010-07-07 深圳市科陆电子科技股份有限公司 Electric energy meter test system and method thereof
CN102087352A (en) * 2011-01-31 2011-06-08 浙江省电力公司 Three-phase intelligent watt-hour meter inspection device and method
CN202421489U (en) * 2012-01-05 2012-09-05 山东电力研究院 Load switch detection device of intelligent electric energy meter
WO2012142736A1 (en) * 2011-04-22 2012-10-26 四川电力科学研究院 Field integral detecting system of three-phase electric energy measuring system of electric distribution network
WO2012174693A1 (en) * 2011-06-20 2012-12-27 辽宁省电力有限公司丹东供电公司 Electric energy meter on-line detection method
CN103792508A (en) * 2014-01-27 2014-05-14 国家电网公司 Error test system and method for digitized metering device
CN104090259A (en) * 2014-07-04 2014-10-08 宁波三星电气股份有限公司 Automatic gauge test platform and method based on Python script
CN105158722A (en) * 2015-04-23 2015-12-16 国网上海市电力公司 Evaluation method for performance index of electric energy meter
CN105301554A (en) * 2015-12-03 2016-02-03 国网重庆市电力公司电力科学研究院 Electric energy metering loop high precision data synchronous sampling device and method
CN105319527A (en) * 2015-11-23 2016-02-10 中国电力科学研究院 An electric energy meter load record test method
CN106054113A (en) * 2016-07-27 2016-10-26 国网山东省电力公司电力科学研究院 Metering stability testing system for electric energy meter and testing method thereof
CN106251599A (en) * 2016-08-05 2016-12-21 中国南方电网有限责任公司电网技术研究中心 Take remote control function method of testing and the system of control electric energy meter
CN108535639A (en) * 2018-03-27 2018-09-14 江苏卡欧万泓电子有限公司 A kind of method of automatic detection intelligent electric meter relay switching on
CN110045318A (en) * 2019-05-17 2019-07-23 贵州电网有限责任公司 The device and method that assessment dynamic harmonic and temperature change influence electric energy meter error

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2081539U (en) * 1990-10-26 1991-07-24 郑五星 Automatic numeral type electric metering on-line detecting instrument
CN1066508A (en) * 1992-05-11 1992-11-25 江西省电力试验研究所 Intelligence testing device of watthour meter
KR20040037610A (en) * 2002-10-29 2004-05-07 서창전기통신 주식회사 The watt-hour meter test system using local device
CN101770007A (en) * 2008-12-31 2010-07-07 深圳市科陆电子科技股份有限公司 Electric energy meter test system and method thereof
CN102087352A (en) * 2011-01-31 2011-06-08 浙江省电力公司 Three-phase intelligent watt-hour meter inspection device and method
WO2012142736A1 (en) * 2011-04-22 2012-10-26 四川电力科学研究院 Field integral detecting system of three-phase electric energy measuring system of electric distribution network
WO2012174693A1 (en) * 2011-06-20 2012-12-27 辽宁省电力有限公司丹东供电公司 Electric energy meter on-line detection method
CN202421489U (en) * 2012-01-05 2012-09-05 山东电力研究院 Load switch detection device of intelligent electric energy meter
CN103792508A (en) * 2014-01-27 2014-05-14 国家电网公司 Error test system and method for digitized metering device
CN104090259A (en) * 2014-07-04 2014-10-08 宁波三星电气股份有限公司 Automatic gauge test platform and method based on Python script
CN105158722A (en) * 2015-04-23 2015-12-16 国网上海市电力公司 Evaluation method for performance index of electric energy meter
CN105319527A (en) * 2015-11-23 2016-02-10 中国电力科学研究院 An electric energy meter load record test method
CN105301554A (en) * 2015-12-03 2016-02-03 国网重庆市电力公司电力科学研究院 Electric energy metering loop high precision data synchronous sampling device and method
CN106054113A (en) * 2016-07-27 2016-10-26 国网山东省电力公司电力科学研究院 Metering stability testing system for electric energy meter and testing method thereof
CN106251599A (en) * 2016-08-05 2016-12-21 中国南方电网有限责任公司电网技术研究中心 Take remote control function method of testing and the system of control electric energy meter
CN108535639A (en) * 2018-03-27 2018-09-14 江苏卡欧万泓电子有限公司 A kind of method of automatic detection intelligent electric meter relay switching on
CN110045318A (en) * 2019-05-17 2019-07-23 贵州电网有限责任公司 The device and method that assessment dynamic harmonic and temperature change influence electric energy meter error

Also Published As

Publication number Publication date
CN111965587A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN107632219B (en) Automatic startup and shutdown test system and test method thereof
CN103746882B (en) The method of intelligent substation station level test
CN109814530B (en) Automatic performance test system for satellite power supply controller
CN104090259B (en) Automatic gauge test platform and method based on Python script
CN104298224A (en) Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system
CN105425201B (en) metering chip simulation test method for software reliability detection of intelligent electric energy meter
CN106405286B (en) The automatic test approach and system of quality monitoring device of electrical energy
CN108306753B (en) Simulation device, test method and system for shutdown of I-zone data communication network
CN104267715A (en) Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system
CN104932479A (en) Automatic test method and system
CN104360922A (en) Method for automatically monitoring BMC working state based on ipmitool
CN104518924A (en) Automatic testing and result comparison method and system
CN103941207A (en) Electric power measurement automation terminal detection method and system
CN108304326B (en) Automatic testing system and method for android intelligent terminal
CN103869260A (en) Power supply test system and method
CN112241346B (en) Method, device and system for testing BIOS memory fault detection capability
CN111965587B (en) Automatic test method and automatic test platform for stability of electric energy meter
US20160232366A1 (en) Systems and methods for verification and deployment of applications to programmable devices
CN109460359A (en) A kind of software version test method and system for embedded device
CN103308808A (en) System and method for testing secondary device of intelligent substation automatically
CN105021909A (en) Automatic detection method for digital electric energy quality monitoring terminal and system thereof
CN103344850A (en) System and method of intelligent substation automatic testing based on test formwork technology
CN115061079A (en) Electric energy meter metering error online measurement method and batch test system
CN111781444A (en) Automatic testing system and method for grid-connected single machine
CN114168432B (en) Application program power consumption detection method and device, electronic equipment and storage medium

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
GR01 Patent grant