CN116032095A - Voltage sag adjustment method - Google Patents

Voltage sag adjustment method Download PDF

Info

Publication number
CN116032095A
CN116032095A CN202211338429.2A CN202211338429A CN116032095A CN 116032095 A CN116032095 A CN 116032095A CN 202211338429 A CN202211338429 A CN 202211338429A CN 116032095 A CN116032095 A CN 116032095A
Authority
CN
China
Prior art keywords
current
voltage
voltage error
value
interval variable
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.)
Pending
Application number
CN202211338429.2A
Other languages
Chinese (zh)
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.)
Shijiazhuang Tonghe Electronics Co Ltd
Original Assignee
Shijiazhuang Tonghe 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 Shijiazhuang Tonghe Electronics Co Ltd filed Critical Shijiazhuang Tonghe Electronics Co Ltd
Priority to CN202211338429.2A priority Critical patent/CN116032095A/en
Publication of CN116032095A publication Critical patent/CN116032095A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a voltage sag adjustment method. The method comprises the following steps: acquiring a current PI output value and a current output voltage, and calculating to obtain a current voltage error according to the current output voltage and a voltage reference value; acquiring a current interval variable value; if the current voltage error is greater than the voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, performing voltage amplification processing operation based on the PI output value to obtain a first voltage error, and performing PI adjustment to obtain a new PI output value and a new output voltage; and recalculating the current voltage error by taking the new output voltage as the current output voltage, and executing the subsequent steps until the current voltage error is smaller than or equal to a voltage error threshold value or the current interval variable value is larger than a first preset value, and performing PI adjustment on the current corresponding voltage error. The invention can rapidly increase the output voltage to adjust the dynamic performance of the controlled circuit, improve the reaction speed and improve the stability.

Description

Voltage sag adjustment method
Technical Field
The invention relates to the technical field of DC-DC converters, in particular to a voltage sag adjustment method.
Background
A DC-DC converter is generally used, whether a power supply module used in a charging pile, a vehicle-mounted power supply module, or a power supply module. DC-DC converters typically use an LLC topology to implement high frequency resonant soft switching control, which typically uses a frequency modulated control method. The output voltage drops when the load of the DC-DC converter suddenly becomes heavy, for example, from no load to a sudden load, or from a light load to a full load. When the output voltage drops, the voltage is influenced by PI parameters of the DC-DC converter, the voltage callback speed is slower, and the dynamic performance of the DC-DC converter is influenced.
Disclosure of Invention
The embodiment of the invention provides a voltage sag adjustment method, which aims to solve the problem that when output voltage drops under the condition of sudden loading, the output voltage cannot be recovered in time, and the dynamic performance of a DC-DC converter is affected.
In a first aspect, an embodiment of the present invention provides a voltage sag adjustment method, including:
acquiring a current PI output value and a current output voltage after PI adjustment in a controlled circuit, and calculating to obtain a current voltage error according to the current output voltage and a voltage reference value;
Acquiring a current interval variable value; the current interval variable value represents any counted period number between the end of the previous round of voltage amplification processing and the end of the current round of voltage amplification processing;
if the current voltage error is greater than a voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, performing voltage amplification processing operation on the current voltage error based on a PI output value to obtain a first voltage error, and performing PI adjustment on the first voltage error to obtain a new PI output value and an output voltage after adjustment of the controlled circuit;
and re-calculating the current voltage error by taking the adjusted output voltage as the current output voltage, and executing the subsequent steps until the current voltage error is smaller than or equal to a voltage error threshold value or the current interval variable value is larger than a first preset value, and performing PI adjustment on the current corresponding voltage error to obtain a new PI output value and a new output voltage.
In one possible implementation, the obtaining the current interval variable value includes:
starting a down counter after the last round of voltage amplification treatment is finished, wherein the numerical value of the down counter is set to be a preset interval variable value;
Acquiring a numerical value on a current countdown device;
after the current interval variable value is obtained, the method further comprises:
detecting whether the current interval variable value is larger than a first preset value or not;
and if the current interval variable value is larger than the first preset value, counting down the current interval variable value.
In one possible implementation manner, after the obtaining the current interval variable value, the method further includes:
if the current interval variable value is smaller than or equal to the first preset value, the down counter is paused.
In one possible implementation manner, after counting down the current interval variable value if the current interval variable value is greater than the first preset value, and after suspending the countdown counter if the current interval variable value is less than or equal to the first preset value, the method further includes:
detecting whether the current loop is in a voltage ring or not;
if the current loop is not in the voltage loop, performing PI adjustment on the current voltage error to obtain a new PI output value and a new output voltage;
if the current loop is in the voltage loop, detecting whether the current voltage error is larger than a voltage error threshold value, acquiring a current interval variable value, and detecting whether the current interval variable value is smaller than or equal to a first preset value.
In one possible implementation manner, after calculating the current voltage error according to the current output voltage and the voltage reference value, the method further includes: storing the current voltage error;
and after performing voltage amplification processing operation on the current voltage error based on the PI output value to obtain a first voltage error, the method further comprises the following steps: saving the first voltage error;
after detecting whether the current voltage error is greater than a voltage error threshold, acquiring a current interval variable value, and detecting whether the current interval variable value is less than or equal to a first preset value, the method further comprises:
if the current voltage error is greater than the voltage error threshold, and the current interval variable value is greater than a first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is less than or equal to the first preset value, detecting whether the sum of the last stored voltage error and the preset threshold is greater than or equal to the current stored voltage error; the voltage error includes: current voltage error or first voltage error;
Resetting the current interval variable value and the voltage error if the sum of the voltage error stored last time and the preset threshold value is greater than or equal to the voltage error stored this time;
and PI regulating the current voltage error and then outputting voltage.
In one possible implementation manner, after whether the sum of the last stored voltage error and the preset threshold is greater than the current stored voltage error, the method further includes:
and if the sum of the last stored voltage error and the preset threshold value is smaller than the stored voltage error, PI adjusting is carried out on the current voltage error and then the voltage is output.
In one possible implementation manner, performing a voltage amplification processing operation on the current voltage error based on a PI output value to obtain a first voltage error, including:
if the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to a first preset value, storing the current PI output value;
continuously counting down the current interval variable value;
according to V 1 =V err *(k-PI out * a) Expanding the current voltage error to the first voltage error; wherein V is 1 Representing a first voltage error, V err Indicating the current voltage error, PI out Representing the stored PI output value, k and a represent the first and second amplification factors, respectively.
In one possible implementation manner, the PI adjusting the first voltage error to obtain a new PI output value and an output voltage adjusted by the controlled circuit includes:
detecting whether the current interval variable value is equal to 0 or whether the sum of the last stored voltage error and a preset threshold value is greater than or equal to the current stored voltage error;
and if the current interval variable value is greater than 0 and the sum of the last stored voltage error and the preset threshold value is smaller than the current stored voltage error, performing PI adjustment on the first voltage error to obtain a new PI output value and the output voltage after the adjustment of the controlled circuit.
In one possible implementation manner, the voltage amplifying processing operation is performed on the current voltage error based on the PI output value, so as to obtain a first voltage error, and the method further includes:
if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value, the step of continuously counting down the current interval variable value is skipped, and the subsequent steps are continuously executed.
In one possible implementation manner, after the detecting whether the current interval variable value is equal to 0 or whether the sum of the last saved voltage error and a preset threshold value is greater than or equal to the saved voltage error, the method further includes:
If the current interval variable value is equal to 0 or the sum of the last stored voltage error and the preset threshold value is greater than or equal to the current stored voltage error, according to V err =V 1 *V in * c transforming the first voltage error into a new current voltage error; wherein V is err Representing the current voltage error, V 1 Representing a first voltage error, V in Representing the input voltage value, c representing the transform coefficient;
resetting the current interval variable value and the voltage error;
and PI regulating the new current voltage error and then outputting voltage.
In one possible implementation, in the step of determining the V err =V 1 *V in * c after converting the first voltage error into a new current voltage error, further comprising: storing the current voltage error;
resetting the current interval variable value and the voltage error comprises the following steps:
resetting the current interval variable value to the preset interval variable value;
resetting the first voltage error stored last time or the current voltage error stored last time to be the current voltage error.
The embodiment of the invention provides a voltage drop regulating method, which comprises the steps of obtaining a current PI output value and a current output voltage after PI regulation in a controlled circuit, and calculating to obtain a current voltage error according to the current output voltage and a voltage reference value; acquiring a current interval variable value; if the current voltage error is greater than the voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, performing voltage amplification processing operation on the current voltage error based on the PI output value to obtain a first voltage error, and performing PI adjustment on the first voltage error to obtain a new PI output value and an output voltage after the controlled circuit is adjusted; and re-calculating the current voltage error by taking the adjusted output voltage as the current output voltage, and executing the subsequent steps until the current voltage error is smaller than or equal to a voltage error threshold value or the current interval variable value is larger than a first preset value, and performing PI adjustment on the current corresponding voltage error to obtain a new PI output value and a new output voltage. When the current voltage error is larger than the voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, the current voltage error is subjected to voltage amplification based on the PI output value, so that the PI output value can be quickly increased, the output voltage of the controlled circuit is improved, the dynamic performance of the controlled circuit is adjusted, the reaction speed of the controlled circuit is increased, and the stability of the controlled circuit is improved.
And when judging whether to perform voltage amplification processing, the current interval variable value is introduced as one of reference conditions, so that the voltage amplification processing of the next round can not be immediately started after finishing the voltage amplification processing of one round, and the excessive adjustment caused by slow response of a controlled circuit is prevented.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an implementation of a voltage sag adjustment method provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a voltage sag adjustment method according to an embodiment of the present invention;
FIG. 3 is a flow chart of an implementation of a voltage sag adjustment method according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a change in the value of the interval variable provided in the embodiment of the present invention in the case where the current loop is always in the voltage loop and the current voltage error is always greater than the voltage error threshold;
FIG. 5 (a) is a schematic diagram of a situation that may occur when the output voltage enters the rising edge according to the embodiment of the present invention;
FIG. 5 (b) is a schematic diagram of another situation that may occur when the output voltage enters the rising edge according to the embodiment of the present invention;
FIG. 5 (c) is a schematic diagram of another situation that may occur when the output voltage enters the rising edge according to the embodiment of the present invention;
FIG. 5 (d) is a schematic diagram of another situation that may occur when the output voltage enters the rising edge according to the embodiment of the present invention;
FIG. 6 is a schematic view of a voltage sag adjustment device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be made by way of specific embodiments with reference to the accompanying drawings.
It should be noted that the present invention is applied to an LLC topology circuit in a DC-DC converter. The LLC topology circuit is internally provided with a PI controller, the PI controller can perform proportion and integral calculation on an input voltage error, output a PI output value and act the PI output value on a controlled circuit (namely, the LLC topology circuit), and the controlled circuit is controlled to adjust self output voltage according to the PI output value so as to achieve the purpose of stabilizing the output voltage.
However, when the load is suddenly loaded, the PI parameter in the PI controller cannot be quickly switched along with the load state, so that the output voltage of the controlled circuit cannot be timely adjusted, and voltage drop occurs. And the degree of drop in the output voltage is also affected by the input voltage and the load condition before the load is suddenly applied.
Namely, under different input voltages, the drop degree of the output voltage is different from each other after sudden loading, and the larger the input voltage is, the more serious the drop of the output voltage is after sudden loading; at the same input voltage, the load conditions before the sudden loading are different, which also results in different output voltage drops. The output voltage drop from light load to full load is more severe than the output voltage drop from half load to full load. The embodiment of the invention provides a voltage drop adjusting method, which is used for solving the voltage drop problem and ensuring stable output voltage.
Fig. 1 is a flowchart of an implementation of a voltage sag adjustment method according to an embodiment of the present invention, which is described in detail below:
step 101, obtaining a current PI output value and a current output voltage after PI adjustment in a controlled circuit, and calculating to obtain a current voltage error according to the current output voltage and a voltage reference value.
Optionally, referring to fig. 2, after PI adjustment by the PI controller, the controlled circuit obtains a current PI output value and a current output voltage, and calculates a current voltage error according to the current output voltage and a voltage reference value.
Alternatively, it may be according to V err =V ref -V out The current voltage error is calculated.
Wherein V is err Representing the current voltage error, V ref Representing the voltage reference value, V out Representing the current output voltage. The voltage reference value may be set by the user, and is a fixed value, which is not particularly limited in the embodiment of the present invention.
Step 102, obtaining the current interval variable value. The current interval variable value indicates any number of cycles counted between the end of the previous-round voltage amplification process and the end of the present-round voltage amplification process.
Optionally, obtaining the current interval variable value includes:
starting a down counter after the previous round of voltage amplification treatment is finished, wherein the numerical value of the down counter is set to be a preset interval variable value;
And acquiring the value on the current down counter.
Each time PI adjustment is completed, it can be regarded as one cycle. The preset interval variable value here may be set to 2000, for example. I.e. 2000 cycles.
Optionally, referring to fig. 3, after acquiring the current interval variable value, the method further includes:
detecting whether the current interval variable value is larger than a first preset value or not;
and if the current interval variable value is larger than the first preset value, counting down the current interval variable value.
When the current interval variable value is counted down, each time the count down is performed, one period is subtracted. For example, the current interval variable value is 2000 cycles, and after one countdown, the current interval variable value remains 1999 cycles.
Optionally, after obtaining the current interval variable value, the method further includes:
if the current interval variable value is smaller than or equal to the first preset value, the down counter is paused.
Illustratively, the preset interval variable value may be 2000 cycles and the first preset value may be 100 cycles. After the previous round of voltage amplification process was completed, a count down of 2000 cycles was started. The countdown is suspended until the current interval variable value remains 100. One of the functions of setting the preset interval variable value and the first preset value is to ensure that the voltage between two voltage amplification processes is normally processed by at least 1900 cycles when the current voltage error is always greater than the voltage error threshold. Therefore, if the current interval variable value is less than or equal to 100, which means that the voltage has been normally processed for 1900 cycles, the down counter may be suspended without performing the down counting. The normal voltage processing means that PI adjustment is directly carried out on the current voltage error obtained by actual calculation; the voltage amplification processing refers to PI adjustment of a first voltage error obtained after current voltage error amplification.
By setting the preset interval variable value and the first preset value, the situation that the voltage error amplification processing of two rounds is continuously carried out can be avoided from finishing the voltage amplification processing of the previous round to starting the voltage amplification processing of the next round by at least 1900 cycles in the middle, so that excessive adjustment is prevented.
Optionally, after counting down the current interval variable value if the current interval variable value is greater than the first preset value, and after suspending the down counter if the current interval variable value is less than or equal to the first preset value, the method further includes:
detecting whether the current loop is in a voltage ring or not;
if the current loop is not in the voltage loop, performing PI adjustment on the current voltage error to obtain a new PI output value and a new output voltage;
if the current loop is in the voltage loop, detecting whether the current voltage error is larger than a voltage error threshold value, acquiring a current interval variable value, and detecting whether the current interval variable value is smaller than or equal to a first preset value.
The voltage loop and the current loop are usually arranged in parallel in the controlled circuit to independently control the output voltage and the output current respectively. When the output voltage drops under the condition that the controlled circuit operates normally, the current loop in the controlled circuit is in a voltage ring. However, if an abnormal operation condition occurs, a situation in which the current loop is present may occasionally occur. Therefore, in order to avoid influencing the subsequent voltage amplification process, if the current loop is detected to be not in the voltage ring, the voltage amplification process flow is skipped, and the current voltage error is directly subjected to PI regulation.
If the voltage is in the voltage loop, the controlled circuit is normally operated, and the subsequent detection steps can be continued, namely, whether the current voltage error is larger than a voltage error threshold value or not is detected, the current interval variable value is obtained, whether the current interval variable value is smaller than or equal to a first preset value or not is detected, and whether the controlled circuit meets the dropping condition or not is judged.
For example, referring to fig. 4, when the current loop in the controlled circuit is always in the voltage loop and the current voltage error is always greater than the voltage error threshold, after the current interval variable value is reduced to 0, the voltage amplification processing of the current round is finished, the interval variable value is reset to 2000, the countdown is restarted, and when the current interval variable value is greater than 100, the falling condition is not met, and the normal voltage processing is performed; and when the current interval variable value is equal to 100, the falling condition is met, and the next round of voltage amplification processing is started. That is, 1900 cycles from 2000 to 100 are performed in a loop at all times until the voltage amplification process is entered and started when the current interval is equal to 100. The voltage amplification processing means that the current voltage error is amplified by a preset multiple, then PI regulation is carried out, and the voltage normal processing means that only PI regulation is carried out.
Optionally, after detecting whether the current voltage error is greater than the voltage error threshold, and obtaining the current interval variable value, and detecting whether the current interval variable value is less than or equal to the first preset value, the method further includes:
if the current voltage error is greater than the voltage error threshold, and the current interval variable value is greater than a first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is less than or equal to the first preset value, detecting whether the sum of the last stored voltage error and the preset threshold is greater than or equal to the current stored voltage error. The voltage errors here include: current voltage error or first voltage error.
Resetting the current interval variable value and the voltage error if the sum of the voltage error stored last time and the preset threshold value is greater than or equal to the voltage error stored this time;
and PI adjusting the current voltage error and then outputting the voltage.
And determining that the controlled circuit meets the falling condition only when the current voltage error is larger than the voltage error threshold value and the current interval variable value is smaller than or equal to a first preset value, and determining that the controlled circuit does not meet the falling condition if any one of the conditions cannot be met. Referring to fig. 2, when the controlled circuit does not meet the drop condition, the voltage amplification process is not required, and a new PI output value and a new output voltage are directly output after PI adjustment is performed on the current voltage error.
If the current voltage error is greater than the voltage error threshold, and the current interval variable value is greater than a first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is equal to the first preset value, it is indicated that the current voltage error is not in the voltage amplification process, at this time, the voltage amplification process is skipped directly, and the current voltage error is output after PI adjustment is performed directly.
There is a special case where the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is less than the first preset value. The description is currently in the process of a round of voltage amplification and has undergone at least one "according to V 1 =V err *(k-PI out * a) And a voltage amplification processing operation of expanding the current voltage error to a first voltage error ". It should be noted that the voltage amplification process may include at least one time during one round of voltage amplification process. At least once according to V 1 =V err *(k-PI out * a) Expanding the current voltage error to a first voltageAfter the voltage amplification processing operation of the error', the obtained new current voltage error is smaller than or equal to a voltage error threshold value, and at this time, whether the sum of the voltage error stored last time and a preset threshold value is larger than or equal to the voltage error stored this time needs to be detected. If the sum of the last stored voltage error and the preset threshold value is greater than or equal to the stored voltage error, the current interval variable value and the voltage error need to be reset when the current round of voltage amplification processing is exited, preparation is made for the next round of voltage amplification processing, and errors are prevented from occurring in the next round of voltage amplification processing.
Optionally, after calculating the current voltage error according to the current output voltage and the voltage reference value, the method further includes: the current voltage error is saved.
After performing voltage amplification processing operation on the current voltage error based on the PI output value to obtain a first voltage error, the method further includes: the first voltage error is saved.
After the current voltage error or the first voltage error is obtained each time, the current voltage error or the first voltage error is stored for later detection and withdrawal from the operation condition, and the last stored voltage error and the current stored voltage error can be inquired.
It will be appreciated that if no voltage amplification processing operation has been performed last (i.e., in the previous PI adjustment period), the last stored voltage error is the last stored current voltage error; if the voltage amplification processing operation is performed last time, the voltage error stored last time is the first voltage error stored last time; similarly, if the voltage amplification processing operation is not performed at this time (i.e., in the current PI adjustment period), the voltage error saved at this time means that the current voltage error is saved at this time; if the voltage amplification processing operation is performed this time, the voltage error stored this time is the first voltage error stored this time.
Optionally, resetting the current interval variable value and the voltage error includes:
resetting the current interval variable value to a preset interval variable value;
resetting the first voltage error stored last time or the current voltage error stored last time to be the current voltage error.
The PI controller is based on PI i+1 =PI i +Ka*Verr i+1 -Kb*Verr i To calculate the PI output value. Wherein PI is i+1 PI output value, PI, representing the i+1st time i Represents the PI output value at the ith time, verr i+1 Represents the voltage error input in the i+1st PI regulation, verr i Representing the voltage error input at the ith PI adjustment, ka and Kb represent the first PI parameter and the second PI parameter, respectively.
According to the above formula, the PI controller needs to use the last voltage error when calculating the current PI output value. Therefore, each time a voltage error is obtained (including the current voltage error obtained by current actual calculation and the amplified first voltage error), the voltage error needs to be saved for the next time the PI output value is calculated.
Accordingly, if in the above special case, at the time of exiting the voltage amplification processing, if the "according to V" was performed last time 1 =V err *(k-PI out * a) The voltage amplification processing operation of expanding the current voltage error into the first voltage error is needed to reset the last stored first voltage error into the current voltage error obtained by the actual calculation, so as to ensure that the continuous influence of the last calculated first voltage error on the PI output value after the voltage amplification processing is finished is slowed down as much as possible when the current voltage error is smaller than the voltage error threshold value. If the voltage amplification processing operation is not performed last time, the current voltage error stored last time needs to be reset to the current voltage error of this time. And after the reset exits, continuing to perform PI adjustment on the current voltage error by using a PI controller. In essence, when exiting the voltage amplification process, the last stored voltage error (including the voltage error actually calculated or the first voltage error after amplification) needs to be reset to the current voltage error actually calculated this time.
In one round of voltage amplificationDuring the treatment, if it is subjected at least once according to V 1 =V err *(k-PI out * a) After the voltage amplification processing operation of expanding the current voltage error into the first voltage error, when the obtained new current voltage error is smaller than or equal to the voltage error threshold value, the voltage amplification processing operation is not needed to be performed again at the moment, PI adjustment can be directly performed on the current voltage error obtained at present, and countdown is not needed to be performed continuously on the current interval variable value. Since the other function of setting the preset interval variable value and the first preset value is to limit the number of times the voltage amplification processing operation is performed during one round of voltage amplification processing. In case of an excessive regulation. Therefore, the countdown counter is not required to be suspended for normal voltage processing operation in the voltage amplification processing.
In addition, the purpose of taking "the sum of the last stored voltage error and the preset threshold value is greater than or equal to the voltage error stored this time" as one of the conditions for exiting the present round of voltage amplification processing is to: the voltage amplification process is exited in time to prevent excessive regulation.
To avoid over-regulation, embodiments of the present invention choose to exit the present round of voltage amplification processing just before the output voltage enters the rising edge. That is, when the output voltage starts to rise, the voltage amplification process of the present wheel is to be stopped. At the moment the output voltage just enters the rising edge, there are 4 possible cases:
1. Referring to fig. 5 (a), both the voltage error saved this time and the voltage error saved last time are at the rising edge.
2. The voltage error stored this time is at the rising edge, and the voltage error stored last time is at the falling edge.
In this case, there are 3 possible cases:
2.1, see fig. 5 (b), the last stored voltage error is greater than the current stored voltage error.
2.2, see fig. 5 (c), the last saved voltage error is equal to the present saved voltage error.
2.3, referring to fig. 5 (d), the last stored voltage error is smaller than the current stored voltage error.
In order to ensure that the 4 possible cases can be covered when the voltage amplification process is exited, therefore, the "voltage error saved last time and the sum of the preset threshold value is greater than or equal to the voltage error saved this time" is set as one of the conditions for exiting the present round of voltage amplification process. So as to avoid the situation that the exit is not timely or the exit is advanced. The preset threshold is a fixed value, and the specific value of the preset threshold is related to the hardware parameter of the controlled circuit and can be obtained by experiments on the controlled circuit.
Optionally, after whether the sum of the last stored voltage error and the preset threshold is greater than the stored voltage error, the method further includes:
and if the sum of the last stored voltage error and the preset threshold value is smaller than the stored voltage error, PI adjusting is carried out on the current voltage error, and then the voltage is output.
If the sum of the last stored voltage error and the preset threshold value is smaller than the stored voltage error. The current output voltage does not enter the rising edge, the current voltage amplification processing process does not need to be exited, the operations of interval variable value reset and voltage error reset do not need to be carried out, the PI output value is directly calculated continuously according to the current voltage error, and PI adjustment is carried out.
And 103, if the current voltage error is greater than the voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, performing voltage amplification processing operation on the current voltage error based on the PI output value to obtain a first voltage error, and performing PI adjustment on the first voltage error to obtain a new PI output value and an output voltage after the adjustment of the controlled circuit.
And if the current voltage error is larger than the voltage error threshold value and the current interval variable value is smaller than or equal to a first preset value, determining that the controlled circuit meets the dropping condition. A voltage amplification process may be entered.
Optionally, performing a voltage amplification processing operation on the current voltage error based on the PI output value to obtain a first voltage error, including:
if the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to a first preset value, storing the current PI output value;
continuously counting down the current interval variable value;
according to V 1 =V err *(k-PI out * a) Expanding the current voltage error to a first voltage error; wherein V is 1 Representing a first voltage error, V err Indicating the current voltage error, PI out Representing the stored PI output value, k and a represent the first and second amplification factors, respectively.
The current voltage error is larger than the voltage error threshold value, the current interval variable value is equal to a first preset value, the voltage normal processing of at least 1900 cycles has been undergone since the last round of voltage amplification processing is finished, and the current interval variable value enters the voltage amplification processing of the current round for the first time. When the current round of voltage amplification processing is started for the first time, the current PI output value needs to be saved. And determines the amplification factor from the PI output value.
As previously described, the degree of voltage sag is affected by the input voltage and the load condition before sudden loading. Both factors affect the PI output value at the time of entry into the dip. That is, both the input voltage and the load state before sudden load affect the PI output value at the time of the output voltage drop, thereby affecting the degree of the output voltage drop, and the smaller the PI output value, the greater the degree of the output voltage drop. Therefore, when the voltage error is amplified and recalled, the PI output value is introduced into the voltage amplification processing process, so that the amplification factor follows the change of the PI output value, namely, the smaller the PI output value is, the larger the amplification factor is, and the larger the callback amplitude is.
Optionally, based on the PI output value, performing a voltage amplification processing operation on the current voltage error to obtain a first voltage error, and further including:
if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value, the step of continuously counting down the current interval variable value is skipped, and the subsequent steps are continuously executed.
If the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value, the current interval variable value indicates that the current voltage error is not the first time to enter the voltage amplification processing process of the current wheel. According to V, which has been subjected at least once before 1 =V err *(k-PI out * a) And a voltage amplification processing operation of expanding the current voltage error to a first voltage error ". At this time, the PI output value stored when the first voltage amplification process is entered need not be directly used while the current PI output value is stored. That is, the amplification factor of each voltage amplification processing operation is the same during one round of voltage amplification processing. And the amplification factor is determined according to the stored current PI output value when the current round of voltage amplification processing process is started for the first time.
Another function of setting the preset interval variable value and the first preset value is to ensure that the first preset value (e.g. 100) is executed at most circularly during one round of voltage amplification processing according to V in case the current voltage error is always larger than the voltage error threshold value 1 =V err *(k-PI out * a) And a voltage amplification processing operation of expanding the current voltage error to a first voltage error ". Therefore, after the controlled circuit is determined to meet the falling condition and enters the voltage amplification processing process, a down counter is started, and the current interval variable value is continuously counted down. Through setting up first default, can further guarantee that the phenomenon of overregulation can not appear.
Optionally, PI adjusting the first voltage error to obtain a new PI output value and an output voltage adjusted by the controlled circuit, including:
detecting whether the current interval variable value is equal to 0 or whether the sum of the last stored voltage error and a preset threshold value is greater than or equal to the stored voltage error;
if the current interval variable value is greater than 0 and the sum of the last stored voltage error and the preset threshold value is smaller than the current stored voltage error, PI adjustment is carried out on the first voltage error to obtain a new PI output value and the output voltage after the adjustment of the controlled circuit.
If the current interval variable value is greater than 0, the operation times of the amplified voltage errors reserved for the current round of voltage amplification processing are not finished, the sum of the last stored voltage errors and the preset threshold value is smaller than the stored voltage errors, the output voltage is not started to rise, and at the moment, the PI controller utilizes the first voltage errors to conduct PI adjustment, so that a new PI output value and a new output voltage are obtained.
It will be appreciated that one cycle of voltage amplification processing involves at least one "according to V 1 =V err *(k-PI out * a) And a voltage amplification processing operation of expanding the current voltage error to a first voltage error ". And under the condition that the current voltage error is larger than a voltage error threshold value and the interval variable value is larger than 0 and smaller than or equal to a first preset value, circularly executing the steps of expanding the current voltage error into the first voltage error, calculating a PI output value according to the first voltage error, controlling a controlled circuit according to the PI output value to obtain a new output voltage, recalculating the new current voltage error and expanding the new current voltage error into the new first voltage error until the interval variable value is equal to 0 or the sum of the last stored voltage error and the preset threshold value is larger than or equal to the stored voltage error. The first preset value here can be understood as: reserved for one round of voltage amplification processing according to V 1 =V err *(k-PI out * a) The current voltage error is expanded to the number of first voltage error steps.
Optionally, after detecting whether the current interval variable value is equal to 0 or whether the sum of the last stored voltage error and the preset threshold value is greater than or equal to the current stored voltage error, the method further includes:
If the current interval variable value is equal to 0 or the sum of the last stored voltage error and the preset threshold value is greater than or equal to the current stored voltage error, according to V err =V 1 *V in * c transforming the first voltage error into a new current voltage error.
Wherein V is err Representing the current voltage error, V 1 Representing a first voltage error, V in Representing the input voltage value, c representing the transform coefficient.
Resetting the current interval variable value and the voltage error.
And performing PI adjustment on the new current voltage error and then outputting the voltage.
If the current interval variable value is equal to 0, it indicates that the voltage amplification process of the current round has ended, and no matter whether the output voltage starts to rise or not, the voltage amplification process of the current round needs to be exited to prevent over-regulation. If the sum of the last stored voltage error and the preset threshold value is greater than or equal to the stored voltage error, the output voltage is indicated to start to rise, and at the moment, the voltage amplification processing process of the current round also needs to be exited.
At this time, the current voltage error is still greater than the voltage error threshold, and the output voltage just begins to rise, even though the output voltage may not yet start to rise, a problem of insufficient callback may occur. Therefore, when the voltage amplification process is exited, the voltage amplification process is performed according to V err =V 1 *V in * c transforming the previously calculated first voltage error into a new current voltage error. And PI regulation is carried out on the current voltage error, so that a new PI output value and a new output voltage are obtained. Wherein V is in * c is less than 1. That is, when the voltage amplification process is exited, the first voltage error is reduced to the original V in * c times as new current voltage error and PI adjusting the new current voltage error.
The first voltage error is reduced, so that the voltage amplification effect can be slowed down. It will be appreciated that this amplification is not completely eliminated and will continue to affect the PI output value of the PI regulation for two cycles after the end of the voltage amplification process.
As described above, the PI controller is based on PI i+1 =PI i +Ka*Verr i+1 -Kb*Verr i To calculate the PI output value. That is, the PI output value is affected by the current voltage error and the last voltage error. Therefore, the PI output value of the current period exiting the voltage amplification processAnd the PI output value at the next period of the exit voltage amplification processing is still affected by the amplification effect, and the amplification is continued.
In PI regulation of the current period of exiting the voltage amplification process, the current voltage error is V of the first voltage error in * c times, the PI output value of this time is influenced by the voltage error of this time, and the callback stepping value of the PI output value is slowed down; in the PI regulation of the next period of exiting the voltage amplification process, a new voltage error is calculated according to the new output voltage, the new voltage error is used as the current voltage error, the voltage error which is reduced before is used as the last voltage error, the PI output value is continuously calculated, and the PI regulation of the next period is also influenced by the amplification effect.
By using V err =V 1 *V in * c, reducing the first voltage error to slow down the voltage amplification effect, on one hand, enabling the PI output value to be continuously amplified under the influence of the amplification effect in two periods after the voltage amplification treatment is finished, and avoiding the problem of insufficient callback; on the other hand due to the reduction factor V in * And c is determined according to the input voltage, and in PI regulation of the next period after the voltage amplification treatment is finished, the larger the input voltage value is, the smaller the PI output value is, so that the problem of voltage overshoot caused by overlarge input voltage is solved.
It should be noted that, the "larger the input voltage value is, the smaller the PI output value is" means that the larger the input voltage value is, the smaller the PI output value of the controlled circuit is, and not that the PI output value for the same input voltage is reduced. The PI output value of the fixed input voltage is still amplified. In this case, the PI output value with a large input voltage is amplified to a smaller degree than the PI output value with a small input voltage.
Alternatively, according to V err =V 1 *V in * c after converting the first voltage error into a new current voltage error, further comprising: storing the current voltage error;
Resetting the current interval variable value and the voltage error when the current processing node exits the voltage amplification process may include:
resetting the current interval variable value to a preset interval variable value;
resetting the first voltage error stored last time to be the current voltage error of this time.
Since in the previous PI regulation the "according to V" was performed 1 =V err *(k-PI out * a) Expanding the current voltage error to a first voltage error "and also saving the first voltage error. Therefore, when the current processing node exits the voltage amplification process, the first voltage error saved last time (i.e., the last PI adjustment period) needs to be reset to the current voltage error of this time (i.e., the current PI adjustment period). So as to ensure that the voltage amplification effect is slowed down after the voltage amplification treatment is finished.
For ease of understanding, the following is simply illustrative: during the previous round of voltage amplification processing, the 9 th time of the voltage amplification processing is executed according to V 1 =V err *(k-PI out * a) Expanding the current voltage error to a first voltage error Verr 9 After the voltage amplification processing operation, the current interval time is detected to be equal to 0, or the voltage error Verr stored last time 8 The sum of the sum and the preset threshold value is greater than or equal to Verr 9 At this time, the voltage amplification process of the current wheel is needed to be exited, and the first voltage error Verr is first performed when the voltage amplification process of the current wheel is exited 9 Reduce to its own V in * c times, as the new current voltage error Verr of this time 9 ' the last stored voltage error Verr is then used 8 Reset to the current voltage error Verr of this time 9 ' to slow down the amplification.
104, taking the adjusted output voltage as the current output voltage, recalculating the current voltage error and executing the subsequent steps until the current voltage error is smaller than or equal to a voltage error threshold value or the current interval variable value is larger than a first preset value, and performing PI adjustment on the current corresponding voltage error to obtain a new PI output value and a new output voltage.
When the current voltage error is larger than the voltage error threshold, after the voltage amplification processing operation, the PI controller performs PI adjustment according to the first voltage error to obtain a new output voltage, and then the new current voltage error is recalculated by taking the new output voltage as the current output voltage. If the current voltage error is still larger than the voltage error threshold value, continuing the voltage amplification processing of the current round. Until the sum of the last stored voltage error and the preset threshold value is greater than or equal to the stored voltage error or the current interval variable value is equal to 0, the voltage amplification processing of the current round is stopped. And judging whether to enter the voltage amplification processing of the next round according to the dropping condition. And between two rounds of voltage amplification processing, the current voltage error is directly regulated by using a PI controller so as to control the controlled circuit to output a new PI regulating value and a new output voltage.
According to the embodiment of the invention, the current PI output value and the current output voltage after PI adjustment in the controlled circuit are obtained, and the current voltage error is calculated according to the current output voltage and the voltage reference value; acquiring a current interval variable value; if the current voltage error is greater than the voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, performing voltage amplification processing operation on the current voltage error based on the PI output value to obtain a first voltage error, and performing PI adjustment on the first voltage error to obtain a new PI output value and an output voltage after the controlled circuit is adjusted; and re-calculating the current voltage error by taking the adjusted output voltage as the current output voltage, and executing the subsequent steps until the current voltage error is smaller than or equal to a voltage error threshold value or the current interval variable value is larger than a first preset value, and performing PI adjustment on the current corresponding voltage error to obtain a new PI output value and a new output voltage. When the current voltage error is larger than the voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, the current voltage error is subjected to voltage amplification based on the PI output value, so that the PI output value can be quickly increased, the output voltage of the controlled circuit is improved, the dynamic performance of the controlled circuit is adjusted, the reaction speed of the controlled circuit is increased, and the stability of the controlled circuit is improved. When judging whether to perform voltage amplification processing, introducing the current interval variable value as one of reference conditions, so as to ensure that the next round of voltage amplification processing cannot be immediately performed after finishing one round of voltage amplification processing, and prevent multiple overregulation caused by slow response of a controlled circuit; meanwhile, the number of times the voltage amplification processing operation is performed during each round of the voltage amplification processing is at most a first preset value (for example, 100), and the phenomenon of excessive adjustment can be prevented.
When the current voltage error is amplified, a PI output value is introduced to calculate the amplification factor, and the smaller the PI output value is, the larger the dropping degree is; correspondingly, the smaller the PI output value is, the larger the amplification factor is, so that the effect that the larger the falling degree is, the larger the amplification factor is and the larger the regulating amplitude is achieved. The method solves the problem that the input voltage is different and/or the load state before sudden loading is different, so that the falling degree is different and unified adjustment cannot be realized.
In addition, when the voltage amplification processing is exited, the first voltage error calculated previously in the current PI adjustment process is reduced to serve as the current voltage error of the current PI adjustment, so that the amplification effect is slowed down, the amplification influence of the voltage amplification processing process is maintained in two PI adjustment periods after the voltage amplification processing process is ended, and the problem of callback deficiency is avoided.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The following are device embodiments of the invention, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 6 is a schematic structural diagram of a voltage sag adjustment device according to an embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown, which is described in detail below:
as shown in fig. 6, the voltage sag adjustment device 6 includes: a calculation module 61, an acquisition module 62, an adjustment module 63 and an update module 64.
The calculating module 61 is configured to obtain a current PI output value and a current output voltage of the PI regulated circuit under control, and calculate a current voltage error according to the current output voltage and a voltage reference value.
An acquisition module 62 is configured to acquire the current interval variable value. The current interval variable value indicates any number of cycles counted between the end of the previous-round voltage amplification process and the end of the present-round voltage amplification process.
And the adjusting module 63 is configured to perform voltage amplification processing on the current voltage error based on the PI output value if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, to obtain a first voltage error, and perform PI adjustment on the first voltage error to obtain a new PI output value and an output voltage adjusted by the controlled circuit.
The updating module 64 is configured to use the adjusted output voltage as a current output voltage, recalculate the current voltage error, and execute subsequent steps until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than a first preset value, and perform PI adjustment on the current corresponding voltage error to obtain a new PI output value and a new output voltage.
In one possible implementation, the obtaining module 62 is configured to start a down counter after the previous round of voltage amplification processing is finished, and the value of the down counter is set to a preset interval variable value.
The obtaining module 62 is further configured to obtain a value on the current down counter.
In one possible implementation, the obtaining module 62 is configured to detect whether the current interval variable value is greater than a first preset value.
The obtaining module 62 is further configured to count down the current interval variable value if the current interval variable value is greater than the first preset value.
The obtaining module 62 is further configured to suspend the countdown counter if the current interval variable value is less than or equal to the first preset value.
In one possible implementation, the adjustment module 63 is configured to detect whether the current loop is in a voltage loop.
The adjusting module 63 is further configured to obtain a new PI output value and a new output voltage after PI adjustment of the current voltage error if the current loop is not in the voltage loop.
The adjusting module 63 is further configured to detect whether the current voltage error is greater than a voltage error threshold, obtain a current interval variable value, and detect whether the current interval variable value is less than or equal to a first preset value if the current loop is in the voltage loop.
In one possible implementation, the adjustment module 63 is configured to save the current voltage error; the adjusting module 63 is further configured to save the first voltage error.
The adjusting module 63 is further configured to detect whether the sum of the last stored voltage error and the preset threshold is greater than or equal to the current stored voltage error if the current voltage error is greater than the voltage error threshold and the current interval variable is greater than the first preset value or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable is less than or equal to the first preset value; the voltage error includes: current voltage error or first voltage error.
The adjusting module 63 is further configured to reset the current interval variable value and the voltage error if the sum of the voltage error stored last time and the preset threshold value is greater than or equal to the voltage error stored this time.
The adjusting module 63 is further configured to PI-adjust the current voltage error and output a voltage.
In one possible implementation, the adjusting module 63 is configured to output the voltage after PI-adjusting the current voltage error if the sum of the last stored voltage error and the preset threshold is smaller than the current stored voltage error.
In one possible implementation, the adjusting module 63 is configured to save the current PI output value if the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to the first preset value.
The adjusting module 63 is further configured to continue counting down the current interval variable value.
The adjusting module 63 is also used for adjusting the speed according to V 1 =V err *(k-PI out * a) Expanding the current voltage error to a first voltage error; wherein V is 1 Representing a first voltage error, V err Indicating the current voltage error, PI out Representing the stored PI output value, k and a represent the first and second amplification factors, respectively.
In one possible implementation, the adjusting module 63 is configured to detect whether the current interval variable value is equal to 0, or whether the sum of the last saved voltage error and the preset threshold is greater than or equal to the saved voltage error.
The adjusting module 63 is further configured to perform PI adjustment on the first voltage error to obtain a new PI output value and an output voltage adjusted by the controlled circuit if the current interval variable value is greater than 0 and the sum of the last stored voltage error and the preset threshold value is smaller than the current stored voltage error.
In one possible implementation, the adjusting module 63 is configured to jump to the step of "continue counting down the current interval variable value" and continue to execute the subsequent steps if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value.
In one possible implementation, the adjusting module 63 is configured to, if the current interval variable value is equal to 0, or the sum of the last stored voltage error and the preset threshold is greater than or equal to the current stored voltage error, determine that the current interval variable value is equal to 0 according to V err =V 1 *V in * c converting the first voltage error into a new current voltage error; wherein V is err Representing the current voltage error, V 1 Representing a first voltage error, V in Representing the input voltage value, c representing the transform coefficient.
The adjusting module 63 is further configured to reset the current interval variable value and the voltage error.
The adjusting module 63 is further configured to PI-adjust the new current voltage error and output a voltage.
In one possible implementation, the adjustment module 63 is configured to reset the current interval variable value to a preset interval variable value.
The adjusting module 63 is further configured to reset the first voltage error stored last time or the current voltage error stored last time to the current voltage error.
The embodiment of the invention is used for obtaining the current PI output value and the current output voltage after PI adjustment in the controlled circuit through the calculation module 61, and calculating to obtain the current voltage error according to the current output voltage and the voltage reference value; an acquisition module 62, configured to acquire a current interval variable value; the adjusting module 63 is configured to perform voltage amplification processing operation on the current voltage error based on the PI output value if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, so as to obtain a first voltage error, and perform PI adjustment on the first voltage error, so as to obtain a new PI output value and an output voltage after the adjustment of the controlled circuit; the updating module 64 is configured to use the adjusted output voltage as a current output voltage, recalculate the current voltage error, and execute subsequent steps until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than a first preset value, and perform PI adjustment on the current corresponding voltage error to obtain a new PI output value and a new output voltage. When the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, the adjusting module 63 performs voltage amplification processing on the current voltage error, so that the PI output value can be quickly increased, and the output voltage of the controlled circuit is improved. When judging whether to perform voltage amplification processing, the adjusting module 63 introduces the current interval variable value as one of reference conditions, so as to ensure that the next round of voltage amplification processing cannot be immediately performed after finishing the next round of voltage amplification processing; meanwhile, the adjustment module 63 performs the voltage amplification processing operation at the maximum of the first preset value (for example, 100) during each round of the voltage amplification processing, and can prevent the phenomenon of excessive adjustment.
When the current voltage error is amplified, the adjusting module 63 introduces a PI output value to calculate the amplification factor, and the smaller the PI output value is, the larger the amplification factor is, so that the effect that the larger the drop degree is, the larger the amplification factor is and the larger the adjusting amplitude is achieved. In addition, when the voltage amplification processing is exited, the adjusting module 63 further reduces the first voltage error calculated previously in the current PI adjusting process to be used as the current voltage error of the current PI adjusting process to slow down the amplification effect, so that the amplification effect of the voltage amplification processing process is maintained in two PI adjusting periods after the voltage amplification processing process is completed, and the problem of insufficient callback is avoided.
Fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the electronic device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. The steps of the various voltage sag method embodiments described above, such as steps 101 through 104 shown in fig. 1, are implemented by the processor 70 when executing the computer program 72. Alternatively, the processor 70, when executing the computer program 72, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 61 to 64 shown in fig. 6.
By way of example, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program 72 in the electronic device 7. For example, the computer program 72 may be partitioned into modules 61 through 64 shown in fig. 6.
The electronic device 7 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The electronic device 7 may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the electronic device 7 and is not meant to be limiting as the electronic device 7 may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The processor 70 may be a central processing unit (Central Processing Unit, CPU), or may be another general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the electronic device 7, such as a hard disk or a memory of the electronic device 7. The memory 71 may be an external storage device of the electronic device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 71 is used for storing the computer program and other programs and data required by the electronic device. The memory 71 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the method embodiments of voltage sag adjustment described above when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. A voltage sag adjustment method, comprising:
acquiring a current PI output value and a current output voltage after PI adjustment in a controlled circuit, and calculating to obtain a current voltage error according to the current output voltage and a voltage reference value;
acquiring a current interval variable value; the current interval variable value represents any counted period number between the end of the previous round of voltage amplification processing and the end of the current round of voltage amplification processing;
if the current voltage error is greater than a voltage error threshold and the current interval variable value is smaller than or equal to a first preset value, performing voltage amplification processing operation on the current voltage error based on a PI output value to obtain a first voltage error, and performing PI adjustment on the first voltage error to obtain a new PI output value and an output voltage after adjustment of the controlled circuit;
and re-calculating the current voltage error by taking the adjusted output voltage as the current output voltage, and executing the subsequent steps until the current voltage error is smaller than or equal to a voltage error threshold value or the current interval variable value is larger than a first preset value, and performing PI adjustment on the current corresponding voltage error to obtain a new PI output value and a new output voltage.
2. The voltage sag adjustment method according to claim 1, wherein the obtaining a current interval variable value includes:
starting a down counter after the last round of voltage amplification treatment is finished, wherein the numerical value of the down counter is set to be a preset interval variable value;
acquiring a numerical value on a current countdown device;
after the current interval variable value is obtained, the method further comprises:
detecting whether the current interval variable value is larger than a first preset value or not;
and if the current interval variable value is larger than the first preset value, counting down the current interval variable value.
3. The voltage sag adjustment method according to claim 1, further comprising, after the obtaining the current interval variable value:
if the current interval variable value is smaller than or equal to the first preset value, the down counter is paused.
4. A voltage sag adjustment method according to claim 2 or 3, wherein after counting down the current interval variable value if the current interval variable value is greater than the first preset value, and after suspending the down counter if the current interval variable value is less than or equal to the first preset value, further comprising:
Detecting whether the current loop is in a voltage ring or not;
if the current loop is not in the voltage loop, performing PI adjustment on the current voltage error to obtain a new PI output value and a new output voltage;
if the current loop is in the voltage loop, detecting whether the current voltage error is larger than a voltage error threshold value, acquiring a current interval variable value, and detecting whether the current interval variable value is smaller than or equal to a first preset value.
5. The voltage sag adjustment method according to claim 4, further comprising, after calculating a current voltage error from the current output voltage and a voltage reference value: storing the current voltage error;
and after performing voltage amplification processing operation on the current voltage error based on the PI output value to obtain a first voltage error, the method further comprises the following steps: saving the first voltage error;
after detecting whether the current voltage error is greater than a voltage error threshold, acquiring a current interval variable value, and detecting whether the current interval variable value is less than or equal to a first preset value, the method further comprises:
if the current voltage error is greater than the voltage error threshold, and the current interval variable value is greater than a first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is less than or equal to the first preset value, detecting whether the sum of the last stored voltage error and the preset threshold is greater than or equal to the current stored voltage error; the voltage error includes: current voltage error or first voltage error;
Resetting the current interval variable value and the voltage error if the sum of the voltage error stored last time and the preset threshold value is greater than or equal to the voltage error stored this time;
and PI regulating the current voltage error and then outputting voltage.
6. The voltage sag adjustment method according to claim 5, further comprising, after whether or not a sum of the last stored voltage error and a preset threshold is greater than the current stored voltage error:
and if the sum of the last stored voltage error and the preset threshold value is smaller than the stored voltage error, PI adjusting is carried out on the current voltage error and then the voltage is output.
7. The voltage sag adjustment method according to claim 4, wherein performing a voltage amplification processing operation on the current voltage error based on a PI output value to obtain a first voltage error includes:
if the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to a first preset value, storing the current PI output value;
continuously counting down the current interval variable value;
according to V 1 =V err *(k-PI out * a) Expanding the current voltage error to the first voltage error; wherein V is 1 Representing a first voltage error, V err Indicating the current voltage error, PI out Represents the stored PI output value, k and a represent respectively the firstAn amplification factor and a second amplification factor;
PI regulation is carried out on the first voltage error to obtain a new PI output value and an output voltage regulated by the controlled circuit, and the PI regulation method comprises the following steps:
detecting whether the current interval variable value is equal to 0 or whether the sum of the last stored voltage error and a preset threshold value is greater than or equal to the current stored voltage error;
and if the current interval variable value is greater than 0 and the sum of the last stored voltage error and the preset threshold value is smaller than the current stored voltage error, performing PI adjustment on the first voltage error to obtain a new PI output value and the output voltage after the adjustment of the controlled circuit.
8. The voltage sag adjustment method according to claim 7, wherein the voltage amplifying operation is performed on the current voltage error based on a PI output value to obtain a first voltage error, further comprising:
if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value, the step of continuously counting down the current interval variable value is skipped, and the subsequent steps are continuously executed.
9. The voltage sag adjustment method according to claim 7 or 8, further comprising, after the detecting whether the current interval variable value is equal to 0 or whether the sum of the last saved voltage error and a preset threshold value is greater than or equal to the saved voltage error at this time:
if the current interval variable value is equal to 0 or the sum of the last stored voltage error and the preset threshold value is greater than or equal to the current stored voltage error, according to V err =V 1 *V in * c transforming the first voltage error into a new current voltage error; wherein V is err Representing the current voltage error, V 1 Representing a first voltage error, V in Representing the input voltage value, c representing the transform coefficient;
resetting the current interval variable value and the voltage error;
and PI regulating the new current voltage error and then outputting voltage.
10. The voltage sag adjustment method according to claim 9, wherein, in said step-up-voltage sag adjustment according to V err =V 1 *V in * c after converting the first voltage error into a new current voltage error, further comprising: storing the current voltage error;
resetting the current interval variable value and the voltage error comprises the following steps:
resetting the current interval variable value to the preset interval variable value;
Resetting the first voltage error stored last time or the current voltage error stored last time to be the current voltage error.
CN202211338429.2A 2022-10-28 2022-10-28 Voltage sag adjustment method Pending CN116032095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211338429.2A CN116032095A (en) 2022-10-28 2022-10-28 Voltage sag adjustment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211338429.2A CN116032095A (en) 2022-10-28 2022-10-28 Voltage sag adjustment method

Publications (1)

Publication Number Publication Date
CN116032095A true CN116032095A (en) 2023-04-28

Family

ID=86076592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211338429.2A Pending CN116032095A (en) 2022-10-28 2022-10-28 Voltage sag adjustment method

Country Status (1)

Country Link
CN (1) CN116032095A (en)

Similar Documents

Publication Publication Date Title
JP5081920B2 (en) Computer device power management system and method
JP2010017022A (en) Power supply controller
CN110941325B (en) Frequency modulation method and device of processor and computing equipment
CN110659130A (en) CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium
CN115347661A (en) Dormancy control method and control terminal of UPS system
CN116032095A (en) Voltage sag adjustment method
CN111688701B (en) Power overrun control method and device for vehicle and vehicle
CN111740607B (en) Circuit control device
CN115528905B (en) Pulse modulation signal determination method, device, power supply equipment and storage medium
CN115686123A (en) Voltage overshoot adjustment method, electronic device, and storage medium
CN111158454A (en) Low-power consumption method and device for real-time embedded operating system
CN114922842A (en) Fan speed regulation control method, device, equipment and readable storage medium
CN110962686B (en) Vehicle energy flow control method and device and vehicle
CN114824518A (en) Low-temperature activation method and system for battery
JP6197873B2 (en) Information processing system, management apparatus, information processing method, and program
CN114069821A (en) Switching power supply circuit control method and device and power supply system
CN113726196B (en) Midpoint balance control method, device and terminal of Vienna rectifying circuit in power supply
CN116365833A (en) LLC-based control method, device, terminal and storage medium
CN116431545B (en) Communication rate self-adaptive adjusting method, device, computer equipment and storage medium
CN114594704B (en) Motor inner ring control method, motor inner ring control device and motor inner ring control controller
CN115372680A (en) Charging current sampling method
CN100465930C (en) Arrangement, device and method for controlling bus request signal generation
CN113067398B (en) Multi-source input voltage control method and device and multi-source input system
CN117424444A (en) PFC control method of direct current power supply, direct current power supply and power supply equipment
CN117477971A (en) Control method and device of rectifying circuit, controller 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