Multi-level system unified control method and device based on FPGA
Through the unified control method of multi-level systems based on FPGA, the problem of long development cycle and high cost of multi-level system controllers is solved, rapid development and debugging is achieved, any cascade number and optical fiber information interaction are supported, and development errors are reduced. and defects.
Patent Information
- Application Number
- CN202410851977.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
Multi-level system controllers have long development cycles and high costs, and the large number of modules and switching devices make development and debugging difficult.
Using a unified control method for multi-level systems based on FPGA, the host computer configures the multi-level system application model, module cascade number and modulation method, receives data and generates PWM signals to achieve unified control of the multi-level system and supports any Number of cascades and two classic PWM modulation methods.
It realizes the rapid development and debugging of multi-level systems, reduces engineers’ development errors and defects, supports multi-level system models with any cascade number of sub-modules, and supports optical fiber information interaction.
Smart Images

Figure CN118739876A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-level system control, and in particular to a multi-level system unified control method and device based on FPGA. Background Art
[0002] Multi-level systems such as chain SVG, high-voltage direct-mounted energy storage, and MMC play a vital role in new energy. For example, chain SVG is needed for reactive power compensation in new energy sites. High-voltage direct-mounted energy storage has mature applications in new energy distribution and storage and the grid side and has great potential for future development. MMC is used in application scenarios such as large-scale renewable energy grid connection, large-scale urban power supply, and coastal island networking.
[0003] The development of multi-level system applications has also attracted the attention of many companies and scholars. Companies are more concerned about the development and testing of multi-level system controllers, while scholars are more concerned about the correctness demonstration of cutting-edge control strategies and the development of industry-university-research cooperation. However, compared with the development time and cost of new energy controllers such as wind and solar, the development cycle of multi-level system controllers is longer and the cost is higher. In addition, due to the characteristics of "large number of sub-modules and switching devices", multi-level systems require optical fibers for information transmission, which makes development and debugging difficult. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the prior art and provide a multi-level system unified control method and device based on FPGA, so as to realize the control of multi-level systems with any cascade number on the same FPGA.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A unified control method for a multi-level system based on FPGA is used to output a control signal of the multi-level system through the FPGA, comprising the following steps:
[0007] Receiving the multi-level system application model, module cascade number, modulation mode and modulation parameters configured by the host computer;
[0008] Receive multi-level system data, including voltage, current and status of each bridge arm submodule;
[0009] According to the modulation mode configured by the host computer, select carrier phase shift modulation or nearest level modulation to determine the modulation mode of the control system;
[0010] According to the multi-level system application model configured by the host computer, the multi-level application type is determined, so as to sort the voltages of each bridge arm submodule from small to large, and determine the switching number of each bridge arm submodule;
[0011] According to the multi-level system application model configured by the host computer, the PWM signal of each bridge arm submodule is generated by combining the bridge arm modulation wave, bridge arm current flow direction, voltage sequencing, and switching number;
[0012] The PWM signals of each bridge arm submodule are framed, distributed to each communication interface, and transmitted to the multi-level system for control.
[0013] Further, the multilevel system application model is set by selecting from a plurality of preset model symbols to represent a half-bridge modular multilevel converter, a full-bridge modular multilevel converter, a chain static VAR compensator or a high-voltage direct-mounted energy storage;
[0014] The module cascade number is set to any number between 0 and 512 according to the actual cascade number of the multi-level system;
[0015] The modulation mode is set by selecting from a plurality of preset modulation symbols to represent carrier phase shift modulation and nearest level modulation;
[0016] The modulation parameters include the preset triangular carrier frequency, phase shift angle and other initialization data, and the modulation wave and enable signal of each bridge arm submodule sent by the CPU in real time.
[0017] Furthermore, the process of determining the switching number of each bridge arm submodule is specifically as follows:
[0018] If the configured modulation symbol corresponds to carrier phase shift modulation, the received modulation wave is compared with the initially set switching number of triangular carriers arranged according to the phase shift angle and the triangular carrier frequency, and a control pulse square wave for controlling each bridge arm submodule is obtained. The levels output by the bridge arm submodules are superimposed to obtain a step wave, and the compared signals are summed to calculate the required switching number of the bridge arm submodules;
[0019] If the configured modulation symbol corresponds to the nearest level modulation, the required switching number of the bridge arm submodules is calculated according to the multi-level system application model corresponding to the set model symbol for the modulation wave received in real time.
[0020] Furthermore, the calculation process of the required switching number of the bridge arm submodules corresponding to the latest level modulation is specifically as follows:
[0021] If the set model symbol corresponds to a half-bridge modular multilevel converter or a full-bridge modular multilevel converter, the calculation expression for the number of sub-modules of the upper and lower bridge arms that need to be switched is:
[0022]
[0023] Where n + is the number of submodules required for the upper bridge arm, n -is the number of sub-modules required for the lower bridge arm, N is the number of bridge arm sub-module cascades, m_Regf is the modulation wave sent from the host computer to the FPGA, and Round(·) is the rounding function;
[0024] If the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, the calculation expression for the required switching number of the bridge arm submodule is:
[0025] n=Round(m_Ref)
[0026] Where n is the number of bridge arm submodules that need to be switched on and off.
[0027] Furthermore, the process of sorting the voltages of the bridge arm submodules from small to large is specifically as follows:
[0028] If the set model symbol corresponds to a half-bridge modular multilevel converter or a full-bridge modular multilevel converter, the submodule voltages of the six bridge arms are sorted from small to large;
[0029] If the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, the submodule voltages of the three bridge arms are sorted from small to large.
[0030] Furthermore, before generating the PWM signal of each bridge arm submodule, the following settings are pre-set:
[0031] The PWM signals of each bridge arm submodule of the multi-level system are set to four PWM signals PWM_U1, PWM_L1, PWM_U2, and PWM_L2. The high level of the switch tube is represented as 1, and the low level of the switch tube is represented as 0.
[0032] Furthermore, the process of generating the PWM signal of each bridge arm submodule is specifically as follows:
[0033] If the set model symbol corresponds to a half-bridge modular multilevel converter, PWM_U1 and PWM_L1 are used, PWM_U2 and PWM_L2 are not used, and the default is low level; if the current of the bridge arm submodule is greater than zero at this moment, the bridge arm submodule with a higher voltage ranking is selected for use, and the corresponding PWM_U1 and PWM_L1 are represented as 1 and 0 respectively; the other bridge arm submodules are removed, and the corresponding PWM_U1 and PWM_L1 are represented as 0 and 1 respectively; if the current of the bridge arm submodule is less than zero at this moment, the bridge arm submodule with a lower voltage ranking is selected for use, and the corresponding PWM_U1 and PWM_L1 are represented as 1 and 0 respectively; the other bridge arm submodules are removed, and the corresponding PWM_U1 and PWM_L1 are represented as 0 and 1 respectively;
[0034] If the set model symbol corresponds to a full-bridge modular multilevel converter, PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are used; if the current of the bridge arm submodule is greater than zero at this moment, the bridge arm submodule with a higher voltage ranking is selected and put into use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 0, 1, 0, 1 or 1, 0, 1, and 0 respectively; if the current of the bridge arm submodule is less than zero at this moment, the bridge arm submodule with a lower voltage ranking is selected and put into use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 0, 1, 0, 1 or 1, 0, 1, and 0 respectively.
[0035] Furthermore, the process of generating the PWM signal of each bridge arm submodule is specifically as follows:
[0036] If the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are used; if the modulation wave is greater than zero and the current of the bridge arm submodule is greater than zero at this moment, the bridge arm submodule with the highest voltage ranking is selected for use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 0, and 1 respectively;
[0037] If the modulation wave is greater than zero and the bridge arm submodule current is less than zero at this moment, the bridge arm submodule with the lower voltage ranking is selected for use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 0, and 1 respectively;
[0038] If the modulation wave is less than zero and the bridge arm submodule current is greater than zero at this moment, the bridge arm submodule with the lower voltage ranking is selected for use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 1, and 0 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 1, and 0 respectively;
[0039] If the modulation wave is less than zero and the bridge arm sub-module current is less than zero at this moment, the bridge arm sub-module with the highest voltage ranking is selected and put into use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 1, and 0 respectively; the remaining sub-modules are cut off, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 1, and 0 respectively.
[0040] Furthermore, the generation process of the PWM signal of each bridge arm submodule is processed in parallel;
[0041] The generated PWM signal is transmitted through optical fiber, and each PWM signal is combined into multiple bits of data, which are transmitted to the multilevel system through the corresponding effective optical fiber port; if the set model symbol corresponds to a half-bridge modular multilevel converter or a full-bridge modular multilevel converter, six effective optical fiber ports are selected for data transmission respectively; if the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, three effective optical fiber ports are selected for data transmission respectively.
[0042] The present invention also provides a multi-level system unified control device based on FPGA, comprising:
[0043] The host computer is used to configure the multi-level system application model, the number of module cascades, the modulation mode and modulation parameters;
[0044] FPGA, used to execute the above-mentioned FPGA-based multi-level system unified control method;
[0045] A multi-level system is used to control according to the PWM signal transmitted by the FPGA and to feed back data to the FPGA.
[0046] Compared with the prior art, the present invention has the following advantages:
[0047] (1) The present invention sets the multi-level system application model, the number of module cascades and the modulation mode in advance through the host computer and transmits them to the bottom FPGA. When the bottom FPGA receives a large amount of system data for processing, the corresponding calculation logic strategy can be configured through the data information pre-configured by the host computer to realize the calculation of the number of switching sub-modules of the multi-level system, voltage sequencing, and the generation and transmission of PWM signals according to different multi-level system application models and modulation modes, thereby ensuring the normal operation of the multi-level system, supporting the multi-level system model with any cascade number of sub-modules, and also supporting the switching of two classic PWM modulation methods and the interaction of optical fiber information.
[0048] (2) The present invention uses an FPGA-based method to realize the control of three multi-level systems by one controller. At the same time, for users, only configuration is required, such as setting the number of sub-module cascades, PWM modulation type and other information to use this controller, and no FPGA programming is required. This can quickly improve the efficiency of engineers in developing multi-level system algorithms for different application fields and reduce the errors and defects existing in the early development of controllers. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic flow chart of a unified control method for a multi-level system based on FPGA provided in an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of configuration information of a host computer provided in an embodiment of the present invention;
[0051] Figure 3 A schematic diagram of a multi-level system control flow based on FPGA provided in an embodiment of the present invention;
[0052] Figure 4a A graph of phase A voltage and current of a power grid sampled for a multi-level controller test provided in an embodiment of the present invention;
[0053] Figure 4b A cascaded H-bridge capacitor voltage diagram sampled for testing a multi-level controller provided in an embodiment of the present invention;
[0054] Figure 4c A diagram of bridge arm voltages sampled for testing a multi-level controller provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0056] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0058] Example 1
[0059] This embodiment provides a unified control method for a multi-level system based on FPGA, which is used to output a control signal of the multi-level system through FPGA, including the following steps:
[0060] Receive the multi-level system application model Type, module cascade number N_sum, modulation mode Mode and modulation parameters configured by the host computer;
[0061] Receive multi-level system data, including voltage, current and status of each bridge arm submodule;
[0062] According to the modulation mode configured by the host computer, select carrier phase shift modulation or nearest level modulation to determine the modulation mode of the control system;
[0063] According to the multi-level system application model Type configured by the host computer, the multi-level application type is determined, so as to sort the voltages of each bridge arm sub-module from small to large, and determine the switching number of each bridge arm sub-module;
[0064] According to the multi-level system application model Type configured by the host computer, the current flow direction of the bridge arm, the voltage sequence of the submodules and the number of switching are modulated to generate the PWM signal of each bridge arm submodule;
[0065] The PWM signals of each bridge arm submodule are framed, distributed to each communication interface, and transmitted to the multi-level system for control.
[0066] The multilevel system application model is set up by selecting from several preset model symbols to represent a half-bridge modular multilevel converter (half-bridge MMC), a full-bridge modular multilevel converter (full-bridge MMC), a chain-type static VAR compensator (SVG), or a high-voltage direct-mounted power storage (HVPCS);
[0067] The module cascade number is set to any number between 0 and 512 according to the actual cascade number of the multi-level system;
[0068] The modulation mode is set by selecting among a plurality of preset modulation symbols to represent carrier phase shift modulation and nearest level modulation;
[0069] The modulation parameters include the preset triangular carrier frequency, phase shift angle and other initialization data, and the modulation wave and enable signal of each bridge arm submodule sent by the CPU in real time.
[0070] like Figure 1As shown, in this embodiment, the following steps are specifically included:
[0071] S1: Configure the main information of the multi-level system application model Type, module cascade number N_sum, modulation mode Mode, triangular carrier frequency Freq and phase shift angle through the host computer;
[0072] The multilevel system application model Type includes three multilevel applications: modular multilevel converter (MMC), chain static VAR compensator (SVG), and high-voltage direct-mounted energy storage (HVPCS); the host computer configuration information modulation mode Mode can be set to carrier phase shift modulation and nearest level modulation; specifically:
[0073] If the user configuration information Type is set to 00, the multi-level application is selected as half-bridge MMC. If the user configuration information Type is set to 01, the multi-level application is selected as full-bridge MMC. If the user configuration information Type is set to 10, the multi-level application is selected as chain SVG. If the user configuration information Type is set to 20, the multi-level application is selected as HVPCS.
[0074] For multi-level system applications with less than 100 submodules, both CPSPWM and NLM modulation modes can be supported. For multi-level applications with more than 100 submodules, only NLM modulation mode is supported. If the user configuration information Mode is set to 0, the selected modulation mode is carrier phase shift modulation. If the user configuration information Mode is set to 1, the selected modulation mode is nearest level modulation. The above content can realize the configuration information function without additional FPGA compilation after the host computer completes the configuration.
[0075] S2: The data sent by the host computer CPU obtained by FPGA mainly includes system model Type, module cascade number N_sum, modulation mode Mode, triangular carrier frequency Freq and phase shift angle θ, modulation wave m_ref of each bridge arm, and enable signal Enable of each submodule;
[0076] The data information exchanged between FPGA and CPU can be divided into two categories: 1. System model Type, module cascade number N_sum, modulation mode Mode, triangular carrier frequency Freq and phase shift angle θ are pre-configured information of the host computer and cannot be changed after the controller is running; 2. The modulation wave m_ref of each bridge arm and the enable signal Enable of each sub-module are real-time data information of the CPU. After the controller is running, it can interact with FPGA in real time.
[0077] S3: Figure 3As shown, FPGA receives a large amount of system data transmitted by optical fiber, mainly including the voltage of each bridge arm submodule, the current of each bridge arm and the submodule status, and deframes the optical fiber signal;
[0078] The optical fiber data transmitted by the FPGA receiving device mainly includes the system bridge arm submodule voltage, bridge arm current and submodule status information. These data are framed and transmitted according to the designed frame format. After receiving these signals, the FPGA deframes them according to the designed frame format.
[0079] S4: Figure 3 As shown, the modulation mode is switched according to the modulation mode Mode configured by the host computer, and the switching number N_num of the system submodules at this moment is calculated;
[0080] If the configuration information modulation mode Mode is set to 0, the carrier phase shift modulation is entered, and the FPGA will receive the real-time modulation wave m_ref and N_sum with the same phase difference θ=2π / N sum The arranged triangular carriers are compared to obtain the control pulse square wave for each submodule. These pulse waves control the input and removal of the submodules. After superimposing the output levels of the submodules, a step wave similar to a sine wave can be obtained, and the compared signals are summed to calculate the required number of submodules to be switched on and off at this time N_num. The frequency of the triangular carrier can be set to Freq = 200-2000Hz, and the phase shift angle of the triangular carrier is θ = 2π / N sum , frequency and phase shift angle can be pre-configured on the host computer.
[0081] If the configuration information modulation mode Mode is set to 1, the nearest level modulation is used. The modulation wave m_ref received in real time by FPGA is calculated according to different multi-level application calculation methods to calculate the number of switching N_num required for the submodule at this time. The specific calculation method is as follows:
[0082] If the user configuration information Type is set to 00 and 01, the multi-level application is selected as half-bridge MMC and full-bridge MMC, corresponding to six bridge arms. Taking phase A as an example, if the upper and lower bridge arms of the MMC have N sub-modules respectively, the number of sub-modules of the upper and lower bridge arms required to be switched is determined by calculation, and the number of upper and lower bridge arms required for modulation at each moment is shown in formula (1) and formula (2):
[0083]
[0084] Where n + is the number of submodules required for the upper bridge arm, n -is the number of sub-modules required for the lower bridge arm, N is the number of bridge arm sub-module cascades, m_Ref is the modulation wave sent from the host computer to the FPGA, and its value range is -N to N, and Round(·) is the rounding function;
[0085] If the user configuration information Type is set to 10 and 20, the chain SVG and high-voltage direct-mounted energy storage HVPCS are selected, and the required switching number of submodules is calculated as shown in formula (3):
[0086] n=Round(m_Ref) (3)
[0087] Where n is the number of switching on and off of the bridge arm submodules required; m_Ref is the modulation wave sent from the host computer to the FPGA, and its value range is -N to N; Round(·) is the rounding function.
[0088] S5: sorting the capacitor voltages of the bridge arm submodules transmitted by the optical fiber from small to large.
[0089] The capacitor voltages of each bridge arm submodule transmitted by the optical fiber are sorted from small to large.
[0090] If the multi-level application type is MMC, there are a total of six bridge arms in the three-phase ABC. The FPGA needs to sort the submodule voltages of the six bridge arms from small to large, and record and store the sorted serial numbers of the corresponding submodules.
[0091] If the multi-level application type is chain SVG or HVPCS, there are three bridge arms in total for the three phases ABC. The FPGA needs to sort the submodule voltages of the three bridge arms from small to large, and record and store the sequence numbers of the corresponding submodules after sorting; the submodule voltage sorting process of each bridge arm is processed in parallel on the FPGA.
[0092] S6: Modulate the current direction of the bridge arm, the voltage sequence of each submodule, and the number of submodules switched in the system to generate PWM signals for each submodule;
[0093] S601: The PWM signals of each submodule of the level system application model are designed as four PWM signals: PWM_U1, PWM_L1, PWM_U2, and PWM_L2. In this solution, the high level of the switch tube is represented by 1, and the low level of the switch tube is represented by 0;
[0094] If the user configuration information Type is set to 00, and the multi-level application type is half-bridge MMC, then the PWM signals of each sub-module are obtained according to the flow direction of the bridge arm, the number of sub-modules switched on and off, and the sub-module voltage sorting results: PWM_U1 and PWM_L1, PWM_U2, PWM_L2 are not used, and the default is low level; if the bridge arm current is greater than zero at this moment, the N_num sub-modules with the highest voltage sorting are put into use, and PWM_U1 and PWM_L1 represent 1 and 0; the remaining sub-modules are removed, and PWM_U1 and PWM_L1 represent 0 and 1; if the bridge arm current is less than zero at this moment, the N_num sub-modules with the lowest voltage sorting are put into use, and PWM_U1 and PWM_L1 represent 1 and 0; the remaining sub-modules are removed, and PWM_U1 and PWM_L1 represent 0 and 1;
[0095] S602: If the user configuration information Type is set to 01, and the multi-level application type is full-bridge MMC, then according to the flow direction of the bridge arm, the number of sub-modules switched on and off, and the sub-module voltage sorting result, the PWM signals of each sub-module are obtained: PWM_U1, PWM_L1, PWM_U2, PWM_L2; if the bridge arm current is greater than zero at this moment, the N_num sub-modules with the highest voltage sorting are put into operation, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 represent 1, 0, 0, 1; the remaining sub-modules are removed, and PWM_U1 and PWM_L1 represent 0, 1, 0, 1 or 1, 0, 1, 0; if the bridge arm current is less than zero at this moment, the N_num sub-modules with the lowest voltage sorting are put into operation, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 represent 1, 0, 0, 1; the remaining sub-modules are removed, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 represent 0, 1, 0, 1 or 1, 0, 1, 0;
[0096] S603: If the user configuration information Type is set to 10 or 20, and the multi-level application type is chain SVG or high-voltage direct-hung energy storage, then according to the flow direction of the bridge arm, the number of sub-modules switched, and the sub-module voltage sorting results, the PWM signals of each sub-module are obtained: PWM_U1, PWM_L1, PWM_U2, PWM_L2; if the modulation wave is greater than zero and the bridge arm current is greater than zero at this moment, the N_num sub-modules with the highest voltage sorting are put into operation, and PWM_U1, PWM_L1, PWM_U2, PWM_L2 represent 1, 0, 0, 1; the remaining sub-modules are cut off, and PWM_U1, PWM_L1, PWM_U2, PWM_L2 represent 0, 1, 0, 1; if the modulation wave is greater than zero and the bridge arm current is less than zero at this moment, the N_num sub-modules with the lowest voltage sorting are put into operation, and PWM_U1, PWM_L1, PWM_U2, PWM_L2 represent 0, 1, 0, 1. 2 is represented by 1, 0, 0, 1; the remaining sub-modules are removed, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented by 0, 1, 0, 1; if the modulation wave is less than zero and the bridge arm current is greater than zero at this moment, the N_num sub-modules with the later voltage ranking are put into use, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented by 0, 1, 1, 0; the remaining sub-modules are removed, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented by 1, 0, 1, 0; if the modulation wave is less than zero and the bridge arm current is less than zero at this moment, the N_num sub-modules with the earlier voltage ranking are put into use, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented by 0, 1, 1, 0; the remaining sub-modules are removed, and PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented by 1, 0, 1, 0;
[0097] Preferably, the sub-module PWM signal generation units of each bridge arm are processed in parallel on the FPGA.
[0098] S7: Figure 3 As shown, the PWM signals of each bridge arm submodule are framed and allocated to each optical fiber port. The PWM signals of the bridge arm submodules are framed, and the PWM signals of four submodule units form a 32-bit data, a total of 128 32-bit data, which are sent to external devices via optical fiber. The device has a total of 6 effective optical fiber ports: port0, port1, port2, port3, port4, port5, of which six ports are required for the six bridge arms of MMC, and the first three optical fiber ports are required for the three-phase chain SVG and HVPCS.
[0099] Experimental results analysis:
[0100] The performance of the multilevel controller is verified by using a chain SVG multilevel application. The simulation model parameters are: three-phase grid voltage is 35kV, grid frequency is 50Hz, chain SVG level is 40, grid-side inductance parameter is 9mH, and capacitance parameter is 10000uF.
[0101] The multi-level system control device provided by the solution replaces the manufacturer's actual SVG control cabinet to run the SVG control algorithm and send out PWM signals to control the chain SVG system; the chain SVG and the multi-level system control device provided by the patent exchange data information through optical fiber to realize the control of the chain SVG system.
[0102] Figure 4a-4c They are the grid A phase voltage and current, cascaded H-bridge capacitor voltage, and bridge arm terminal voltage sampled by the oscilloscope. Figure 4a , 4b , 4c, it can be obtained that the reactive power regulation response of the 40-level chain SVG system is faster, the module capacitor voltage is better balanced, and the voltage at the bridge arm end presents a step-shaped voltage waveform. The patented multi-level system unified method can be used to effectively control and debug the chain SVG system.
[0103] Example 2
[0104] This embodiment provides a multi-level system unified control device based on FPGA, including:
[0105] The host computer is used to configure the multi-level system application model, the number of module cascades, the modulation mode and modulation parameters;
[0106] FPGA, used to execute a FPGA-based multi-level system unified control method in embodiment 1;
[0107] A multi-level system is used to control according to the PWM signal transmitted by the FPGA and to feed back data to the FPGA.
[0108] It should be noted that the specific content and beneficial effects of the device of the present application can be found in the above-mentioned method embodiment, which will not be repeated here.
[0109] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A unified control method for a multi-level system based on FPGA, characterized in that: The method is used to output a control signal of a multi-level system through an FPGA, comprising the following steps: Receiving the multi-level system application model, module cascade number, modulation mode and modulation parameters configured by the host computer; Receive multi-level system data, including voltage, current and status of each bridge arm submodule; According to the modulation mode configured by the host computer, select carrier phase shift modulation or nearest level modulation to determine the modulation mode of the control system; According to the multi-level system application model configured by the host computer, the multi-level application type is determined, so as to sort the voltages of each bridge arm submodule from small to large, and determine the switching number of each bridge arm submodule; According to the multi-level system application model configured by the host computer, the PWM signal of each bridge arm submodule is generated by combining the bridge arm modulation wave, bridge arm current flow direction, voltage sequencing and switching number; The PWM signals of each bridge arm submodule are framed, distributed to each communication interface, and transmitted to the multi-level system for control.
2. The FPGA-based multi-level system unified control method according to claim 1, characterized in that: The multilevel system application model is set by selecting from a plurality of preset model symbols to represent a half-bridge modular multilevel converter, a full-bridge modular multilevel converter, a chain static VAR compensator or a high-voltage direct-mounted energy storage; The module cascade number is set to any number between 0 and 512 according to the actual cascade number of the multi-level system; The modulation mode is set by selecting from a plurality of preset modulation symbols to represent carrier phase shift modulation and nearest level modulation; The modulation parameters include the preset triangular carrier frequency and phase shift angle, the modulation wave and enable signal of each bridge arm submodule sent by the CPU in real time.
3. The FPGA-based multi-level system unified control method according to claim 2, characterized in that: The process of determining the switching number of each bridge arm submodule is specifically as follows: If the configured modulation symbol corresponds to carrier phase shift modulation, the received modulation wave is compared with the preset triangular carrier respectively, so as to obtain a control pulse square wave for controlling each bridge arm submodule, and the level output by the bridge arm submodule is superimposed to obtain a step wave, and the compared signals are summed to calculate the required switching number of the bridge arm submodule; If the configured modulation symbol corresponds to the nearest level modulation, the required switching number of the bridge arm submodules is calculated according to the multi-level system application model corresponding to the set model symbol for the modulation wave received in real time.
4. The FPGA-based multi-level system unified control method according to claim 3, characterized in that: The calculation process of the required switching number of the bridge arm submodules corresponding to the latest level modulation is specifically as follows: If the set model symbol corresponds to a half-bridge modular multilevel converter or a full-bridge modular multilevel converter, the calculation expression for the number of sub-modules of the upper and lower bridge arms that need to be switched is: Where n + is the number of submodules required for the upper bridge arm, n - is the number of sub-modules required for the lower bridge arm, N is the number of bridge arm sub-module cascades, m_Ref is the modulation wave sent from the host computer to the FPGA, and Round(·) is the rounding function; If the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, the calculation expression for the required switching number of the bridge arm submodule is: n=Round(m_Ref) Where n is the number of bridge arm submodules that need to be switched on and off.
5. The FPGA-based multi-level system unified control method according to claim 2, characterized in that: The process of sorting the voltages of the bridge arm submodules from small to large is specifically as follows: If the set model symbol corresponds to a half-bridge modular multilevel converter or a full-bridge modular multilevel converter, the submodule voltages of the six bridge arms are sorted from small to large; If the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, the submodule voltages of the three bridge arms are sorted from small to large.
6. The FPGA-based multi-level system unified control method according to claim 2, characterized in that: Before generating the PWM signal of each bridge arm submodule, pre-set: The PWM signals of each bridge arm submodule of the multi-level system are set to four PWM signals PWM_U1, PWM_L1, PWM_U2, and PWM_L2. The high level of the switch tube is represented as 1, and the low level of the switch tube is represented as 0.
7. The FPGA-based multi-level system unified control method according to claim 6, characterized in that: The process of generating the PWM signal of each bridge arm submodule is specifically as follows: If the set model symbol corresponds to a half-bridge modular multilevel converter, PWM_U1 and PWM_L1 are used, PWM_U2 and PWM_L2 are not used, and the default is low level; if the current of the bridge arm submodule is greater than zero at this moment, the bridge arm submodule with a higher voltage ranking is selected for use, and the corresponding PWM_U1 and PWM_L1 are represented as 1 and 0 respectively; the other bridge arm submodules are removed, and the corresponding PWM_U1 and PWM_L1 are represented as 0 and 1 respectively; if the current of the bridge arm submodule is less than zero at this moment, the bridge arm submodule with a lower voltage ranking is selected for use, and the corresponding PWM_U1 and PWM_L1 are represented as 1 and 0 respectively; the other bridge arm submodules are removed, and the corresponding PWM_U1 and PWM_L1 are represented as 0 and 1 respectively; If the set model symbol corresponds to a full-bridge modular multilevel converter, PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are used; if the current of the bridge arm submodule is greater than zero at this moment, the bridge arm submodule with a higher voltage ranking is selected and put into use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 0, 1, 0, 1 or 1, 0, 1, and 0 respectively; if the current of the bridge arm submodule is less than zero at this moment, the bridge arm submodule with a lower voltage ranking is selected and put into use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are expressed as 0, 1, 0, 1 or 1, 0, 1, and 0 respectively.
8. The FPGA-based multi-level system unified control method according to claim 6, characterized in that: The process of generating the PWM signal of each bridge arm submodule is specifically as follows: If the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are used; if the modulation wave is greater than zero and the current of the bridge arm submodule is greater than zero at this moment, the bridge arm submodule with the highest voltage ranking is selected for use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 0, and 1 respectively; If the modulation wave is greater than zero and the bridge arm submodule current is less than zero at this moment, the bridge arm submodule with the lower voltage ranking is selected for use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 0, and 1 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 0, and 1 respectively; If the modulation wave is less than zero and the bridge arm submodule current is greater than zero at this moment, the bridge arm submodule with the lower voltage ranking is selected for use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 1, and 0 respectively; the remaining submodules are removed, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 1, and 0 respectively; If the modulation wave is less than zero and the bridge arm sub-module current is less than zero at this moment, the bridge arm sub-module with the highest voltage ranking is selected and put into use, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 0, 1, 1, and 0 respectively; the remaining sub-modules are cut off, and the corresponding PWM_U1, PWM_L1, PWM_U2, and PWM_L2 are represented as 1, 0, 1, and 0 respectively.
9. The FPGA-based multi-level system unified control method according to claim 1, characterized in that: The generation process of the PWM signal of each bridge arm submodule is processed in parallel; The generated PWM signal is transmitted through optical fiber, and each PWM signal is combined into multiple bits of data, which are transmitted to the multilevel system through the corresponding effective optical fiber port; if the set model symbol corresponds to a half-bridge modular multilevel converter or a full-bridge modular multilevel converter, six effective optical fiber ports are selected for data transmission respectively; if the set model symbol corresponds to a chain static VAR compensator or a high-voltage direct-mounted energy storage, three effective optical fiber ports are selected for data transmission respectively.
10. A multi-level system unified control device based on FPGA, characterized in that: include: The host computer is used to configure the multi-level system application model, the number of module cascades, the modulation mode and modulation parameters; FPGA, used to execute the FPGA-based multi-level system unified control method as described in any one of claims 1 to 9; A multi-level system is used to control according to the PWM signal transmitted by the FPGA and to feed back data to the FPGA.
