Photovoltaic inverter system interruption control method and device, photovoltaic system
By allocating interrupt processing content, priority and triggering time, the interrupt control problem of multiple photovoltaic modules after DSP chip update is solved, and stable interrupt control of the photovoltaic inverter system is achieved.
Patent Information
- Application Number
- CN202210608974.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-05-31
AI Technical Summary
In the prior art, after the DSP chip is updated, it is difficult to effectively utilize the modules in the new DSP chip to implement interruption control of the photovoltaic inverter system of multiple photovoltaic modules.
By obtaining the number of photovoltaic modules and EPWM modules, allocating interrupt processing content, determining interrupt priority and triggering time, and setting EPWM module parameters, the interrupt control of the photovoltaic inverter system can be achieved.
It provides an effective interrupt control design solution, adapts to DSP chip updates, supports interrupt control of multiple DSP chips, and has a wide range of applications.
Smart Images

Figure CN115036987B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of interruption control, and more specifically, relates to a photovoltaic inverter system interruption control method and device, and a photovoltaic system. Background Art
[0002] In existing technologies, control of photovoltaic inverter systems is often performed using DSP (Digital Signal Processing) chips. Interrupts are generated by corresponding modules within the DSP chips, leading to the control phase of the photovoltaic inverter system. With the increasing application of photovoltaic technology, photovoltaic inverter systems incorporating multiple photovoltaic modules have gradually emerged. With the advancement of chip technology, the use of DSP chips is constantly being upgraded. Consequently, when DSP chips are updated, how to effectively utilize the corresponding modules within the new DSP chips to implement interrupt control for photovoltaic inverter systems incorporating multiple photovoltaic modules has become a pressing issue for those skilled in the art. Summary of the Invention
[0003] The object of the present invention is to provide a photovoltaic inverter system interruption control method and device, and a photovoltaic system, so as to realize the interruption control of the photovoltaic inverter system including multiple photovoltaic modules by effectively utilizing the corresponding modules in the new DSP chip when the DSP chip is updated.
[0004] To achieve the above-mentioned object, the technical solution adopted by the present invention is to provide a photovoltaic inverter system interruption control method, wherein the photovoltaic inverter system includes a control module, an inverter module and a plurality of photovoltaic modules, wherein the plurality of photovoltaic modules are connected to the inverter module after being connected together; the control module is respectively connected to the plurality of photovoltaic modules and the inverter module; the control module includes an EPWM module for performing photovoltaic inverter system interruption control; the method comprises:
[0005] Obtaining the number of the plurality of photovoltaic modules and the number of the EPWM modules;
[0006] Allocating corresponding interrupt processing content to each EPWM module according to the number of the plurality of photovoltaic modules and the number of the EPWM modules; each EPWM module corresponds to at least one type of interrupt processing content;
[0007] Determine the interrupt priority of each EPWM module and the interrupt triggering time of each interrupt processing content corresponding to each EPWM module according to the interrupt processing content corresponding to each EPWM module;
[0008] Parameters of each EPWM module are set according to the interrupt priority of each EPWM module and the interrupt triggering time of each interrupt processing content corresponding to each EPWM module, so that each EPWM module can interrupt the photovoltaic inverter system according to the interrupt priority and the interrupt triggering time.
[0009] In one possible implementation, the interrupt processing content includes main control processing of the inverter module, whole machine processing of the photovoltaic inverter system, and main control processing of the photovoltaic module; and the corresponding interrupt processing content is allocated to each EPWM module according to the number of the plurality of photovoltaic modules and the number of the EPWM modules, including:
[0010] Randomly select an EPWM module as the first interrupt processing module, and set the interrupt processing content of the first interrupt processing module to the main control processing of the inverter module and the whole machine processing of the photovoltaic inverter system;
[0011] The EPWM modules other than the first interrupt processing module are used as second interrupt processing modules, a correspondence between each second interrupt processing module and each photovoltaic module is determined according to a ratio of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules, and an interrupt processing content of each second interrupt processing module is set as a main control processing of the corresponding photovoltaic module.
[0012] In a possible implementation, determining a correspondence between each second interrupt processing module and each photovoltaic module according to a ratio of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules includes:
[0013] If the ratio k of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules is an integer, then for the second interrupt processing modules for which no corresponding relationship has been established, k photovoltaic modules are randomly selected from the photovoltaic modules for which no corresponding relationship has been established to correspond thereto, until all the second interrupt processing modules have established corresponding relationships;
[0014] If the ratio k of the number of the multiple photovoltaic modules to the number of the second interrupt processing modules is not an integer, the quotient k1 and the remainder k2 of the number of the multiple photovoltaic modules and the number of the second interrupt processing modules are determined; for the second interrupt processing modules for which no corresponding relationship is established, k1 photovoltaic modules are randomly selected from the photovoltaic modules for which no corresponding relationship is established to correspond to them, until all the second interrupt processing modules are established with corresponding relationships; k2 second interrupt processing modules are randomly selected from the second interrupt processing modules for which corresponding relationships are established and recorded as target interrupt processing modules, and for the target interrupt processing modules, 1 photovoltaic module is randomly selected from the photovoltaic modules for which no corresponding relationship is established to correspond to them, until all the photovoltaic modules are established with corresponding relationships.
[0015] In one possible implementation, determining the interrupt priority of each EPWM module according to the interrupt processing content corresponding to each EPWM module includes:
[0016] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the photovoltaic module, its interrupt priority is set to the first priority;
[0017] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system, its interrupt priority is set to the second priority;
[0018] The first priority is higher than the second priority.
[0019] In a possible implementation, determining the interrupt triggering time of each interrupt processing content corresponding to each EPWM module according to the interrupt processing content corresponding to each EPWM module includes:
[0020] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system, the interrupt triggering time of the EPWM module is determined based on the counting node time of the EPWM module;
[0021] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the photovoltaic module, the interrupt processing duration Δt of each type of interrupt processing content corresponding to the EPWM module is obtained, and the time t-Δt is used as the interrupt triggering time of each type of interrupt processing content corresponding to the EPWM module; where t is the counting node time of the EPWM module.
[0022] In a possible implementation, the counting node time of each EPWM module is the counting zero time or the counting peak time of the EPWM module.
[0023] In a possible implementation, when the interrupt of each EPWM module is triggered, all corresponding interrupt processing contents are executed at once;
[0024] Or when the interrupt of each EPWM module is triggered, the corresponding part of the interrupt processing content is executed each time, and the execution of the entire interrupt processing content is achieved based on multiple interrupt triggers.
[0025] In a possible implementation, the control module further includes an ECAP module for generating a modulation signal; and the method further includes:
[0026] Corresponding ECAP modules are allocated to the plurality of photovoltaic modules so that the ECAP module corresponding to each photovoltaic module generates a corresponding modulation signal after the corresponding EPWM module is interrupted and triggered.
[0027] In another aspect of the present invention, a photovoltaic inverter system interruption control device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the photovoltaic inverter system interruption control method described above are implemented.
[0028] In another aspect of the present invention, a photovoltaic system is provided, comprising: the photovoltaic inverter system interruption control device described above and a photovoltaic inverter system.
[0029] The photovoltaic inverter system interruption control method and device, and the photovoltaic system provided by the present invention have the following beneficial effects:
[0030] To adapt to DSP chip updates, the present invention provides an interrupt control design scheme. Specifically, the system allocates interrupt processing content to each EPWM module based on the number of photovoltaic modules in the photovoltaic inverter system and the number of EPWM modules pre-set in the control module (i.e., the DSP chip) for photovoltaic inverter system interrupt control. The system then determines the interrupt priority and the interrupt triggering time for each type of interrupt processing content based on the interrupt processing content. Finally, the EPWM modules in the DSP chip are parameterized based on the interrupt priority and the interrupt triggering time so that each EPWM module performs interrupt control of the photovoltaic inverter system according to the interrupt priority and the interrupt triggering time. Based on this scheme, the present invention solves the problems of the prior art and provides an effective interrupt control design scheme after replacing the DSP chip. This scheme can support the implementation of interrupt control for multiple DSP chips and has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 A schematic flow chart of a photovoltaic inverter system interruption control method provided by one embodiment of the present invention;
[0033] Figure 2 A schematic structural diagram of a photovoltaic inverter system provided in one embodiment of the present invention;
[0034] Figure 3 A schematic structural diagram of a photovoltaic inverter system interruption control device provided by an embodiment of the present invention;
[0035] Figure 4 A schematic diagram of interrupt triggering timing provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0037] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0038] Please refer to Figure 1 , Figure 1 The flow chart of the photovoltaic inverter system interruption control method provided by one embodiment of the present invention is as follows: Figure 2 As shown, it includes n photovoltaic modules and an inverter module. The photovoltaic module includes a photovoltaic panel string and a boost circuit connected in sequence. The output ends of the n boost circuits are connected in parallel with the same polarity and connected to the DC input end of the inverter module. The AC output end of the inverter module is connected to the load or the grid. On this basis, the photovoltaic inverter system also includes a control module ( Figure 2 (not shown), the control module is connected to the plurality of photovoltaic modules and the inverter module, respectively, for controlling the photovoltaic modules and the inverter module. Furthermore, the control module includes an EPWM module for controlling interruptions of the photovoltaic inverter system. (Note that the control module may also include an EPWM module not used for controlling interruptions of the photovoltaic inverter system. Since such EPWM modules are not relevant to the interruption control in this embodiment of the present invention, they will not be described in detail. The EPWM modules described below refer only to the EPWM modules used for controlling interruptions of the photovoltaic inverter system.)
[0039] The photovoltaic inverter system interruption control method provided by the embodiment of the present invention includes:
[0040] S101: Obtain the number of multiple photovoltaic modules and the number of EPWM modules.
[0041] In this embodiment, the number of photovoltaic modules in the photovoltaic inverter system can be obtained, and then corresponding interrupt processing content can be allocated to each EPWM module according to the number of photovoltaic modules and the number of EPWM modules used for photovoltaic inverter system interrupt control.
[0042] S102: assigning corresponding interrupt processing content to each EPWM module according to the number of the plurality of photovoltaic modules and the number of EPWM modules. Each EPWM module corresponds to at least one type of interrupt processing content.
[0043] In this embodiment, the interrupt processing content includes but is not limited to the main control processing of the inverter module, the whole machine processing of the photovoltaic inverter system, the main control processing of the photovoltaic module, etc., among which the whole machine processing of the photovoltaic inverter system includes but is not limited to the whole machine logic control, A / D sampling processing, protection functions involved in the whole machine, waveform refresh of the whole machine, and waveform storage triggering, etc.
[0044] S103: Determine the interrupt priority of each EPWM module and the interrupt triggering time of each interrupt processing content corresponding to each EPWM module according to the interrupt processing content corresponding to each EPWM module.
[0045] S104: Setting parameters for each EPWM module according to the interrupt priority of each EPWM module and the interrupt triggering time of each interrupt processing content corresponding to each EPWM module, so that each EPWM module performs interrupt control on the photovoltaic inverter system according to the interrupt priority and interrupt triggering time.
[0046] In this embodiment, each EPWM module includes multiple submodules, such as a time base submodule, a count comparison submodule, an action limit submodule, a dead zone control submodule, a PWM chopping submodule, an error control submodule, and an event trigger submodule. Parameter setting for each EPWM module based on interrupt priority and interrupt triggering time can be detailed as follows: Parameters for the time base submodule, count comparison submodule, action limit submodule, and event triggering submodule are set so that each EPWM module initiates an interrupt based on the interrupt priority and interrupt triggering time, thereby achieving interrupt control for the photovoltaic inverter system.
[0047] As can be seen from the above description, in order to adapt to the update of the DSP chip, an embodiment of the present invention provides an interrupt control design scheme, that is, according to the number of photovoltaic modules in the photovoltaic inverter system and the number of EPWM modules pre-set in the control module (i.e., the DSP chip) for performing photovoltaic inverter system interrupt control, the aforementioned EPWM modules are assigned interrupt processing content, and then the interrupt priority and the interrupt trigger time of each type of interrupt processing content are determined according to the interrupt processing content. Finally, based on the interrupt priority and the interrupt trigger time, the EPWM modules in the DSP chip are parameterized so that each EPWM module can perform interrupt control on the photovoltaic inverter system according to the interrupt priority and the interrupt trigger time. Based on this scheme, the embodiment of the present invention solves the problems of the prior art and provides an effective interrupt control design scheme after replacing the DSP chip, which can support the implementation of interrupt control of multiple DSP chips and has a wide range of applications.
[0048] In one possible implementation, the interrupt processing includes the main control processing of the inverter module, the whole machine processing of the photovoltaic inverter system, and the main control processing of the photovoltaic module. According to the number of photovoltaic modules and the number of EPWM modules, the corresponding interrupt processing content is assigned to each EPWM module, including:
[0049] An EPWM module is randomly selected as the first interrupt processing module, and the interrupt processing content of the first interrupt processing module is set to the main control processing of the inverter module and the whole machine processing of the photovoltaic inverter system.
[0050] The EPWM modules other than the first interrupt processing module are used as second interrupt processing modules. The correspondence between each second interrupt processing module and each photovoltaic module is determined according to the ratio of the number of multiple photovoltaic modules to the number of second interrupt processing modules, and the interrupt processing content of each second interrupt processing module is set as the main control processing of its corresponding photovoltaic module.
[0051] In this embodiment, an EPWM module can be directly selected as the first interrupt processing module to implement the overall processing of the inverter circuit and the photovoltaic inverter system. The inverter module's main control processing includes, but is not limited to, the grid phase-locked loop, DC voltage loop, AC current loop, harmonic compensation, PWM modulation, low voltage ride-through algorithm, DC component control, and active islanding algorithm processing. The overall processing of the photovoltaic inverter system includes, but is not limited to, overall logic control, A / D sampling processing, overall protection functions, overall waveform refresh, and waveform storage triggering. The specific contents of the A / D sampling processing include, but are not limited to, completing A / D sampling at each sampling point in the photovoltaic inverter system, zero-bias processing, filtering specific signals, and accumulating effective and average values. Overall protection functions include, but are not limited to, rapid detection and protection of signals such as overvoltage and overcurrent.
[0052] In this embodiment, all EPWM modules (i.e., second interrupt processing modules) other than the aforementioned first interrupt processing module can be used to handle the main control of the photovoltaic modules or some logic control on the photovoltaic side. Based on this, the photovoltaic modules corresponding to each second interrupt processing module can be determined based on the ratio of the number of photovoltaic modules to the number of second interrupt processing modules.
[0053] In a possible implementation, determining a correspondence between each second interrupt processing module and each photovoltaic module according to a ratio of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules includes:
[0054] If the ratio k of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules is an integer, then for the second interrupt processing modules for which no corresponding relationship has been established, k photovoltaic modules are randomly selected from the photovoltaic modules for which no corresponding relationship has been established to correspond to them, until all the second interrupt processing modules are correspondingly established.
[0055] If the ratio k of the number of photovoltaic modules to the number of second interrupt processing modules is not an integer, the quotient k1 and remainder k2 of the number of photovoltaic modules and the number of second interrupt processing modules are determined. For any second interrupt processing modules for which no corresponding relationship has been established, k1 photovoltaic modules are randomly selected from the photovoltaic modules for which no corresponding relationship has been established, and these modules are assigned to the corresponding modules until all second interrupt processing modules have been assigned to the corresponding modules. K2 second interrupt processing modules are randomly selected from the second interrupt processing modules for which no corresponding relationship has been established, and are recorded as target interrupt processing modules. For each target interrupt processing module, one photovoltaic module is randomly selected from the photovoltaic modules for which no corresponding relationship has been established, and these modules are assigned to the corresponding modules until all photovoltaic modules have been assigned to the corresponding modules.
[0056] In this embodiment, the photovoltaic modules to be processed by each second interrupt processing module (i.e., the correspondence between the second interrupt processing modules and the photovoltaic modules) can be determined based on the principle of "minimizing the difference in the amount of interrupt processing content corresponding to each second interrupt processing module." Specifically, if the photovoltaic modules can be evenly distributed among the second interrupt processing modules, the same number of photovoltaic modules is directly assigned to each second interrupt processing module. If the photovoltaic modules cannot be evenly distributed among the second interrupt processing modules, the difference in the number of photovoltaic modules processed by each second interrupt processing module is minimized. This solution effectively utilizes each EPWM module and also reduces interruption time.
[0057] In this embodiment, the interrupt processing content of each second interrupt processing module may also include logic control of the photovoltaic side and some other necessary controls, which are not limited here.
[0058] In one possible implementation, determining the interrupt priority of each EPWM module according to the interrupt processing content corresponding to each EPWM module includes:
[0059] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the photovoltaic module, its interrupt priority is set to the first priority.
[0060] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system, its interrupt priority is set to the second priority.
[0061] Among them, the first priority is higher than the second priority.
[0062] In this embodiment, the priority of the main control processing of the photovoltaic module can be set higher than the priority of the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system. On this basis, the interrupt process of the main control processing of the photovoltaic module can be nested in the interrupt process corresponding to the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system to ensure effective control of the photovoltaic side of the photovoltaic inverter system.
[0063] In a possible implementation, determining the interrupt triggering time of each interrupt processing content corresponding to each EPWM module according to the interrupt processing content corresponding to each EPWM module includes:
[0064] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system, the interrupt triggering time of the EPWM module is determined based on the counting node time of the EPWM module.
[0065] If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the photovoltaic module, the interrupt processing duration Δt of each interrupt processing content corresponding to the EPWM module is obtained, and the time t-Δt is used as the interrupt trigger time of each interrupt processing content corresponding to the EPWM module. Where t is the counting node time of the EPWM module.
[0066] In a possible implementation, the counting node time of each EPWM module is the counting zero time or the counting peak time of the EPWM module.
[0067] In this embodiment, if the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system, the counting peak moment of the EPWM module can be directly used as the interrupt triggering moment of the EPWM module. Alternatively, the offset point of the counting peak moment of the EPWM module can be determined according to the hardware debugging structure, and the offset point moment can be used as the interrupt triggering moment of the EPWM module.
[0068] In this embodiment, if the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the photovoltaic module, the time t-Δt can be used as the interrupt triggering time for each type of interrupt processing content corresponding to the EPWM module. t can be the counting peak time of the EPWM module or the counting zero time of the EPWM module. In the EPWM module whose interrupt processing content includes the main control processing of the photovoltaic module (i.e., the aforementioned second interrupt processing module), the corresponding t can be different for different EPWM modules (that is, t in one second interrupt processing module represents the counting peak time of the EPWM module, while t in another second interrupt processing module represents the counting zero time of the EPWM module).
[0069] In a possible implementation, when the interrupt of each EPWM module is triggered, all corresponding interrupt processing contents are executed at once.
[0070] Or when the interrupt of each EPWM module is triggered, the corresponding part of the interrupt processing content is executed each time, and the execution of the entire interrupt processing content is achieved based on multiple interrupt triggers.
[0071] In this embodiment, if the crystal oscillator frequency of the control module (DSP chip) meets the preset conditions, it can be considered to execute all interrupt processing contents of the EPWM module at one time after an interrupt is triggered.
[0072] In this embodiment, if the crystal oscillator frequency of the control module (DSP chip) does not meet the preset conditions, then based on the principle of multiplexing, all interrupt processing contents are executed based on multiple interrupt triggers. For example, if an EPWM module is responsible for executing the main control processing of the first photovoltaic module and the main control processing of the third photovoltaic module, and the crystal oscillator frequency of the control module (DSP chip) does not meet the preset conditions, then when the interrupt of the EPWM module is triggered for the first time, the main control processing of the first photovoltaic module may be executed. When the interrupt of the EPWM module is triggered for the second time, the main control processing of the third photovoltaic module may be executed. When the interrupt of the EPWM module is triggered for the third time, the main control processing of the first photovoltaic module may be executed. And so on, thereby implementing multiplexing of the EPWM module.
[0073] As can be seen from the above description, the present invention takes into account the hardware conditions of the control module (DSP chip), and the interrupt processing solution provided on this basis can not only ensure the normal execution of interrupt processing, but also save interrupt time resources as much as possible.
[0074] In one possible implementation, the control module further includes an ECAP module for generating a modulation signal. The photovoltaic inverter system interruption control method further includes:
[0075] Corresponding ECAP modules are allocated to a plurality of photovoltaic modules so that the ECAP module corresponding to each photovoltaic module generates a corresponding modulation signal after the corresponding EPWM module is interrupted and triggered.
[0076] In this embodiment, the EPWM module, in addition to generating interrupts, can also be used to generate modulation waves. Based on this, the EPWM module can be used directly to generate modulation signals to control the photovoltaic inverter system. Alternatively, the ECAP module's APWM mode can be used to generate modulation signals when EPWM module resources are limited. For example, when the ECAP module's APWM mode is used for boost driving a photovoltaic module, given that the module's duty cycle is less than a certain value (e.g., 0.8), the APWM compare register value can be refreshed when the APWM count value exceeds 0.8 times the carrier period, thereby generating a modulation signal.
[0077] As can be seen from the above embodiments, each embodiment of the present invention provides a highly versatile interrupt control scheme, which not only provides the overall process of interrupt control, but also provides a method for determining interrupt priority, interrupt trigger time, etc. On this basis, when the DSP chip is replaced, a corresponding interrupt control scheme can be quickly formed according to the specific structure of the photovoltaic inverter system, which not only ensures the normal operation of the interrupt control, but also saves interrupt time as much as possible, and therefore has a wide range of applications.
[0078] Optionally, as a specific implementation of the photovoltaic inverter system interruption control method provided by an embodiment of the present invention, taking "a photovoltaic inverter system includes three photovoltaic modules, and there are three EPWM modules for performing photovoltaic inverter system interruption control (denoted as EPWM1 module, EPWM2 module, and EPWM3 module)" as an example, after implementing the solution of the present invention, the specific interruption control solution can be as follows:
[0079] Each EPWM module executes a type of interrupt, which are recorded as PWM1, PWM2, and PWM3 interrupts. The PWM1 interrupt handles inverter-side phase lock, loop and modulation, main logic functions, and main protection functions, while the PWM2 and PWM3 interrupts handle PV-side loop and modulation. Specifically, the PWM2 interrupt handles the master control of the first and third PV modules, while the PWM3 interrupt handles the master control of the second PV module and some PV-side logic control.
[0080] On this basis, the timing diagram of each interrupt triggering can be as follows: Figure 4 As shown (note that Figure 4 The switching frequency and carrier parameters are shown in the figure, but are not limited to them. Each time PWM1 interrupt is executed, PWM2 interrupt and PWM3 interrupt are executed twice in total. PWM2 interrupt and PWM3 interrupt have higher priority than PWM1 interrupt, that is, after PWM1 interrupt is triggered, PWM2 interrupt or PWM3 interrupt can be nested. Among them, 6us is the interrupt processing time corresponding to the interrupt processing content in the above embodiment, which is determined by Figure 4 It can be seen that the EPWM1 module count value vertex (or its offset point, Figure 4The example shows a PWM1 interrupt being triggered at the offset point. A PWM2 interrupt can be triggered 6µs before the EPWM2 module's count reaches a peak, using the CMPB comparison value in the EPWM2 module. A PWM3 interrupt can be triggered 6µs before the EPWM3 module's count reaches zero, using the CMPB comparison value in the EPWM3 module. It should be noted that the interrupt processing durations corresponding to various interrupt handling scenarios can be the same or different. For ease of explanation, this embodiment uses a 6µs interrupt processing duration for each interrupt handling scenario. It should also be noted that the count peak and time base of each EPWM module in the aforementioned embodiments are the same.
[0081] It can be seen from this embodiment that by applying the solution of the present invention, an interrupt control solution can be quickly formed, and the EPWM module of the newly adopted DSP chip can be effectively used to realize the interrupt control of the photovoltaic inverter system.
[0082] Another aspect of the present invention provides a photovoltaic inverter system interruption control device 300, comprising: one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304. The processors 301, input devices 302, output devices 303, and memories 304 communicate with each other via a communication bus 305. The memory 304 is used to store computer programs, which include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. The processor 301 is configured to invoke the program instructions to perform the steps of the aforementioned method embodiments. It should be understood that in the embodiments of the present invention, the processor 301 may be a central processing unit (CPU). The processor may also be another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor. The input device 302 may include a touchpad, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc. The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 301. A portion of the memory 304 may also include a non-volatile random access memory. For example, the memory 304 may also store information about the device type. In a specific implementation, the processor 301, the input device 302, and the output device 303 described in the embodiment of the present invention may execute the implementation methods described in the first embodiment and the second embodiment of the photovoltaic inverter system interruption control method provided in the embodiment of the present invention.
[0083] In another aspect of the present invention, a photovoltaic system is provided, comprising: the photovoltaic inverter system interruption control device described above and a photovoltaic inverter system.
[0084] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A photovoltaic inverter system interruption control method, characterized in that: The photovoltaic inverter system includes a control module, an inverter module, and a plurality of photovoltaic modules, wherein the plurality of photovoltaic modules are connected to the inverter module after being connected together; the control module is connected to the plurality of photovoltaic modules and the inverter module respectively; the control module includes an EPWM module for performing interruption control of the photovoltaic inverter system; the method includes: Obtaining the number of the plurality of photovoltaic modules and the number of the EPWM modules; Allocating corresponding interrupt processing content to each EPWM module according to the number of the plurality of photovoltaic modules and the number of the EPWM modules; each EPWM module corresponds to at least one type of interrupt processing content; Determine the interrupt priority of each EPWM module and the interrupt triggering time of each interrupt processing content corresponding to each EPWM module according to the interrupt processing content corresponding to each EPWM module; Parameters of each EPWM module are set according to the interrupt priority of each EPWM module and the interrupt triggering time of each interrupt processing content corresponding to each EPWM module, so that each EPWM module performs interrupt control on the photovoltaic inverter system according to the interrupt priority and the interrupt triggering time; The interrupt processing content includes the main control processing of the inverter module, the whole machine processing of the photovoltaic inverter system, and the main control processing of the photovoltaic module; the corresponding interrupt processing content is allocated to each EPWM module according to the number of the plurality of photovoltaic modules and the number of the EPWM modules, including: Randomly select an EPWM module as the first interrupt processing module, and set the interrupt processing content of the first interrupt processing module to the main control processing of the inverter module and the whole machine processing of the photovoltaic inverter system; The EPWM modules other than the first interrupt processing module are used as second interrupt processing modules, a correspondence between each second interrupt processing module and each photovoltaic module is determined according to a ratio of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules, and an interrupt processing content of each second interrupt processing module is set as a main control processing of the corresponding photovoltaic module.
2. The photovoltaic inverter system interruption control method according to claim 1, characterized in that: Determining a correspondence between each second interrupt processing module and each photovoltaic module according to a ratio of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules includes: If the ratio k of the number of the plurality of photovoltaic modules to the number of the second interrupt processing modules is an integer, then for the second interrupt processing modules for which no corresponding relationship has been established, k photovoltaic modules are randomly selected from the photovoltaic modules for which no corresponding relationship has been established to correspond thereto, until all the second interrupt processing modules have established corresponding relationships; If the ratio k of the number of the multiple photovoltaic modules to the number of the second interrupt processing modules is not an integer, the quotient k1 and the remainder k2 of the number of the multiple photovoltaic modules and the number of the second interrupt processing modules are determined; for the second interrupt processing modules for which no corresponding relationship is established, k1 photovoltaic modules are randomly selected from the photovoltaic modules for which no corresponding relationship is established to correspond to them, until all the second interrupt processing modules are established with corresponding relationships; k2 second interrupt processing modules are randomly selected from the second interrupt processing modules for which corresponding relationships are established and recorded as target interrupt processing modules, and for the target interrupt processing modules, 1 photovoltaic module is randomly selected from the photovoltaic modules for which no corresponding relationship is established to correspond to them, until all the photovoltaic modules are established with corresponding relationships.
3. The photovoltaic inverter system interruption control method according to claim 1, wherein: The interrupt priority of each EPWM module is determined according to the interrupt processing content corresponding to each EPWM module, including: If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the photovoltaic module, its interrupt priority is set to the first priority; If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system, its interrupt priority is set to the second priority; The first priority is higher than the second priority.
4. The photovoltaic inverter system interruption control method according to claim 1, wherein: The interrupt triggering time of each interrupt processing content corresponding to each EPWM module is determined according to the interrupt processing content corresponding to each EPWM module, including: If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the inverter module or the whole machine processing of the photovoltaic inverter system, the interrupt triggering time of the EPWM module is determined based on the counting node time of the EPWM module; If the interrupt processing content corresponding to a certain EPWM module includes the main control processing of the photovoltaic module, the interrupt processing duration Δt of each type of interrupt processing content corresponding to the EPWM module is obtained, and the time t-Δt is used as the interrupt triggering time of each type of interrupt processing content corresponding to the EPWM module; where t is the counting node time of the EPWM module.
5. The photovoltaic inverter system interruption control method according to claim 4, characterized in that: The counting node moment of each EPWM module is the counting zero point moment or the counting peak point moment of the EPWM module.
6. The photovoltaic inverter system interruption control method according to claim 1, wherein: When the interrupt of each EPWM module is triggered, all the corresponding interrupt processing contents are executed at once; Or when the interrupt of each EPWM module is triggered, the corresponding part of the interrupt processing content is executed each time, and the execution of the entire interrupt processing content is achieved based on multiple interrupt triggers.
7. The photovoltaic inverter system interruption control method according to claim 1, wherein: The control module further includes an ECAP module for generating a modulation signal; the method further includes: Corresponding ECAP modules are allocated to the plurality of photovoltaic modules so that the ECAP module corresponding to each photovoltaic module generates a corresponding modulation signal after the corresponding EPWM module is interrupted and triggered.
8. A photovoltaic inverter system interruption control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
9. A photovoltaic system, characterized in that: include: The photovoltaic inverter system interruption control device according to claim 8.
Citation Information
Patent Citations
Method and device for embedded photovoltaic grid connected inversion based on multi-processor
CN102403734A
Photovoltaic module monitoring system and method based on DSP
CN111756325A