A hybrid control method for inverter energy storage working mode
The hybrid control method of inverter energy storage working mode through multi-threshold state switching solves the problems of frequent mode switching and insufficient backup power in conventional control, improves user experience and ensures normal power supply to the load.
Patent Information
- Application Number
- CN202410856705.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In conventional inverter energy storage systems, frequent switching between self-consumption mode and backup power mode and insufficient backup power lead to poor user experience.
The inverter energy storage working mode hybrid control method uses multiple thresholds for state switching. Through the collaborative work of ARM and DSP, it generates power replenishment and power retention instructions, controls the duty cycle of the bidirectional DC/DC circuit, and realizes forced charging and prohibition. Switch between release and spontaneous use states to reduce the impact of mode switching.
It effectively solves the problems of frequent mode switching and insufficient backup power, improves the user's power consumption experience, and ensures the sufficient status of the battery and the normal power supply of the load.
Smart Images

Figure CN118432180B
Abstract
Description
Technical Field
[0001] The present application relates to the field of renewable energy power generation technology, and in particular to a hybrid control method for an inverter energy storage working mode. Background Art
[0002] Common inverter energy storage systems such as photovoltaic storage inverter systems, such as Figure 1 As shown. The photovoltaic storage inverter controls the PV side power through the DC / DC circuit, the DC / AC circuit controls the load power and the grid feed power, and the bidirectional DC / DC circuit controls the battery charge and discharge power. Among them, ARM obtains the battery working mode instruction and the battery charge / discharge current instruction according to the working status of the battery and the power status of the entire photovoltaic storage inverter system, and then sends them to the DSP. In the DSP, the corresponding control loop is run according to the instructions issued by ARM to obtain the duty cycle d of the bidirectional DC / DC circuit. bat , the bidirectional DC / DC circuit is controlled by PWM to achieve battery charging and discharging control.
[0003] Under grid-connected conditions, the working modes of the energy storage system mainly include self-generation and self-use mode and backup power mode. Its energy scheduling priority is as follows: Figure 2 As shown in the figure, numbers 1, 2, and 3 represent the energy priority provided by PV, and numbers ①, ②, and ③ represent the energy acquisition priority of loads.
[0004] Self-use mode: Figure 2 As shown in (a), PV energy is first fed to the load, then to the battery, and finally to the grid. The priority of load energy acquisition is PV>battery>grid. It should be noted that the battery can be discharged to the load.
[0005] Backup mode: Figure 2 As shown in (b), for PV energy, the battery is given priority, followed by the load, and finally the grid. The priority of load energy acquisition is PV>grid. It should be noted that in this mode, the battery is not allowed to discharge to the load.
[0006] In the above conventional control method, the control of the two modes is independent of each other, and the working mode is determined according to the battery SOC. However, this method easily causes frequent switching between modes and insufficient backup power, resulting in a poor user experience. Based on this, it is now urgent to improve the existing inverter energy storage working mode hybrid control method. Summary of the invention
[0007] One of the objectives of the present application is to provide a hybrid control method for an inverter energy storage working mode that can solve at least one of the defects in the above-mentioned background technology.
[0008] In order to achieve at least one of the above purposes, the technical solution adopted in the present application is: a hybrid control method for an inverter energy storage working mode, comprising the following steps: a battery working state instruction generation module located in the ARM compares the SOC of the battery with a set threshold value, determines based on the comparison result that the battery is working in a strong charging, forbidden discharge or self-generation and self-use state, and generates corresponding power replenishment instruction flag1 and power reserve instruction flag2; a battery current instruction generation module located in the self-generation and self-use mode of the ARM calculates the battery self-generation and self-use current instruction i according to the feed-in power bat_self and the battery's self-generated charge / discharge direction instruction flag3; the charge / discharge current generation module located in the DSP enables the specific unit corresponding to the battery working state according to the instruction issued by the ARM, and then outputs the corresponding current direction instruction dir and the charge / discharge current target value i bat * The charge / discharge current control loop located in the DSP generates a duty cycle d for controlling the bidirectional DC / DC circuit according to the output result of the charge / discharge current generation module; bat .
[0009] Preferably, when the battery is working in the strong charging state, the generated energy is given first to the battery, then to the load, and finally to the grid; when the generated energy is insufficient, the load draws power from the grid; when the battery is working in the prohibited discharge state, the generated energy is given first to the load, then to the battery, and finally to the grid; when the generated energy is insufficient, the battery is prohibited from discharging, and the load draws power from the grid; when the battery is working in the self-generation and self-use state, the generated energy is given first to the load, then to the battery, and finally to the grid; when the generated energy is insufficient, the load draws power from the battery or the grid, and the power drawing priority is battery>grid.
[0010] Preferably, the charging instruction flag1 adopts hysteresis logic; when the SOC of the battery rises to the set threshold SOC th3 When the battery SOC drops to the set threshold SOC th1 When the battery SOC is greater than the set threshold SOC th2 When the battery SOC is less than the set threshold SOC th2 When the power reserve instruction flag2 = 0, SOC th1 <SOC th2 <SOC th3 .
[0011] Preferably, the battery working state instruction generating module determines the working state of the battery in the following process: along the charging direction, when SOC <SOC th2When the power replenishment instruction flag1=1, the power reserve instruction flag2=0, the battery power is insufficient and needs to be replenished, and it is determined that the battery needs to work in the strong charging state; when SOC th2 <SOC<SOC th3 When the power replenishment instruction flag1=1, the power reserve instruction flag2=1, the battery has sufficient power but still needs to be replenished, and it is determined that the battery needs to work in the forbidden state; when the SOC reaches SOC th3 When SOC>SOC th2 When the power replenishment instruction flag1=0, the power reserve instruction flag2=1, the battery power is sufficient and does not need to be replenished, and it is determined that the battery needs to work in the self-generated state; when SOC th1 <SOC<SOC th2 When the power replenishment instruction flag1=0 and the power reserve instruction flag2=0, the battery power is insufficient but no power replenishment is required, and it is determined that the battery needs to work in the forbidden state; when the SOC drops to SOC th1 When the power replenishment instruction flag1=1.
[0012] Preferably, the charge / discharge current generation module includes a forced charge calculation unit, a forbidden discharge calculation unit and a spontaneous self-use calculation unit; the working process of the charge / discharge current generation module is: when the battery is working in a forced charge state, the forced charge calculation unit is enabled, and the battery current limit value i issued by ARM is bat_lim The strong charge calculation unit is sent to output the current direction instruction dir=1 and the charge / discharge current target value i bat * =i bat_lim When the battery is in a prohibited state or a self-generated state, the prohibited calculation unit or the self-generated calculation unit is enabled, and the instruction i bat_self and flag3 are sent to the forbidden discharge calculation unit or the self-generated self-use calculation unit to output the corresponding current direction instruction dir and the charge / discharge current target value i bat * ; Among them, the current direction instruction dir takes 1 to indicate the charging direction, otherwise it takes 0 to indicate the discharging direction.
[0013] Preferably, the specific calculation process of the prohibition calculation unit is: when the instruction i bat_self >0 and flag3 is 1, the current direction command dir=1 and the charge / discharge current target value i bat * =i bat_self ; Otherwise, take the charge / discharge current target value i bat * =0.
[0014] Preferably, the specific calculation process of the self-generated and self-used calculation unit is: when the instruction i bat_self >0 and flag3 is 1, the current direction command dir=1 and the charge / discharge current target value i bat * =i bat_self ; When the instruction i bat_self <0 and flag3 is 0, the current direction command dir=0 and the charge / discharge current target value i bat * =i bat_self ; When the instruction i bat_self >0 and flag3 is 0 or i bat_self <0 and flag3 is 1, take the charge / discharge current target value i bat * =0.
[0015] Preferably, the calculation process of the battery current instruction generation module in the self-generation and self-use mode is: the instantaneous power p obtained from the power grid is grid With the set target value p grid * =0, and the comparison result is passed through the PI controller to obtain the battery self-generated current instruction i bat_self ; At the same time, the instantaneous power p grid and 0 are sent to the comparator. When p grid >0, the output battery self-generated self-use charge / discharge direction instruction flag3 is 0, when p grid When ≤0, the output battery self-generated self-use charge / discharge direction instruction flag3 is 1.
[0016] Preferably, an entry control module is provided at the front end of the battery current instruction generation module in the self-generated and self-used mode; when the battery is working in a forced charge or a forbidden discharge state, the entry control module controls the battery current instruction generation module in the self-generated and self-used mode to be disabled; at this time, the command flag3 output by the battery current instruction generation module in the self-generated and self-used mode is 0, i bat_self Maintain the output value at the previous moment.
[0017] Preferably, a rapid desaturation mechanism is added to the battery current command generation module in the self-generated and self-used mode. The specific control process is: when the command i bat_self >0 and flag3 is 1 or i bat_self <0 and flag3 is 0, the limit value i of the PI loop output bat_sat is the normal value, the limit value i of the PI loop integrator int_sat is the normal value; when the instruction i bat_self >0 and flag3 is 0 or i bat_self<0 and flag3 is 1, the current PI loop limit value i bat_sat The i at the previous sampling time bat_self The value of is reduced by ΔI to obtain the PI loop integrator limit value i at the current moment. int_sat The integrator output value at the previous sampling moment is reduced by ΔI; the instruction i at the current sampling moment is bat_self <0, i bat_self +ΔI is the current PI loop limit value i bat_sat , add ΔI to the integrator output value at the previous sampling moment as the integrator limit value i at the current moment int_sat ; The instruction i at the current sampling moment bat_self >0, i bat_self -ΔI is the current PI loop limit value i bat_sat , the integrator output value at the previous sampling moment is reduced by ΔI as the integrator limit value i at the current moment int_sat ; Where ΔI represents the desaturation rate.
[0018] Compared with the prior art, the beneficial effects of this application are:
[0019] The self-generation mode and the backup power mode are mixed and controlled, and a multi-threshold state switching method is adopted to solve the problems of frequent mode switching and insufficient backup power in conventional control methods, thereby reducing the impact of mode switching and ensuring the user's power consumption experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a topological diagram of an existing photovoltaic storage inverter system.
[0021] Figure 2 for Figure 1 The schematic diagram of energy scheduling priority of the photovoltaic storage inverter system is shown.
[0022] Figure 3 for Figure 1 The mode switching control schematic diagram of the photovoltaic storage inverter system is shown.
[0023] Figure 4 It is a schematic diagram of the working mode control system of the present invention.
[0024] Figure 5 It is a structural schematic diagram of the battery working status instruction generating module in the present invention.
[0025] Figure 6 It is a structural schematic diagram of the battery current instruction generation module in the self-generation and self-use mode of the present invention.
[0026] Figure 7It is a structural schematic diagram of the charge / discharge current generating module in the present invention.
[0027] Figure 8 This is a schematic diagram of the energy scheduling priority when the battery is in a prohibited state in the present invention.
[0028] Fig. 9 This is a working logic diagram of the battery working status instruction generating module in the present invention.
[0029] Fig.10 It is a structural schematic diagram of the prohibition calculation unit in the present invention.
[0030] Fig.11 It is a schematic diagram of the structure of the self-generated and self-used computing unit in the present invention.
[0031] Fig.12 It is a structural schematic diagram of the entrance control module in the present invention.
[0032] Fig.13 The present invention is a schematic diagram of a structure in which a rapid desaturation mechanism is added to the battery current command generation module in the self-generation and self-use mode.
[0033] Fig.14 For the present invention Fig.13 The diagram shows the current variation of the battery current command generating module in the self-generation and self-use mode during the desaturation process.
[0034] In the figure: battery working status instruction generation module 110, power replenishment instruction unit 111, power retention instruction unit 112, spontaneous self-use mode battery current instruction generation module 120, current instruction unit 121, level instruction unit 122, entry control module 130, charge / discharge current generation module 210, forced charge calculation submodule 211, prohibited discharge calculation submodule 212, spontaneous self-use calculation submodule 213, charge / discharge current control loop 220. DETAILED DESCRIPTION
[0035] Below, the present application is further described in conjunction with specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.
[0036] In the description of the present application, it should be noted that directional words, such as the terms "center", "lateral", "longitudinal", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc., indicating directions and positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of narrating the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and cannot be understood as limiting the specific scope of protection of the present application.
[0037] It should be noted that the terms "first", "second", etc. in the description and claims of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0038] The terms "including" and "having" and any variations thereof in the specification and claims of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0039] In order to facilitate a better understanding of this solution in the future, the general control method for switching between the self-generation and self-use mode and the backup power mode of the traditional energy storage system can be described below; there are two main control methods for switching between the self-generation and self-use mode and the backup power mode.
[0040] Method 1: By comparing the battery's SOC (state of charge) with a set single threshold SOC th Compare to determine the working mode. For example, when the battery SOC>SOC th When the battery SOC <SOC th The system will work in backup power mode.
[0041] Method 2: By comparing the battery SOC with the set dual threshold SOC th1 and SOC th2 (SOC th1 <SOC th2 ) to compare to determine the working state. The system mode switching adopts hysteresis logic, such as Figure 3 As shown, when the battery SOC drops to SOC th1 When the battery SOC rises to SOC th2 When the system enters the self-generation mode.
[0042] Based on the above two control methods, there are the following problems:
[0043] For method 1, a single threshold is used, which may cause frequent mode switching problems, affecting the bidirectional DC / DC loop control and user experience.
[0044] For method 2, a dual threshold is used, and a portion of the backup energy will be lost in the hysteresis interval. In particular, when the hysteresis interval is large, that is, SOC th2 -SOC th1 If the value is large, the battery may be discharged to a value close to SOC th1 , so when there is a power outage at night, it may cause insufficient backup power, affecting the power supply to users. When the hysteresis interval is small, the problem of frequent mode switching will occur as in method 1.
[0045] Based on the above analysis process, the present application proposes a hybrid control method of the self-generation and self-use mode and the backup power mode on the basis of the traditional control method.
[0046] One of the preferred embodiments of the present application is as follows: Figure 4 As shown, a hybrid control method for inverter energy storage working mode includes a battery working state instruction generation module 110 and a self-generation and self-use mode battery current instruction generation module 120 located in an ARM (processor), and also includes a charge / discharge current generation module 210 and a charge / discharge current control loop 220 located in a DSP (digital signal processing chip). The battery working state instruction generation module 110 can generate instructions related to the battery working state, the self-generation and self-use mode battery current instruction generation module 120 can generate state instructions required for battery charging and discharging, the charge / discharge current generation module 210 can generate current instructions required for battery charging and discharging, and the charge / discharge current control loop 220 can generate a duty cycle for controlling a bidirectional DC / DC circuit, so that the inverter energy storage system switches the working mode according to the corresponding duty cycle.
[0047] The specific control process of switching working modes based on the above modules and loops is as follows:
[0048] First, the battery working state instruction generation module 110 located in the ARM can compare the battery SOC with the set threshold value, determine whether the battery is working in the forced charging, forbidden discharge or spontaneous self-use state based on the comparison result, and generate the corresponding power replenishment instruction flag1 and power reserve instruction flag2. Different values of the power replenishment instruction flag1 and the power reserve instruction flag2 represent different working states of the battery.
[0049] At the same time, the battery current command generation module 120 in the self-generation and self-use mode located in the ARM can calculate the corresponding battery self-generation and self-use current command i according to the grid power. bat_selfAnd the battery's spontaneous charge / discharge direction command flag3.
[0050] Then, the charge / discharge current generation module 210 located in the DSP can enable the specific unit corresponding to the battery working state according to the instruction issued by the ARM, and then output the corresponding current direction instruction dir and the charge / discharge current target value i bat * The battery direction command dir and the charge / discharge current target value i corresponding to different working states of the battery bat * different.
[0051] Finally, the charge / discharge current control loop 220 located in the DSP can generate a duty cycle d for controlling the bidirectional DC / DC circuit according to the output result of the charge / discharge current generation module 210. bat .
[0052] It can be understood that based on the above-mentioned control process, the present application can realize the mixed control of the self-generation and self-use mode and the backup power mode. By adopting a multi-threshold state switching method, the problems of frequent mode switching and insufficient backup power in the conventional control method are solved, thereby reducing the impact of mode switching and ensuring the user's power consumption experience.
[0053] It should be noted that this application only targets the battery working mode control part of the energy storage system. The power generation control, grid connection and load power control parts all adopt traditional control methods, and can be compatible with different control schemes according to energy distribution. The control schemes for power generation control, grid connection and load power control are not within the scope of discussion of this solution, so they will not be elaborated here.
[0054] In this embodiment, based on the hybrid control mode of the self-generation and self-use mode and the backup power mode of the present application, the battery has three working states: forced charging, forbidden discharge and self-generation and self-use. For ease of understanding, the specific conditions of the three working states will be described in detail below.
[0055] When the battery is working in the strong charging state, such as Figure 2 As shown in (b), the energy generated by the system is first fed to the battery, then to the load, and finally to the grid. When the generated energy is insufficient, the load draws power from the grid.
[0056] When the battery is working in a prohibited state, such as Figure 8 As shown in the figure, the energy generated by the system is first fed to the load, then to the battery, and finally to the grid. When the generated energy is insufficient, the battery is prohibited from discharging, and the load draws power from the grid.
[0057] When the battery is working in a self-generated state, such as Figure 2As shown in (a), the energy generated by the system is first fed to the load, then to the battery, and finally to the grid. When the generated energy is insufficient, the load draws power from the battery or the grid, and the priority of power drawing is battery > grid.
[0058] It should be known that the inverter energy storage system can be applied to photovoltaic energy storage systems, wind power generation energy storage systems, and hydropower generation energy storage systems, so the energy generated by the system can be photovoltaic energy, wind energy, or hydropower energy. For the convenience of description, the energy generated by the system will be described later using photovoltaic energy, i.e., PV energy, as an example.
[0059] In this embodiment, Figure 5 As shown, the battery working state instruction generation module 110 includes a charging instruction unit 111 and a power reserve instruction unit 112; wherein the charging instruction unit 111 can be used to generate a charging instruction flag1, and the power reserve instruction unit 112 is used to generate a power reserve instruction flag2. The number of thresholds set in the battery working state instruction generation module 110 can be determined according to the number or form of the working states of the battery; in a specific example, three thresholds SOC are set in the battery working state instruction generation module 110. th1 , SOC th2 and SOC th3 , and SOC th1 <SOC th2 <SOC th3 The battery working state instruction generation module 110 compares the battery SOC with the three set thresholds through the power replenishment instruction unit 111 and the power reserve instruction unit 112 to obtain the corresponding power replenishment instruction flag1 and power reserve instruction flag2. The analysis process is as follows:
[0060] like Figure 5 As shown in FIG. 1 , the generation of the power replenishment instruction flag1 adopts hysteresis logic. When the battery SOC rises to the set threshold SOC th3 When the battery SOC drops to the set threshold SOC th1 When the power replenishment instruction flag1=1.
[0061] When the battery SOC is greater than the set threshold SOC th2 When the battery SOC is less than the set threshold SOC th2 When the power reserve instruction flag2=0.
[0062] Based on the above analysis results, Fig. 9As shown, the battery working state instruction generation module 110 determines the working state of the battery as follows, wherein the value of the instruction is 1 for a high level, and the value is 0 for a low level.
[0063] In the charging direction, when the battery SOC <SOC th2 When the battery charge instruction flag1=1, the power reserve instruction flag2=0, it can be considered that the battery is insufficient and needs to be charged, and it can be determined that the battery needs to work in the strong charge state. th2 and SOC th3 Between, that is, SOC th2 <SOC<SOC th3 When the battery charge instruction flag1=1 and the power reserve instruction flag2=1, it can be considered that the battery has enough power, but it still needs to be charged. Then it can be determined that the battery needs to work in the forbidden state. When the battery SOC reaches SOC th3 When the power replenishment instruction flag1=0, the battery enters the self-generating and self-using state.
[0064] In the discharge direction, when the battery SOC>SOC th2 When the battery SOC is at SOC 0, the power replenishment instruction flag1 = 0, and the power reserve instruction flag2 = 1, it can be considered that the battery power is sufficient and does not need to be replenished. It can be determined that the battery needs to work in a self-generated state. th1 and SOC th2 Between, that is, SOC th1 <SOC<SOC th2 When the battery charge instruction flag1=0, the power reserve instruction flag2=0, it can be considered that the battery is insufficient, but does not need to be charged, so it can be determined that the battery needs to work in the forbidden state. When the battery SOC drops to SOC th1 When the charging instruction flag1=1, the battery enters the strong charging state.
[0065] It can be understood that by setting three threshold SOC th1 , SOC th2 and SOC th3 To switch the battery status, the battery can be divided into multiple different working modes, and then the different working modes can be switched in sequence during the battery operation, so as to avoid frequent switching of the same working mode of the battery. At the same time, by dividing the battery into multiple different working modes, the power span between adjacent working modes can be shortened, and the impact of the system in the process of switching between different modes can be reduced to ensure the user's power experience. And under normal circumstances, it is only necessary to ensure that the battery power is within the SOC th2The above can ensure that the normal power supply to the load can be maintained in the event of abnormal situations such as power outages at night.
[0066] Specifically, there are many specific structures of the power replenishment instruction unit 111 and the power reserve instruction unit 112, which can be set according to actual needs; for ease of understanding, the following can be a detailed description of one of the specific structures of the power replenishment instruction unit 111 and the power reserve instruction unit 112. Figure 5 As shown, the power replenishment instruction unit 111 records a comparison table of the power replenishment instruction flag1, and the horizontal axis of the comparison table is the SOC value, including the coordinate point SOC th1 and SOC th3 , the vertical axis is the value of the power replenishment instruction flag1. When the SOC of the battery is obtained, the corresponding power replenishment instruction flag1 is output according to the charge / discharge state of the battery. The power reserve instruction unit 112 uses a comparator to compare the battery SOC with the threshold SOC th2 As the input end of the comparator, the corresponding power reserve instruction flag2 is output according to the comparison result of the two.
[0067] In this embodiment, Figure 6 As shown, the battery current command generation module 120 in the self-generation and self-use mode includes a current command unit 121 and a level command unit 122. The current command unit 121 is used to calculate and generate the battery self-generation and self-use current command i bat_self The level command unit 122 is used to generate the battery self-generated self-use charge / discharge direction command flag3. bat_self The generation of the battery's spontaneous charge / discharge direction command flag3 will be described in detail below in conjunction with the specific structures of the current command unit 121 and the level command unit 122; there are multiple specific structures of the current command unit 121 and the level command unit 122, and one of the structures will be given below for detailed description.
[0068] Specifically, Figure 6 As shown, the current command unit 121 includes a comparator, a PI controller and a limiter unit. grid and the target value p grid * =0 is compared with the comparator, and the comparison result is sent to the limiter unit after passing through the PI controller. According to the output result of the PI controller, the corresponding battery self-generated current instruction i is read from the limiter unit. bat_self ; According to the instruction i bat_self The value of can be different to determine whether the battery is in a self-generated state. The level command unit 122 is a comparator that converts the instantaneous power p grid and 0 are sent to the level command unit 122; when the instantaneous power pgrid >0, the battery self-generated self-use charge / discharge direction instruction flag3 output by the level instruction unit 122 is 0. When the instantaneous power p grid ≤0, the battery autonomous charging / discharging direction instruction flag3 output by the level instruction unit 122 is 1.
[0069] In this embodiment, in the DSP, the charge / discharge current generation module 210 can generate a charge / discharge current according to the instructions flag1, flag2, flag3, i bat_self And the battery current limit value i bat_lim Get the current direction command dir and the charge / discharge current target value i bat * ; Among them, the battery current limit value i bat_lim It can be generated by other modules of ARM, which is a well-known technology in the art. Figure 7 As shown, the charge / discharge current generation module 210 includes a forced charge calculation submodule 211, a forbidden discharge calculation submodule 212, and a spontaneous self-use calculation submodule 213. The forced charge calculation submodule 211 is enabled when the battery is working in a forced charge state, and then the forced charge calculation submodule 211 can calculate the battery current limit value i according to the battery current limit value i issued by the ARM. bat_lim Output the corresponding current direction command dir and charge / discharge current target value i bat * The prohibition calculation submodule 212 is enabled when the battery is in the prohibition state, and then the prohibition calculation submodule 212 can be based on the instruction i issued by the ARM. bat_self The current direction instruction dir and the charge / discharge current target value i corresponding to the flag3 output bat * The self-generated and self-used computing submodule 213 is enabled when the battery is operating in the self-generated and self-used state, and then the self-generated and self-used computing submodule 213 can be configured according to the instruction i issued by the ARM. bat_self The current direction instruction dir and the charge / discharge current target value i corresponding to the flag3 output bat * .
[0070] For ease of understanding, the specific working process of the charge / discharge current generation module 210 will be described below according to the specific structures of the forced charge calculation submodule 211, the forbidden discharge calculation submodule 212, and the spontaneous self-use calculation submodule 213. There are many specific structures of the forced charge calculation submodule 211, the forbidden discharge calculation submodule 212, and the spontaneous self-use calculation submodule 213, and one of the structures will be described in detail below.
[0071] Specifically, Figure 7As shown, the forced charge calculation submodule 211 includes a NOT gate, an AND gate, and a forced charge calculation unit; the instruction flag2 is used as the input of the NOT gate, the output of the NOT gate and the instruction flag1 are used as the input of the AND gate, and the output of the AND gate is used to control the enabling state of the forced charge calculation unit, and the battery current limit value i bat_lim As the input of the strong charge calculation unit. When the battery needs to work in the strong charge state, the command flag1=1, flag2=0, then the output of the NOT gate is high level, and then the enable signal EN1 output by the AND gate is 1, so that the strong charge calculation unit is enabled. After the calculation of the strong charge calculation unit, the current direction command dir=1 and the charge / discharge current target value i can be output. bat * =i bat_lim .
[0072] like Figure 7 As shown, the prohibition calculation submodule 212 includes an XOR gate (XNOR gate) and a prohibition calculation unit; instructions flag1 and flag2 are simultaneously used as inputs of the XOR gate, and the output of the XOR gate is used to control the enabling state of the prohibition calculation unit. bat_self and flag3 as the input of the forbidden discharge calculation unit. When the battery needs to work in the forbidden discharge state, the values of flag1 and flag2 are both 0 or 1, and then the XOR gate outputs the enable signal EN2 as 1, so that the forbidden discharge calculation unit is enabled. After the calculation of the forbidden discharge calculation unit, the corresponding current direction instruction dir and the charge / discharge current target value i can be output. bat * .
[0073] like Figure 7 As shown, the self-generated and self-used computing submodule 213 includes a NOT gate, an AND gate, and a self-generated and self-used computing unit; instruction flag1 is used as the input of the NOT gate, the output of the NOT gate and instruction flag2 are used as the input of the AND gate, the output of the AND gate is used to control the enabling state of the self-generated and self-used computing unit, and instruction flag1 is used as the input of the AND gate. bat_self and flag3 as the input of the self-generation calculation unit. When the battery needs to work in the self-generation state, the command flag1 is 0, flag2 is 1, then the output of the NOT gate is high, and then the enable signal EN3 output by the AND gate is 1, so that the self-generation calculation unit is enabled. Then, after the calculation of the self-generation calculation unit, the corresponding current direction command dir and the charge / discharge current target value i can be output. bat * .
[0074] It should be known that the current direction command dir is 1 for charging direction, and 0 for discharging direction. bat *The value and instruction i bat_self It is related to the specific value of flag3; in the self-generation and self-use calculation unit, the current direction instruction dir is determined by the instruction flag3. For the convenience of understanding, the specific structures of the forbidden discharge calculation unit and the self-generation and self-use calculation unit will be described in detail below; there are many specific structures of the forbidden discharge calculation unit and the self-generation and self-use calculation unit, and one of the structures will be used to illustrate it below.
[0075] Specifically, Fig.10 As shown, the prohibition calculation unit includes a comparator, an AND gate and a double-throw switch; the instruction i bat_self and 0 are used as the input of the comparator and double-throw switch respectively. The output of the comparator and instruction flag3 are used as the input of the AND gate. The output of the AND gate is used to control the switching position of the double-throw switch so as to output different inputs. When the enable signal EN2 is 1, the disable calculation unit is enabled; when instruction i bat_self >0 and flag3 is 1, the comparator outputs a high level, and the AND gate outputs a high level. The double-throw switch is switched to position 1 at a high level, so that instruction i bat_self As the charge / discharge current target value i bat * Output, that is, i bat * =i bat_self ; At this time, the battery needs to be charged, so the current direction command dir=1. bat_self When flag3 takes other values, the AND gate will output a low level. At this time, the double-throw switch is cut down to position 2 at a low level, so that the output charge / discharge current target value i bat * is 0.
[0076] Specifically, Fig.11 As shown, the self-generated and self-used computing unit includes a comparator, an XNOR gate and a double-throw switch; the instruction i bat_self and 0 are used as the inputs of the comparator and the double-throw switch respectively, the output of the comparator and the instruction flag3 are used as the inputs of the XOR gate, and the output of the XOR gate is used to control the switching position of the double-throw switch so as to output different inputs. When the enable signal EN3 is 1, the self-generated and self-used computing unit is enabled.
[0077] When the instruction i bat_self >0 and flag3 is 1, the comparator outputs a high level, and the NOR gate outputs a high level. The double-throw switch is switched to position 1 at a high level, so that instruction i bat_self As the charge / discharge current target value i bat * Output, that is, i bat * =ibat_self ; At this time, the battery needs to be charged, and the value of the command flag3 can act as the current direction command dir, that is, dir=1.
[0078] When the instruction i bat_self <0 and flag3 is 0, the comparator outputs a low level, and the NOR gate outputs a high level. The double-throw switch is switched to position 1 at a high level, so that instruction i bat_self As the charge / discharge current target value i bat * Output, that is, i bat * =i bat_self ; At this time, the battery needs to be discharged, and the value of the command flag3 can act as the current direction command dir, that is, dir=0.
[0079] When the instruction i bat_self >0 and flag3 is 0, or i bat_self When <0 and flag3 is 1, the OR gate outputs a low level. The double-throw switch is cut down to position 2 at a low level, so that the charge / discharge current target value i bat * is 0.
[0080] In this embodiment, the control process of the charge / discharge current control loop 220 in the DSP is a well-known technology for those skilled in the art. For ease of understanding, the control process of the charge / discharge current control loop 220 on the working mode of the system is described below. The charge / discharge current control loop 220 obtains the current direction instruction dir and the charge / discharge current target value i output by the charge / discharge current generation module 210. bat * After that, the duty cycle d is obtained by loop control. bat Among them, the current direction instruction dir determines the duty cycle d bat When the current direction instruction dir is 1, it is in the charging direction, and the charge / discharge current control loop 220 changes the duty cycle d bat is sent to the charging control switch tube so that the system works in the backup power mode; when the current direction instruction dir is 0, it is in the discharge direction, and the charge / discharge current control loop 220 changes the duty cycle d bat The power is sent to the discharge control switch tube so that the system works in self-generation and self-use mode.
[0081] It is understandable that the method of hybrid control of the self-generation mode and the backup mode of the present application may cause oversaturation of the discharge current in some scenarios. For ease of understanding, the generation of oversaturation can be specifically analyzed below.
[0082] For example, when the battery SOC <SOC th1 When the battery is in a strong charging state, if the load power is large, the load will draw power from the grid. The instantaneous power p obtained from the grid is grid >0, at this time, the command flag3 output by the battery current command generation module 120 in the ARM is 0, which is the discharge direction, but because the current direction command dir output by the forced charge calculation submodule 211 is 1, the system is actually charging the battery. Then the battery self-generation current command i obtained by the PI loop in the battery current command generation module 120 in the self-generation mode is bat_self It will continue to accumulate until it reaches saturation (a very large negative number).
[0083] In this case, when the battery is forced to charge to the battery SOC>SOC th2 , the battery will enter the forbidden state. At this time, if the load suddenly decreases to less than the PV power, the instantaneous power p obtained from the grid grid ≤0, the command flag3 output by the battery current command generation module 120 in the self-generated self-use mode is 1, which is the charging direction. bat_self is a negative number with a large amplitude. The charge / discharge current target value i obtained in the forbidden discharge calculation submodule 212 is bat * If the current is 0, the system cannot be charged, and the PI loop in the battery current command generation module 120 in the self-generated self-use mode needs to be desaturated to the command i bat_self Charging can only start when the PV value is 0. If the desaturation speed in ARM is not fast enough, the PV energy will not be able to charge the battery for a long time, reducing the utilization rate of PV energy and affecting the user experience.
[0084] Based on the above analysis results, in order to ensure the safety of switching the working mode of the system, it is necessary to suppress the oversaturation of the discharge current. There are many methods to solve the oversaturation of the discharge current. For easy understanding, two specific embodiments will be used to illustrate.
[0085] Embodiment 1: The problem of discharge current oversaturation is avoided by adding an entry condition to the battery current command generating module 120 in the self-generation and self-use mode.
[0086] like Figure 4 As shown, an entry control module 130 is set at the front end of the self-generation and self-use mode battery current instruction generation module 120; the entry control module 130 can generate an enable signal EN4 for controlling the self-generation and self-use mode battery current instruction generation module 120 to enable or disable, and the value of the enable signal EN4 is determined by the battery working state instruction generation module 110 and the instantaneous power p obtained from the power grid. grid to decide.
[0087] When the battery working state instruction generation module 110 determines that the battery needs to work in the strong charging state, the enable signal EN4 is 0, that is, low level. Alternatively, the battery working state instruction generation module 110 determines that the battery needs to work in the forbidden state, and the instantaneous power p obtained by the system from the power grid grid >0, the enable signal EN4 is 0. In both cases, the battery cannot be discharged, which may cause PI loop saturation, so the battery current command generation module 120 in the self-generation and self-use mode can be disabled at this time.
[0088] For ease of understanding, the specific control process of the battery current command generating module 120 in the self-generation and self-use mode may be described in detail below.
[0089] When the charging instruction flag1 is 1 and the power reserve instruction flag2 is 0, the enable signal EN4 is 0, and the self-generation mode battery current instruction generation module 120 is disabled. Then the instruction flag3 output by the self-generation mode battery current instruction generation module 120 is 0, and the instruction flag4 is 0. bat_self Maintain the output value at the previous moment.
[0090] When the power replenishment command flag1 and the power reserve command flag2 are both 1, or the power replenishment command flag1 and the power reserve command flag2 are both 0; if the instantaneous power of the power grid p grid >0, the enable signal EN4 is 0, then the self-generated and self-used mode battery current instruction generation module 120 is disabled, so that the instruction flag3 output by the self-generated and self-used mode battery current instruction generation module 120 is 0, and the instruction i bat_self Maintain the output value of the previous moment; if the instantaneous power of the power grid p grid ≤0, the enable signal EN4 is 1, i.e., high level, then the self-generated self-use mode battery current instruction generation module 120 is enabled, so that the self-generated self-use mode battery current instruction generation module 120 can normally output the instruction i bat_self with flag3.
[0091] When the power replenishment instruction flag1 is 0 and the power reserve instruction flag2 is 1, the enable signal EN4 is 1, and the self-generation mode battery current instruction generation module 120 is enabled, so that the self-generation mode battery current instruction generation module 120 can normally output the instruction i bat_self with flag3.
[0092] It is understandable that there are multiple specific structures of the entry control module 130 that can implement the above control process. For ease of understanding, one of the structures will be described in detail below.
[0093] Specifically, Fig.12As shown, the entry control module 130 includes two NOT gates, two AND gates, an XNOR gate, a comparator and an OR gate. Among them, a NOT gate and an AND gate can cooperate to form a first logic circuit; the XNOR gate, the comparator and another AND gate cooperate to form a second logic circuit; the OR gate and the remaining NOT gate cooperate to form a third logic circuit.
[0094] In the first logic circuit, the power reserve instruction flag2 is used as the input of the NOT gate, the output of the NOT gate and the power replenishment instruction flag1 are used as the input of the AND gate, and the output of the AND gate is used as an input of the third logic circuit.
[0095] In the second logic circuit, the power replenishment instruction flag1 and the power reserve instruction flag2 are simultaneously used as inputs of the XOR gate, and the instantaneous power p grid The sum of 0 is used as the input of the comparator, the output of the XOR gate and the comparator is used as the input of the AND gate at the same time, and the output of the AND gate is used as another input of the third logic circuit.
[0096] In the third logic circuit, the outputs of the first logic circuit and the second logic circuit are both used as inputs of an OR gate, the output of the OR gate is used as input of a NOT gate, and the output of the NOT gate is used as an enable signal EN4.
[0097] When the power replenishment instruction flag1 is 1 and the power reserve instruction flag2 is 0; the NOT gate of the first logic circuit will output a high level, and then the AND gate of the first logic circuit will output a high level; the XOR gate of the second logic circuit will output a low level, and the AND gate of the second logic circuit will output a low level. Based on the outputs of the first logic circuit and the second logic circuit, the OR gate of the third logic circuit will output a high level, and the NOT gate of the third logic circuit will output the enable signal EN4 as 0, that is, a low level.
[0098] When the power replenishment instruction flag1 and the power reserve instruction flag2 are both 1, or the power replenishment instruction flag1 and the power reserve instruction flag2 are both 0; the AND gate of the first logic circuit will output a low level, and the XOR gate of the second logic circuit will output a high level. grid >0, the comparator of the second logic circuit will output a high level, so that the AND gate of the second logic circuit will output a high level, and then the OR gate in the third logic circuit will output a high level, and the NOT gate of the third logic circuit will output the enable signal EN4 as 0. At this time, if the instantaneous power p grid ≤0, the comparator of the second logic circuit will output a low level, so that the AND gate of the second logic circuit will output a low level, and then the OR gate in the third logic circuit will output a low level, and the NOT gate of the third logic circuit will output the enable signal EN4 as 1.
[0099] When the power replenishment instruction flag1 is 0 and the power reserve instruction flag2 is 1, the AND gate of the first logic circuit will output a low level, the XNOR gate of the second logic circuit will output a low level, and the AND gate of the second logic circuit will output a low level. Then the OR gate in the third logic circuit will output a low level, and then the NOT gate of the third logic circuit will output the enable signal EN4 as 1.
[0100] Embodiment 2: A fast desaturation mechanism is added to the battery current command generation module 120 in the self-generation and self-use mode to avoid the problem of discharge current oversaturation; specifically, on the basis of the original backup power mode, the desaturation speed is accelerated by adjusting the PI loop output limit value and the integrator limit value.
[0101] The specific control process is as follows: Fig.13 and Fig.14 As shown, when instruction i bat_self >0 and flag3 is 1 or i bat_self <0 and flag3 is 0, the limit value i of the PI loop output bat_sat is the normal value, the limit value i of the PI loop integrator int_sat It is a normal value.
[0102] When the instruction i bat_self >0 and flag3 is 0 or i bat_self <0 and flag3 is 1, the current PI loop limit value i bat_sat The i at the previous sampling time bat_self The value of is reduced by ΔI to obtain the PI loop integrator limit value i at the current moment. int_sat It is obtained by reducing the integrator output value at the previous sampling moment by ΔI.
[0103] The instruction i at the current sampling moment bat_self <0, i bat_self +ΔI is the current PI loop limit value i bat_sat , add ΔI to the integrator output value at the previous sampling moment as the integrator limit value i at the current moment int_sat .
[0104] The instruction i at the current sampling moment bat_self >0, i bat_self -ΔI is the current PI loop limit value i bat_sat , the integrator output value at the previous sampling moment is reduced by ΔI as the integrator limit value i at the current moment int_sat .
[0105] It should be noted that ΔI represents the desaturation speed, and its specific value can be determined by actual control loop debugging. The principle of the value is to ensure that the charge / discharge current control loop 220 does not have overshoot. Fig.14 The blue line segment indicates the limit value of the PI loop integrator output, and the red line segment indicates the limit value of the PI loop output.
[0106] It is understandable that there are many specific structures of the battery current command generating module 120 in the self-generation and self-use mode using the desaturation mechanism; generally speaking, the desaturation mechanism is located in the current command unit 121. For ease of understanding, the following can be Fig.13 The topology of the current command unit 121 using the desaturation mechanism is shown to describe the above control process in detail.
[0107] When the instruction i bat_self >0 and flag3 is 1, or instruction i bat_self <0 and flag3 is 0; the signal SW2 output by the XOR gate is low level, and the switch units #2 and #4 using double-throw switches are cut down to position 2 at a low level, so that i bat_sat The normal value of i is used as the limit value of the PI loop output. int_sat The normal value of is used as the limiting value of the PI loop integrator.
[0108] When the instruction i bat_self >0 and flag3 is 0, or instruction i bat_self <0 and flag3 is 1; the signal SW2 output by the XOR gate is high level, and rapid desaturation is required. Then switch units #2 and #4 are switched up to position 1 at a high level, and switch units #1 and #3 using double-throw switches are in the up state, and the current PI loop limit value is changed from i at the previous sampling moment to bat_self The value of is reduced by ΔI, and the PI loop integrator limiting value at the current moment is obtained by reducing the integrator output value at the previous sampling moment by ΔI.
[0109] The instruction i at the current sampling moment bat_self <0, the comparator output signal SW1 is low level, and the switch units #1 and #3 will be switched to position 2 at low level, so that i bat_self +ΔI is used as the amplitude limit value of the PI loop at the current moment, and the integrator output value at the previous sampling moment plus ΔI is used as the integrator amplitude limit value at the current moment.
[0110] The instruction i at the current sampling moment bat_self >0, the comparator output signal SW1 is high level, and the switch units #1 and #3 will be switched to position 1 at high level, so that i bat_self-ΔI is used as the limiting value of the PI loop at the current moment, and the integrator output value at the previous sampling moment is reduced by ΔI as the integrator limiting value at the current moment.
[0111] The above describes the basic principles, main features and advantages of the present application. Those skilled in the art should understand that the present application is not limited by the above embodiments, and the above embodiments and the specification only describe the principles of the present application. The present application may have various changes and improvements without departing from the spirit and scope of the present application, and these changes and improvements fall within the scope of the present application for which protection is sought. The scope of protection claimed by the present application is defined by the attached claims and their equivalents.
Claims
1. A hybrid control method for inverter energy storage working mode, characterized in that: The steps include: The battery working state instruction generation module located in the ARM compares the battery SOC with the set threshold, determines whether the battery is working in the forced charging, forbidden discharge or spontaneous self-use state, and generates the corresponding power replenishment instruction flag1 and power reserve instruction flag2; The battery current command generation module in the self-generation and self-use mode located in the ARM calculates the battery self-generation and self-use current command i according to the grid power. bat_self and the battery's self-generated charge / discharge direction command flag3; The charge / discharge current generation module located in the DSP enables the specific unit corresponding to the battery working state according to the instructions issued by the ARM, and then outputs the corresponding current direction instruction dir and the charge / discharge current target value i bat * ; The charge / discharge current control loop located in the DSP generates a duty cycle d for controlling the bidirectional DC / DC circuit according to the output result of the charge / discharge current generation module. bat ; The power replenishment command flag1 adopts hysteresis logic; when the battery SOC rises to the set threshold SOC th3 When the battery SOC drops to the set threshold SOC th1 When the power supply instruction flag1=1; When the battery SOC is greater than the set threshold SOC th2 When the battery SOC is less than the set threshold SOC th2 When the power reserve instruction flag2 = 0, SOC th1 <SOC th2 <SOC th3 ; The battery working state instruction generation module determines the working state of the battery in the following process: In the charging direction, when SOC <SOC th2 When the power replenishment instruction flag1=1, the power reserve instruction flag2=0, the battery power is insufficient and needs to be replenished, and it is determined that the battery needs to work in the strong charging state; when SOC th2 <SOC<SOC th3 When the power replenishment instruction flag1=1, the power reserve instruction flag2=1, the battery has sufficient power but still needs to be replenished, and it is determined that the battery needs to work in the forbidden state; when the SOC reaches SOC th3 When the power supply instruction flag1=0; In the discharge direction, when SOC>SOC th2 When the power replenishment instruction flag1=0, the power reserve instruction flag2=1, the battery power is sufficient and does not need to be replenished, and it is determined that the battery needs to work in the self-generated state; when SOC th1 <SOC<SOC th2 When the power replenishment instruction flag1=0 and the power reserve instruction flag2=0, the battery power is insufficient but no power replenishment is required, and it is determined that the battery needs to work in the forbidden state; when the SOC drops to SOC th1 When the power replenishment instruction flag1=1.
2. The hybrid control method of inverter energy storage working mode according to claim 1, characterized in that: When the battery is working in the strong charging state, the generated energy is first fed to the battery, then to the load, and finally to the grid; when the generated energy is insufficient, the load draws power from the grid; When the battery is in a prohibited state, the generated energy is first fed to the load, then to the battery, and finally to the grid; when the generated energy is insufficient, the battery is prohibited from discharging, and the load draws power from the grid; When the battery is working in a self-generated and self-used state, the generated energy is first given to the load, then to the battery, and finally to the grid; when the generated energy is insufficient, the load draws power from the battery or the grid, and the priority of power drawing is battery>grid.
3. The hybrid control method of inverter energy storage working mode according to claim 1, characterized in that: The working process of the charge / discharge current generation module is as follows: When the battery is working in the strong charge state, the strong charge calculation unit is enabled and the battery current limit value i sent by ARM is bat_lim The strong charge calculation unit is sent to output the current direction instruction dir=1 and the charge / discharge current target value i bat * =i bat_lim ; When the battery is in the forbidden state or the self-generated state, the forbidden calculation unit or the self-generated calculation unit is enabled, and the instruction i bat_self and flag3 are sent to the forbidden discharge calculation unit or the self-generated self-use calculation unit to output the corresponding current direction instruction dir and the charge / discharge current target value i bat * ; The current direction instruction dir is 1 for charging direction, and 0 for discharging direction.
4. The hybrid control method of inverter energy storage working mode according to claim 3, characterized in that: The specific calculation process of the prohibition calculation unit is: bat_self >0 and flag3 is 1, the current direction command dir=1 and the charge / discharge current target value i bat * =i bat_self ; Otherwise, take the charge / discharge current target value i bat * =0.
5. The hybrid control method of inverter energy storage working mode according to claim 3, characterized in that: The specific calculation process of the self-generated and self-used computing unit is as follows: When the instruction i bat_self >0 and flag3 is 1, the current direction command dir=1 and the charge / discharge current target value i bat * =i bat_self ; When the instruction i bat_self <0 and flag3 is 0, the current direction command dir=0 and the charge / discharge current target value i bat * =i bat_self ; When the instruction i bat_self >0 and flag3 is 0 or i bat_self <0 and flag3 is 1, take the charge / discharge current target value i bat * =0.
6. The inverter energy storage working mode hybrid control method according to any one of claims 1 to 5, characterized in that: The calculation process of the battery current command generation module in the self-generation and self-use mode is: The instantaneous power p drawn from the grid grid With the set target value p grid * =0, and the comparison result is passed through the PI controller to obtain the battery self-generated current instruction i bat_self ; At the same time, the instantaneous power p grid and 0 are sent to the comparator. When p grid >0, the output battery self-generated self-use charge / discharge direction instruction flag3 is 0, when p grid When ≤0, the output battery self-generated self-use charge / discharge direction instruction flag3 is 1.
7. The hybrid control method of inverter energy storage working mode according to claim 6, characterized in that: An entry control module is provided at the front end of the battery current instruction generating module in the self-generation and self-use mode; When the battery is working in the forced charging or forbidden discharging state, the entry control module controls the battery current instruction generation module in the self-generated self-use mode to be disabled; at this time, the command flag3 output by the battery current instruction generation module in the self-generated self-use mode is 0, i bat_self Maintain the output value at the previous moment.
8. The hybrid control method of inverter energy storage working mode according to claim 6, characterized in that: A fast desaturation mechanism is added to the battery current command generation module in the self-generation and self-use mode. The specific control process is as follows: When the instruction i bat_self >0 and flag3 is 1 or i bat_self <0 and flag3 is 0, the limit value i of the PI loop output bat_sat is the normal value, the limit value i of the PI loop integrator int_sat is the normal value; When the instruction i bat_self >0 and flag3 is 0 or i bat_self <0 and flag3 is 1, the current PI loop limit value i bat_sat The i at the previous sampling time bat_self The value of Get the PI loop integrator limit value i at the current moment int_sat The integrator output value at the previous sampling moment is reduced by get; The instruction i at the current sampling moment bat_self <0, As the current PI loop limit value i bat_sat , add the integrator output value of the previous sampling moment to As the integrator limit value i at the current moment int_sat ; The instruction i at the current sampling moment bat_self >0, As the current PI loop limit value i bat_sat , reducing the integrator output value at the previous sampling moment by As the integrator limit value i at the current moment int_sat ; in, Indicates the desaturation speed.
