Power supply control method, power supply and computer program product
By introducing a current loop control module and a voltage loop control module into the power supply, the feedback time is judged based on the voltage and current value of the circuit, and the appropriate control module is selected for switching, which solves the problem of unsmooth voltage switching and current switching, and achieves smooth transition and fast response of the power output.
Patent Information
- Application Number
- CN202510851143.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-24
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-06-24
AI Technical Summary
During the voltage switching and current switching of the power supply, the waveform is not smooth, resulting in the problem of over-harmonization inflection point.
The current loop control module and the voltage loop control module are used to determine the feedback time relationship by judging the voltage value and current value of the current circuit, and select a control module with a smaller feedback time for control to avoid over-harmonization inflection point.
The smooth transition between voltage switching and current switching is realized, avoiding over-tuning inflection points, and improving the stability and response speed of power output.
Smart Images

Figure CN120415079A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of power supplies, and particularly to a power supply control method, a power supply, and a computer program product. Background Art
[0002] When some power supplies output, they need to control the source output value and the limit output value. For example, a source meter can be used as a source for output or as a meter for measurement. When the source output of the source meter is voltage output, the current output is restricted. Conversely, when the source output is current output, the voltage output is restricted.
[0003] Among them, the schemes generally adopted for voltage control and current control of power supplies are PID (Proportional-Integral-Derivative) feedback control. For example, voltage control is performed based on voltage PID, and current control is performed based on current PID. However, when switching between voltage and current based on voltage PID and current PID, the voltage waveform and current waveform are prone to be uneven, resulting in overshoot and inflection points. For this, new technical solutions need to be proposed. Summary of the Invention
[0004] The main technical problem to be solved by this application is the unevenness during voltage switching and current switching.
[0005] According to a first aspect, in one embodiment, a power supply control method is provided. The power supply controls current output based on a current loop control module and controls voltage output based on a voltage loop control module. The control method includes: Obtain the currently configured target output value and target limit value; wherein, when the target output value is a voltage output value, the target limit value is a current limit value; when the target output value is a current output value, the target limit value is a voltage limit value; Obtain the voltage value measured by the current circuit and the current value measured by the current circuit, and determine whether the source working mode is satisfied based on the voltage value measured by the current circuit and the current value measured by the current circuit; If the voltage value measured by the current circuit and the current value measured by the current circuit satisfy the source working mode, then determine the feedback time relationship between the current loop control module and the voltage loop control module based on the target output value, the target limit value, the voltage value measured by the current circuit, and the current value measured by the current circuit; wherein, the feedback time of the current loop control module is used to represent the time for the current loop control module to control the current to rise to the current limit value or the current output value, and the feedback time of the voltage loop control module is used to represent the time for the voltage loop control module to control the voltage to rise to the voltage limit value or the voltage output value; If the feedback time of the current loop control module is less than that of the voltage loop control module, control is based on the current loop control module to reach the current limit value or the current output value among the target output value and the target limit value. If the feedback time of the current loop control module is greater than that of the voltage loop control module, control is based on the voltage loop control module to reach the voltage limit value or the voltage output value among the target output value and the target limit value.
[0006] In some embodiments, determining the feedback time relationship between the current loop control module and the voltage loop control module includes: Calculating an equivalent resistance value based on the target output value and the target limit value; Determining whether the measured voltage value and the measured current value of the current circuit are stably output. If they are stably output, calculating the resistance value of the current circuit based on the measured voltage value and the measured current value of the current circuit; If the equivalent resistance value is greater than the resistance value of the current circuit, the feedback time of the current loop control module is greater than that of the voltage loop control module; If the equivalent resistance value is less than the resistance value of the current circuit, the feedback time of the current loop control module is less than that of the voltage loop control module.
[0007] In some embodiments, determining whether the measured voltage value and the measured current value of the current circuit are stably output includes: Obtaining a first ratio between the measured voltage value of the current circuit and the voltage limit value or the voltage output value among the target output value and the target limit value; Obtaining a second ratio between the measured current value of the current circuit and the current limit value or the current output value among the target output value and the target limit value; If the first ratio satisfies a first preset range and the second ratio satisfies a second preset range, the measured voltage value and the measured current value of the current circuit are stably output.
[0008] In some embodiments, the first preset range is a first preset ratio greater than zero to a second preset ratio less than one; and / or, the second preset range is a third preset ratio greater than zero to a fourth preset ratio less than one.
[0009] In some embodiments, determining whether the measured voltage value and the measured current value of the current circuit satisfy the source operating mode includes: Judging whether the measured current value of the current circuit is greater than zero and judging whether the measured voltage value of the current circuit is greater than zero; If the measured current value of the current circuit is greater than zero and the measured voltage value of the current circuit is greater than zero, then the source operating mode is satisfied; Or, If the measured current value of the current circuit is less than zero and the measured voltage value of the current circuit is less than zero, then the source operating mode is satisfied; Or, Obtain the ratio between the measured current value of the current circuit and the measured voltage value of the current circuit. If the ratio is positive, then the source operating mode is satisfied.
[0010] In some embodiments, the current loop control module includes a current increment calculation module and a first integration module; the current increment calculation module calculates a corresponding current output increment based on a target current value and the measured current value of the current circuit by a preset feedback algorithm, and the first integration module is used to perform an integration operation on the current output increment, and the result of the integration operation is used to control the current output; And / or, The voltage loop control module includes a voltage increment calculation module and a second integration module; the voltage increment calculation module calculates a corresponding voltage output increment based on a target voltage value and the measured voltage value of the current circuit by a preset feedback algorithm, and the second integration module is used to perform an integration operation on the voltage output increment, and the result of the integration operation is used to control the voltage output.
[0011] In some embodiments, the first integration module and the second integration module are a shared integration module, and the power supply also selects the shared integration module to perform an integration operation on the current output increment or on the voltage output increment based on a selection module, and the control method further includes; When controlling the current output based on the current loop control module, then control the selection module to select the shared integration module to perform an integration operation on the current output increment; When controlling the voltage output based on the voltage loop control module, then control the selection module to select the shared integration module to perform an integration operation on the voltage output increment.
[0012] In some embodiments, if the feedback time of the current loop control module is less than the feedback time of the voltage loop control module, the control method further includes: If currently the voltage loop control module controls to reach the voltage limit value or the voltage output value among the target output value and the target limit value, and the measured voltage value of the current circuit is less than the voltage limit value or the voltage output value, then switch from the voltage loop control module to the current loop control module; Or, If the feedback time of the current loop control module is greater than that of the voltage loop control module, the control method further includes: If it is currently the current loop control module that controls to reach the current limit value or the current output value among the target output value and the target limit value, and the measured current value of the current circuit is less than the current limit value or the current output value, then switch from the current loop control module to the voltage loop control module.
[0013] According to a second aspect, in an embodiment, a power supply control method is provided. The power supply controls current output based on a current loop control module and voltage output based on a voltage loop control module. The control method includes: Obtain the currently configured target output value and target limit value; wherein, when the target output value is a voltage output value, the target limit value is a current limit value; when the target output value is a current output value, the target limit value is a voltage limit value; Obtain the measured voltage value of the current circuit and the measured current value of the current circuit, and determine whether the source operating mode is satisfied based on the measured voltage value of the current circuit and the measured current value of the current circuit; If the measured voltage value of the current circuit and the measured current value of the current circuit satisfy the source operating mode, then based on the target output value, the target limit value, the measured voltage value of the current circuit, and the measured current value of the current circuit, determine the corresponding control module when reaching the target output value or reaching the target limit value; If the corresponding control module is controlled by the current loop control module, then control by the current loop control module to reach the current limit value or the current output value among the target output value and the target limit value; If the corresponding control module is controlled by the voltage loop control module, then control by the voltage loop control module to reach the voltage limit value or the voltage output value among the target output value and the target limit value.
[0014] In some embodiments, determining the corresponding control module when reaching the target output value or reaching the target limit value includes: Calculate an equivalent resistance value based on the target output value and the target limit value; Judge whether the measured voltage value of the current circuit and the measured current value of the current circuit are stably output. If they are stably output, calculate the current circuit resistance value based on the measured voltage value of the current circuit and the measured current value of the current circuit; If the equivalent resistance value is greater than the current circuit resistance value, the corresponding control module is controlled by the voltage loop control module; If the equivalent resistance value is less than the current circuit resistance value, the corresponding control module is controlled by the current loop control module.
[0015] According to a third aspect, in one embodiment, a power supply is provided, including: A source output module for performing voltage output and current output; A current measurement module for measuring the current of the load; A voltage measurement module for measuring the voltage of the load; A processor for implementing the method described in the first aspect or the second aspect when executing a computer program and / or instructions by the processor.
[0016] According to a fourth aspect, in one embodiment, a computer program product is provided, including a computer program and / or instructions, and when the computer program and / or instructions are executed by a processor, the method described in the first aspect or the second aspect is implemented.
[0017] According to the power supply control method, power supply and computer program product of the above embodiments, first obtain the measured voltage value and measured current value of the current circuit. If it meets the source operating mode, then based on the target output value, the target limit value, the measured voltage value of the current circuit, and the measured current value of the current circuit, determine the feedback time relationship between the current loop control module and the voltage loop control module. When the feedback time of the current loop control module is less than the feedback time of the voltage loop control module, the output of the power supply will reach the corresponding current value faster. At this time, based on the current loop control module, control to reach the current limit value or current output value among the target output value and the target limit value to avoid voltage overshoot. On the contrary, the output of the power supply will reach the corresponding voltage value faster. At this time, based on the voltage loop control module, control to reach the voltage limit value or voltage output value among the target output value and the target limit value to avoid current overshoot. Since it is possible to switch to the control module with a smaller feedback time to control the power supply output, it is possible to smoothly perform voltage switching and current switching, thereby avoiding overshoot and inflection points. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic structural diagram of a power supply according to an embodiment; Figure 2 It is a schematic structural diagram of a power supply according to another embodiment; Figure 3 It is a schematic structural diagram of a source output module according to an embodiment; Figure 4 It is a schematic structural diagram of a voltage measurement module according to an embodiment; Figure 5 It is a schematic structural diagram of a feedback control according to an embodiment; Figure 6 Schematic diagram of a power control method according to an embodiment; Figure 7 Schematic diagram of a current range and a voltage range according to an embodiment. Detailed implementation manners
[0019] The present application will be further described in detail below in conjunction with the accompanying drawings through specific implementation manners. Similar elements in different implementation manners are labeled with related similar element numbers. In the following implementation manners, many detailed descriptions are provided to enable a better understanding of the present application. However, those skilled in the art can easily recognize that some of the features can be omitted in different situations, or can be replaced by other elements, materials, or methods. In some cases, some operations related to the present application are not shown or described in the specification to avoid the core part of the present application being overwhelmed by excessive descriptions. For those skilled in the art, it is not necessary to describe these related operations in detail, and the related operations can be fully understood based on the descriptions in the specification and the general technical knowledge in the art.
[0020] In addition, the features, operations, or characteristics described in the specification can be combined in any appropriate manner to form various implementation manners. At the same time, the steps or actions in the method description can also be reordered or adjusted in a manner obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for clearly describing a certain embodiment and do not mean that they are necessary sequences, unless it is stated that a certain sequence must be followed.
[0021] The serial numbers assigned to the components herein, such as "first", "second", etc., are only used to distinguish the described objects and do not have any sequential or technical meanings. The terms "connection" and "coupling" used in the present application, unless otherwise specified, both include direct and indirect connections (couplings).
[0022] In some embodiments, a power supply is provided that can control the source output and limit the output. For example, the power supply can be a source meter, which can output voltage and current as a source and can also measure voltage and current as a meter, so as to be able to control the source output and limit the output respectively. Please refer to Figure 1 , the power supply includes a source output module 10, a current measurement module 20, a voltage measurement module 30, and a processor 40, which will be specifically described below respectively.
[0023] The source output module 10 is used for voltage output and current output.
[0024] In some embodiments, the source output module 10 can be in a voltage source mode or a current source mode under the control of a processor. In the voltage source mode, a constant voltage can be output, and a current limited in the voltage source mode can be output. In the current source mode, a constant current can be output, and a voltage limited in the current source mode can be output.
[0025] Please refer to Figure 2 , in some embodiments, the source output module 10 includes a DAC (digital-to-analog converter) and an operational amplifier module. The digital-to-analog converter is used to convert a digital signal (codeword) representing a voltage value or a current value into an analog signal for output, so as to achieve an analog voltage output or an analog current output of a corresponding amplitude. The operational amplifier module is used to amplify or attenuate the analog voltage output or the analog current output and then use it as the output of the source output module 10 to meet the output requirements.
[0026] Please refer to Figure 3 , in some embodiments, the operational amplifier module includes an operational amplifier and a plurality of resistor groups (such as resistor Ri1, resistor Ri2, resistor Ri3, and resistor Ri4). Each resistor group can include one or more resistors. Different resistor groups can make the operational amplifier have different amplification factors or attenuation factors. Therefore, different resistor groups can be selected to adjust the output of the amplifier, so that different resistor groups can correspond to different output ranges of the operational amplifier. By adjusting the operational amplifier to connect to different resistor groups, the corresponding output range can be adjusted.
[0027] The current measurement module 20 is used to measure the current of the load.
[0028] Please refer to Figure 2 , in some embodiments, the current measurement module 20 includes a sampling resistor group, an operational amplifier, and an ADC (analog-to-digital converter). The sampling resistor group includes a plurality of sampling resistors (resistor R1, resistor R2... resistor Rn). The sampling resistors are used to be connected in series with the load to collect the current of the load. Specifically, the amplifier respectively acquires the voltages at both ends of the sampling resistors, amplifies them, and then outputs them to the analog-to-digital converter. The analog-to-digital converter converts the voltage into a digital signal and outputs it to the processor. The processor is used to calculate the current value measured by the corresponding sampling resistor based on the voltage value. Among them, the resistance values of different sampling resistors are different. Therefore, by selecting different sampling resistors to be connected, different current measurement ranges can be correspondingly selected.
[0029] The voltage measurement module 30 is used to measure the voltage of the load.
[0030] Please refer to Figure 2, in some embodiments, the voltage measurement module 30 includes an operational amplifier module and an ADC (analog-to-digital converter). The input terminal of the operational amplifier module is used to connect to the input terminal of the load, that is, the input terminal of the operational amplifier module is bypass-connected to the output port of the source meter. The operational amplifier module amplifies or reduces the voltage at its input terminal and then outputs it to the analog-to-digital converter. The analog-to-digital converter performs analog-to-digital conversion on the voltage and then outputs it to the processor, and the processor is used to calculate the corresponding voltage value.
[0031] Please refer to Figure 4 , in some embodiments, the operational amplifier module includes an operational amplifier and multiple resistor groups (such as resistor Rv1, resistor Rv2, resistor Rv3, and resistor Rv4). Each resistor group can include one or more resistors. Different resistor groups can make the operational amplifier have different amplification multiples or reduction multiples. Therefore, selecting different resistor groups can correspond to different output ranges of the operational amplifier. Thus, the corresponding voltage measurement range can be adjusted by adjusting the operational amplifier to connect to different resistor groups.
[0032] The processor 40 is used to control the source output module 10, the current measurement module 20, and the voltage measurement module 30. For example, it controls the configuration mode and output range of the source output module 10 to meet the output requirements. Among them, the configuration mode includes a voltage source mode and a current source mode. For example, configure the current configuration mode as the voltage source mode, as well as the voltage output value, current limit values (including positive current limit value and negative current limit value), and current measurement range in the voltage source mode. For example, configure the current configuration mode as the current source mode, as well as the current output value, voltage limit values (including positive voltage limit value and negative voltage limit value), and voltage measurement range in the current source mode. Among them, the processor 40 can also control the current measurement range of the current measurement module 20 to meet the current measurement accuracy requirements, and control the voltage measurement range of the voltage measurement module 30 to meet the voltage measurement accuracy requirements. In some embodiments, the processor can be implemented based on devices with processing functions such as FPGA, CPU, and single-chip microcomputer.
[0033] In some embodiments, in both the voltage source mode and the current source mode, the processor 40 can control the output of the source output module 10 based on the current loop control module and the voltage loop control module. The current loop control module is used to control the output current of the source output module 10 to meet the requirements, and the voltage loop control module is used to control the output voltage of the source output module 10 to meet the requirements. For example, the target output current of the current loop control module is set. At this time, the current loop control module controls the source output module 10 to output based on the target output current, obtains the current output current based on the current measurement module 20, calculates the difference between the current output current and the target output current, and then adjusts the output of the source output module 10 based on this difference, so that the output of the source output module 10 reaches the target output current through feedback control. For example, when the output current is greater than the target output current, the current loop control module calculates this difference to reduce the output current to the target output current. On the contrary, when the output current is less than the target output current, the output current is increased to the target output current. At this time, the current loop control module plays a controlling role. Among them, the voltage loop control module controls the output voltage with reference to the current loop control module controlling the output current, which will not be elaborated here.
[0034] Please refer to Figure 5 , in some embodiments, the current loop control module includes a current increment calculation module 50 and a first integration module; the current increment calculation module 50 calculates the corresponding current output increment based on the target current value and the current measured by the current circuit by a preset feedback algorithm, and the first integration module is used to perform an integration operation on the current output increment, and the result of this integration operation is used to control the current output.
[0035] In some embodiments, the voltage loop control module includes a voltage increment calculation module 60 and a second integration module; the voltage increment calculation module 60 calculates the corresponding voltage output increment based on the target voltage value and the current measured by the current circuit by a preset feedback algorithm, and the second integration module is used to perform an integration operation on the voltage output increment, and the result of this integration operation is used to control the voltage output. Among them, the source output module 10 adjusts the current output based on the result of the integration operation of the current output increment, or adjusts the voltage output based on the result of the integration operation of the voltage output increment. Among them, the preset feedback algorithm adopted by the voltage increment calculation module 60 and the current increment calculation module 50 can be a PID feedback algorithm, and the specific implementation process of this feedback control algorithm will not be elaborated here, or it can be other existing feedback control algorithms. Among them, the integration module integrates the increment. Therefore, the feedback algorithm adopted by the voltage loop control module as a whole can also be called an incremental PID feedback algorithm.
[0036] In some embodiments, the preset feedback algorithm is the following formula: Δu(k) = Kp[e(k) - e(k - 1)] + Kie(k) + Kd[e(k) - 2e(k - 1) + e(k - 2)]; Where, Δu(k) is the voltage output increment or the current output increment; e(k) is the error at the current moment K, that is, the difference between the target output value and the current output value; Kp is the proportional coefficient, which determines the influence of the current error on the control quantity; Ki is the integral coefficient, which determines the influence of the error accumulation on the control quantity; Kd is the differential coefficient, which determines the influence of the error change rate on the control quantity.
[0037] The integration module performs the integration operation of the incremental PID, that is: u(k) = u(k - 1) + Δu(k).
[0038] Where, u(k) is the integration result at the current moment K.
[0039] Please refer to Figure 5 , in some embodiments, the first integration module and the second integration module are a shared integration module 80, that is, the voltage loop control module and the current loop control module share an integration module. At this time, the processor 40 also selects the shared integration module 80 based on the selection module 70 to perform the integration operation on the current output increment or the voltage output increment. That is, the selection module 70 is used to select to integrate Δu(k) corresponding to the current output increment, or to select to integrate Δu(k) corresponding to the voltage output increment.
[0040] For example, when the voltage loop control module is in effect, the control selection module 70 selects the shared integration module 80 to perform the integration operation on the voltage output increment output by the voltage increment calculation module 60. When the voltage loop control module is switched to the current loop control module in effect, the control selection module 70 then selects the shared integration module 80 to continue to perform the integration operation on the current output increment output by the current increment calculation module 50. In this embodiment, since the voltage loop control module and the current loop control module share an integration module, when switching between the voltage loop control module and the current loop control module, desaturation does not need to be performed, thereby avoiding the desaturation problem, and the power supply output response is faster and the stability is faster.
[0041] In some embodiments, the above-mentioned current loop control module and voltage loop control module can both be implemented based on software. For example, the processor 40 executes computer programs and / or instructions to implement the control functions corresponding to the selection module, the current loop control module, and the voltage loop control module.
[0042] In some embodiments, the above-mentioned current loop control module and voltage loop control module can also be implemented based on hardware. In this case, the power supply further includes the above-mentioned selection module, current loop control module, and voltage loop control module. In some embodiments, the above-mentioned current loop control module and voltage loop control module can also be implemented in a manner combining hardware and software.
[0043] The above is some description of the power supply. Next, a specific description of the power supply control method will be given. In some embodiments, a power supply control method is provided, which can be applied to the above-mentioned power supply. Please refer to Figure 6 , the power supply control method may include the following steps: Step 100: Obtain the target output value and target limit value configured currently.
[0044] In some embodiments, when the target output value is a voltage output value, the target limit value is a current limit value, and in this case, it corresponds to the voltage source mode; when the target output value is a current output value, the target limit value is a voltage limit value, and in this case, it corresponds to the current source mode.
[0045] In some embodiments, the power supply can obtain the target output value and target limit value configured by the user based on the corresponding control panel, for example, obtain them in ways such as based on a touch screen, buttons, knobs, etc., or can also obtain the target output value and target limit value sent by the user based on wired communication and wireless communication.
[0046] Step 110: Obtain the measured voltage value and measured current value of the current circuit, and determine whether the source working mode is satisfied.
[0047] The source working mode refers to the working mode of the power supply as a source. In some embodiments, specifically, when determining whether the source working mode is satisfied based on the measured voltage value and measured current value of the current circuit, it can be to determine whether the measured current value of the current circuit is greater than zero, and determine whether the measured voltage value of the current circuit is greater than zero. If the measured current value of the current circuit is greater than zero, and the measured voltage value of the current circuit is greater than zero, then the power supply satisfies the source working mode, and at this time, the power supply outputs voltage and current to the load. Or, if the measured current value of the current circuit is less than zero, and the measured voltage value of the current circuit is less than zero, then the power supply also satisfies the source working mode, and at this time, the power supply inputs voltage and input current from the load. In some embodiments, it can also be to directly obtain the ratio between the measured current value and measured voltage value of the current circuit. If this ratio is a positive value, then the power supply satisfies the source working mode.
[0048] Step 120: If satisfied, determine the feedback time relationship between the current loop control module and the voltage loop control module.
[0049] In some embodiments, the target output value and the target limit value represent the output value to be achieved, while the voltage value measured by the current circuit and the current value measured by the current circuit represent the actual achieved output value. When the output value to be achieved is inconsistent with the actual achieved output value, the power supply continues to increase the output until at least one of the target output value and the target limit value is reached. Among them, during the process of the power supply continuing to increase the output, it can be controlled based on the current loop control module to continue to increase the output, or it can be controlled based on the voltage loop control module to continue to increase the output.
[0050] Since both the current loop control module and the voltage loop control module can be used for control, in the prior art, usually neither of them is deliberately selected for control, but rather a free competition is allowed between the current loop control module and the voltage loop control module.
[0051] In this regard, the inventors found that when the power supply continues to increase the output and reaches at least one of the target output value and the target limit value, the voltage waveform and the current waveform are prone to be uneven, resulting in overshoot and inflection points. Further, the inventors found that during the process of the power supply continuing to increase the output and reaching at least one of the target output value and the target limit value, the feedback times between the current loop control module and the voltage loop control module are different. Among them, when controlling based on the control module with a smaller feedback time, the voltage waveform and the current waveform are not easily uneven, thus avoiding overshoot and inflection points. On the contrary, when controlling based on the control module with a larger feedback time, the voltage waveform and the current waveform are prone to be uneven, resulting in overshoot and inflection points.
[0052] In summary, during the process of the power supply continuing to increase the output, the present application determines the feedback time relationship between the current loop control module and the voltage loop control module, and selects the control module with a smaller feedback time for control, so as to avoid overshoot and inflection points.
[0053] In addition, the inventors also found that during the process of the power supply continuing to increase the output and reaching at least one of the target output value and the target limit value, if the current control module is the same as the control module corresponding to reaching the target output value or reaching the target limit value, the voltage waveform and the current waveform are not easily uneven, thus avoiding overshoot and inflection points. On the contrary, if the current control module is different from the control module corresponding to reaching the target output value or reaching the target limit value, the voltage waveform and the current waveform are prone to be uneven, resulting in overshoot and inflection points.
[0054] In summary, during the process of the power supply continuing to increase the output, the present application can also determine the control module corresponding to reaching the target output value or reaching the target limit value, and select this control module for control, so as to avoid overshoot and inflection points.
[0055] In some embodiments, the feedback time relationship between the current loop control module and the voltage loop control module can be determined based on the target output value, the target limit value, the measured voltage value of the current circuit, and the measured current value of the current circuit. That is, based on the relationship between the target output value and the target limit value on the one hand and the measured voltage value and the measured current value of the current circuit on the other hand, the feedback time relationship between the current loop control module and the voltage loop control module can be determined.
[0056] In some embodiments, when determining the feedback time relationship between the current loop control module and the voltage loop control module, first calculate the equivalent resistance value based on the target output value and the target limit value, that is, divide the voltage value in the target output value and the target limit value by the current value. Then determine whether the measured voltage value and the measured current value of the current circuit are stably output. If they are stably output, calculate the resistance value of the current circuit based on the measured voltage value and the measured current value of the current circuit. If the equivalent resistance value is greater than the resistance value of the current circuit, the feedback time of the current loop control module is greater than the feedback time of the voltage loop control module; if the equivalent resistance value is less than the resistance value of the current circuit, the feedback time of the current loop control module is less than the feedback time of the voltage loop control module.
[0057] In some embodiments, the control module corresponding to reaching the target output value or reaching the target limit value can be determined based on the target output value, the target limit value, the measured voltage value of the current circuit, and the measured current value of the current circuit. That is, based on the relationship between the target output value and the target limit value on the one hand and the measured voltage value and the measured current value of the current circuit on the other hand, the control module corresponding to reaching the target output value or reaching the target limit value can be determined.
[0058] In some embodiments, when determining the control module corresponding to reaching the target output value or reaching the target limit value, first calculate the equivalent resistance value based on the target output value and the target limit value, and then determine whether the measured voltage value and the measured current value of the current circuit are stably output. If they are stably output, calculate the resistance value of the current circuit based on the measured voltage value and the measured current value of the current circuit. If the equivalent resistance value is greater than the resistance value of the current circuit, the corresponding control module is controlled by the voltage loop control module; if the equivalent resistance value is less than the resistance value of the current circuit, the corresponding control module is controlled by the current loop control module.
[0059] In the above embodiments, it can be based on the target output value and the target limit value to calculate the predicted resistance value, and then compare the predicted resistance value with the actual resistance value of the current circuit. When the predicted resistance value is greater than the actual resistance value of the current circuit, it can be determined that the feedback time of the voltage loop control module is smaller, and vice versa, it can be determined that the feedback time of the current loop control module is smaller. Or it can also be to determine the control module corresponding to reaching the target output value or reaching the target limit value.
[0060] In the above embodiments, when the measured voltage value and the measured current value of the current circuit are unstable, the measured voltage value and the measured current value of the current circuit cannot relatively truly reflect the resistance value of the current circuit. Therefore, it is necessary to first determine whether the output is stable, and calculate the resistance value of the current circuit when the output is stable, so that the measured voltage value and the measured current value of the current circuit can relatively truly reflect the resistance value of the current circuit.
[0061] In some embodiments, when determining whether the measured voltage value and the measured current value of the current circuit are stably output, first obtain a first ratio between the measured voltage value of the current circuit and the voltage limit value or the voltage output value among the target output value and the target limit value, and obtain a second ratio between the measured current value of the current circuit and the current limit value or the current output value among the target output value and the target limit value. If the first ratio satisfies the first preset range and the second ratio satisfies the second preset range, the measured voltage value and the measured current value of the current circuit are stably output. In this embodiment, it can be determined whether the output is stable based on whether the measured voltage value and the measured current value of the current circuit are within the preset range of the target output value and the target limit value.
[0062] Please refer to Figure 7 , in some embodiments, the first preset range is from a first preset ratio greater than zero to a second preset ratio less than one. In some embodiments, the second preset range is from a third preset ratio greater than zero to a fourth preset ratio less than one. In this embodiment, both the first preset range and the second preset range are between 0 and 1, and both the first preset ratio and the third preset ratio differ from 0 by a preset value, and both the second preset ratio and the fourth preset ratio differ from 1 by a preset value. The purpose is to avoid switching the control module near the boundary of the target output value and the target limit value. If the control module is switched near the boundary, it will cause overshoot of the voltage waveform and current waveform of the power supply. Please refer to Figure 7 , the voltage limit value or the voltage output value among the target output value and the target limit value corresponds to D, D corresponds to the voltage value c corresponding to the first preset ratio, and the voltage value d corresponding to the second preset ratio. The current limit value or the current output value among the target output value and the target limit value corresponds to A, A corresponds to the current value a corresponding to the third preset ratio, and the voltage value b corresponding to the fourth preset ratio. For example, the first preset ratio and the third preset ratio are 1%, and the second preset ratio and the fourth preset ratio are both 99%. Step 130: Control to reach the target output value or the target limit value.
[0063] In some embodiments, if the corresponding control module is a current loop control module, then the current limit value or current output value among the target output value and the target limit value is achieved based on the control of the current loop control module; if the corresponding control module is a voltage loop control module, then the voltage limit value or voltage output value among the target output value and the target limit value is achieved based on the control of the voltage loop control module.
[0064] In some embodiments, if the feedback time of the current loop control module is less than that of the voltage loop control module, then the current limit value or current output value among the target output value and the target limit value is achieved based on the control of the current loop control module. At this time, due to the smaller feedback time of the current loop control module, the current output of the power supply can reach the current limit value or current output value smoothly, and the voltage output will not exceed the voltage limit value or voltage output value.
[0065] In some embodiments, when it is necessary to control based on the current loop control module, if the current is currently controlled by the voltage loop control module to reach the voltage limit value or voltage output value among the target output value and the target limit value, and the measured voltage value of the current circuit is less than the voltage limit value or voltage output value, then the control is switched from the voltage loop control module to the current loop control module.
[0066] In some embodiments, if the feedback time of the current loop control module is greater than that of the voltage loop control module, then the voltage limit value or voltage output value among the target output value and the target limit value is achieved based on the control of the voltage loop control module. At this time, due to the smaller feedback time of the voltage loop control module, the voltage output of the power supply can reach the voltage limit value or voltage output value smoothly, and the current output will not exceed the current limit value or current output value.
[0067] In some embodiments, when it is necessary to control based on the voltage loop control module, if the current is currently controlled by the current loop control module to reach the current limit value or current output value among the target output value and the target limit value, and the measured current value of the current circuit is less than the current limit value or current output value, then the control is switched from the current loop control module to the voltage loop control module.
[0068] In the above embodiments, based on the real-time changes of the measured voltage value and measured current value of the current circuit, the control module can be switched once or multiple times until the target output value or target limit value is reached, or the measured voltage value and measured current value of the current circuit do not meet the stable output.
[0069] [[ID=l8]]In some embodiments, a computer-readable storage medium is provided, on which a program is stored, and the program can be executed by a processor to implement the above power control method.
[0070] In some embodiments, a computer program product is provided, including a computer program and / or instructions, which implement the above power control method when executed by a processor.
[0071] Those skilled in the art can understand that all or part of the functions of the above methods can be implemented in a hardware manner or in a computer program manner. When all or part of the functions in the above embodiments are implemented in a computer program manner, the program can be stored in a computer-readable storage medium, which may include: read-only memory, random access memory, magnetic disk, optical disk, hard disk, etc. The above functions are implemented by a computer executing the program. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above functions can be implemented. In addition, when all or part of the functions in the above embodiments are implemented in a computer program manner, the program can also be stored in a storage medium such as a server, another computer, magnetic disk, optical disk, flash drive or mobile hard disk, and saved to the memory of the local device by downloading or copying, or the system of the local device is updated with a version. When the program in the memory is executed by the processor, all or part of the functions in the above embodiments can be implemented.
[0072] The above uses specific examples to elaborate on the present application, which is only used to help understand the present application and is not intended to limit the present application. For those skilled in the technical field to which the present application belongs, according to the idea of the present application, several simple deductions, deformations or substitutions can also be made.
Claims
1. A power control method, characterized in that, The power supply controls current output based on a current loop control module and voltage output based on a voltage loop control module. The control method includes: Obtaining a currently configured target output value and a target limit value; wherein, when the target output value is a voltage output value, the target limit value is a current limit value; when the target output value is a current output value, the target limit value is a voltage limit value; Obtaining the measured voltage value of the current circuit and the measured current value of the current circuit, and determining whether the source operating mode is satisfied based on the measured voltage value of the current circuit and the measured current value of the current circuit; If the measured voltage value of the current circuit and the measured current value of the current circuit satisfy the source operating mode, then based on the target output value, the target limit value, the measured voltage value of the current circuit, and the measured current value of the current circuit, determine the feedback time relationship between the current loop control module and the voltage loop control module; wherein, the feedback time of the current loop control module is used to characterize the time for the current loop control module to control the current to rise to the current limit value or the current output value, and the feedback time of the voltage loop control module is used to characterize the time for the voltage loop control module to control the voltage to rise to the voltage limit value or the voltage output value; If the feedback time of the current loop control module is less than the feedback time of the voltage loop control module, then control based on the current loop control module to reach the current limit value or the current output value among the target output value and the target limit value; If the feedback time of the current loop control module is greater than the feedback time of the voltage loop control module, then control based on the voltage loop control module to reach the voltage limit value or the voltage output value among the target output value and the target limit value.
2. The power control method according to claim 1, characterized in that, The determining the feedback time relationship between the current loop control module and the voltage loop control module includes: Calculating an equivalent resistance value based on the target output value and the target limit value; Determining whether the measured voltage value of the current circuit and the measured current value of the current circuit are stably output. If they are stably output, then calculate the current circuit resistance value based on the measured voltage value of the current circuit and the measured current value of the current circuit; If the equivalent resistance value is greater than the current circuit resistance value, then the feedback time of the current loop control module is greater than the feedback time of the voltage loop control module; If the equivalent resistance value is less than the current circuit resistance value, then the feedback time of the current loop control module is less than the feedback time of the voltage loop control module.
3. The power control method according to claim 2, wherein The determining whether the measured voltage value of the current circuit and the measured current value of the current circuit are stably output includes: Obtaining a first ratio between the measured voltage value of the current circuit and the voltage limit value or the voltage output value among the target output value and the target limit value; Obtaining a second ratio between the measured current value of the current circuit and the current limit value or the current output value among the target output value and the target limit value; If the first ratio satisfies a first preset range and the second ratio satisfies a second preset range, then the measured voltage value of the current circuit and the measured current value of the current circuit are stably output.
4. The power control method according to claim 3, wherein The first preset range is from a first preset ratio greater than zero to a second preset ratio less than one; and / or, the second preset range is from a third preset ratio greater than zero to a fourth preset ratio less than one.
5. The power control method according to claim 1, characterized in that The determination of whether the source operating mode is satisfied based on the measured voltage value and the measured current value of the current circuit includes: Determining whether the measured current value of the current circuit is greater than zero, and determining whether the measured voltage value of the current circuit is greater than zero; If the measured current value of the current circuit is greater than zero and the measured voltage value of the current circuit is greater than zero, then the source operating mode is satisfied; Or, If the measured current value of the current circuit is less than zero and the measured voltage value of the current circuit is less than zero, then the source operating mode is satisfied; Or, Obtaining the ratio between the measured current value and the measured voltage value of the current circuit, if the ratio is positive, then the source operating mode is satisfied.
6. The power control method according to claim 1, wherein The current loop control module includes a current increment calculation module and a first integration module; the current increment calculation module calculates a corresponding current output increment by a preset feedback algorithm based on the target current value and the measured current value of the current circuit, and the first integration module is used to perform an integration operation on the current output increment, and the result of this integration operation is used to control the current output; and / or, The voltage loop control module includes a voltage increment calculation module and a second integration module; the voltage increment calculation module calculates a corresponding voltage output increment by a preset feedback algorithm based on the target voltage value and the measured voltage value of the current circuit, and the second integration module is used to perform an integration operation on the voltage output increment, and the result of this integration operation is used to control the voltage output.
7. The power control method according to claim 6, wherein The first integration module and the second integration module are a shared integration module, and the power supply also selects the shared integration module to perform an integration operation on the current output increment or on the voltage output increment based on a selection module, and the control method further includes; When controlling the current output based on the current loop control module, then control the selection module to select the shared integration module to perform an integration operation on the current output increment; When controlling the voltage output based on the voltage loop control module, then control the selection module to select the shared integration module to perform an integration operation on the voltage output increment.
8. The power control method according to claim 1 or 7, characterized in that, If the feedback time of the current loop control module is less than the feedback time of the voltage loop control module, the control method further includes: If currently it is the voltage loop control module that controls to reach the voltage limit value or the voltage output value among the target output value and the target limit value, and the measured voltage value of the current circuit is less than the voltage limit value or the voltage output value, then switch from the voltage loop control module to the current loop control module; Or, If the feedback time of the current loop control module is greater than the feedback time of the voltage loop control module, the control method further includes: If the current is controlled by the current loop control module to reach the current limit value or the current output value among the target output value and the target limit value, and the measured current value of the current circuit is less than the current limit value or the current output value, then the current loop control module switches to the voltage loop control module.
9. A power control method, characterized in that, The power supply controls current output based on the current loop control module and voltage output based on the voltage loop control module. The control method includes: Obtain the target output value and the target limit value configured currently; wherein, when the target output value is the voltage output value, the target limit value is the current limit value; when the target output value is the current output value, the target limit value is the voltage limit value; Obtain the measured voltage value of the current circuit and the measured current value of the current circuit, and determine whether the source operating mode is satisfied based on the measured voltage value of the current circuit and the measured current value of the current circuit; If the measured voltage value of the current circuit and the measured current value of the current circuit satisfy the source operating mode, then based on the target output value, the target limit value, the measured voltage value of the current circuit, and the measured current value of the current circuit, determine the control module corresponding to reaching the target output value or reaching the target limit value; If the corresponding control module is controlled by the current loop control module, then control by the current loop control module to reach the current limit value or the current output value among the target output value and the target limit value; If the corresponding control module is controlled by the voltage loop control module, then control by the voltage loop control module to reach the voltage limit value or the voltage output value among the target output value and the target limit value.
10. The power control method according to claim 9, wherein, The determining the control module corresponding to reaching the target output value or reaching the target limit value includes: Calculate the equivalent resistance value based on the target output value and the target limit value; Judge whether the measured voltage value of the current circuit and the measured current value of the current circuit are stably output. If they are stably output, calculate the resistance value of the current circuit based on the measured voltage value of the current circuit and the measured current value of the current circuit; If the equivalent resistance value is greater than the resistance value of the current circuit, then the corresponding control module is controlled by the voltage loop control module; If the equivalent resistance value is less than the resistance value of the current circuit, then the corresponding control module is controlled by the current loop control module.
11. A power supply, characterized in that, It includes: A source output module for performing voltage output and current output; A current measurement module for measuring the current of the load; A voltage measurement module for measuring the voltage of the load; A processor for implementing the method according to any one of claims 1-10 when the computer program and / or instructions are executed by the processor.
12. A computer program product, comprising a computer program and / or instructions, characterized in that, The computer program and / or instructions, when executed by the processor, implement the method according to any one of claims 1-10.
Citation Information
Patent Citations
Source meter output control device, source meter and source meter output control method
CN120143925A
Control circuit of switching mode power supply and control method thereof
US20230034190A1
Cited By
Power supply, power supply power control method and computer program product
CN121602310A