A pure zero-crossing output method for calibrating a power source of a device
By employing a pure zero-crossing output method in the programmable power source, the problems of voltage waveform glitches and distortions in the energy meter calibration device were solved, achieving stable signal output and energy meter stability, thus meeting the test requirements for energy meter calibration.
Patent Information
- Application Number
- CN202310232230.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2043-03-10
AI Technical Summary
Existing programmable power sources have problems with large spikes and waveform distortion in the output voltage waveform, which leads to damage and abnormal operation of the protection components in the power supply circuit of the energy meter.
The pure zero-crossing output method is adopted, and the microcontroller is controlled by the timer to generate a sine wave signal, so that the signal is output from zero each time to avoid feedback circuit oscillation, and the soft start process is used to ensure smooth signal output.
The reduced output delay time minimized signal spikes and glitches, ensuring the stability and accuracy of the energy meter during voltage dips and interruptions, thus meeting the testing requirements for energy meter verification.
Smart Images

Figure CN116338548B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a pure zero-crossing output method for calibrating a power source of a device, and belongs to the technical field of electric energy measurement. BACKGROUND
[0002] Programmable power source refers to a single-phase or three-phase power signal source capable of outputting high-stability, high-accuracy, high-linearity and continuously adjustable power signals through PC or interface control, and the power signals include three-phase voltage, current, phase, power factor, active power, reactive power, etc. It is widely used in the calibration and calibration of various electric energy meters, voltage meters, current meters, phase meters, frequency meters, power meters, power factor meters and other electric power measurement devices, voltage transmitters, current transmitters, power transmitters, frequency transmitters, power factor transmitters and other electric quantity transmitters, as well as the calibration and calibration of electric energy meter field calibration instrument, multi-function multimeter, reactive power compensation controller, electric power data collector, voltage monitor, power distribution load monitor, load management terminal, power distribution automation terminal, intelligent terminal, FTU / DTU / TTU and other instruments and equipment.
[0003] When voltage sag and voltage interruption tests are performed on electric power measurement devices such as electric energy meters, the technical specifications and calibration procedures require the following test items: test a, the amplitude of the power supply of the electric energy meter is reduced by 30% (relative to the rated voltage), and the duration is 0.5 power frequency cycles (duration 10 ms); test b, the amplitude of the power supply of the electric energy meter is reduced by 60%, and the duration is 1 power frequency cycle (duration 20 ms); test c, the amplitude of the power supply of the electric energy meter is reduced by 60%, and the duration is 25 cycles (duration 1 s); test d, the amplitude of the power supply of the electric energy meter is reduced to 0, and the duration is 250 cycles (duration 10 s). These test items require that the programmable power source configured by the calibration device used for factory inspection and type test of the electric energy meter should have the waveform signals required by these test items. The conventional control source output mode is as follows: when receiving the control source output instruction, the programmable power source power amplifier unit and the output relay work at the same time, and after a delay, the DAC output is directly controlled on the premise of the last output state. This kind of control source output mode has the following problems:
[0004] 1) Direct source, the front waveform contains large clip impulse, as shown in Figures 3-4, when the control source 220V voltage output, the source start-up will produce the clip of peak-peak value 392V, duration 7.9ms;When the control source 380V voltage output, the source start-up will produce the clip of peak-peak value 1.7kV, duration 6.1ms, this voltage output waveform when power supply power supply drop and interruption test to the electric energy meter, will cause damage to the electrolytic capacitor, TVS tube and other protection components in the power supply loop of the electric energy meter, lead to the abnormal work of electric energy meter.This phenomenon is because the enable power amplifier unit output, voltage feedback circuit instantaneous oscillation, after the amplifier, the signal is amplified, at the same time, the output relay is opened, let the error waveform normal output.
[0005] 2) When the drop and interruption test, the waveform is distorted in the early stage, as shown in Figures 5-6.Specifically, first, the start-up waveform cannot guarantee to start from zero, or the two different amplitude waveforms are not coherent;Second, due to the existence of delay in the hardware feedback compensation circuit, when the current stage signal suddenly changes, the response of the next stage is not timely, resulting in oscillation of the waveform, leading to the oscillation and clip impulse in the first two cycles of the output waveform. SUMMARY
[0006] In order to overcome the above problems, the present application provides a pure zero-crossing output method for power source of a testing device, which is because the signal is output from zero every time, and the feedback circuit will not oscillate at the starting time of the output signal due to the existence of over-compensation.
[0007] The technical scheme of the present application is as follows:
[0008] First aspect
[0009] A pure zero-crossing output method for power source of a testing device, comprising:
[0010] obtaining a sine wave data table;
[0011] calculating the timer trigger interval according to the point number and period of the sine wave data table;
[0012] obtaining and analyzing the control source signal to obtain the corresponding phase and frequency of the required voltage;
[0013] transporting the sine wave data table by the timer controlled microcontroller to generate a sine wave signal, specifically:
[0014] the timer periodically sends a source-up instruction to the microcontroller;
[0015] after receiving the first source-up instruction, the microcontroller starts to cyclically transport the sine wave data table;The time for transporting the sine wave data table once is an integer multiple of the timer trigger interval;
[0016] The microcontroller assigns the pointer to the sine wave data table each time it receives a source rising instruction;
[0017] The microcontroller outputs a voltage waveform signal according to the sine wave data table.
[0018] Further, the time of entering the interrupt is changed by setting the preloading value of the timer or the pre-scaling factor, so as to change the sine wave frequency.
[0019] Further, the trigger interval of the timer according to the point number and the period of the sine wave data table is specifically:
[0020] The system clock of the microcontroller is Tsystick;
[0021] The single clock cycle of the timer is:
[0022] Ttim=(TIM_Prescaler+1)×Tsystick;
[0023] Wherein, TIM_Prescaler is the pre-scaling value of the timer;
[0024] The trigger cycle of the timer is:
[0025] Tupdate=(TIM_Period+1)×Ttim;
[0026] Wherein, TIM_Period is the period of the timer.
[0027] Further, the microcontroller assigns the pointer to the sine wave data table each time it receives a source rising instruction, and specifically:
[0028] S1, the microcontroller determines the phase corresponding to the required voltage according to the source rising instruction;
[0029] S2, if the phase corresponding to the required voltage includes the A-phase voltage, the A-phase voltage is taken as the reference phase, if it does not include the A-phase voltage but includes the B-phase voltage, the B-phase voltage is taken as the reference phase, otherwise, the C-phase voltage is taken as the reference phase;
[0030] S3, after the microcontroller receives the source rising instruction for the first time, the sine wave data table pointer of the reference phase is updated to the positive zero-crossing point, and the sine wave data table pointers of the remaining phases are updated in turn according to the phase difference between the remaining phases and the reference phase, and the output half cycle of the reference phase is reversed;
[0031] S4, after the microcontroller receives the source rising instruction again, the sine wave data table pointers of the reference phase and the remaining phases are updated in turn according to the output half cycle of the reference phase, and the output half cycle of the reference phase is reversed;
[0032] S5, repeat step S4.
[0033] Further, the output circuit of the power source comprises:
[0034] a plurality of voltage output gears, each output gear being connected to the output relay through a relay;
[0035] After the source control signal is acquired, the relay of the corresponding voltage gear is closed according to the required voltage amplitude.
[0036] After the microcontroller transmits the sine wave data table, the output relay is closed after a delay, and the required voltage is output.
[0037] Further, when a signal sag or drop occurs, the last updated phase pointer when the sag or drop occurs is recorded, and the last updated phase pointer is used to update the sine wave data table pointer of the phase again after the source rise instruction is received again.
[0038] The second aspect
[0039] A control method of a power source of a detection device, the sine wave signal generated by the pure zero-crossing point output method for the power source of the detection device in the first aspect is used to control the power source of the detection device, comprising:
[0040] The source control signal is acquired, and the voltage amplitude V1 of the power source output signal is confirmed.
[0041] According to the voltage amplitude V1, the corresponding power source gear relay is closed.
[0042] The sine wave signal is generated by the pure zero-crossing point output method for the power source of the detection device in the first aspect.
[0043] After the delay time T1, the power source output relay is closed, and the sine wave signal required for the output of the source control signal is stabilized.
[0044] A control method of a power source of a detection device, the sine wave signal generated by the pure zero-crossing point output method for the power source of the detection device in the first aspect is used to control the power source of the detection device, comprising:
[0045] G1, acquire and analyze the source control signal information;
[0046] G2, initialize the power amplification unit and the relay control IO port;
[0047] G3, enable the power amplification unit IO port;
[0048] G4, select the corresponding voltage gear and enable the corresponding relay IO port;
[0049] G5, output the generated sine wave signal;
[0050] G6, preset the feedback coefficient;
[0051] G7, step-by-step adjustment of sine wave amplitude;
[0052] G8, update error value;
[0053] G9. Determine whether the error value is 0. If not, execute step G7;
[0054] G10, close the output relay;
[0055] G11, output the required voltage.
[0056] A method for controlling a power source of a calibration device includes a signal output process:
[0057] T1, the microcontroller register is preloaded with a three-phase sine wave data table;
[0058] T2. Acquire and analyze the control source signal;
[0059] T3, initialize DAC channel and DAC working mode;
[0060] T4, initialize the DAC timer;
[0061] T5, update DAC user timer trigger interval;
[0062] T6. Configure the microcontroller DMA;
[0063] T7, change the timer ARR or PSC to adjust the sine wave frequency to the required size of the control source signal;
[0064] T8, set the A phase signal to output in the positive half cycle;
[0065] T9, determine whether the A-phase signal is in the positive half cycle output, if not, execute step T13, if so, execute step T10;
[0066] T10, update the A-phase sine wave data table pointer to the positive zero crossing point;
[0067] T11, update the C phase sine wave data table pointer to the negative zero crossing point;
[0068] T12, update the B-phase sine wave data table pointer to the positive zero crossing point, set the A-phase signal to the negative half-cycle output, and execute step T16;
[0069] T13, update the A phase sine wave data table pointer to the negative zero crossing point;
[0070] T14, update the C phase sine wave data table pointer to the positive zero crossing point;
[0071] T15, the updating B-phase sine wave data table pointer is at a negative zero-crossing point, the A-phase signal is set to be at a positive half-cycle output, and step T16 is performed;
[0072] T16, it is judged whether the sine wave signal output is ended, if yes, the signal output flow is ended, otherwise step T9 is performed.
[0073] The present application has the following beneficial effects:
[0074] 1. Compared with the commonly used source control output (A1-B1-C2), the phase-to-phase output delay time is reduced from 13.3 ms to 6.67 ms, which fully meets the response requirements of test a, test b and test c required by the regulations. For test a, the required temporary drop time is 10 ms. If the software control time is set to 10 ms, the waiting time is added to 6.67 ms, which may not meet the requirements logically. In actual control, the waiting time can be set to 3.33 ms, so that the phase-to-phase output response delay time of 6.67 ms is added, which meets the requirement of the temporary drop time of 10 ms.
[0075] 2. The pure zero-crossing output method starts from zero point each time, and the feedback circuit will not oscillate at the starting time of the output signal due to over-compensation.
[0076] 3. The pure zero-crossing output method ensures smooth output of the signal by increasing the soft start preprocessing of the setting signal, and there is no impact and burr. BRIEF DESCRIPTION OF DRAWINGS
[0077] Figure 1 The pure zero-crossing output method of the present application is a sine wave signal output flow.
[0078] Figure 2 The power source multi-gear voltage output circuit diagram of the embodiment of the present application.
[0079] Fig. 3-4 is a pre-waveform diagram of the prior art direct source rising.
[0080] Fig. 4 is a pre-waveform diagram of the prior art temporary drop and interruption test.
[0081] Fig. 5 is the burr suppression effect of the embodiment of the present application.
[0082] Fig. 6 is the waveform distortion improvement effect of the embodiment of the present application.
[0083] Figure 7 The rising source method schematic diagram of the embodiment of the present application.
[0084] Figure 8 The feedback compensation flow of the embodiment of the present application. DETAILED DESCRIPTION
[0085] The application will be described in detail below with reference to the drawings and specific embodiments.
[0086] First aspect
[0087] Reference Figure 1 A pure zero-crossing output method for calibrating a power source of a device, comprising:
[0088] Obtaining a sine wave data table;
[0089] Calculating a timer trigger interval according to the number of points in a period and the period of the sine wave data table;
[0090] Obtaining and analyzing a control source signal to obtain a corresponding phase and frequency of a required voltage;
[0091] Transferring the sine wave data table by the timer to control the microcontroller to generate a sine wave signal, specifically:
[0092] The timer periodically sends a source rising instruction to the microcontroller;
[0093] After receiving the first source rising instruction, the microcontroller starts to cyclically transfer the sine wave data table, and the time for transferring the sine wave data table once is an integer multiple of the timer trigger interval;
[0094] The microcontroller assigns a pointer to the sine wave data table after receiving the source rising instruction each time;
[0095] The microcontroller outputs a voltage waveform signal according to the sine wave data table.
[0096] Since the output starts from zero after receiving the source rising instruction this time, the feedback circuit will not cause the output signal to oscillate at the starting moment due to overcompensation.
[0097] In some embodiments of the application, the time of entering the interrupt is changed by setting the preloaded value or the pre-frequency division coefficient of the timer, so as to change the frequency of the sine wave.
[0098] Generally speaking, the more the preloaded value of the timer is, the more smooth and realistic the sine wave signal is. Considering the program response time and waveform output effect, the minimum number of the preloaded value of the 50Hz power frequency signal is selected as 400 in a specific embodiment. The pre-frequency division coefficient is related to the main frequency of the selected MCU, and generally 2 raised to the power of n is selected as the pre-frequency division coefficient according to the main frequency of the MCU.
[0099] In some embodiments of the application, the timer trigger interval is calculated according to the number of points in a period and the period of the sine wave data table, specifically:
[0100] The system clock of the microcontroller is Tsystick;
[0101] A single clock cycle of the timer is:
[0102] Ttim = (TIM_Prescaler + 1) x Tsystick
[0103] wherein TIM_Prescaler is a prescaler value of the timer.
[0104] A trigger cycle of the timer is:
[0105] Tupdate = (TIM_Period + 1) x Ttim
[0106] wherein TIM_Period is a period of the timer.
[0107] In an embodiment of the present application, the microcontroller assigns a pointer to the sine wave data table each time it receives a source boost instruction, specifically:
[0108] S1. The microcontroller determines the phase corresponding to the required voltage according to the source boost instruction;
[0109] S2. If the phase corresponding to the required voltage includes the A-phase voltage, the A-phase voltage is taken as the reference phase, if it does not include the A-phase voltage but includes the B-phase voltage, the B-phase voltage is taken as the reference phase, otherwise the C-phase voltage is taken as the reference phase;
[0110] S3. After the microcontroller receives the source boost instruction for the first time, the pointer of the sine wave data table of the reference phase is updated to the positive zero-crossing point, and the pointers of the sine wave data tables of the remaining phases are updated in turn according to the phase difference between the remaining phases and the reference phase, and the output half cycle of the reference phase is reversed;
[0111] S4. After the microcontroller receives the source boost instruction again, the pointers of the sine wave data tables of the reference phase and the remaining phases are updated in turn according to the output half cycle of the reference phase, and the output half cycle of the reference phase is reversed;
[0112] S5. Repeat step S4.
[0113] Reference Figure 7 In a specific embodiment, the required voltage includes three-phase A, B and C, the initial phase of the A-phase is 0°, the initial phase of the B-phase is 120°, the initial phase of the C-phase is 240°, and the A-phase voltage is taken as the reference voltage.
[0114] After receiving the source boost instruction for the first time, the pointer of the sine wave data table of the A-phase is assigned to A1 point, the pointer of the sine wave data table of the C-phase is assigned to C1 point, the pointer of the sine wave data table of the B-phase is assigned to B1 point, and the output voltage of the reference phase is reversed to the negative half cycle output.
[0115] After receiving the rising source instruction again, the pointer of the A-phase sine wave data table is assigned to A2 point, the pointer of the C-phase sine wave data table is assigned to C2 point, and the pointer of the B-phase sine wave data table is assigned to B2 point, thereby completing the sine wave output of one period. By analogy, after the timer periodically issues the rising source instruction, the sine wave is periodically output.
[0116] Reference Figure 2 In an embodiment of the present application, the output circuit of the power source comprises:
[0117] a plurality of voltage output gears, each output gear being connected to the output relay through a relay;
[0118] After the control source signal is acquired, the relay of the corresponding voltage gear is closed according to the required voltage amplitude.
[0119] After the microcontroller transfers the sine wave data table, the output relay is closed after a period of time, and the required voltage is output.
[0120] The load device is connected after the voltage output is stable, thereby improving the stability of the output voltage. In some specific embodiments, the delay is 1s.
[0121] In an embodiment of the present application, when the signal sag or dip occurs, the last updated phase pointer when the sag or dip occurs is recorded, and after the rising source instruction is received again, the sine wave data table pointer of the phase is updated again according to the last updated phase pointer.
[0122] According to the requirements of the verification regulation, the voltage sag or dip test examines the influence of the voltage change on the measurement accuracy of the electric energy meter. The electric energy meter is in an online power taking mode, when the voltage sag or dip occurs, the power supply of the electric energy meter is also unstable, which directly leads to the instability of the working power supply system of the electric energy meter, thereby affecting the measurement of the data. On the other hand, the measurement of power and electric energy is generally realized by the point product of voltage and current. If the sag or dip occurs in addition to the amplitude change, the calculated power or electric energy will be inaccurate. Therefore, by controlling the phase synchronization of the waveforms before and after the sag or dip, the calculation deviation can be reduced.
[0123] Reference Figure 7In a specific embodiment, when a signal sag or dip test is performed (within several power frequency cycles), the software records the zero-crossing direction of the signal sag or dip to the set value, and when the normal output of the signal is re-controlled, the time sequence of the multi-phase signal re-rising source is selected according to the zero-crossing direction after the signal sag or dip. If the initial phase of phase A is 0°, the initial phase of phase B is 120°, and the initial phase of phase C is 240°, if the signal sag or dip to the set value is recorded to the negative zero-crossing point C1 of phase C, when the instruction of the normal signal rising source is re-received, the pointer of the sine wave data table of phase C is given to the C1 point, the pointer of the sine wave data table of phase B is given to the B1 point, and the pointer of the sine wave data table of phase A is given to the A2 point, so as to control the output of the three-phase signal in this time sequence.
[0124] Second aspect
[0125] A control method of a power source of a testing device, the power source of the testing device being controlled by a sine wave signal generated by the pure zero-crossing point output method for the power source of the testing device in the first aspect, comprising:
[0126] obtaining a control source signal, and confirming a voltage amplitude V1 of the output signal of the power source;
[0127] closing a corresponding power source gear relay according to the voltage amplitude V1;
[0128] generating a sine wave signal by the pure zero-crossing point output method for the power source of the testing device in the first aspect;
[0129] after a delay time T1, closing a power source output relay, and stabilizing the sine wave signal required by the control source signal.
[0130] Reference Figure 8 A control method of a power source of a testing device, the power source of the testing device being controlled by a sine wave signal generated by the pure zero-crossing point output method for the power source of the testing device in the first aspect, comprising:
[0131] G1, obtaining and analyzing control source signal information;
[0132] G2, initializing a power amplification unit and a relay control IO port;
[0133] G3, enabling the IO port of the power amplification unit;
[0134] G4, selecting a corresponding voltage gear, and enabling a corresponding relay IO port;
[0135] G5, outputting the generated sine wave signal;
[0136] G6, presetting a feedback coefficient;
[0137] G7, step adjusting the amplitude of the sine wave;
[0138] G8, update error value;
[0139] G9, determine whether the error value is 0, if not, execute step G7;
[0140] G10, close the output relay;
[0141] G11, output the required voltage.
[0142] By increasing the voltage soft start processing, the smooth output of the signal is ensured, and there is no impact and burr. Refer to Figure 5.
[0143] A control method of a power source of a verification device, comprising a signal output flow:
[0144] T1, preloading a three-phase sine wave data table in a register of a microcontroller;
[0145] T2, obtaining and analyzing a control source signal;
[0146] T3, initializing a DAC channel and a DAC working mode;
[0147] T4, initializing a timer for the DAC;
[0148] T5, updating a DAC user timer trigger interval;
[0149] T6, configuring a microcontroller DMA;
[0150] T7, changing a timer ARR or PSC to adjust the sine wave frequency to the size required by the control source signal;
[0151] T8, setting the A-phase signal to be output in the positive half cycle;
[0152] T9, determining whether the A-phase signal is output in the positive half cycle, if not, executing step T13, and if yes, executing step T10;
[0153] T10, updating the A-phase sine wave data table pointer to be at the positive zero-crossing point;
[0154] T11, updating the C-phase sine wave data table pointer to be at the negative zero-crossing point;
[0155] T12, updating the B-phase sine wave data table pointer to be at the positive zero-crossing point, setting the A-phase signal to be output in the negative half cycle, and executing step T16;
[0156] T13, updating the A-phase sine wave data table pointer to be at the negative zero-crossing point;
[0157] T14, updating the C-phase sine wave data table pointer to be at the positive zero-crossing point;
[0158] T15, the updating B-phase sine wave data table pointer is at a negative zero-crossing point, the A-phase signal is set to be at a positive half cycle output, and step T16 is executed;
[0159] T16, it is judged whether the sine wave signal output is ended, if yes, the signal output flow is ended, otherwise, step T9 is executed.
[0160] The above is only an embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure made by using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A method for verifying the pure zero-crossing output of a power source of a device, characterized in that: include: Get the sine wave data table; Calculate the timer trigger interval based on the number of points and period in the sine wave data table; Obtain and analyze the control source signal to obtain the corresponding phase and frequency of the required voltage; The sine wave data table is transferred by the timer to control the microcontroller to generate a sine wave signal, specifically: The timer periodically sends a power-up instruction to the microcontroller; After receiving the first source-up instruction, the microcontroller starts to cyclically transfer the sine wave data table; the time for transferring the sine wave data table once is an integer multiple of the timer trigger interval; Each time the microcontroller receives a source-raising instruction, it assigns a pointer to the sine wave data table; The microcontroller outputs a voltage waveform signal according to the sine wave data table.
2. The method for verifying the pure zero-crossing output of the power source of a device according to claim 1, characterized in that: By setting the preload value or prescaler coefficient of the timer, the time to enter the interrupt is changed, thereby changing the frequency of the sine wave.
3. The method for verifying the pure zero-crossing output of a power source of a device according to claim 1, characterized in that: The timer trigger interval is calculated based on the number of points and period in the period of the sine wave data table as follows: The system clock of the microcontroller is Tsystick; A single clock cycle of the timer is: Ttim=(TIM_Prescaler+1)×Tsystick; Among them, TIM_Prescaler is the prescaler value of the timer; The trigger period of the timer is: Tupdate=(TIM_Period+1)×Ttim; Wherein, TIM_Period is the period of the timer.
4. The method for verifying the pure zero-crossing output of a power source of a device according to claim 1, characterized in that: Each time the microcontroller receives a source-up instruction, it assigns a pointer to the sine wave data table, specifically: S1, the microcontroller determines the phase corresponding to the required voltage according to the source raising instruction; S2. If the phase corresponding to the required voltage includes the A-phase voltage, the A-phase voltage is used as the reference phase. If the A-phase voltage is not included but the B-phase voltage is included, the B-phase voltage is used as the reference phase. Otherwise, the C-phase voltage is used as the reference phase. S3. After the microcontroller receives the power-up command for the first time, it updates the sine wave data table pointer of the reference phase to the positive zero crossing point. Based on the phase differences between the remaining phases and the reference phase, it updates the sine wave data table pointers of the remaining phases in sequence and reverses the output half cycle of the reference phase. S4. After receiving the power-up instruction again, the microcontroller updates the sine wave data table pointers of the reference phase and the remaining phases in sequence according to the output half cycle of the reference phase, and turns the output half cycle of the reference phase. S5. Repeat step S4.
5. The method for verifying the pure zero-crossing output of the power source of a device according to claim 1, characterized in that: The output circuit of the power source includes: Multiple voltage output gears, each output gear is connected to the output relay through a relay; After obtaining the control source signal, the relay corresponding to the voltage level is closed according to the required voltage amplitude; After the microcontroller transfers the sine wave data table, it closes the output relay after a delay and outputs the required voltage.
6. The method for verifying the pure zero-crossing output of a power source of a device according to claim 1, characterized in that: When a signal dip or drop occurs, the last updated phase pointer when the dip or drop occurs is recorded. After receiving the source increase instruction again, the sine wave data table pointer of the phase is updated with the last updated phase pointer.
7. A method for controlling a power source of a calibration device, comprising controlling the power source of the calibration device by using a sinusoidal wave signal generated by the pure zero-crossing output method for the power source of the calibration device according to any one of claims 1 to 6, characterized in that: include: Obtain the control source signal and confirm the voltage amplitude V1 of the power source output signal; Close the corresponding power source position relay according to the voltage amplitude V1; Generating a sine wave signal by the pure zero-crossing output method for the power source of the calibration device according to any one of claims 1 to 6; After the delay time T1, the power source output relay is closed to stably output the sinusoidal wave signal required by the control source signal.
8. A method for controlling a power source of a calibration device, wherein the method comprises: controlling the power source of the calibration device by using a sinusoidal wave signal generated by the pure zero-crossing output method for the power source of the calibration device according to claim 5, wherein: include: G1. Obtain and analyze control source signal information; G2, initialize the power amplifier unit and relay control IO port; G3, enable the IO port of the power amplifier unit; G4. Select the corresponding voltage level and enable the corresponding relay IO port; G5, output the generated sine wave signal; G6, preset feedback coefficient; G7, step-by-step adjustment of sine wave amplitude; G8, update error value; G9. Determine whether the error value is 0. If not, execute step G7; G10, close the output relay; G11, output the required voltage.
9. A method for controlling a power source of a calibration device, characterized in that: Including signal output process: T1, the microcontroller register is preloaded with a three-phase sine wave data table; T2. Acquire and analyze the control source signal; T3, initialize DAC channel and DAC working mode; T4, initialize the DAC timer; T5, update DAC user timer trigger interval; T6. Configure the microcontroller DMA; T7, change the timer ARR or PSC to adjust the sine wave frequency to the required size of the control source signal; T8, set the A phase signal to output in the positive half cycle; T9, determine whether the A-phase signal is in the positive half cycle output, if not, execute step T13, if so, execute step T10; T10, update the A-phase sine wave data table pointer to the positive zero crossing point; T11, update the C phase sine wave data table pointer to the negative zero crossing point; T12, update the B-phase sine wave data table pointer to the positive zero crossing point, set the A-phase signal to the negative half-cycle output, and execute step T16; T13, update the A phase sine wave data table pointer to the negative zero crossing point; T14, update the C phase sine wave data table pointer to the positive zero crossing point; T15. Update the pointer of the phase B sine wave data table to the negative zero crossing point, set the phase A signal to output in the positive half cycle, and execute step T16. T16. Determine whether the sine wave signal output is terminated. If so, terminate the signal output process. Otherwise, execute step T9.
Citation Information
Patent Citations
High-efficiency measurement method for sinusoidal signal frequency in undersampling and implementation device
CN101825660A
Frequency measurement method applied to standard meter of electric energy meter calibrating device
CN112444673A