Photovoltaic controller test method and device, terminal equipment and storage medium

By constructing a photovoltaic equivalent circuit simulation model and applying a feedforward decoupling compensation algorithm, the equivalent circuit modulation voltage and PWM signal are generated, solving the problems of high testing cost, large site occupation and insufficient reproducibility of existing photovoltaic controllers, and realizing high simulation fidelity photovoltaic controller testing.

CN121934533APending Publication Date: 2026-04-28GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
Filing Date
2025-12-30
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing photovoltaic controller testing methods rely on physical platforms, which are costly, require large spaces, are difficult to simulate extreme working conditions, and lack reproducibility and accuracy, posing a risk of equipment damage.

Method used

By constructing a photovoltaic equivalent circuit simulation model, using a feedforward decoupling compensation algorithm to process the equivalent circuit current data, generating the equivalent circuit modulation voltage and PWM signal, and updating the model state in a closed loop, a high simulation fidelity test can be achieved.

Benefits of technology

Without the need to build a fully physical platform, it enables full-scenario, high-precision testing of photovoltaic controllers, reducing costs and improving the reliability and reproducibility of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121934533A_ABST
    Figure CN121934533A_ABST
Patent Text Reader

Abstract

The invention discloses a photovoltaic controller testing method and device, terminal equipment and a storage medium, and belongs to the field of photovoltaic controller testing, and the method comprises the steps: obtaining a to-be-tested photovoltaic controller and photovoltaic working condition testing data, and constructing a photovoltaic equivalent circuit simulation model; inputting the photovoltaic working condition test data into the photovoltaic equivalent circuit simulation model, and obtaining equivalent circuit current data output by the photovoltaic equivalent circuit simulation model; obtaining equivalent circuit modulation voltage based on a feedforward decoupling compensation algorithm and the equivalent circuit current data; an equivalent circuit PWM signal is obtained based on the equivalent circuit modulation voltage; updating the photovoltaic equivalent circuit simulation model based on the equivalent circuit PWM signal to obtain an updated photovoltaic equivalent circuit simulation model; and obtaining the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and obtaining a photovoltaic controller test result based on the current voltage and current signals and the equivalent circuit PWM signal so as to improve the reliability of the photovoltaic controller test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of photovoltaic controller testing, and more particularly to a photovoltaic controller testing method, apparatus, terminal equipment, and storage medium. Background Technology

[0002] As the core interface device connecting photovoltaic power generation systems to the power grid, the performance of the grid-connected controller of the photovoltaic inverter is directly related to the safety, stability and power quality of the entire power system. Therefore, efficient and accurate testing of the photovoltaic controller is of utmost importance.

[0003] In existing technologies, the testing of photovoltaic controllers mainly relies on physical platform testing. Physical platform testing requires building a physical test environment that includes a complete photovoltaic array, DC-DC converter, DC-AC inverter and power grid. This not only has the problems of high equipment purchase and site occupation costs, and lengthy construction and commissioning cycles, but also makes it difficult to safely simulate various extreme operating conditions and continuous failure scenarios, and poses a risk of damaging expensive power equipment. As a result, testers have to operate conservatively and cannot troubleshoot control defects under critical conditions. Moreover, the test process is highly dependent on manual operation, making it difficult to accurately reproduce the same test conditions, resulting in insufficient reproducibility and accuracy. Summary of the Invention

[0004] This invention provides a photovoltaic controller testing method, apparatus, terminal equipment, and storage medium, which can solve the above-mentioned problems and improve the reliability of photovoltaic controller testing.

[0005] This invention provides a photovoltaic controller testing method, comprising: Acquire the photovoltaic controller under test and photovoltaic operating condition test data, and construct a photovoltaic equivalent circuit simulation model based on the photovoltaic controller under test; The photovoltaic operating condition test data is input into the photovoltaic equivalent circuit simulation model, and the equivalent circuit current data output by the photovoltaic equivalent circuit simulation model is obtained. Based on the preset feedforward decoupling compensation algorithm and the equivalent circuit current data, the equivalent circuit modulation voltage is obtained; Based on the equivalent circuit modulation voltage, the equivalent circuit PWM signal is obtained; The photovoltaic equivalent circuit simulation model is updated based on the equivalent circuit PWM signal to obtain the updated photovoltaic equivalent circuit simulation model. Obtain the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and obtain the photovoltaic controller test results based on the current voltage and current signals and the equivalent circuit PWM signal.

[0006] In the above scheme, the photovoltaic controller under test is connected to a photovoltaic equivalent circuit simulation model driven by photovoltaic operating condition test data in real time. The equivalent circuit current data is processed based on the feedforward decoupling compensation algorithm to generate the equivalent circuit modulation voltage and equivalent circuit PWM signal. Then, the model state is updated in a closed loop. Finally, the test results are obtained by analyzing the updated voltage and current signals and PWM signals. This achieves high-precision testing and performance evaluation of photovoltaic controllers in all scenarios, including extreme fault conditions, with extremely low cost and high simulation fidelity, without the need to build a full physical power level platform. This effectively solves the technical problems of high cost, poor timeliness, and insufficient fidelity and reliability in traditional testing methods, and improves the reliability of photovoltaic controller testing.

[0007] Further, obtaining the equivalent circuit modulation voltage based on the preset feedforward decoupling compensation algorithm and the equivalent circuit current data includes: The equivalent circuit current data is subjected to coordinate transformation to obtain the active equivalent current component and the reactive equivalent current component. Based on the preset feedforward decoupling compensation algorithm and the active equivalent current component, the active modulation voltage is obtained, and based on the preset feedforward decoupling compensation algorithm and the reactive equivalent current component, the reactive modulation voltage is obtained. The equivalent circuit modulation voltage is obtained based on the active modulation voltage and the reactive modulation voltage.

[0008] In the above scheme, by decomposing the equivalent circuit current data into active equivalent current components and reactive equivalent current components through coordinate transformation, and applying a preset feedforward decoupling compensation algorithm to calculate the equivalent circuit modulation voltage, independent and precise control of the active equivalent current components and reactive equivalent current components is achieved, effectively overcoming coupling interference.

[0009] Further, the equivalent circuit current data is subjected to coordinate transformation to obtain the active equivalent current component and the reactive equivalent current component, including: Obtain the equivalent circuit voltage data output by the photovoltaic equivalent circuit simulation model based on the current circuit connection state; The equivalent circuit voltage data is subjected to coordinate transformation to obtain active and reactive equivalent current data; Based on the preset PLL algorithm and the active and reactive equivalent current data, the equivalent circuit phase angle is obtained; Based on the preset Clark transformation algorithm and the equivalent circuit current data, the two-phase static current data are obtained; Based on the equivalent circuit phase angle and the two-phase quiescent current data, the active equivalent current component and the reactive equivalent current component are obtained.

[0010] In the above scheme, the equivalent circuit voltage data is obtained and the equivalent circuit phase angle is accurately locked using the PLL algorithm. Then, the current data is converted to a two-phase stationary coordinate system by Clark transformation to obtain two-phase stationary current data. Finally, based on the equivalent circuit phase angle and the two-phase stationary current data, the active equivalent current component and reactive equivalent current component are obtained, which provides an accurate phase and data basis for subsequent operations and ensures the effectiveness and accuracy of the control algorithm.

[0011] Further, the active and reactive equivalent current data includes active equivalent voltage components and reactive equivalent voltage components. The process of obtaining the active modulated voltage based on a preset feedforward decoupling compensation algorithm and the active equivalent current components, and obtaining the reactive modulated voltage based on the preset feedforward decoupling compensation algorithm and the reactive equivalent current components, includes: The difference between the preset active reference current component and the active equivalent current component is obtained as the active current error. Based on the preset gain data and the active current error, the active decoupling voltage data is obtained; Obtain the product of the preset decoupling term and the reactive equivalent current component as the first decoupling product value; The difference between the active decoupling voltage data and the first decoupling product value is obtained as the decoupling difference; The sum of the decoupling difference and the active equivalent voltage component is obtained as the active modulation voltage; The difference between the preset reactive reference current component and the reactive equivalent current component is obtained as the reactive current error. Based on the preset gain data and the reactive current error, the reactive decoupling voltage data is obtained; Obtain the product of the preset decoupling term and the active equivalent current component as the second decoupling product value; The sum of the reactive decoupling voltage data and the second decoupling product value is obtained as the decoupling sum value; The reactive modulation voltage is obtained by summing the decoupling sum and the reactive equivalent voltage component.

[0012] In the above scheme, by applying a pre-set feedforward decoupling compensation algorithm, active and reactive modulation voltages that cancel out the dynamic coupling voltage between the d and q axes are generated.

[0013] Further, obtaining the equivalent circuit PWM signal based on the equivalent circuit modulation voltage includes: The active modulated voltage is subjected to coordinate inversion transformation to obtain the active coordinate corrected modulated voltage; The reactive power modulation voltage is subjected to coordinate inversion transformation to obtain the reactive power coordinate corrected modulation voltage; Based on the preset space vector pulse width modulation algorithm, the active coordinate correction modulation voltage, and the reactive coordinate correction modulation voltage, the equivalent circuit PWM signal is obtained.

[0014] In the above scheme, the active and reactive modulated voltages are reversed in coordinate transformation to return to the stationary coordinate system, and a preset space vector pulse width modulation algorithm is used to generate the equivalent circuit PWM signal, which provides a data foundation for the subsequent optimal control of the photovoltaic equivalent circuit simulation model.

[0015] Further, the step of performing coordinate inversion transformation on the active power modulation voltage to obtain the active power coordinate corrected modulation voltage includes: Obtain the cosine value of the phase angle of the equivalent circuit, and use it as the cosine value of the phase angle of the equivalent circuit; Obtain the sine value of the phase angle of the equivalent circuit, and use it as the sine value of the phase angle of the equivalent circuit; The product of the active modulation voltage and the cosine of the phase angle of the equivalent circuit is obtained to obtain the first active modulation voltage product value; The first reactive power modulation voltage product value is obtained by multiplying the reactive power modulation voltage and the sine value of the phase angle of the equivalent circuit. The difference between the product of the first active modulation voltage and the product of the first reactive modulation voltage is obtained and used as the active coordinate correction modulation voltage.

[0016] In the above scheme, by explaining in detail how to obtain the active coordinate correction modulation voltage, a key voltage input is provided for the subsequent generation of accurate PWM waveforms.

[0017] Further, the step of performing coordinate inversion transformation on the reactive power modulation voltage to obtain the reactive power coordinate corrected modulation voltage includes: The product of the active modulation voltage and the sine value of the phase angle of the equivalent circuit is obtained to obtain the second active modulation voltage product value; The product of the reactive power modulation voltage and the cosine value of the phase angle of the equivalent circuit is obtained to obtain the second reactive power modulation voltage product value. The sum of the product of the second active modulation voltage and the product of the second reactive modulation voltage is obtained and used as the reactive coordinate correction modulation voltage.

[0018] In the above scheme, by explaining in detail how to obtain the reactive coordinate correction modulation voltage, a key voltage input is provided for the subsequent generation of accurate PWM waveforms.

[0019] Another embodiment of the present invention provides a photovoltaic controller testing device, comprising: A construction module is used to acquire the photovoltaic controller under test and photovoltaic operating condition test data, and to construct a photovoltaic equivalent circuit simulation model based on the photovoltaic controller under test; The equivalent circuit current data acquisition module is used to input the photovoltaic operating condition test data into the photovoltaic equivalent circuit simulation model and acquire the equivalent circuit current data output by the photovoltaic equivalent circuit simulation model. The equivalent circuit modulation voltage acquisition module is used to obtain the equivalent circuit modulation voltage based on a preset feedforward decoupling compensation algorithm and the equivalent circuit current data. The PWM signal generation module is used to obtain the equivalent circuit PWM signal based on the equivalent circuit modulation voltage. The update module is used to update the photovoltaic equivalent circuit simulation model based on the equivalent circuit PWM signal to obtain the updated photovoltaic equivalent circuit simulation model. The test result generation module is used to obtain the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and to obtain the photovoltaic controller test results based on the current voltage and current signals and the equivalent circuit PWM signal.

[0020] Another embodiment of the present invention provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the steps of a photovoltaic controller testing method as described in the present invention.

[0021] Another embodiment of the present invention provides a computer-readable storage medium item, including: a stored computer program, which, when the computer program is running, controls the device where the computer-readable storage medium is located to perform the steps of a photovoltaic controller testing method of the present invention. Attached Figure Description

[0022] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0023] Figure 1 This is a schematic flowchart of a photovoltaic controller testing method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a photovoltaic controller testing device provided in an embodiment of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0026] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0029] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0030] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0031] See Figure 1 To address the aforementioned problems and improve the reliability of photovoltaic controller testing, an embodiment of the present invention provides a photovoltaic controller testing method, comprising: Step S1: Obtain the photovoltaic controller under test and photovoltaic operating condition test data, and construct a photovoltaic equivalent circuit simulation model based on the photovoltaic controller under test; Step S2: Input the photovoltaic operating condition test data into the photovoltaic equivalent circuit simulation model, and obtain the equivalent circuit current data output by the photovoltaic equivalent circuit simulation model; Step S3: Based on the preset feedforward decoupling compensation algorithm and equivalent circuit current data, obtain the equivalent circuit modulation voltage; Step S4: Obtain the equivalent circuit PWM signal based on the equivalent circuit modulation voltage; Step S5: Update the photovoltaic equivalent circuit simulation model based on the equivalent circuit PWM signal to obtain the updated photovoltaic equivalent circuit simulation model; Step S6: Obtain the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and obtain the photovoltaic controller test results based on the current voltage and current signals and the equivalent circuit PWM signal.

[0032] In the above scheme, the photovoltaic controller under test is connected to a photovoltaic equivalent circuit simulation model driven by photovoltaic operating condition test data in real time. The equivalent circuit current data is processed based on the feedforward decoupling compensation algorithm to generate the equivalent circuit modulation voltage and equivalent circuit PWM signal. Then, the model state is updated in a closed loop. Finally, the test results are obtained by analyzing the updated voltage and current signals and PWM signals. This achieves high-precision testing and performance evaluation of photovoltaic controllers in all scenarios, including extreme fault conditions, with extremely low cost and high simulation fidelity, without the need to build a full physical power level platform. This effectively solves the technical problems of high cost, poor timeliness, and insufficient fidelity and reliability in traditional testing methods, and improves the reliability of photovoltaic controller testing.

[0033] It should be noted that the photovoltaic equivalent circuit simulation model is a high-fidelity virtual controlled object model running on a high-performance real-time simulator. It is constructed based on a refined mathematical model that includes a photovoltaic cell mathematical model, a DC-DC Boost converter circuit, a DC-AC full-bridge inverter circuit, an LCL filter, and a power grid model. To balance simulation accuracy and real-time performance, the model undergoes intelligent segmentation and compilation: the computationally intensive power electronic switching circuit, which has extremely high time sensitivity, is compiled and loaded into the FPGA of the real-time simulator for execution, achieving nanosecond-level simulation steps; the more dynamically responsive parts, such as the photovoltaic cell and power grid environment, are compiled into executable files and loaded into the multi-core CPU of the real-time simulator for parallel execution. Specifically, the photovoltaic operating condition test data preferably adopts a hybrid modeling approach combining real-world measurement data and the mathematical model to ensure that the photovoltaic panel output characteristics are basically consistent with the actual characteristics on-site, thereby accurately reproducing the dynamic operating conditions in the real world. The photovoltaic controller under test is an actual physical hardware (such as a DSP controller). The PWM signal generated by the controller is output to a real-time simulator via digital I / O. The voltage, current, and other sensor signals (equivalent circuit voltage data, equivalent circuit current data) calculated by the simulator are output to the ADC sampling port of the controller via a high-precision ADC module, thus forming a complete hardware-in-the-loop closed-loop test system. The test process is based on pre-made automated test scripts (such as test cases for impedance analysis, islanding prevention, LVRT / HVRT, etc.) executed automatically in sequence, realizing full automation from application of operating conditions, data acquisition, result analysis to report generation.

[0034] In another embodiment, obtaining the equivalent circuit modulation voltage based on a preset feedforward decoupling compensation algorithm and the equivalent circuit current data includes: The equivalent circuit current data is subjected to coordinate transformation to obtain the active equivalent current component and the reactive equivalent current component. Based on the preset feedforward decoupling compensation algorithm and the active equivalent current component, the active modulation voltage is obtained, and based on the preset feedforward decoupling compensation algorithm and the reactive equivalent current component, the reactive modulation voltage is obtained. The equivalent circuit modulation voltage is obtained based on the active modulation voltage and the reactive modulation voltage.

[0035] It should be noted that the equivalent circuit current data includes the three-phase grid voltages va, vb, vc and the three-phase grid-connected currents ia, ib, ic. The coordinate transformation process specifically includes Clark transform and Park transform. Clark transform converts the three-phase grid-connected currents in the three-phase stationary coordinate system into two-phase stationary current data. Park transform, under the equivalent circuit phase angle θ provided by the phase-locked loop, transforms the two-phase stationary current data in the two-phase stationary coordinate system into a coordinate system that rotates synchronously with the grid voltage, thereby obtaining the active equivalent current components in DC form. And the reactive equivalent current component iq. Based on the active modulation voltage and the reactive modulation voltage, the equivalent circuit modulation voltage is obtained.

[0036] In another embodiment, the equivalent circuit current data is subjected to coordinate transformation to obtain active equivalent current components and reactive equivalent current components, including: Obtain the equivalent circuit voltage data output by the photovoltaic equivalent circuit simulation model based on the current circuit connection state; The equivalent circuit voltage data is subjected to coordinate transformation to obtain active and reactive equivalent current data; Based on the preset PLL algorithm and the active and reactive equivalent current data, the equivalent circuit phase angle is obtained; Based on the preset Clark transformation algorithm and the equivalent circuit current data, the two-phase static current data are obtained; Based on the equivalent circuit phase angle and the two-phase quiescent current data, the active equivalent current component and the reactive equivalent current component are obtained.

[0037] It should be noted that the preset PLL algorithm is an existing software phase-locked loop based on a synchronous rotating coordinate system. Obtaining the equivalent circuit phase angle based on the preset PLL algorithm and the active and reactive equivalent current data is a current method. Specifically: Clark transformation is performed on the three-phase grid voltages va, vb, vc to obtain the voltages vα, vβ in the two-phase stationary coordinate system. Park transformation is then performed on vα, vβ to obtain the voltages vd, vq in the rotating coordinate system (i.e., the active and reactive equivalent current data). The angle of the Park transformation is the currently estimated phase angle θ'. A PI controller is preset, and eq is adjusted to 0. When eq = 0, it means that the d-axis coincides with the grid voltage vector. The output of the PI controller is the angular frequency correction Δω. Adding the rated angular frequency ω0, the current angular frequency ω is obtained, and then integrating ω yields the equivalent circuit phase angle θ. Then, based on the Clark transformation, the three-phase grid-connected currents ia, ib, ic in the three-phase stationary coordinate system are converted into two-phase stationary current data. and : ; ; The Park transform, using the equivalent circuit phase angle θ provided by the phase-locked loop, converts the two-phase stationary current data in the two-phase stationary coordinate system to a coordinate system that rotates synchronously with the grid voltage, thereby obtaining the active equivalent current component in DC form. And reactive equivalent current component iq: ; .

[0038] In another embodiment, the active and reactive equivalent current data includes an active equivalent voltage component and a reactive equivalent voltage component. The process of obtaining the active modulated voltage based on a preset feedforward decoupling compensation algorithm and the active equivalent current component, and obtaining the reactive modulated voltage based on the preset feedforward decoupling compensation algorithm and the reactive equivalent current component, includes: The difference between the preset active reference current component and the active equivalent current component is obtained as the active current error. Based on the preset gain data and the active current error, the active decoupling voltage data is obtained; Obtain the product of the preset decoupling term and the reactive equivalent current component as the first decoupling product value; The difference between the active decoupling voltage data and the first decoupling product value is obtained as the decoupling difference; The sum of the decoupling difference and the active equivalent voltage component is obtained as the active modulation voltage; The difference between the preset reactive reference current component and the reactive equivalent current component is obtained as the reactive current error. Based on the preset gain data and the reactive current error, the reactive decoupling voltage data is obtained; Obtain the product of the preset decoupling term and the active equivalent current component as the second decoupling product value; The sum of the reactive decoupling voltage data and the second decoupling product value is obtained as the decoupling sum value; The reactive modulation voltage is obtained by summing the decoupling sum and the reactive equivalent voltage component.

[0039] It should be noted that the active and reactive equivalent current data includes the active equivalent voltage component vd and the reactive equivalent voltage component vq. This step specifically implements the current loop PI control and decoupling in the rotating coordinate system. The process of obtaining the decoupled voltage data based on the preset gain data and error is the proportional-integral control operation. The preset gain data is (Kp+Ki / s), where Kp and Ki are the proportional gain and integral gain, respectively, and s is the Laplace operator. The preset decoupling term is ωL, where ω is the grid angular frequency and L is the filter inductance value. The active modulation voltage... and reactive power modulation voltage The complete calculation formula is: ; ; in, and These are the active reference current component and the reactive reference current component, respectively. and This refers to the active current data and reactive current data in the active and reactive equivalent current data. (The formula contains...) and This is the feedforward decoupling term, used to counteract the coupling effect between the d and q axes; and This is a grid voltage feedforward term used to improve the system's disturbance rejection capability. The active current error is... The active decoupling voltage data is as follows: The first decoupling product value is The decoupling difference is The reactive current error is The reactive power decoupling voltage data is as follows: The second decoupling product value is Decoupling sum value The active power reference current component and the reactive power reference current component are preset. Furthermore, the active power reference current component... The reactive reference current component can be obtained from an external DC voltage loop PI controller to stabilize the DC bus voltage; Configured according to grid connection requirements, such as the setting for unity power factor operation. =0.

[0040] In another embodiment, obtaining the equivalent circuit PWM signal based on the equivalent circuit modulation voltage includes: The active modulated voltage is subjected to coordinate inversion transformation to obtain the active coordinate corrected modulated voltage; The reactive power modulation voltage is subjected to coordinate inversion transformation to obtain the reactive power coordinate corrected modulation voltage; Based on the preset space vector pulse width modulation algorithm, the active coordinate correction modulation voltage, and the reactive coordinate correction modulation voltage, the equivalent circuit PWM signal is obtained.

[0041] It should be noted that the coordinate inversion process, i.e., the inverse Park transformation, aims to convert the modulation voltage command calculated in the rotating coordinate system back to the two-phase stationary coordinate system for use by the subsequent pulse width modulation module. The preset space vector pulse width modulation algorithm is used to correct the modulation voltage based on the active coordinate in the stationary coordinate system and the reactive coordinate in the reactive coordinate system, and to calculate and generate PWM signals with specific duty cycles and timings to drive each switch in the inverter bridge. For example, the preset space vector pulse width modulation algorithm adopts the existing SVPWM algorithm, including: sector determination, vector action time calculation, seven-segment / five-segment PWM waveform generation, etc.

[0042] In another embodiment, the step of performing coordinate inversion transformation on the active power modulation voltage to obtain an active power coordinate corrected modulation voltage includes: Obtain the cosine value of the phase angle of the equivalent circuit, and use it as the cosine value of the phase angle of the equivalent circuit; Obtain the sine value of the phase angle of the equivalent circuit, and use it as the sine value of the phase angle of the equivalent circuit; The product of the active modulation voltage and the cosine of the phase angle of the equivalent circuit is obtained to obtain the first active modulation voltage product value; The first reactive power modulation voltage product value is obtained by multiplying the reactive power modulation voltage and the sine value of the phase angle of the equivalent circuit. The difference between the product of the first active modulation voltage and the product of the first reactive modulation voltage is obtained and used as the active coordinate correction modulation voltage.

[0043] It should be noted that, in the stationary coordinate system, the active coordinate correction modulation voltage Through formula The calculation yields the value where θ is the phase angle of the equivalent circuit, and the cosine of the phase angle is... The sine value of the phase angle of the equivalent circuit is The product of the first active modulated voltage is The product of the first reactive power modulation voltage is .

[0044] In another embodiment, the step of performing coordinate inversion transformation on the reactive power modulation voltage to obtain a reactive power coordinate corrected modulation voltage includes: The product of the active modulation voltage and the sine value of the phase angle of the equivalent circuit is obtained to obtain the second active modulation voltage product value; The product of the reactive power modulation voltage and the cosine value of the phase angle of the equivalent circuit is obtained to obtain the second reactive power modulation voltage product value. The sum of the product of the second active modulation voltage and the product of the second reactive modulation voltage is obtained and used as the reactive coordinate correction modulation voltage.

[0045] It should be noted that, in the stationary coordinate system, the reactive coordinate correction modulation voltage... Through formula The calculation yields, where θ is the phase angle of the equivalent circuit, and the product of the second active modulation voltage is... The product of the second reactive power modulation voltage is The resulting active coordinate correction modulation voltage and reactive coordinate correction modulation voltage That is, it serves as the input to the space vector pulse width modulation algorithm.

[0046] Furthermore, regarding step S5: updating the photovoltaic equivalent circuit simulation model based on the equivalent circuit PWM signal to obtain an updated photovoltaic equivalent circuit simulation model, specifically: The equivalent circuit PWM signal is output from the physical pins of the photovoltaic controller under test and is a true digital level signal. This signal is captured by the real-time simulator through a digital input interface. The photovoltaic equivalent circuit simulation model pre-defines virtual power switching devices (such as IGBTs or MOSFETs) corresponding to the output channels of the physical controller. The solution engine of the photovoltaic equivalent circuit simulation model (especially the FPGA part) maps the received PWM signal level state (high / low) to the "on" or "off" command of the corresponding virtual switching device in real time. Subsequently, based on the updated switching state combination, circuit topology, and component model, the differential algebraic equations of the entire circuit are resolved in microsecond or nanosecond steps to calculate the new voltages of all nodes and the new currents of branches in the system at the next moment. This calculated new system state constitutes the updated photovoltaic equivalent circuit simulation model. In this way, every switching decision of the real photovoltaic controller under test immediately and accurately affects the dynamic behavior of the virtual controlled object (i.e., the photovoltaic equivalent circuit simulation model), thereby realizing real-time, high-fidelity closed-loop interaction between the photovoltaic controller under test and the photovoltaic equivalent circuit simulation model at the power electronic switching frequency.

[0047] Furthermore, regarding step S6: obtaining the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and based on the current voltage and current signals and the equivalent circuit PWM signal, obtaining the photovoltaic controller test results, specifically: The current voltage and current signal refers to the voltage and current data calculated in real time from preset observation points, such as grid connection points, DC bus, and inverter output terminals, after the simulation model is updated. These data are converted into continuous analog signals through the simulator's analog output channel and fed back to the photovoltaic controller under test. The analysis is based on the current voltage and current signal and the equivalent circuit PWM signal. Specifically, the automated test system processes these two types of time series data that are collected synchronously, such as: (1) checking whether the control logic and strategy of the equivalent circuit PWM signal output by the controller produces the correct system response under specific test conditions (such as grid voltage drop), such as whether grid connection is maintained and whether the reactive power support current meets the standard; (2) calculating the key indicators of the current voltage and current signal, such as the response time of current tracking, overshoot, harmonic distortion rate, and the fluctuation range of DC bus voltage, etc., whether they meet the preset requirements, etc. Finally, by comparing the analysis results with the preset test standards or pass / fail criteria, the photovoltaic controller test results are generated. The results usually include pass / fail conclusions, performance data reports, and related waveform diagrams.

[0048] like Figure 2 As shown, based on the above method embodiments, corresponding apparatus embodiments are provided; An embodiment of the present invention provides a photovoltaic controller testing device, comprising: A construction module is used to acquire the photovoltaic controller under test and photovoltaic operating condition test data, and to construct a photovoltaic equivalent circuit simulation model based on the photovoltaic controller under test; The equivalent circuit current data acquisition module is used to input the photovoltaic operating condition test data into the photovoltaic equivalent circuit simulation model and acquire the equivalent circuit current data output by the photovoltaic equivalent circuit simulation model. The equivalent circuit modulation voltage acquisition module is used to obtain the equivalent circuit modulation voltage based on a preset feedforward decoupling compensation algorithm and the equivalent circuit current data. The PWM signal generation module is used to obtain the equivalent circuit PWM signal based on the equivalent circuit modulation voltage. The update module is used to update the photovoltaic equivalent circuit simulation model based on the equivalent circuit PWM signal to obtain the updated photovoltaic equivalent circuit simulation model. The test result generation module is used to obtain the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and to obtain the photovoltaic controller test results based on the current voltage and current signals and the equivalent circuit PWM signal.

[0049] It is understood that the above-described device embodiments correspond to the method embodiments of the present invention, and can implement the photovoltaic controller testing method provided by any of the above-described method embodiments of the present invention.

[0050] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0051] Based on the above-described embodiment of a photovoltaic controller testing method, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a photovoltaic controller testing method according to any embodiment of the present invention.

[0052] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.

[0053] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0054] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0055] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute a photovoltaic controller testing method as described in any of the above-described method embodiments of the present invention.

[0056] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0057] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A photovoltaic controller testing method, characterized in that, include: Acquire the photovoltaic controller under test and photovoltaic operating condition test data, and construct a photovoltaic equivalent circuit simulation model based on the photovoltaic controller under test; The photovoltaic operating condition test data is input into the photovoltaic equivalent circuit simulation model, and the equivalent circuit current data output by the photovoltaic equivalent circuit simulation model is obtained. Based on the preset feedforward decoupling compensation algorithm and the equivalent circuit current data, the equivalent circuit modulation voltage is obtained; Based on the equivalent circuit modulation voltage, the equivalent circuit PWM signal is obtained; The photovoltaic equivalent circuit simulation model is updated based on the equivalent circuit PWM signal to obtain the updated photovoltaic equivalent circuit simulation model. Obtain the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and obtain the photovoltaic controller test results based on the current voltage and current signals and the equivalent circuit PWM signal.

2. The photovoltaic controller testing method according to claim 1, characterized in that, The process of obtaining the equivalent circuit modulation voltage based on the preset feedforward decoupling compensation algorithm and the equivalent circuit current data includes: The equivalent circuit current data is subjected to coordinate transformation to obtain the active equivalent current component and the reactive equivalent current component. Based on the preset feedforward decoupling compensation algorithm and the active equivalent current component, the active modulation voltage is obtained, and based on the preset feedforward decoupling compensation algorithm and the reactive equivalent current component, the reactive modulation voltage is obtained. The equivalent circuit modulation voltage is obtained based on the active modulation voltage and the reactive modulation voltage.

3. The photovoltaic controller testing method according to claim 2, characterized in that, The equivalent circuit current data is subjected to coordinate transformation to obtain active equivalent current components and reactive equivalent current components, including: Obtain the equivalent circuit voltage data output by the photovoltaic equivalent circuit simulation model based on the current circuit connection state; The equivalent circuit voltage data is subjected to coordinate transformation to obtain active and reactive equivalent current data; Based on the preset PLL algorithm and the active and reactive equivalent current data, the equivalent circuit phase angle is obtained; Based on the preset Clark transformation algorithm and the equivalent circuit current data, the two-phase static current data are obtained; Based on the equivalent circuit phase angle and the two-phase quiescent current data, the active equivalent current component and the reactive equivalent current component are obtained.

4. The photovoltaic controller testing method according to claim 3, characterized in that, The active and reactive equivalent current data includes active equivalent voltage components and reactive equivalent voltage components. The process of obtaining active modulated voltage based on a preset feedforward decoupling compensation algorithm and the active equivalent current components, and obtaining reactive modulated voltage based on the preset feedforward decoupling compensation algorithm and the reactive equivalent current components, includes: The difference between the preset active reference current component and the active equivalent current component is obtained as the active current error. Based on the preset gain data and the active current error, the active decoupling voltage data is obtained; Obtain the product of the preset decoupling term and the reactive equivalent current component as the first decoupling product value; The difference between the active decoupling voltage data and the first decoupling product value is obtained as the decoupling difference; The sum of the decoupling difference and the active equivalent voltage component is obtained as the active modulation voltage; The difference between the preset reactive reference current component and the reactive equivalent current component is obtained as the reactive current error. Based on the preset gain data and the reactive current error, the reactive decoupling voltage data is obtained; Obtain the product of the preset decoupling term and the active equivalent current component as the second decoupling product value; The sum of the reactive decoupling voltage data and the second decoupling product value is obtained as the decoupling sum value; The reactive modulation voltage is obtained by summing the decoupling sum and the reactive equivalent voltage component.

5. A photovoltaic controller testing method according to claim 3, characterized in that, The process of obtaining the equivalent circuit PWM signal based on the equivalent circuit modulation voltage includes: The active modulated voltage is subjected to coordinate inversion transformation to obtain the active coordinate corrected modulated voltage; The reactive power modulation voltage is subjected to coordinate inversion transformation to obtain the reactive power coordinate corrected modulation voltage; Based on the preset space vector pulse width modulation algorithm, the active coordinate correction modulation voltage, and the reactive coordinate correction modulation voltage, the equivalent circuit PWM signal is obtained.

6. The photovoltaic controller testing method according to claim 5, characterized in that, The process of performing coordinate inversion transformation on the active power modulation voltage to obtain the active power coordinate corrected modulation voltage includes: Obtain the cosine value of the phase angle of the equivalent circuit, and use it as the cosine value of the phase angle of the equivalent circuit; Obtain the sine value of the phase angle of the equivalent circuit, and use it as the sine value of the phase angle of the equivalent circuit; The product of the active modulation voltage and the cosine of the phase angle of the equivalent circuit is obtained to obtain the first active modulation voltage product value; The first reactive power modulation voltage product value is obtained by multiplying the reactive power modulation voltage and the sine value of the phase angle of the equivalent circuit. The difference between the product of the first active modulation voltage and the product of the first reactive modulation voltage is obtained and used as the active coordinate correction modulation voltage.

7. A photovoltaic controller testing method according to claim 6, characterized in that, The process of performing coordinate inversion transformation on the reactive power modulation voltage to obtain the reactive power coordinate corrected modulation voltage includes: The product of the active modulation voltage and the sine value of the phase angle of the equivalent circuit is obtained to obtain the second active modulation voltage product value; The product of the reactive power modulation voltage and the cosine value of the phase angle of the equivalent circuit is obtained to obtain the second reactive power modulation voltage product value. The sum of the product of the second active modulation voltage and the product of the second reactive modulation voltage is obtained and used as the reactive coordinate correction modulation voltage.

8. A photovoltaic controller testing device, characterized in that, include: A construction module is used to acquire the photovoltaic controller under test and photovoltaic operating condition test data, and to construct a photovoltaic equivalent circuit simulation model based on the photovoltaic controller under test; The equivalent circuit current data acquisition module is used to input the photovoltaic operating condition test data into the photovoltaic equivalent circuit simulation model and acquire the equivalent circuit current data output by the photovoltaic equivalent circuit simulation model. The equivalent circuit modulation voltage acquisition module is used to obtain the equivalent circuit modulation voltage based on a preset feedforward decoupling compensation algorithm and the equivalent circuit current data. The PWM signal generation module is used to obtain the equivalent circuit PWM signal based on the equivalent circuit modulation voltage. The update module is used to update the photovoltaic equivalent circuit simulation model based on the equivalent circuit PWM signal to obtain the updated photovoltaic equivalent circuit simulation model. The test result generation module is used to obtain the current voltage and current signals of the updated photovoltaic equivalent circuit simulation model, and to obtain the photovoltaic controller test results based on the current voltage and current signals and the equivalent circuit PWM signal.

9. A terminal device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements a photovoltaic controller testing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, include: A stored computer program, wherein, when the computer program is executed, it controls the device containing the computer-readable storage medium to perform a photovoltaic controller testing method as described in any one of claims 1-7.