Operation mode switching method and device, electronic equipment and storage medium
By using the switching method of maximum power tracking and constant voltage sag control mode in the DC microgrid, a given voltage value is generated to achieve smooth switching of the photovoltaic power generation unit between the two modes, solving the voltage and current during mode switching. state problems improve system stability.
Patent Information
- Application Number
- CN202411168228.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-08-05
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-19
AI Technical Summary
In a DC microgrid, when the photovoltaic power generation unit switches between the maximum power tracking mode and the constant voltage sag mode, it will lead to transient problems of voltage and current, affecting system stability.
Through an operating mode switching method, the output voltage and current of the maximum power tracking control mode and the constant voltage sag control mode are calculated, and a given voltage value is generated and output to the inner ring control module, so that the photovoltaic power generation unit is in two modes Smoothly switch between the two, avoiding sudden changes in voltage and current.
The smooth switching of photovoltaic power generation units between the two operating modes is achieved, which avoids the transient problems of voltage and current, and improves the stability and transient performance of the DC microgrid.
Smart Images

Figure CN118983767A_ABST
Abstract
Description
[0001] This application claims priority to a domestic application filed with the China Patent Office on August 5, 2024, with application number 202411064061.4 and invention name “A method, device, electronic device and storage medium for switching operating modes”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the technical field of electric power equipment, and more specifically, to a method, device, electronic device and storage medium for switching an operating mode. Background Art
[0003] In a general DC microgrid, the photovoltaic power generation unit can operate in the maximum power tracking mode MPPT or the constant voltage droop mode CVD. The control objectives of the control strategies in these two operating modes are different. The control objective of the MPPT mode is to maximize the use of solar energy, so there is no requirement for the stability of the bus voltage. In the constant voltage droop mode, the control objective is to stabilize the DC bus voltage. Since the control objectives of the two operating modes are different and relatively independent control parameters are used, when the photovoltaic power generation unit is controlled to switch between these two control modes, transient problems will occur in the voltage and current output by the photovoltaic power generation unit, that is, voltage mutations or current mutations will occur in a short period of time, which will have an adverse effect on the stable operation of the DC microgrid. Summary of the invention
[0004] In view of this, the present application provides an operating mode switching method, device, electronic device and storage medium for smoothly switching the operating mode of a photovoltaic power generation unit in a DC microgrid to avoid transient problems.
[0005] In order to achieve the above objectives, the proposed solution is as follows:
[0006] A method for switching an operation mode is applied to an electronic device, wherein the electronic device is used to control a DC microgrid, wherein the DC microgrid includes a photovoltaic power generation unit, and the switching method includes the steps of:
[0007] Output power tracking control voltage based on maximum power tracking control mode;
[0008] Output droop control voltage based on constant voltage droop control mode;
[0009] Calculating based on the power tracking control voltage, the droop control voltage and a given reference value of the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit;
[0010] The given voltage value is output to the inner-loop control module, so that the inner-loop control module controls the photovoltaic power generation unit to switch smoothly between the maximum power tracking operation mode and the constant voltage droop operation mode.
[0011] Optionally, the output power tracking control voltage based on the maximum power tracking control mode includes the steps of:
[0012] Obtaining the output voltage and output current of the photovoltaic power generation unit;
[0013] Calculating the output voltage and the output current based on a maximum power tracking algorithm to obtain a given output voltage of the photovoltaic power generation unit;
[0014] A proportional operation is performed on the difference between the given output voltage and the output voltage to obtain the power tracking control voltage.
[0015] Optionally, the outputting the droop control voltage based on the constant voltage droop control mode comprises the steps of:
[0016] Obtaining a converter output current of the photovoltaic power generation unit;
[0017] The converter output current is calculated based on a constant voltage droop algorithm to obtain the droop control voltage.
[0018] Optionally, the inner loop control module is used to process the given voltage value of the preset algorithm, the converter output voltage and the converter output current of the photovoltaic power generation unit to obtain a control signal, and the control signal is used to control the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
[0019] A switching device for operating mode is applied to an electronic device, the electronic device is used to control a DC microgrid, the DC microgrid includes a photovoltaic power generation unit, and the switching device includes:
[0020] A first calculation module is configured to output a power tracking control voltage based on a maximum power tracking control mode;
[0021] A second calculation module is configured to output a droop control voltage based on a constant voltage droop control mode;
[0022] A third calculation module is configured to calculate based on the power tracking control voltage, the droop control voltage and a given reference value of the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit;
[0023] The signal output module is configured to output the given voltage value to the inner loop control module, so that the inner loop control module controls the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
[0024] Optionally, the first calculation module includes:
[0025] A first acquisition unit is configured to acquire an output voltage and an output current of the photovoltaic power generation unit;
[0026] A calculation execution unit, configured to calculate the output voltage and the output current based on a maximum power tracking algorithm to obtain a given output voltage of the photovoltaic power generation unit;
[0027] The first output unit is configured to perform a proportional operation on the difference between the given output voltage and the output voltage to obtain the power tracking control voltage.
[0028] Optionally, the second calculation module includes:
[0029] A second acquisition unit is configured to acquire a converter output current of the photovoltaic power generation unit;
[0030] The second output unit is configured to calculate the converter output current based on a constant voltage droop algorithm to obtain the droop control voltage.
[0031] Optionally, the inner loop control module is used to process the given voltage value of the preset algorithm, the converter output voltage and the converter output current of the photovoltaic power generation unit to obtain a control signal, and the control signal is used to control the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
[0032] An electronic device is applied to a DC microgrid, the electronic device comprising at least one processor and a memory connected to the processor, wherein:
[0033] The memory is used to store computer programs or instructions;
[0034] The processor is used to execute the computer program or instruction so that the electronic device can implement the method for switching the operating mode as described above.
[0035] A storage medium is applied to an electronic device, wherein the storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device implements the method for switching the operating mode as described above.
[0036] It can be seen from the above technical scheme that the present application discloses a method, device, electronic device and storage medium for switching operation modes. The switching method and device are applied to electronic devices, specifically, outputting a power tracking control voltage based on a maximum power tracking control mode; outputting a droop control voltage based on a constant voltage droop control mode; calculating based on a given reference value of the power tracking control voltage, the droop control voltage and the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit; outputting the given voltage value to the inner loop control module so that the inner loop control module controls the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode. This method can make the droop shift, and through the shift, the photovoltaic power generation unit of the DC microgrid can achieve smooth switching between the two operation modes, avoiding the occurrence of transient problems of voltage and current. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 is a schematic diagram of a DC microgrid;
[0039] Figure 2 A control block diagram of a converter for a photovoltaic power generation unit;
[0040] Figure 3 It is a schematic diagram of the translation of the constant pressure sag curve;
[0041] Figure 4 It is a schematic diagram of the translation adjustment of the constant voltage droop curve when the bus voltage changes;
[0042] Figure 5 A flowchart of a method for switching an operating mode according to an embodiment of the present application;
[0043] Figure 6 A control flow chart of a seamless switching control strategy for a photovoltaic power generation unit according to an embodiment of the present application;
[0044] Figure 7 A block diagram of a switching device for an operating mode according to an embodiment of the present application;
[0045] Figure 8 A block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] Figure 1 A schematic diagram of a DC microgrid.
[0048] The photovoltaic power generation unit in the DC microgrid needs to switch the control strategy when its light intensity and temperature change. The control parameters of the constant voltage droop control and the MPPT control are different when the state is switched. Therefore, the stability of the DC microgrid system will be greatly affected when the state is switched. Therefore, according to the characteristics of constant voltage droop control, a method for seamless switching of the operating state of the photovoltaic power generation unit in the DC microgrid based on the translation of the droop curve is proposed to solve the transient stability problem of the system.
[0049] like Figure 2 As shown in the figure, the converter of the photovoltaic power generation unit is mainly controlled by maximum power tracking MPPT control and constant voltage droop CVD control. The reference value of the bus voltage in the figure is set to v ref_DG =420V. When the bus voltage reaches 420V, the converter works in constant voltage droop control. When the system bus voltage is lower than 420V, the photovoltaic power generation unit will work in MPPT control mode. It can be seen from the figure that when the two control strategies are converted, their control targets and control parameters are very different. Therefore, their transient impact on the stability of the DC microgrid will inevitably have an inevitable impact.
[0050] Therefore, according to the characteristics of DC constant voltage droop control, a method for seamless switching of operating states of photovoltaic power generation units in DC microgrids based on droop curve translation is proposed.
[0051] The principle of shifting the droop curve can be viewed as adding an additional voltage offset to the basic droop equation. v, thereby changing the output variable of the photovoltaic power generation unit interface converter. The principle can be expressed by formula 1:
[0052] (1)
[0053] where v ref_dc is the given reference value of the converter output voltage, r is the droop coefficient, i d is the output current value of the interface converter, v * It is the voltage reference value after droop control and translation adjustment.
[0054] When the photovoltaic power generation unit operates in the constant voltage droop mode, the DC bus voltage of the DC microgrid system is stabilized by itself; when the DC microgrid system operates in the maximum power tracking mode, the bus voltage will be stabilized by other units of the DC microgrid system. However, when the photovoltaic power generation unit switches state, it has a great impact on the transient indicators of the system operation. However, if the traditional MPPT control method is not used when it is operating in the maximum power tracking state, but it is allowed to continue to work in the constant voltage droop mode, and the droop curve is shifted using formula 1, the output current of the photovoltaic power generation unit can also be changed, and the stability and transient performance of the DC microgrid system will be greatly improved.
[0055] like Figure 3 As shown, the working principle of the constant voltage droop curve shift method for shifting the converter output current is demonstrated. The DC bus voltage is stabilized at v0 by other units. After adding the voltage offset Δv, the droop curve moves from a to b. Accordingly, the converter output current can be changed from i0 to i1.
[0056] When the bus voltage floats, in order to maintain the output power of the photovoltaic power generation unit converter matching the input power, the droop curve can also be shifted. Figure 4 As shown in the figure, when the DC bus changes from v0 to v1 (v2), if the droop curve remains unchanged, the output current changes from i0 to i1 (i2) accordingly. However, if the droop curve is shifted accordingly, that is, adjusted from a to b (c), it can be seen that the output current of the photovoltaic power generation unit converter can be maintained at i0.
[0057] Based on the analysis of the above droop curve translation method, the maximum power point reference voltage of the photovoltaic array generated by the MPPT module can be compared with the output voltage of the photovoltaic array. After voltage closed-loop adjustment, it is sent to the droop control as an offset for droop control.
[0058] The maximum power tracking method based on droop curve translation can be expressed as follows:
[0059] (2)
[0060] where k p and k i is the control parameter of the photovoltaic array voltage regulator, v pv is the photovoltaic array output voltage, v ref_pv It is the reference voltage corresponding to the maximum power point of the photovoltaic array generated by the MPPT module.
[0061] In summary, a control strategy can be adopted for a DC microgrid to enable the photovoltaic power generation unit to seamlessly switch between the two modes based on the translation of the droop curve. Based on this control strategy, the following specific embodiments are obtained.
[0062] Figure 7 A block diagram of a switching device for an operating mode according to an embodiment of the present application.
[0063] like Figure 7 As shown, the switching device provided in this embodiment is applied to an electronic device for smoothly switching the operating mode of the photovoltaic power generation unit of the DC microgrid. The electronic device is applied to a DC microgrid provided with the photovoltaic power generation unit. The electronic module is a computer or embedded device for controlling the DC microgrid. The switching device includes a first computing module 10, a second computing module 20, a third computing module 30 and a signal output module 40.
[0064] The first calculation module is used for outputting a power tracking control voltage based on a maximum power tracking mode.
[0065] That is, the relevant parameters are calculated based on the maximum power tracking algorithm to obtain the power tracking control voltage. The module includes a first acquisition unit, a calculation execution unit and a first output unit.
[0066] The first acquisition unit is used to acquire the output voltage and output current of the photovoltaic power generation unit;
[0067] The calculation execution unit is used to calculate the output voltage and the output current based on the maximum power tracking algorithm to obtain a given output voltage of the photovoltaic power generation unit;
[0068] The first output unit is used to perform a proportional operation on the difference between the given output voltage and the output voltage to obtain the above-mentioned power tracking control voltage.
[0069] The second calculation module is used for outputting a droop control voltage based on a constant voltage droop control mode.
[0070] That is, the relevant parameters are calculated based on the constant voltage droop algorithm to obtain the droop control voltage. The module includes a second acquisition unit and a second output unit.
[0071] The second acquisition unit is used to acquire the converter output current of the photovoltaic power generation unit;
[0072] The second output unit is used to calculate the converter output current based on the constant voltage droop algorithm, so as to obtain the droop control voltage.
[0073] The third calculation module is used to calculate a given voltage value of the inner loop control module of the photovoltaic voltage module.
[0074] That is, based on the given reference values of the power tracking control voltage, the droop control voltage and the converter output voltage of the photovoltaic power generation unit, a given voltage value of the inner loop control module of the photovoltaic power generation unit is obtained; the given voltage value is equal to the difference between the given reference value and the above-mentioned power tracking control voltage and droop control voltage.
[0075] The signal output module is used to output a given voltage value to the inner loop control module.
[0076] The inner-loop control module here refers to the inner-loop control module of the controller of the photovoltaic power generation unit, which is used to process the voltage value given by the preset algorithm, the converter output voltage and the converter output current of the photovoltaic power generation unit to obtain a control signal, and the control signal is used to control the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
[0077] It can be seen from the above technical solution that this embodiment provides a switching device for operating mode, which is applied to electronic equipment, specifically outputting a power tracking control voltage based on the maximum power tracking control mode; outputting a droop control voltage based on the constant voltage droop control mode; calculating based on the power tracking control voltage, the droop control voltage and the given reference value of the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit; outputting the given voltage value to the inner loop control module, so that the inner loop control module controls the photovoltaic power generation unit to smoothly switch between the maximum power tracking operating mode and the constant voltage droop operating mode. This method can make the droop shift, and through the shift, the photovoltaic power generation unit of the DC microgrid can achieve smooth switching between the two operating modes, avoiding the occurrence of transient problems of voltage and current.
[0078] Based on the above switching method, this embodiment provides a specific example, as shown in FIG. Figure 6 When the photovoltaic power generation unit needs to work in the constant voltage droop mode, the droop curve translation v is set to 0, and it works normally in the constant voltage droop mode mentioned above. The voltage set value v* required for the inner loop control of the photovoltaic power generation unit converter can be obtained by the basic droop control;
[0079] When the photovoltaic power generation unit needs to work in the maximum power tracking mode, the traditional maximum power final mode is not used, but the improved control mode is used. The voltage set value v* required for the converter inner loop control is obtained by formula (2). The maximum power module can generate the corresponding voltage offset v under the closed loop regulation, thereby changing the output current of the photovoltaic power generation unit converter to achieve maximum power tracking.
[0080] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.
[0082] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0083] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.
[0084] Figure 5 This is a flow chart of a method for switching an operating mode according to an embodiment of the present application.
[0085] like Figure 5As shown, the switching method provided in this embodiment is applied to an electronic device for smoothly switching the operation mode of a photovoltaic power generation unit of a DC microgrid. The electronic device is applied to a DC microgrid provided with the photovoltaic power generation unit. The electronic module is a computer or an embedded device for controlling the DC microgrid. The switching method includes the following steps:
[0086] S1, output power tracking control voltage based on maximum power tracking mode.
[0087] That is, the relevant parameters are calculated based on the maximum power tracking algorithm to obtain the power tracking control voltage. The specific process is as follows:
[0088] First, the output voltage and output current of the photovoltaic power generation unit are obtained;
[0089] Then, the output voltage and the output current are calculated based on the maximum power tracking algorithm to obtain a given output voltage of the photovoltaic power generation unit;
[0090] Finally, a proportional operation is performed on the difference between the given output voltage and the output voltage to obtain the above power tracking control voltage.
[0091] S2. Output droop control voltage based on constant voltage droop control mode.
[0092] That is, the relevant parameters are calculated based on the constant voltage droop algorithm to obtain the droop control voltage. The specific process is as follows:
[0093] First, the converter output current of the photovoltaic power generation unit is obtained;
[0094] Then, the converter output current is calculated based on the constant voltage droop algorithm to obtain the droop control voltage.
[0095] S3. Calculate a given voltage value of an inner loop control module of the photovoltaic voltage module.
[0096] That is, based on the given reference values of the power tracking control voltage, the droop control voltage and the converter output voltage of the photovoltaic power generation unit, a given voltage value of the inner loop control module of the photovoltaic power generation unit is obtained; the given voltage value is equal to the difference between the given reference value and the above-mentioned power tracking control voltage and droop control voltage.
[0097] S4. Output the given voltage value to the inner loop control module of the photovoltaic power generation unit.
[0098] The inner-loop control module here refers to the inner-loop control module of the controller of the photovoltaic power generation unit, which is used to process the voltage value given by the preset algorithm, the converter output voltage and the converter output current of the photovoltaic power generation unit to obtain a control signal, and the control signal is used to control the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
[0099] It can be seen from the above technical solution that this embodiment provides a method for switching an operating mode, which is applied to electronic devices, specifically outputting a power tracking control voltage based on a maximum power tracking control mode; outputting a droop control voltage based on a constant voltage droop control mode; calculating based on a given reference value of the power tracking control voltage, the droop control voltage and the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit; outputting the given voltage value to the inner loop control module so that the inner loop control module controls the photovoltaic power generation unit to smoothly switch between the maximum power tracking operating mode and the constant voltage droop operating mode. This method can make the droop shift, and through the shift, the photovoltaic power generation unit of the DC microgrid can achieve smooth switching between the two operating modes, avoiding the occurrence of transient problems of voltage and current.
[0100] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0101] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that may be used include, without limitation, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0102] Figure 8 A block diagram of an electronic device according to an embodiment of the present application.
[0103] refer to Figure 8, which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0104] The electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory ROM 802 or a program loaded from an input device 806 into a random access memory RAM 803. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0105] Typically, the following devices may be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0106] The present application also provides an embodiment of a computer-readable storage medium.
[0107] The storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device outputs a power tracking control voltage based on the maximum power tracking control mode; outputs a droop control voltage based on the constant voltage droop control mode; calculates based on the power tracking control voltage, the droop control voltage and the given reference value of the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit; outputs the given voltage value to the inner loop control module, so that the inner loop control module controls the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode. This method can make the droop shift, and through the shift, the photovoltaic power generation unit of the DC microgrid can achieve smooth switching between the two operation modes, avoiding the occurrence of transient problems of voltage and current.
[0108] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0109] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0110] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0111] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0112] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0113] The technical solution provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for switching an operation mode, applied to an electronic device, wherein the electronic device is used to control a DC microgrid, wherein the DC microgrid includes a photovoltaic power generation unit, and wherein: The switching method comprises the steps of: Output power tracking control voltage based on maximum power tracking control mode; Output droop control voltage based on constant voltage droop control mode; Calculating based on the power tracking control voltage, the droop control voltage and a given reference value of the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit; The given voltage value is output to the inner-loop control module, so that the inner-loop control module controls the photovoltaic power generation unit to switch smoothly between the maximum power tracking operation mode and the constant voltage droop operation mode.
2. The switching method according to claim 1, characterized in that: The method of outputting power tracking control voltage based on the maximum power tracking control mode comprises the following steps: Obtaining the output voltage and output current of the photovoltaic power generation unit; Calculating the output voltage and the output current based on a maximum power tracking algorithm to obtain a given output voltage of the photovoltaic power generation unit; A proportional operation is performed on the difference between the given output voltage and the output voltage to obtain the power tracking control voltage.
3. The switching method according to claim 1, characterized in that: The method of outputting a droop control voltage based on a constant voltage droop control mode comprises the following steps: Obtaining a converter output current of the photovoltaic power generation unit; The converter output current is calculated based on a constant voltage droop algorithm to obtain the droop control voltage.
4. The switching method according to claim 1, characterized in that: The inner loop control module is used to process the given voltage value of the preset algorithm, the converter output voltage and the converter output current of the photovoltaic power generation unit to obtain a control signal, and the control signal is used to control the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
5. A switching device for operating mode, applied to an electronic device, the electronic device is used to control a DC microgrid, the DC microgrid includes a photovoltaic power generation unit, characterized in that: The switching device comprises: A first calculation module is configured to output a power tracking control voltage based on a maximum power tracking control mode; A second calculation module is configured to output a droop control voltage based on a constant voltage droop control mode; A third calculation module is configured to calculate based on the power tracking control voltage, the droop control voltage and a given reference value of the converter output voltage of the photovoltaic power generation unit to obtain a given voltage value of the inner loop control module of the photovoltaic power generation unit; The signal output module is configured to output the given voltage value to the inner loop control module, so that the inner loop control module controls the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
6. The switching device according to claim 5, characterized in that: The first calculation module includes: A first acquisition unit is configured to acquire an output voltage and an output current of the photovoltaic power generation unit; A calculation execution unit, configured to calculate the output voltage and the output current based on a maximum power tracking algorithm to obtain a given output voltage of the photovoltaic power generation unit; The first output unit is configured to perform a proportional operation on the difference between the given output voltage and the output voltage to obtain the power tracking control voltage.
7. The switching device according to claim 5, characterized in that: The second calculation module includes: A second acquisition unit is configured to acquire a converter output current of the photovoltaic power generation unit; The second output unit is configured to calculate the converter output current based on a constant voltage droop algorithm to obtain the droop control voltage.
8. The switching device according to claim 5, characterized in that: The inner loop control module is used to process the given voltage value of the preset algorithm, the converter output voltage and the converter output current of the photovoltaic power generation unit to obtain a control signal, and the control signal is used to control the photovoltaic power generation unit to smoothly switch between the maximum power tracking operation mode and the constant voltage droop operation mode.
9. An electronic device, applied to a DC microgrid, characterized in that: The electronic device comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs or instructions; The processor is used to execute the computer program or instruction so that the electronic device implements the method for switching the operating mode as described in any one of claims 1 to 4.
10. A storage medium, applied to an electronic device, characterized in that: The storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device implements the method for switching the operating mode as described in any one of claims 1 to 4.
