AC source control method, device, equipment and medium with island test function
By using the power grid simulator to calculate the RLC impedance value and real-time calculation of the command current in the island test platform, the AC source is switched from the voltage source to the RLC load mode, which solves the problems of difficult construction and high energy consumption in the existing technology, and achieves a simple construction and energy saving effects.
Patent Information
- Application Number
- CN202111470456.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-03
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-03
AI Technical Summary
It is difficult to build a load on the existing island test platform and the RLC load is energy-consuming, causing energy-saving problems.
Connect the IV simulator and the power grid simulator through the three-phase power grid, use the power grid simulator to run the AC source function to calculate the RLC impedance value, calculate the command current in real time, and modulate the PWM output according to the control results to realize the AC source switching from voltage source to RLC load mode , complete the island test.
It simplifies the construction of the test platform, avoids the difficulty of RLC load configuration, realizes the energy-saving effect of energy feedback to the power grid, and improves the test performance indicators.
Smart Images

Figure CN114256872B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power supply testing, and more specifically to an AC source control method, device, equipment and medium with an islanding test function. Background Art
[0002] The islanding effect may have an adverse impact on the entire power distribution system equipment and the user-side equipment, including endangering the life safety of power maintenance personnel, affecting the action program of the protection switch on the power distribution system, and the unstable nature of the power supply voltage and frequency in the island area will cause damage to the power equipment. Therefore, as a safe and reliable grid-connected inverter device, it must be able to detect the islanding effect in time and avoid the harm it brings. Therefore, each grid-connected inverter device needs to be tested for islanding before leaving the factory.
[0003] Existing islanding test platforms, such as China Patent Authorization Announcement No. CN103983880B, disclose a device and test method for detecting the protection capability of a grid-connected converter against islanding effects, using an RLC load as a test load. The test process is that when the grid-connected device is fed into the grid, the energy configured by the RLC load is nearly equal to the energy fed into the grid by the grid-connected device. At this time, the energy fed into the grid is close to zero. At this time, the grid is disconnected to test the anti-islanding protection of the grid-connected device. In this test scheme, it is difficult to build the platform load and configure the RLC load. At the same time, the RLC load is energy-consuming and does not save energy. Summary of the invention
[0004] The technical problem to be solved by the present invention is that it is difficult to build a load and configure an RLC load in the prior art anti-islanding test device, and at the same time, the RLC load is an energy-consuming type and does not save energy.
[0005] The present invention solves the above-mentioned technical problems through the following technical means: an AC source control method with an island test function, the method comprising: a three-phase power grid is respectively connected to the input end of an IV simulator and the input end of a power grid simulator to provide power to the device; the IV simulator outputs direct current to a grid-connected inverter; the output end of the grid-connected inverter is connected to the output end of the power grid simulator, and the grid-connected inverter feeds energy to the power grid simulator to generate electricity; first, the power grid simulator runs an AC source function, calculates an RLC impedance value and calculates a command current in real time according to the RLC impedance value, and determines whether the start of the island test function is clicked. If so, the power grid simulator runs an RLC load mode, performs PR control on the inductor current to track the command current in real time, modulates the PWM output according to the control result, and completes the island test.
[0006] The present invention realizes one-key switching of the AC source from the operating voltage source to the RLC load mode, and realizes the anti-islanding test of the grid-connected device. The test platform is simple to build, and the RLC impedance value is calculated before the islanding test, and the command current is calculated in real time according to the RLC impedance value, without the need to configure the RLC value, and the energy feedback to the power grid has an energy-saving effect.
[0007] Furthermore, the power grid simulator operates an AC source function, calculates an RLC impedance value, and calculates a command current in real time according to the RLC impedance value, including:
[0008] Step 1: The power grid simulator runs the AC source function. At this time, the DSP processor captures the zero-crossing point of the output voltage rise, thereby calculating the output voltage frequency f;
[0009] Step 2: Calculate the output voltage effective value Vrms and the load current effective value Irms of one cycle according to the voltage frequency f, calculate the apparent power according to the formula S=Vrms*Irms, and obtain the active power P according to the fact that the active power P is equal to the sum of the instantaneous value of the output voltage*the instantaneous value of the output current and the average value;
[0010] Step 3, calculate the RLC impedance value;
[0011] Step 4: Calculate the command current in real time according to the RLC impedance value.
[0012] Furthermore, the specific process of step 3 is as follows:
[0013] The power factor PF is calculated according to the active power P and the apparent power as active power P / apparent power S; the load impedance Z is calculated as output voltage effective value Vrms / load current effective value Irms, the resistance R is load impedance Z*power factor PF, the capacitive impedance or inductive impedance X is calculated as (Z*ZR*R)^0.5, if it is inductive impedance X=2*π*f*L, the inductance L is calculated as X / (2*π*f); if it is capacitive impedance X=1 / (2*π*f*C), the capacitance value C is calculated as 2*π*f / X.
[0014] Furthermore, the specific process of step 4 is as follows:
[0015] If it is a pure resistance load, the command current Iref=Un / R; where Un is the output real-time voltage;
[0016] If it is RL load, the inductor current Iref=In1+Ts*(Un-R*In1) / L; where Ts is the control cycle, In1 is the command current of the previous cycle;
[0017] If it is an RC load, the command current Iref=(2*C*Un-2*Ts*Isum) / (2*C*R+Ts); where Isum is the accumulated sum of the command currents.
[0018] Furthermore, the judgment whether the island test function is clicked, if yes, the power grid simulator runs the RLC load mode, performs PR control on the inductor current to track the command current in real time, modulates the PWM output according to the control result, and completes the island test, including:
[0019] Step 5: Determine whether the "Start Island Test" function is clicked. If the island test is not started, run the voltage source. If it is started, run the RLC load mode.
[0020] Step 6: If the voltage source function is running, the output voltage effective value outer loop is performed, and then the voltage instantaneous value and the inductor current instantaneous value dual loop control output is performed;
[0021] Step 7: If the RLC load mode is in operation, the inductor current is PR controlled to track the command current in real time;
[0022] Step 8: Modulate the PWM output according to the control result.
[0023] Furthermore, the specific process of step 6 is as follows:
[0024] Step 601: Perform PI control based on the difference between the voltage effective value command U*rms and the voltage effective value Urms set by the user, and limit the output result. The limiting result is feed-forward added to the voltage effective value command to form a new voltage peak command;
[0025] Step 602: multiply the new voltage peak value command by sin(ωt) to obtain the voltage instantaneous value command Uo*;
[0026] Step 603: The voltage instantaneous value command Uo* is subtracted from the voltage instantaneous value Uo to perform PI control, and the output result is limited as the current command IL* of the innermost loop of the inductor current;
[0027] Step 604: PI control is performed after subtracting the current command IL* of the innermost loop of the inductor current and the instantaneous value IL of the inductor current. The PI control result is limited, and the result after limiting is the modulation voltage;
[0028] Step 605: Finally, the modulation voltage is divided by the bus voltage Udc to obtain the PWM duty cycle, and a PWM wave is output according to the PWM duty cycle.
[0029] The present invention also provides an AC source control device with an islanding test function, the device comprising:
[0030] The platform building module is used to connect the input end of the IV simulator and the input end of the grid simulator to the three-phase grid respectively to provide power to the equipment; the IV simulator outputs DC power to the grid-connected inverter; the output end of the grid-connected inverter is connected to the output end of the grid simulator, and the grid-connected inverter feeds energy to the grid simulator to generate electricity;
[0031] The command current acquisition module is used for the power grid simulator to run the AC source function, calculate the RLC impedance value and calculate the command current in real time according to the RLC impedance value;
[0032] The island test module is used to determine whether the island test function is clicked. If so, the power grid simulator runs the RLC load mode, performs PR control on the inductor current to track the command current in real time, modulates the PWM output according to the control result, and completes the island test.
[0033] Furthermore, the command current acquisition module is also used for:
[0034] Step 1: The power grid simulator runs the AC source function. At this time, the DSP processor captures the zero-crossing point of the output voltage rise, thereby calculating the output voltage frequency f;
[0035] Step 2: Calculate the output voltage effective value Vrms and the load current effective value Irms of one cycle according to the voltage frequency f, calculate the apparent power according to the formula S=Vrms*Irms, and obtain the active power P according to the fact that the active power P is equal to the sum of the instantaneous value of the output voltage*the instantaneous value of the output current and the average value;
[0036] Step 3, calculate the RLC impedance value;
[0037] Step 4: Calculate the command current in real time according to the RLC impedance value.
[0038] Furthermore, the specific process of step 3 is as follows:
[0039] The power factor PF is calculated according to the active power P and the apparent power as active power P / apparent power S; the load impedance Z is calculated as output voltage effective value Vrms / load current effective value Irms, the resistance R is load impedance Z*power factor PF, the capacitive impedance or inductive impedance X is calculated as (Z*ZR*R)^0.5, if it is inductive impedance X=2*π*f*L, the inductance L is calculated as X / (2*π*f); if it is capacitive impedance X=1 / (2*π*f*C), the capacitance value C is calculated as 2*π*f / X.
[0040] Furthermore, the specific process of step 4 is as follows:
[0041] If it is a pure resistance load, the command current Iref=Un / R; where Un is the output real-time voltage;
[0042] If it is RL load, the inductor current Iref=In1+Ts*(Un-R*In1) / L; where Ts is the control cycle, In1 is the command current of the previous cycle;
[0043] If it is an RC load, the command current Iref=(2*C*Un-2*Ts*Isum) / (2*C*R+Ts); where Isum is the accumulated sum of the command currents.
[0044] Furthermore, the island test module is also used for:
[0045] Step 5: Determine whether the "Start Island Test" function is clicked. If the island test is not started, run the voltage source. If it is started, run the RLC load mode.
[0046] Step 6: If the voltage source function is running, the output voltage effective value outer loop is performed, and then the voltage instantaneous value and the inductor current instantaneous value dual loop control output is performed;
[0047] Step 7: If the RLC load mode is in operation, the inductor current is PR controlled to track the command current in real time;
[0048] Step 8: Modulate the PWM output according to the control result.
[0049] Furthermore, the specific process of step 6 is as follows:
[0050] Step 601: Perform PI control based on the difference between the voltage effective value command U*rms and the voltage effective value Urms set by the user, and limit the output result. The limiting result is feed-forward added to the voltage effective value command to form a new voltage peak command;
[0051] Step 602: multiply the new voltage peak value command by sin(ωt) to obtain the voltage instantaneous value command Uo*;
[0052] Step 603: The voltage instantaneous value command Uo* is subtracted from the voltage instantaneous value Uo to perform PI control, and the output result is limited as the current command IL* of the innermost loop of the inductor current;
[0053] Step 604: PI control is performed after subtracting the current command IL* of the innermost loop of the inductor current and the instantaneous value IL of the inductor current. The PI control result is limited, and the result after limiting is the modulation voltage;
[0054] Step 605: Finally, the modulation voltage is divided by the bus voltage Udc to obtain the PWM duty cycle, and a PWM wave is output according to the PWM duty cycle.
[0055] The present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores computer program instructions that can be executed by the processor, and when the processor executes the computer program instructions, the above method steps are implemented.
[0056] The present invention also provides a computer-readable storage medium storing computer program instructions, which implement the above method steps when called and executed by a processor.
[0057] The advantages of the present invention are:
[0058] (1) The present invention realizes one-key switching of the AC source from the operating voltage source to the RLC load mode, thereby realizing the anti-islanding test of the grid-connected device. The test platform is simple to build. Before the islanding test, the RLC impedance value is calculated and the command current is calculated in real time according to the RLC impedance value. There is no need to configure the RLC value. At the same time, the energy feedback to the power grid has an energy-saving effect.
[0059] (2) When the present invention operates the voltage source function, an outer loop of the output voltage effective value is performed, and then a dual loop control output of the voltage instantaneous value and the inductor current instantaneous value is performed. The dual control effectively improves the load carrying capacity and resists load disturbances, thereby improving performance indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 A connection diagram of a test platform in an AC source control method with an island test function disclosed in an embodiment of the present invention;
[0061] Figure 2 A flow chart of an AC source control method with an islanding test function disclosed in an embodiment of the present invention;
[0062] Figure 3 It is a schematic diagram of the control process when the voltage source function is operated in the AC source control method with islanding test function disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] Example 1
[0065] like Figure 1As shown, an AC source control method with an island test function includes: a three-phase power grid 1 is connected to the input end of an IV simulator 2 and the input end of a power grid simulator 3 respectively to provide power to the device; the IV simulator 2 outputs direct current to a grid-connected inverter 4; the output end of the grid-connected inverter 4 is connected to the output end of the grid simulator 3, and the grid-connected inverter 4 feeds energy to the grid simulator 3 to generate electricity, wherein the IV simulator 2 is AC / DC, the grid simulator 3 is AC / AC, and the grid-connected inverter 4 is DC / AC; first, the grid simulator 3 runs the AC source function, calculates the RLC impedance value and calculates the command current in real time according to the RLC impedance value, and determines whether the start island test function is clicked, and if so, the grid simulator 3 runs the RLC load mode at this time, performs PR control on the inductor current to track the command current in real time, modulates the PWM output according to the control result, and completes the island test. The method process of the present invention is described in detail below.
[0066] like Figure 2 As shown, first, the power grid simulator 3 runs the AC source function, and the grid-connected inverter 4 feeds energy to the power grid simulator 3. When the power is stable, the host computer is operated to click "Start Island Test". At this time, the power grid simulator 3 runs the RLC load mode to complete the island test, which is specifically:
[0067] Step 1, the power grid simulator 3 runs the AC source function. At this time, the DSP processor captures the zero-crossing point of the output voltage rise, and obtains the period according to the time difference between the two adjacent zero-crossing points of the voltage rise. The period and frequency are in an inverse relationship, so as to calculate the output voltage frequency f;
[0068] Step 2: Calculate the output voltage effective value Vrms and the load current effective value Irms of one cycle according to the voltage frequency f, calculate the apparent power according to the formula S=Vrms*Irms, and obtain the active power P according to the active power P being equal to the sum of the instantaneous value of the output voltage*the instantaneous value of the output current and the average value; the calculation formulas for the output voltage effective value Vrms and the current effective value Irms both adopt the existing conventional formulas.
[0069] Step 3, calculate the power factor PF = active power P / apparent power S according to the active power P and the apparent power; calculate the load impedance Z = output voltage effective value Vrms / load current effective value Irms, the resistance R = load impedance Z * power factor PF, the capacitive impedance or inductive impedance X = (Z * ZR * R) ^ 0.5, if it is inductive impedance X = 2 * π * f * L, then calculate the inductance L = X / (2 * π * f); if it is capacitive impedance X = 1 / (2 * π * f * C), then calculate the capacitance value C = 2 * π * f / X;
[0070] Step 4: Calculate the command current in real time based on the RLC impedance value:
[0071] If it is a pure resistance load, the command current Iref=Un / R; where Un is the output real-time voltage;
[0072] If it is RL load, the inductor current Iref=In1+Ts*(Un-R*In1) / L; where Ts is the control cycle, In1 is the command current of the previous cycle;
[0073] If it is an RC load, the command current Iref=(2*C*Un-2*Ts*Isum) / (2*C*R+Ts); where Isum is the accumulated sum of the command currents.
[0074] Step 5: Determine whether the "Start Island Test" function is clicked. If the island test is not started, run the voltage source. If it is started, run the RLC load mode.
[0075] Step 6: If the voltage source function is running, the output voltage effective value outer loop is performed, and then the voltage instantaneous value and the inductor current instantaneous value dual loop control output is performed;
[0076] Step 7: If the RLC load mode is in operation, the inductor current is PR controlled to track the command current in real time;
[0077] Step 8: Modulate the PWM output according to the control result.
[0078] Among them, Figure 3 As shown, the specific process of step 6 is:
[0079] Step 601: Perform PI control based on the difference between the voltage effective value command U*rms and the voltage effective value Urms set by the user, and limit the output result. The limiting result is feed-forward added to the voltage effective value command to form a new voltage peak command;
[0080] Step 602: multiply the new voltage peak value command by sin(ωt) to obtain the voltage instantaneous value command Uo*;
[0081] Step 603: The voltage instantaneous value command Uo* is subtracted from the voltage instantaneous value Uo to perform PI control, and the output result is limited as the current command IL* of the innermost loop of the inductor current;
[0082] Step 604: PI control is performed after subtracting the current command IL* of the innermost loop of the inductor current and the instantaneous value IL of the inductor current. The PI control result is limited, and the result after limiting is the modulation voltage;
[0083] Step 605: Finally, the modulation voltage is divided by the bus voltage Udc to obtain the PWM duty cycle, and a PWM wave is output according to the PWM duty cycle.
[0084] Through the above technical scheme, the present invention realizes one-key switching of the AC source from the operating voltage source to the RLC load mode, and realizes the anti-islanding test of the grid-connected device. This test platform is simple to build. Before performing the islanding test, the RLC impedance value is calculated and the command current is calculated in real time according to the RLC impedance value. There is no need to configure the RLC value. At the same time, energy feedback to the power grid has an energy-saving effect.
[0085] Example 2
[0086] Based on embodiment 1, embodiment 2 of the present invention further provides an AC source control device with an islanding test function, the device comprising:
[0087] The platform building module is used for connecting the three-phase power grid 1 to the input end of the IV simulator 2 and the input end of the power grid simulator 3 respectively to provide power to the equipment; the IV simulator 2 outputs direct current to the grid-connected inverter 4; the output end of the grid-connected inverter 4 is connected to the output end of the power grid simulator 3, and the grid-connected inverter 4 feeds energy to the power grid simulator 3 to generate electricity;
[0088] The command current acquisition module is used for the power grid simulator 3 to run the AC source function, calculate the RLC impedance value and calculate the command current in real time according to the RLC impedance value;
[0089] The island test module is used to determine whether the island test function is clicked. If so, the power grid simulator 3 runs the RLC load mode, performs PR control on the inductor current to track the command current in real time, modulates the PWM output according to the control result, and completes the island test.
[0090] Specifically, the instruction current acquisition module is also used for:
[0091] Step 1, the power grid simulator 3 runs the AC source function, at which time the DSP processor captures the zero-crossing point of the output voltage rise, thereby calculating the output voltage frequency f;
[0092] Step 2: Calculate the output voltage effective value Vrms and the load current effective value Irms of one cycle according to the voltage frequency f, calculate the apparent power according to the formula S=Vrms*Irms, and obtain the active power P according to the fact that the active power P is equal to the sum of the instantaneous value of the output voltage*the instantaneous value of the output current and the average value;
[0093] Step 3, calculate the RLC impedance value;
[0094] Step 4: Calculate the command current in real time according to the RLC impedance value.
[0095] More specifically, the specific process of step 3 is:
[0096] The power factor PF is calculated according to the active power P and the apparent power as active power P / apparent power S; the load impedance Z is calculated as output voltage effective value Vrms / load current effective value Irms, the resistance R is load impedance Z*power factor PF, the capacitive impedance or inductive impedance X is calculated as (Z*ZR*R)^0.5, if it is inductive impedance X=2*π*f*L, the inductance L is calculated as X / (2*π*f); if it is capacitive impedance X=1 / (2*π*f*C), the capacitance value C is calculated as 2*π*f / X.
[0097] More specifically, the specific process of step 4 is:
[0098] If it is a pure resistance load, the command current Iref=Un / R; where Un is the output real-time voltage;
[0099] If it is RL load, the inductor current Iref=In1+Ts*(Un-R*In1) / L; where Ts is the control cycle, In1 is the command current of the previous cycle;
[0100] If it is an RC load, the command current Iref=(2*C*Un-2*Ts*Isum) / (2*C*R+Ts); where Isum is the accumulated sum of the command currents.
[0101] More specifically, the island test module is also used to:
[0102] Step 5: Determine whether the "Start Island Test" function is clicked. If the island test is not started, run the voltage source. If it is started, run the RLC load mode.
[0103] Step 6: If the voltage source function is running, the output voltage effective value outer loop is performed, and then the voltage instantaneous value and the inductor current instantaneous value dual loop control output is performed;
[0104] Step 7: If the RLC load mode is in operation, the inductor current is PR controlled to track the command current in real time;
[0105] Step 8: Modulate the PWM output according to the control result.
[0106] More specifically, the specific process of step 6 is:
[0107] Step 601: Perform PI control based on the difference between the voltage effective value command U*rms and the voltage effective value Urms set by the user, and limit the output result. The limiting result is feed-forward added to the voltage effective value command to form a new voltage peak command;
[0108] Step 602: multiply the new voltage peak value command by sin(ωt) to obtain the voltage instantaneous value command Uo*;
[0109] Step 603: The voltage instantaneous value command Uo* is subtracted from the voltage instantaneous value Uo to perform PI control, and the output result is limited as the current command IL* of the innermost loop of the inductor current;
[0110] Step 604: PI control is performed after subtracting the current command IL* of the innermost loop of the inductor current and the instantaneous value IL of the inductor current. The PI control result is limited, and the result after limiting is the modulation voltage;
[0111] Step 605: Finally, the modulation voltage is divided by the bus voltage Udc to obtain the PWM duty cycle, and a PWM wave is output according to the PWM duty cycle.
[0112] Example 3
[0113] The present invention also provides an electronic device, including a processor and a memory, wherein the memory stores computer program instructions that can be executed by the processor, and when the processor executes the computer program instructions, the method steps of Example 1 are implemented.
[0114] Example 4
[0115] The present invention also provides a computer-readable storage medium storing computer program instructions, which implement the method steps of embodiment 1 when called and executed by a processor.
[0116] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An AC source control method with islanding test function, characterized in that: The method includes: connecting the input end of the IV simulator and the input end of the grid simulator to provide power to the device; the IV simulator outputs direct current to the grid-connected inverter; the output end of the grid-connected inverter is connected to the output end of the grid simulator, and the grid-connected inverter feeds energy to the grid simulator to generate electricity; first, the grid simulator runs an AC source function, calculates an RLC impedance value and calculates a command current in real time based on the RLC impedance value, and determines whether a start islanding test function has been clicked. If so, the grid simulator runs an RLC load mode, performs PR control on the inductor current to track the command current in real time, and modulates the PWM output based on the control result to complete the islanding test; The power grid simulator operates an AC source function, calculates an RLC impedance value, and calculates a command current in real time according to the RLC impedance value, including: Step 1: The power grid simulator runs the AC source function. At this time, the DSP processor captures the zero-crossing point of the output voltage rise and calculates the output voltage frequency f; Step 2: Calculate the output voltage RMS value (Vrms) and the load current RMS value (Irms) for one cycle based on the voltage frequency (f). Calculate the apparent power using the formula (S = Vrms * Irms). Obtain the active power (P) by averaging the sum of the instantaneous output voltage value and the instantaneous output current value. Step 3: Calculate the RLC impedance value; Step 4: Calculate the command current in real time according to the RLC impedance value; The judgment of whether the island test function is clicked is performed. If so, the grid simulator runs the RLC load mode, performs PR control on the inductor current to track the command current in real time, modulates the PWM output according to the control result, and completes the island test, including: Step 5. Determine whether the "Start Island Test" function has been clicked. If the island test has not been started, run the voltage source. If it has been started, run the RLC load mode. Step 6: If the voltage source function is running, the output voltage RMS outer loop is performed, and then the voltage instantaneous value and the inductor current instantaneous value dual loop control output are performed; the specific process of step 6 is: Step 601: PI control is performed based on the difference between the voltage RMS command U*rms and the voltage RMS Urms set by the user, and the output result is limited. The limiting result is feed-forward added to the voltage RMS command to form a new voltage peak command. Step 602: Multiply the new voltage peak command by , thereby obtaining the voltage instantaneous value instruction Uo*; Step 603: PI control is performed after taking the difference between the instantaneous voltage value command Uo* and the instantaneous voltage value Uo, and the output result is limited as the current command IL* of the innermost loop of the inductor current; Step 604: PI control is performed by subtracting the current command IL* of the innermost loop of the inductor current from the instantaneous value IL of the inductor current. The PI control result is limited, and the result after limiting is the modulation voltage. Step 605: Finally, the modulation voltage is divided by the bus voltage Udc to obtain the PWM duty cycle, and a PWM wave is output according to the PWM duty cycle; Step 7: If the RLC load mode is in operation, the inductor current is subjected to PR control to track the command current in real time; Step 8: Modulate the PWM output according to the control result.
2. The AC source control method with islanding test function according to claim 1, characterized in that: The specific process of step 3 is: Calculate the power factor PF based on active power P and apparent power: active power P / apparent power S; calculate the load impedance Z = output voltage Vrms / load current Irms, resistance R = load impedance Z*power factor PF, capacitive impedance or inductive impedance X = (Z*ZR*R)^0.5, if it is inductive impedance , and thus calculate the inductance ; If it is capacitive impedance , and thus calculate the capacitance value .
3. The AC source control method with islanding test function according to claim 2, characterized in that: The specific process of step 4 is: If it is a pure resistive load, the command current Iref=Un / R; where Un is the output real-time voltage; If it is an RL load, the inductor current Iref=In1+Ts*(Un-R*In1) / L; where Ts is the control period and In1 is the command current of the previous period; If it is an RC load, the command current Iref=(2*C*Un-2*Ts*Isum) / (2*C*R+Ts); where Isum is the accumulated command current.
4. An AC source control device with islanding test function, characterized in that: The device adopts the AC source control method with islanding test function according to any one of claims 1 to 3, and the device includes: The platform builds a module for connecting the three-phase grid to the input of the IV simulator and the grid simulator input to provide power to the device; the IV simulator outputs DC power to the grid-connected inverter; the output of the grid-connected inverter is connected to the output of the grid simulator, and the grid-connected inverter feeds energy to the grid simulator to generate electricity; The command current acquisition module is used to operate the AC source function of the power grid simulator, calculate the RLC impedance value and calculate the command current in real time based on the RLC impedance value; The islanding test module is used to determine whether the islanding test function has been clicked. If so, the power grid simulator runs the RLC load mode, performs PR control on the inductor current to track the command current in real time, and modulates the PWM output according to the control result to complete the islanding test.
5. The AC source control device with islanding test function according to claim 4, characterized in that: The command current acquisition module is further used to: Step 1: The power grid simulator runs the AC source function. At this time, the DSP processor captures the zero-crossing point of the output voltage rise and calculates the output voltage frequency f; Step 2: Calculate the output voltage RMS value (Vrms) and the load current RMS value (Irms) for one cycle based on the voltage frequency (f). Calculate the apparent power using the formula (S = Vrms * Irms). Obtain the active power (P) by averaging the sum of the instantaneous output voltage value and the instantaneous output current value. Step 3: Calculate the RLC impedance value; Step 4: Calculate the command current in real time according to the RLC impedance value.
6. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer program instructions that can be executed by the processor, and when the processor executes the computer program instructions, the method steps described in any one of claims 1 to 3 are implemented.
7. A computer-readable storage medium, characterized in that Computer program instructions are stored, and when the computer program instructions are called and executed by a processor, the method steps described in any one of claims 1 to 3 are implemented.
