Three-phase electric energy meter calibrating device power source based on IR46 standard
Technical Field
The invention belongs to the technical field of alternating current electric energy meter detection equipment, and particularly relates to a power source of a three-phase electric energy meter calibrating device based on an IR46 standard.
Background
At present, the conversion work of the IR46 standard is actively promoted in China, new GB/T17215 series standards and JJF1245 type evaluation schemas of electric energy meters are successively approved, and various electric energy meter manufacturers are also actively developing IR46 related sample meters; according to the interpretation of relevant standards and specifications of the IR46 electric energy meter, the IR46 active electric energy meter has great differences from the existing national grid intelligent electric energy meter, such as different grade definitions of the electric energy meter, different current definitions, different error tests, different potential starting test items and the like, and meanwhile, various waveform influence quantity test items such as harmonic waves, square waves, sharp top waves and the like are added.
Most of the currently used alternating current electric energy meter calibrating devices do not have IR46 testing conditions, and cannot completely meet the detection requirements of an IR46 active electric energy meter, particularly two of small current output precision and harmonic output. Therefore, a new power source of the alternating current electric energy meter calibrating device is needed to be designed, the output accuracy of small current and various waveforms such as harmonic waves, square waves and spike waves is improved, and the requirements of performance test and function test of the IR46 electric energy meter are met.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide a power source of a three-phase electric energy meter calibrating device based on the IR46 standard so as to improve the output performance of small current and the output accuracy of various waveforms such as harmonic waves, square waves, spike waves and the like and meet the requirements of performance test and function test of an IR46 electric energy meter.
Therefore, the invention adopts the following technical scheme: the power source of the three-phase electric energy meter calibrating device based on the IR46 standard comprises a human-computer interface control unit, a three-phase signal source, a voltage power amplifier, a current power amplifier and an adjustable working power supply;
the three-phase signal source comprises a data processing unit, a first communication unit, a voltage signal double D/A conversion circuit, a voltage analog conditioning circuit, a current signal double D/A conversion circuit and a current analog conditioning circuit;
one end of the data processing unit is connected with the voltage signal double D/A conversion circuit and the current signal double D/A conversion circuit, the other end of the data processing unit is connected with an internal communication circuit of the human-computer interface control unit, a control command of the human-computer interface control unit is received, the data processing unit informs the voltage signal double D/A conversion circuit and the current signal double D/A conversion circuit to generate corresponding small discrete signals, the output end of the voltage signal double D/A conversion circuit is connected with the input end of the voltage analog conditioning circuit, and the output end of the current signal double D/A conversion circuit is connected with the input end of the current analog conditioning circuit;
the output end of the voltage analog conditioning circuit is connected with the input end of a first pre-amplification circuit in the voltage power amplifier, the output end of the current analog conditioning circuit is connected with the input end of a second pre-amplification circuit in the current power amplifier, the data processing unit is respectively connected with the input ends of a second communication unit and a third communication unit in the voltage power amplifier and the current power amplifier through a first communication unit, and the output of an analog signal is adjusted in real time by receiving feedback information output in the power amplifier;
the output end of the adjustable working power supply is respectively connected with one end of a first power amplifying circuit in the voltage power amplifier and one end of a second power amplifying circuit in the current power amplifier, so that a variable working power supply is provided for the power amplifying circuits, and the stable and reliable work of the power amplifier is ensured.
The invention can generate AC analog small signals of sine wave, subharmonic, odd harmonic, higher harmonic, square wave, cusp wave and the like through the voltage and current signal double D/A conversion circuit and the analog conditioning circuit.
The three-phase signal source of the invention can digitally modulate amplitude, phase and frequency, can output various waveforms such as sine wave, harmonic wave, subharmonic wave, odd harmonic wave, square wave, cusp wave and the like by a digital synthesis technology, and can output various waveforms in a program-controlled manner. The adjustable working power supply adjusts the output amplitude of the working power supply of the power amplifier in real time by detecting the load change, reduces the tube voltage drop, reduces the heating and improves the reliability of the amplifier.
Furthermore, the voltage power amplifier comprises a first pre-amplification circuit, a first power amplification circuit, an isolation boosting unit, a voltage output unit, a first hardware feedback circuit, a first signal sampling circuit, a first digital PID (proportion integration differentiation) regulating circuit and a second communication unit;
the input end of a first preamplification circuit receives an output analog signal of a voltage analog conditioning circuit, the output end of the first preamplification circuit is connected with the input end of a first power amplification circuit, the output end of the first power amplification circuit is connected with the input end of an isolation boosting unit, the input end of a voltage output unit is connected with the output end of the isolation boosting unit, the input end of a first hardware feedback circuit is connected with the output end of the isolation boosting unit, the input end of the first hardware feedback circuit is connected with the input end of the first power amplification circuit, the output end of the voltage output unit is connected with the input end of a first signal sampling circuit, the output end of the first signal sampling circuit is connected with the input end of a first digital PID (proportion integration differentiation) adjusting circuit, the output end of the first digital PID adjusting circuit is respectively connected with one end of a second communication unit and one end, Is accurate. The voltage power amplifier ensures high output accuracy and good stability of a voltage source through hardware feedback and a digital PID regulating circuit, and meets the requirements of IR46 tests.
The first digital PID regulating circuit processes collected signal data in real time, calculates the amplitude and phase of a voltage output signal, and then carries out digital regulation output on a voltage power amplifier by a CPU through regulating an internal digital potentiometer to ensure the voltage output to be stable.
Furthermore, the current power amplifier comprises a second pre-amplification circuit, a second power amplification circuit, an isolation current-boosting unit, a current output unit, a second hardware feedback circuit, a second signal sampling circuit, a second digital PID (proportion integration differentiation) regulating circuit and a third communication unit;
the input end of a second preamplification circuit receives an output analog signal of the current analog conditioning circuit, the output end of the second preamplification circuit is connected with the input end of a second power amplification circuit, the output end of the second power amplification circuit is connected with the input end of an isolation current boosting unit, the input end of a current output unit is connected with the output end of the isolation current boosting unit, the input end of a second hardware feedback circuit is connected with the output end of the isolation current boosting unit, the input end of the second hardware feedback circuit is connected with the input end of a second power amplification circuit, the output end of the current output unit is connected with the input end of a second signal sampling circuit, the output end of the second signal sampling circuit is connected with the input end of a second digital PID (proportion integration differentiation) adjusting circuit, the output end of the second digital PID adjusting circuit is respectively connected with one end of a third communication unit and, Is accurate. The current power amplifier ensures high accuracy and good stability of current source output through hardware feedback and a digital PID regulating circuit, and meets the requirements of IR46 test.
The second digital PID regulating circuit processes the acquired signal data in real time, calculates the amplitude and the phase of a current output signal, and then carries out digital regulation output on the current power amplifier by the CPU through regulating an internal digital potentiometer to ensure the current output to be stable.
Furthermore, the adjustable working power supply comprises a CPU control unit, a voltage output loop load detection circuit, a first analog signal regulation circuit, a first controllable switch power supply, a current output loop load detection circuit, a second analog signal regulation circuit and a second controllable switch power supply;
the input end of a voltage output loop load detection circuit is connected with the output end of a voltage output unit in a voltage power amplifier to detect the load of the voltage output loop in real time, the input end of a current output loop load detection circuit is connected with the output end of a current output unit in a current power amplifier to detect the load of the current output loop in real time, the input end of a CPU control unit is respectively connected with the output ends of the voltage output loop load detection circuit and the current output loop load detection circuit, the output end of the CPU control unit is respectively connected with the input ends of a first analog signal regulating circuit and a second analog signal regulating circuit, the output ends of the first analog signal regulating circuit and the second analog signal regulating circuit are respectively connected with the input ends of a first controllable switch power supply and a second controllable switch power supply, and the output end of the first controllable switch power supply is connected with the input end of a first power amplification circuit, the output end of the second controllable switching power supply is connected with the input end of the second power amplifying circuit, and the CPU control unit adjusts the output of the analog signal in real time according to the load change of the voltage and current output loop, so that the effect of controlling the output of the switching power supply is achieved.
Furthermore, the power source of the three-phase electric energy meter calibrating device also comprises an auxiliary power supply unit which provides working voltage for the human-computer interface control unit and the three-phase signal source.
Furthermore, the power source of the three-phase electric energy meter calibrating device also comprises a display unit, a keyboard unit and a communication unit, wherein the human-computer interface control unit is respectively connected with the display unit, the keyboard unit and the communication unit;
the human-computer interface control unit sets voltage and current output parameters through the keyboard unit and displays the parameters on the display unit.
Furthermore, the human-computer interface control unit is connected with a PC terminal through the communication unit, sends a command through the PC terminal, and outputs alternating current voltage and current signals with adjustable amplitude, phase and frequency through the three-phase signal source, the voltage power amplifier and the current power amplifier.
Furthermore, in the three-phase signal source, the voltage signal double D/A conversion circuit and the current signal double D/A conversion circuit both adopt AD5547 high-speed conversion chips, 24-bit output is realized through double 16 bits, and the voltage and current output resolution can be improved; the data processing unit adopts an STM32F 40732 processor, the data processing is fast, and the synchronous output of voltage and current analog small signals can be ensured.
Furthermore, a high-speed optical coupler is arranged between the first communication unit and the data processing unit for isolation.
Furthermore, the human-computer interface control unit comprises an ARM main control board, a keyboard board and a liquid crystal display screen, power source output parameters are set through the keyboard board, and state display is carried out through the liquid crystal display screen.
Furthermore, the CPU control unit adopts STM32F207, detects load change and adjusts the voltage output of the controllable switch power supply in real time through D/A and A/D resources in the CPU, and ensures that the power tube is in the optimal working state.
The invention generates an alternating current power source with small distortion degree and stable and high power output by a digital signal synthesis technology, a linear power amplification technology and a high-precision electric quantity sampling technology, and realizes the full-automatic detection of the IR46 electric energy meter by matching with other components and automatic test software.
The invention improves the output performance of small current and the output accuracy of various waveforms such as harmonic waves, square waves, spike waves and the like, and meets the requirements of performance test and function test of the IR46 electric energy meter.
Drawings
FIG. 1 is a schematic block diagram of a power source of a three-phase electric energy meter calibrating apparatus according to the present invention;
fig. 2 is a functional block diagram of the adjustable operating power supply of the present invention.
Fig. 1 is labeled as including: 1-a human-machine interface control unit; 2-a display unit; 3-a keyboard unit; 4-a communication unit; 5-a three-phase signal source; 51-a data processing unit; 52-a first communication unit; 53-voltage signal double D/A conversion circuit; 54-voltage analog conditioning circuit; 55-current signal double D/A conversion circuit; 56-current analog conditioning circuit; 6-voltage power amplifier; 61-a first pre-amplifier circuit; 62-a first power amplification circuit; 63-an isolation boosting unit; 64-a voltage output unit; 65-a first hardware feedback circuit; 66-a first signal sampling circuit; 67-a first digital PID regulating circuit; 68-a second communication unit; 7-current power amplifier; 71-a second pre-amplifier circuit; 72-a second power amplification circuit; 73-an isolated upflow unit; 74-a current output unit; 75-a second hardware feedback circuit; 76-a second signal sampling circuit; 77-a second digital PID regulation circuit; 78-a third communication unit; 8-adjustable working power supply.
Fig. 2 labels include: 6-voltage power amplifier; 7-current power amplifier; 8-adjustable working power supply; 81-a CPU control unit; 82-voltage output loop load detection circuit; 83-first analog signal conditioning circuit; 84-a first controllable switching power supply; 85-current output loop load detection circuit; 86-a second analog signal conditioning circuit; 87-second controllable switching power supply.
Detailed Description
The invention provides a power source of a three-phase electric energy meter calibrating device based on an IR46 standard, and the specific implementation mode of the invention is further described by combining the embodiment.
Referring to fig. 1 of the drawings, fig. 1 shows the working principle of a power source in the three-phase electric energy meter calibrating device. The power source of the three-phase electric energy meter calibrating device comprises a human-computer interface control unit 1, a display unit 2, a keyboard unit 3, a communication unit 4, a three-phase signal source 5, a voltage power amplifier 6, a current power amplifier 7, an adjustable working power supply 8 and an auxiliary power supply unit for supplying working voltage to the human-computer interface control unit and the three-phase signal source.
The three-phase signal source 5 consists of a data processing unit 51, a first communication unit 52, a voltage signal double D/A conversion circuit 53, a voltage analog conditioning circuit 54, a current signal double D/A conversion circuit 55 and a current analog conditioning circuit 56; one end of the data processing unit 51 is connected with the voltage signal double D/A conversion circuit 53 and the current signal double D/A conversion circuit 55, the other end is connected with the internal communication circuit of the human-computer interface control unit 1, the control command of the human-computer interface control unit 1 is received, the voltage signal double D/A conversion circuit 53 and the current signal double D/A conversion circuit 55 are informed to generate corresponding discrete small signals, the output end of the voltage signal double D/A conversion circuit 53 is connected with the input end of the voltage analog conditioning circuit 54, the output end of the current signal double D/A conversion circuit 55 is connected with the input end of the current analog conditioning circuit 56, the output end of the voltage analog conditioning circuit 54 is connected with the input end of the first pre-amplifying circuit 61 in the voltage power amplifier 6, the output end of the current analog conditioning circuit 56 is connected with the input end of the second pre-amplifying circuit 71 in the current power amplifier 7, the data processing unit 51 is connected to the input terminals of the second communication unit 68 and the third communication unit 78 in the voltage power amplifier 6 and the current power amplifier 7 through the first communication unit 52, respectively, and adjusts the output of the analog signal in real time by receiving the output feedback information in the power amplifiers.
The voltage power amplifier 6 is composed of a first pre-amplifying circuit 61, a first power amplifying circuit 62, an isolation boosting unit 63, a voltage output unit 64, a first hardware feedback circuit 65, a first signal sampling circuit 66, a first digital PID adjusting circuit 67 and a second communication unit 68; the input end of a first preamplification circuit 61 is connected with a voltage analog conditioning circuit 54 in a three-phase signal source 5 and receives an output analog signal of the voltage analog conditioning circuit 54, the output end of the first preamplification circuit 61 is connected with the input end of a first power amplification circuit 62, the output end of the first power amplification circuit 62 is connected with the input end of an isolation boosting unit 63, the input end of a voltage output unit 64 is connected with the output end of the isolation boosting unit 63, the input end of a first hardware feedback circuit 65 is connected with the output end of the isolation boosting unit 63, the input end of the first hardware feedback circuit 65 is connected with the input end of the power amplification circuit 62, the output end of the voltage output unit 64 is connected with the input end of a first signal acquisition unit 66, the output end of the first signal acquisition unit 66 is connected with the input end of a first digital PID adjusting circuit 67, and the output end of the first digital PID adjusting circuit, and the voltage output is ensured to be stable and accurate through digital PID regulation and feedback.
The current power amplifier 7 consists of a second pre-amplifying circuit 71, a second power amplifying circuit 72, an isolation current boosting unit 73, a current output unit 74, a second hardware feedback circuit 75, a second signal sampling circuit 76, a second digital PID adjusting circuit 77 and a third communication unit 78; the input end of a second preamplification circuit 71 is connected with a current analog conditioning circuit 56 in a three-phase signal source 5 and receives an output analog signal of the current analog conditioning circuit 56, the output end of the second preamplification circuit 71 is connected with the input end of a second power amplification circuit 72, the output end of the second power amplification circuit 72 is connected with the input end of an isolation current boosting unit 73, the input end of a current output unit 74 is connected with the output end of the isolation current boosting unit 73, the input end of a second hardware feedback circuit 75 is connected with the output end of the isolation current boosting unit 73, the input end of the second hardware feedback circuit 75 is connected with the input end of the second power amplification circuit 72, the output end of the current output unit 74 is connected with the input end of a second signal acquisition circuit 76, the output end of the second signal acquisition circuit 76 is connected with the input end of a second digital PID adjustment circuit 77, the output end of the second digital PID adjustment circuit 77 is respectively, the current output is ensured to be stable and accurate through digital PID regulation and feedback.
As shown in FIG. 2, the adjustable working power supply 8 comprises a CPU control unit 81, a voltage output loop load detection circuit 82, a first analog signal regulation circuit 83, a first controllable switch power supply 84, a current output loop load detection circuit 85, a second analog signal regulation circuit 86 and a second controllable switch power supply 87, wherein the input end of the voltage output loop load detection circuit 82 is connected with the output end of the voltage output unit 64 in the voltage power amplifier 6 for real-time detection of the voltage output loop load, the input end of the current output loop load detection circuit 85 is connected with the output end of the current output unit 74 in the current power amplifier 7 for real-time detection of the current output loop load, the input end of the CPU control unit 81 is respectively connected with the output ends of the voltage output loop load detection circuit 82 and the current output loop load detection circuit 85, the output end of the CPU control unit 81 is respectively connected with the first analog signal regulation circuit 83 and the second analog signal regulation circuit 86 The input ends of the first analog signal regulating circuit 83 and the second analog signal regulating circuit 86 are connected, the output ends of the first analog signal regulating circuit and the second analog signal regulating circuit are respectively connected with the input ends of a first controllable switching power supply 84 and a second controllable switching power supply 87, the output end of the first controllable switching power supply 84 is connected with the input end of a first power amplifying circuit 62 in a voltage power amplifier 6, the output end of the second controllable switching power supply 87 is connected with the input end of a second power amplifying circuit 72 in a current power amplifier 7, and the output of the controllable switching power supply is adjusted in real time by detecting the load change of a voltage and current output loop.
The human-computer interface control unit 1 is respectively connected with the display unit 2, the keyboard unit 3 and the data processing unit 51 in the three-phase signal source 5; the human-computer interface control unit 1 can set voltage and current output parameters including amplitude, phase, frequency, waveform type and the like through the keyboard unit 3 and display the parameters on the display unit 2, the human-computer interface control unit 1 is connected with a PC end through the communication unit 4, sends commands through the PC end, and outputs alternating voltage and current signals with adjustable amplitude, phase and frequency through the three-phase signal source 5, the voltage power amplifier 6 and the current power amplifier 7.
In this embodiment, the three-phase signal source employs a high-speed ARM processor (i.e., a data processing unit), a parallel D/a conversion chip with a low temperature coefficient and voltage reference (i.e., a voltage signal dual D/a conversion circuit and a current signal dual D/a conversion circuit), a precision resistor, and a precision operational amplifier (i.e., a voltage analog conditioning circuit and a current analog conditioning circuit); the D/A conversion chip in each path of signals adopts an AD5547 double 16-bit high-speed conversion chip, the D/A24-bit output can be realized through a precise resistance sampling network and a low-temperature drift precise operational amplifier circuit, the output performance of analog signals is greatly improved, the output rate of amplitude values can reach one thousandth of a ten-thousandth, and the output rate of phase positions can reach 0.001 degree; the ARM processor adopts a ST company 32-bit STM32F407 processor, the main frequency is up to 160MHz, 1800 discrete points are extracted from each cycle, six paths of waveforms occur simultaneously, and almost no delay exists; the voltage reference chip (a voltage signal double D/A conversion circuit and a current signal double D/A conversion circuit) adopts ADR421, has extremely low noise and extremely low temperature coefficient, and is stable in signal output by using a low-temperature drift operational amplifier; the application of the high-speed ARM processor and the double 16-bit D/A technology can greatly improve the number of digital waveform points and the resolution ratio, so that the output of analog signals in the digital-to-analog conversion process is more stable, the resolution ratio is high, the distortion degree is small, and the requirements of an IR46 harmonic test and the requirements of a small current performance test are completely met.
In the embodiment, the power amplification circuit adopts a linear power amplifier principle, and a gain programmable power amplifier (namely a pre-amplification circuit), a high-precision low-temperature drift operational amplifier (namely a power amplification circuit) and a closed-loop alternating current hardware feedback circuit (namely a hardware feedback circuit) are utilized, so that the whole circuit has higher frequency response and load regulation rate, and stable signal output is ensured; the amplitude and the phase of an output signal in a voltage and current power amplifier are calculated in real time through a signal sampling circuit and a digital PID regulating circuit, a CPU in the digital PID regulating circuit regulates parameters of the power amplifying circuit in real time through regulating an internal digital potentiometer, meanwhile, the digital PID regulating circuit performs information interaction with a data processing unit in a three-phase signal source, the amplitude and the phase of the voltage and the current output which are collected are transmitted to the signal source, the signal source regulates the output of an analog small signal in real time according to a set value and actual output, and the output signal is ensured to be stably and accurately output; for voltage and current signals output under the non-sine wave shape state, the digital PID adjusting circuit calculates the amplitude and initial phase angle of fundamental wave and each subharmonic by adopting a fast FFT algorithm, compares the amplitude and initial phase angle with a signal source set value to calculate the content error and phase error of the fundamental wave and each subharmonic, and then informs a signal source to correct small harmonic signals to ensure the output test requirements of each harmonic, subharmonic, odd harmonic, square wave and cusp wave amplified by a power amplifier.
In the embodiment, the working power supply in the voltage and current power amplifier adopts an adjustable working power supply, and the controllable switching power supply adopts a Hua 3KVA switching power supply, so that the output can be adjusted, the performance is stable, and the output is reliable; the CPU control unit adopts an STM32F207 chip, the voltage drop of the power tube is detected by utilizing the self A/D of the chip, and the D/A of the chip outputs a simulation small signal to control the output of the switching power supply according to a detection result, so that the voltage drop of the power tube can be ensured to be always maintained at a relatively constant level no matter how large the external load is output voltage and current, the heat quantity of the power tube can be ensured to be kept consistent no matter under the condition of no load or full load, and the working reliability of the power tube is improved; the perfect overvoltage, overcurrent and overheat protection circuit can ensure that power components are not damaged under extreme conditions, and greatly improve the reliability of the whole equipment.
In this embodiment, the communication unit includes RS232, RS485 communicating with the upper computer and RS232 communicating with the human-computer interface control unit, and a high-speed optical coupler is provided between the first communication unit 52 and the data processing unit 51 for isolation.
The three-phase signal source of the invention adopts an ARM processor and a double 16-bit A/D to 24-bit technology to realize the synchronous output of six paths of signals, the output resolution of amplitude reaches one million, and the output resolution of phase output amplitude reaches thousand 0.001 degrees; the voltage and current power amplifier adopts the principle of a linear power amplifier, and can ensure stable and accurate voltage and current output, good linearity and small waveform distortion by matching a hardware feedback circuit and a digital PID regulating circuit; the application of the adjustable switch power supply and the load real-time detection greatly improves the loading capacity and reliability of the linear power amplifier, and solves the problem that the loading capacity of the linear power amplifier is weak; through the application of the related technology, the stability of the power source is within 0.01%, the waveform distortion is less than 0.1%, the output accuracy of voltage and current is 0.05%, the load carrying capacity of a current loop is more than 2KVA, the output performance of 1mA small current is greatly improved, and the test requirement of IR46 small current can be met.
It will be apparent to those skilled in the art that modifications and equivalents may be made in the embodiments and/or portions thereof without departing from the spirit and scope of the present invention.