METHOD AND SYSTEM AND COMPUTER PROGRAM FOR MEASURING ALTERNATING-CURRENT SYSTEM QUANTITIES
20190204370 ยท 2019-07-04
Inventors
Cpc classification
G01R19/2506
PHYSICS
G01R19/2513
PHYSICS
G01R23/02
PHYSICS
International classification
G01R23/02
PHYSICS
Abstract
A method and system for measuring alternating-current system quantities through measurement connections producing frequency-dependent errors, in which method the analog signal of at least one measurement channel is sampled at a selected an approximately measured frequency f.sub.m at a multiple frequency f.sub.s, creating a base series depicting a period on each measurement channel, from each base series the fundamental frequency and the magnitude or phase-angle values or both of at least one harmonic frequency component are calculated with the aid of Fourier analysis or similar, each of which is corrected with the aid of a calibrated frequency-dependent function k(f), when the selected quantities are calculated from the calibrated values.
Claims
1. Method for measuring 3-phase alternating-current system quantities through measurement channels producing frequency-dependent errors of analog components using a system having CPU and software, each said measurement channel including an A/D converter and processing an analog signal depicting a selected current or voltage quantity and producing digital output using the A/D converter, the method comprising the steps of: a) providing a frequency-dependent correction function called a calibrated function k(f) depicting non-linearity of each measurement channel at different frequencies, b) producing an analog signal through each channel, depicting said selected current or voltage quantity, c) measuring frequency f.sub.m of the analog signal approximately in a chosen channel, d) producing momentary frequency-dependent correction values using said calibrated function k(f) at the approximately measured frequency and storing them in a registry, e) sampling at least one analog signal at a frequency f.sub.s that is a multiple of the approximately measured frequency f.sub.m at a multiple frequency f.sub.s, creating a base series depicting a period on the corresponding measurement channel, f) from each base series obtained, calculating a base frequency and at least one of magnitude and phase-angle values of at least one harmonic frequency component with the aid of a selected frequency analysis, g) correcting each calculated magnitude or phase-angle value or both using the momentary frequency-dependent correction values in the registry in order to eliminate error of each measurement channel, and h) calculating selected quantities from calibrated magnitude or phase-angle values or both, i) wherein the momentary frequency-dependent correction values in the registry are recalculated using the calibrated function k(f) when the measure frequency f.sub.m changes more than a selected criterion.
2. Method according to claim 1, wherein the calibrated function k(f) is created by calibrating non-linearity of each analog component of each measurement channel at different frequencies.
3. Method according to claim 1, wherein each correction function comprises a table containing discrete correction values at selected calibration frequencies.
4. Method according to claim 1, wherein the correction function is a matrix, in which the elements correspond to a specific input and are the correction values for discrete frequencies, and intermediate values are interpolated.
5. Method according to claim 1, wherein the magnitude or phase-angle values or both are calculated for 7-64 harmonic frequency components.
6. Methods according to claim 1, wherein the magnitude or phase-angle values or both are calculated for 15-31 harmonic frequency components.
7. Method according to claim 1, wherein the said measurement range is 5-100 Hz.
8. Method according to claim 1, wherein the said measurement range is 6-75 Hz.
9. Method according to claim 1, wherein the selected analysis belongs to the group of conventional Fourier, FFT, and Wavelet analysis.
10. Method according to claim 1, comprising the step of calibrating each channel magnitude-dependently.
11. Method according to claim 1, comprising the step of using FFT calculation and setting the sampling frequency f.sub.s continuously relative to the measured frequency f.sub.m using the equation
f.sub.s=f.sub.mthe number of samples in FFT buffer.
12. System for measuring 3-phase alternating-current quantities, the system comprising: a) an analog component comprising several measurement channels, each including an A/D converter for processing an analog signal depicting a selected current or voltage quantity and producing a digital output, b) means for measuring frequency f.sub.m of the analog signal approximately, c) a registry storing momentary frequency-dependent correction values, d) means for sampling each analog signal approximately at a frequency f.sub.s that is a multiple of a measured frequency f.sub.m creating a base series depicting a period on each measurement channel, e) frequency-analysis means for calculating a base frequency and a magnitude or phase-angle value or both of at least one harmonic frequency component from each of the base series obtained, f) means for correcting each calculated magnitude or phase-angle value or both using the momentary frequency-dependent correction values in the registry in order to eliminate error of each measurement channel, g) means for calculating the selected quantities from the calibrated magnitude or phase-angle values or both, h) a condition module for triggering recalculating when the measured frequency f.sub.m changes more than a selected criterion, and i) means for calculating the momentary frequency-dependent correction values in the registry, when triggered.
13. System according to claim 12, wherein the system comprises at least one replaceable circuit card comprising one measurement-channel analog component and an A/D converter.
14. System according to claim 13, wherein the said replaceable circuit card comprises the analog components of several channels and a non-volatile memory arranged to store the calibration factors of the measurement card.
15. System according to claim 12, wherein said correction table comprises a matrix, the elements of which correspond to a specific input and are the correction values for discrete frequencies.
16. System according to claim 12, wherein the system comprises a CPU, RAM/ROM memories, and I/O means, as well as an operating system for running the calculation software.
17. Computer program comprising program code for implementing the method according to claim 1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In the following, the invention is described in detail with reference to the accompanying drawings depicting some embodiments of the invention, in which
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
DETAILED DESCRIPTION OF THE INVENTION
[0037] The protection device 20 of
[0038] Voltage detection uses a common star-connected primary-coil series 29. The voltage inputs U1-U3 (phase voltages) use a star-connected secondary-coil series 28 and the zero voltage to the voltage input U4 is formed by the open-delta connection 27 of the voltage converters. The voltages are taken to the voltage-checking converters 26 of the protection device.
[0039] The current detection IL1, IL2, IL3 of the phases of the feed line uses inductively connected coils 15 in each phase conductor. In addition, the current I01 of the earth conductor of the cable terminal is detected by means of a coil 15.1. In this case, the current input I02 is not in use. The current measurements are taken to the current-measurement transformer 24.
[0040] A precondition of first-class operation is the precise measurement of the phase quantities, which, when the frequency varies, is challenging, because conventional measurement electronics only operate well at the nominal frequency, for example, 50 Hz.
[0041] The input of the current and voltage measurements consists of analog components, which may have a considerable divergence in electrical properties, particularly farther from the nominal frequency.
[0042]
[0043] Each analog signal is sampled at the A/D converter at a multiple of the approximately measured frequency f.sub.m (6-75 Hz, tolerance about 100 mHz) creating a base series depicting the period in such a way that the samples of the period form a fundamental-wave length FFT buffer for each measurement channel of essentially one entire electrical period (e.g, the fundamental wave of a 50-Hz electrical period is 20 ms). The A/D converter is controlled by a sampling signal S brought from the host processor, the frequency of which f.sub.s is adjusted according to the approximately measured base frequency f.sub.m, preferably using the equation:
f.sub.s=f.sub.mnumber of samples of the FFT buffer.
[0044]
[0045]
[0046] In
[0047] The 32 vectors selected for further processing are scaled to form root-mean-square values in the multiplier 33 (complex vector(sqrt(2)/number of samples)). After this, the vector of each frequency component (in this case current) is taken to the calibration correction module 34, which is shown in greater detail in
[0048] An approximate maximum value (output 5), which can be used for the approximate adjustment of later stages, for example, is formed from the uncalibrated input signal by the calculator 38.
[0049]
[0050] Calibration corrections according to
[0051] By calibrating the magnitude and phase angle of the harmonic frequency components, TRMS (True Root Mean Square), the measurements using the different harmonic components and depending on multiple frequencies become accurate, which would otherwise depend entirely on the properties of the available measurement techniques, especially at higher harmonic frequencies. The measurement technique typically measures accurately only at the fixed frequency of the fundamental wave.
[0052]
[0053] Each current input has separate magnitude and phase-angle correction tables. The momentary calibration values for each channel are stored in registries 52. Controlled by the clock pulse, the outputs 51.M (magnitude) and 51.A (phase angle) read the momentary discrete correction values Y1-Y8 to the approximation calculation modules 54 and 55 (magnitude and phase angles separately, on all channels). The same clock pulse controls the reading of the discrete frequency values (6, 15, 25, 30, 40, 50, 60, and 75 Hz), with which the calibration is made, for all the calculation modules 54, 55 together to the outputs X1-X8 of the various calculation modules. The calibrated factors Y1-Y8 are retrieved from their own, channel-specific column in Table 1. This is calculated on all the current-measurement channels IL1-IL3, IL01, and IL02. The factors are calculated by the linear approximation from these momentary correction values using the following procedure:
[0054] X=[X1, X2, X3, X4, X5, X6, X7, X8]; the frequency-dependence factor is an 8-place vector (discrete frequencies 6-75 Hz);
[0055] Y=[Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8]; the magnitude or phase-angle correction factor is an 8-place vector, in which there are factors corresponding to the discrete frequencies;
[0056] The discrete frequency X(i) immediately below the measured frequency freq and the corresponding factor Y(i) are sought. The correction value is freqk=(Y(i)+((freqX(i))*((Y(i+1)Y(i))/(X(i+1)X(i))))).
[0057] The extreme values Y1 and Y8 of the factors are used above and below the discrete frequencies. The calculated factor is taken to the magnitude/phase-angle registry of the corresponding channel, e.g., the magnitude correction factor of the channel IL1 to the registry M1CT1_IL1MCF1_1 (56.M.IL1).
[0058] The analog front-end design has a considerable effect on the number of the calibration frequencies required and their selection. If the design is not linear, the desired accuracy can be achieved by increasing the number of calibration points. Similarly, a linear approximation between the discrete points is not necessarily required, if there is a sufficiently large number of discrete points.
[0059] In the following is an example of a correction table, in which there are the magnitude and angle correction values of different current-measurement channels IL1, IL2, IL3, I01, and I02 at the discrete frequencies 6-75 Hz (8 items).
TABLE-US-00001 TABLE 1 freq [Hz] IL1Cf IL2Cf IL3Cf I01Cf I02Cf 6 1.00870 1.00855 1.00673 0.90746 0.86719 15 1.00758 1.00756 1.00554 0.94732 0.90845 25 1.00758 1.00776 1.00565 0.98543 0.97558 30 1.00763 1.00774 1.00569 0.98928 0.98439 40 1.00842 1.00855 1.00617 0.98968 0.98666 50 1.00832 1.00836 1.00634 0.99051 0.98772 60 1.00815 1.00836 1.00573 0.99094 0.98884 75 1.00773 1.00802 1.00579 0.99111 0.98925 freq [Hz] IL2ang IL3ang I01ang I02ang 6 0.03 0.00 4.63 4.23 15 0.02 0.00 2.53 2.70 25 0.01 0.00 0.88 1.28 30 116.94 0.02 0.42 0.69 40 20.52 0.01 0.28 0.47 50 0.00 0.00 0.18 0.32 60 0.01 0.00 0.12 0.25 75 0.01 0.00 0.11 0.19
[0060] The angle value of channel IL1 acts as a reference for the angle values of the other channels.
[0061] These values are stored in the card's memory 21, from where they are read to the processor's RAM memory in connection with the initialization relating to starting the device.
[0062] Table 1 shows the application's calibrated frequency-dependent function k(f), with the aid of which each measurement channel the said error is eliminated.
[0063] In the calculation model of
[0064] According to
[0065] In general, the core of the system is a computer program, which comprises program code for implementing the method described.
[0066] The apparent output is calculated using the, as such, known equation:
[0067] From this the effective output and reactive output are calculated using the equations:
[0068] Accurate calculation requires also taking the harmonic frequency components into account, in which case the apparent output of each phase is calculated as the sum of the frequency components, as follows:
[0069] After this, the aforementioned effective-output and reactive-output equations can be applied.
[0070] According to
[0071] The errors of the measurement card according to the invention, for example, at different phase currents, are, according to
[0072]
[0073] In order to start use of the system for measuring 3-phase alternating-current system quantities a calibrated function k(f) should be provided (
[0074] The recalculation of the calibration registry is shown as a flow diagram in
[0075] From the flow diagram of the recalculation procedure (
[0076] The calibration system uses a programmable signal generator 71, which produces signals at pre-set frequencies, here 6, 15, 25, 30, 40, 50, 60, and 75 Hz. Also, the amplitude level is adjusted by the computer 70, but the non-linearity of amplitude variation is less significant. Thus, signals with pre-set frequencies and amplitudes are fed to the input of the channel (I/O-component 22). Simultaneously, the signal is measured accurately by a laboratory reference meter 72.
[0077] A comparator module 73 compares the calculated result of the apparatus 20 itself and a value measured by a reference meter 72. Both digital values are brought to a computer 70 having that comparator module 73 (via e.g. RS-485). The comparator module 73 feeds the difference to the computer 70, which stores the value in Table 1. For example, in the channel IL1Cf at 6 Hz the difference has given a ratio of 1.00870 at the set amplitude. Thus, the correct current value is 1.00870 times the measured value.
[0078] The Table 1 can be set to a chosen amplitude value, but it can also be formed as an average value of the values measured at different amplitudes.
[0079] The values in each column forma calibrated function k(f) of that column, e.g. IL1Cf. At intermediate frequencies, the correction value is interpolated.
[0080] The method according to the invention gives an extremely accurate result over a wide frequency range. The frequency-dependent correction is preferably made to the magnitude and phase-angle values of several frequency components. The correction function is preferably a matrix, in the elements corresponding to a specific input are the correction values for discrete frequencies. These can be used in a stepped manner, but it is preferable to interpolate the intermediate values. Extreme values can be used outside the nominal frequency range.