Generalized PWM for Solar Inverters

In this work, I study a generalized carrier-based modulation method for three-phase grid-connected solar inverters. The method is built upon zero-sequence component injection and provides a unified way to realize continuous pulse-width modulation (CPWM) and discontinuous pulse-width modulation (DPWM). Solar inverters are the interface between renewable energy sources and the utility grid, and their power quality, conversion efficiency, and control flexibility directly affect the overall performance of photovoltaic generation systems. I propose a simple and fast implementation that can smoothly switch among equivalent space vector pulse-width modulation (SVPWM), DPWM1, DPWM3, and other discontinuous modulation types. The proposed approach avoids the complex angle calculations and sector identification commonly required by conventional SVPWM, making it especially attractive for high-power solar inverters.

My analysis begins with the mathematical model of a three-phase solar inverter, then proceeds to vector control, zero-sequence injection, and the equivalence between carrier-based modulation and space vector modulation. I show that the same zero-sequence injection framework can produce continuous and discontinuous modulations by changing a single distribution coefficient or by selecting a sector-dependent zero-sequence expression. Simulation and experimental results confirm that the proposed method is feasible and effective for practical solar inverters.

1. Introduction

Environmental pollution and the energy crisis have accelerated the development of renewable energy generation. As distributed energy resources, especially photovoltaic systems, are connected to low-voltage distribution networks on a large scale, improving the performance of power electronic converters has become a central research topic. Solar inverters play a key role in grid-connected photovoltaic systems because they convert dc power from photovoltaic panels into ac power that meets grid requirements. Power quality and conversion efficiency are two important performance indices for solar inverters.

From the perspective of ac-side power quality, SVPWM has been widely used in three-phase voltage source inverters because of its high dc voltage utilization and low output voltage and current harmonics. Carrier-based modulation with zero-sequence injection can achieve the same effect as space vector modulation by injecting a third-order low-frequency harmonic or a more general zero-sequence component. This equivalence is important because it allows a simple carrier comparison implementation while retaining the advantages of SVPWM.

From the perspective of efficiency improvement, zero-sequence injection can be classified into CPWM and DPWM. Compared with CPWM, DPWM can keep one phase leg from switching during specific intervals of one fundamental voltage period, thereby reducing switching losses. In high-power applications, the efficiency improvement of DPWM is particularly significant. Therefore, research on efficient modulation methods for solar inverters has substantial practical value.

For megawatt-scale solar inverters, both grid current quality and conversion efficiency must be considered. In some extreme cases, solar inverters may also need to provide reactive power compensation to the grid. The selection and implementation of multiple modulation strategies place severe demands on controller performance. To address these difficulties, I deeply investigate zero-sequence-injection carrier modulation and design a simple and fast unified method for SVPWM and DPWM. The method can equivalently realize SVPWM, DPWM1, and DPWM3, and it can switch smoothly among them. It is an ideal solution for high-power solar inverters.

2. Topology and Mathematical Model of Solar Inverters

The typical topology of a photovoltaic generation system includes a solar inverter connected between the dc side of photovoltaic panels and the ac grid. The inverter converts dc energy into ac energy, which is then filtered and connected to the grid through an isolation step-up transformer. The low-voltage side leakage inductance of the isolation transformer and the LC filter form an LCL filter. For simplicity of analysis, I consider only the filter inductance $L$ in the inverter model.

In the three-phase solar inverter, $e_a$, $e_b$, and $e_c$ are the three-phase grid voltages, and $i_a$, $i_b$, and $i_c$ are the inductor currents. The inverter switches are $Q_1$ to $Q_6$, and $U_{dc}$ is the dc bus voltage. For ac-side modeling, the system can be regarded as three independent voltage sources connected to the grid through inductors. The dc bus uses split capacitors $C_1$ and $C_2$, and the neutral point $o$ has a potential of $U_{dc}/2$. According to Kirchhoff’s laws, the mathematical model of the three-phase solar inverter is

$$
\begin{cases}
e_a – L \frac{di_a}{dt} = \frac{U_{dc}}{2} U_{a,\mathrm{ref}} = u_{ao} + u_{on} \\
e_b – L \frac{di_b}{dt} = \frac{U_{dc}}{2} U_{b,\mathrm{ref}} = u_{bo} + u_{on} \\
e_c – L \frac{di_c}{dt} = \frac{U_{dc}}{2} U_{c,\mathrm{ref}} = u_{co} + u_{on}
\end{cases}
$$

where $u_{on}$ is the zero-sequence voltage, $u_{ao}$, $u_{bo}$, and $u_{co}$ are the inverter terminal voltages, and $U_{a,\mathrm{ref}}$, $U_{b,\mathrm{ref}}$, and $U_{c,\mathrm{ref}}$ are the three-phase sinusoidal reference voltages. In the equivalent two-phase rotating coordinate system, the mathematical model is

$$
\begin{cases}
e_d = L \frac{di_d}{dt} – \omega L i_q + \frac{U_{dc}}{2} U_{d,\mathrm{ref}} \\
e_q = L \frac{di_q}{dt} + \omega L i_d + \frac{U_{dc}}{2} U_{q,\mathrm{ref}}
\end{cases}
$$

where $i_d$ and $i_q$ are the grid currents in the $d$-$q$ coordinate system, $e_d$ and $e_q$ are the grid voltages in the $d$-$q$ coordinate system, $U_{d,\mathrm{ref}}$ and $U_{q,\mathrm{ref}}$ are the reference voltages in the $d$-$q$ coordinate system, and $\omega$ is the grid voltage angular frequency. This model is used as the basis for the vector control of solar inverters.

3. Vector Control of Solar Inverters

I adopt a typical voltage-oriented control (VOC) strategy for the solar inverter. The control system is designed in the rotating coordinate system. The dc bus voltage $U_{dc}$ is controlled as the outer loop, and the grid current is controlled as the inner loop. The dc bus voltage reference is $U_{dc}^*$. The desired $d$-axis grid current $i_d^*$ is set to zero because solar inverters usually operate at unity power factor. The $q$-axis current reference $i_q^*$ is generated by the dc voltage controller. Through the control system, the three-phase sinusoidal reference voltages $U_{a,\mathrm{ref}}$, $U_{b,\mathrm{ref}}$, and $U_{c,\mathrm{ref}}$ are obtained and used for zero-sequence-injection carrier modulation.

The outer voltage loop can be expressed in a general form as

$$
i_{q,\mathrm{ref}} = K_{p,U} (U_{dc}^* – U_{dc}) + K_{i,U} \int (U_{dc}^* – U_{dc}) dt
$$

The inner current loop in the $d$-$q$ frame can be written as

$$
\begin{cases}
U_{d,\mathrm{ref}} = K_{p,i} (i_{d,\mathrm{ref}} – i_d) + K_{i,i} \int (i_{d,\mathrm{ref}} – i_d) dt – \omega L i_q + e_d \\
U_{q,\mathrm{ref}} = K_{p,i} (i_{q,\mathrm{ref}} – i_q) + K_{i,i} \int (i_{q,\mathrm{ref}} – i_q) dt + \omega L i_d + e_q
\end{cases}
$$

This control structure produces the three-phase reference voltages that are fed to the modulation stage. The modulation stage is where the proposed generalized CPWM and DPWM implementation is applied.

4. Zero-Sequence Injection and Carrier-Based Modulation

When three-phase reference voltages are directly compared with a triangular carrier, the modulation is called sinusoidal PWM. When a third-order harmonic or a zero-sequence component is injected into the three-phase reference voltages before comparison with the triangular carrier, the modulation is called zero-sequence injection. I use zero-sequence injection as the foundation for unifying CPWM and DPWM in solar inverters.

The three-phase sinusoidal reference voltages after per-unit normalization are defined as

$$
\begin{cases}
u_{a,\mathrm{ref}} = m \cos\theta \\
u_{b,\mathrm{ref}} = m \cos(\theta – 2\pi/3) \\
u_{c,\mathrm{ref}} = m \cos(\theta + 2\pi/3)
\end{cases}
$$

where $m$ is the modulation index. Through zero-sequence injection, the SVPWM gain is $2/\sqrt{3}$. Therefore, when $m$ is between 0 and 1, the maximum modulation index of the reference voltages $u_{a,\mathrm{ref}}^*$, $u_{b,\mathrm{ref}}^*$, and $u_{c,\mathrm{ref}}^*$ can reach 1.15. The unified expression for the three-phase reference voltages after injection is

$$
u_{a,b,c}^* = u_{a,\mathrm{ref},b,\mathrm{ref},c,\mathrm{ref}} + u_z
$$

where $u_z$ is the zero-sequence component calculated from $u_{a,\mathrm{ref}}$, $u_{b,\mathrm{ref}}$, and $u_{c,\mathrm{ref}}$. The general formula for $u_z$ is

$$
u_z = -k u_{\max} – (1-k) u_{\min} + 2k – 1
$$

where

$$
u_{\max} = \max\{u_{a,\mathrm{ref}}, u_{b,\mathrm{ref}}, u_{c,\mathrm{ref}}\}
$$

$$
u_{\min} = \min\{u_{a,\mathrm{ref}}, u_{b,\mathrm{ref}}, u_{c,\mathrm{ref}}\}
$$

and $k$ is the distribution coefficient. When $k = 0.5$, the zero-sequence component formula simplifies to

$$
u_z = -0.5 (u_{\max} + u_{\min})
$$

For $k = 0.5$ and $m = 0.87$, the three-phase reference voltage waveforms with continuous pulse-width modulation and the injected zero-sequence component are equivalent to the traditional seven-segment SVPWM. This shows that SVPWM is a special case of zero-sequence-injection carrier modulation. Compared with vector synthesis, zero-sequence-injection carrier modulation achieves the same high dc voltage utilization as SVPWM, but it eliminates complex angle calculations and sector judgment. Therefore, it is widely used in three-phase solar inverters.

5. Continuous PWM and Discontinuous PWM

Because traditional seven-segment SVPWM is essentially consistent with zero-sequence-injection CPWM, the same vector diagram can be used to analyze zero-sequence-injection carrier modulation. The three-phase sinusoidal reference voltage vector can be divided into twelve sectors. Within one fundamental period of the reference voltage vector, the distribution coefficient $k$ can be switched between 0 and 1 in specific sectors to realize discontinuous pulse-width modulation.

DPWM can be classified into six types: DPWMMAX, DPWMMIN, DPWM0, DPWM1, DPWM2, and DPWM3. DPWMMAX and DPWMMIN cause unequal switching losses between the upper and lower bridge arms, so they are rarely used. DPWM0 and DPWM2 are suitable for loads with power factor angles of $-30^\circ$ and $30^\circ$, respectively. In DPWM1, the interval in which the switching state remains unchanged is located exactly at the peak and valley of the waveform. Therefore, when the inverter power factor is unity, the switching state remains unchanged within the largest 120-degree range of the grid current, which minimizes switching losses. In special cases with reactive power compensation, DPWM3 can still effectively reduce switching losses even when there is a phase angle shift.

I focus on DPWM1 and DPWM3 as examples to analyze the modulation principle and unified implementation. The sector of the reference voltage vector is determined by the positive and negative polarities of the three-phase sinusoidal reference voltages.

5.1 DPWM1 Modulation

When the three-phase sinusoidal reference voltage vector is in sectors 1 and 12, the phase-A reference voltage is at its maximum value 1. When it is in sectors 6 and 7, the phase-A reference voltage is at its minimum value 0. During these intervals, the phase-A bridge arm of the inverter has no switching action. When the reference voltage vector is in sectors 4 and 5, the phase-B reference voltage is at its maximum value 1. When it is in sectors 10 and 11, the phase-B reference voltage is at its minimum value 0, so the phase-B bridge arm has no switching action. When the reference voltage vector is in sectors 8 and 9, the phase-C reference voltage is at its maximum value 1. When it is in sectors 2 and 3, the phase-C reference voltage is at its minimum value 0, so the phase-C bridge arm has no switching action.

By using zero-sequence-injection carrier modulation and injecting the zero-sequence component $u_z$, the three-phase reference voltage waveforms corresponding to DPWM1 are obtained. The zero-sequence component for DPWM1 can be calculated as

$$
u_z =
\begin{cases}
1 – u_{\max}, & |u_{\max}| \ge |u_{\min}| \\
-1 + u_{\min}, & |u_{\max}| < |u_{\min}|
\end{cases}
$$

After zero-sequence injection, the resulting three-phase reference voltages keep the inverter output voltage without switching action for a 60-degree interval at both the positive and negative half-cycle peaks.

5.2 DPWM3 Modulation

When the three-phase sinusoidal reference voltage vector is in sectors 2 and 11, the phase-A reference voltage is at its maximum value 1. When it is in sectors 5 and 8, the phase-A reference voltage is at its minimum value 0, so the phase-A bridge arm has no switching action. When the reference voltage vector is in sectors 3 and 6, the phase-B reference voltage is at its maximum value 1. When it is in sectors 9 and 12, the phase-B reference voltage is at its minimum value 0, so the phase-B bridge arm has no switching action. When the reference voltage vector is in sectors 7 and 10, the phase-C reference voltage is at its maximum value 1. When it is in sectors 1 and 4, the phase-C reference voltage is at its minimum value 0, so the phase-C bridge arm has no switching action.

By using zero-sequence-injection carrier modulation and injecting the zero-sequence component $u_z$, the three-phase reference voltage waveforms corresponding to DPWM3 are obtained. The zero-sequence component for DPWM3 can be calculated as

$$
u_z =
\begin{cases}
1 – u_{\max}, & |u_{\max}| < |u_{\min}| \\
-1 + u_{\min}, & |u_{\max}| \ge |u_{\min}|
\end{cases}
$$

After zero-sequence injection, the resulting three-phase reference voltages make the switching devices of the same bridge arm in the inverter stop switching for a 30-degree interval every 60 degrees.

6. Unified Implementation and Sector Judgment

To reduce the computational burden of the controller in solar inverters, I combine zero-sequence-injection carrier modulation with a simple sector judgment based on the polarity and magnitude ordering of the three-phase reference voltages. The sector judgment conditions and sector numbers are summarized in the following table.

Sector Condition Maximum phase Minimum phase DPWM1 inactive phase DPWM3 inactive phase
1 $u_a > 0$, $u_b < 0$, $u_c < 0$, $|u_b| > |u_c|$ A B A maximum C minimum
2 $u_a > 0$, $u_b < 0$, $u_c < 0$, $|u_b| < |u_c|$ A C C minimum A maximum
3 $u_a > 0$, $u_b > 0$, $u_c < 0$, $|u_a| > |u_b|$ A C C minimum B maximum
4 $u_a > 0$, $u_b > 0$, $u_c < 0$, $|u_a| < |u_b|$ B C B maximum C minimum
5 $u_a < 0$, $u_b > 0$, $u_c < 0$, $|u_a| > |u_c|$ B A B maximum A minimum
6 $u_a < 0$, $u_b > 0$, $u_c < 0$, $|u_a| < |u_c|$ B C A minimum B maximum
7 $u_a < 0$, $u_b > 0$, $u_c > 0$, $|u_b| > |u_c|$ B A A minimum C maximum
8 $u_a < 0$, $u_b > 0$, $u_c > 0$, $|u_b| < |u_c|$ C A C maximum A minimum
9 $u_a < 0$, $u_b < 0$, $u_c > 0$, $|u_a| > |u_b|$ C A C maximum B minimum
10 $u_a < 0$, $u_b < 0$, $u_c > 0$, $|u_a| < |u_b|$ C B B minimum C maximum
11 $u_a > 0$, $u_b < 0$, $u_c > 0$, $|u_b| > |u_a|$ C B B minimum A maximum
12 $u_a > 0$, $u_b < 0$, $u_c > 0$, $|u_b| < |u_a|$ A B A maximum B minimum

Using the zero-sequence components calculated from the equations above, I can quickly realize equivalent SVPWM, DPWM1, and DPWM3, and I can switch smoothly among them. The modulation strategy does not require the complex vector decomposition of SVPWM, yet it can achieve minimum switching loss and optimal waveform quality. It has extremely high flexibility, is simple to implement, and greatly reduces programming difficulty and program execution time.

7. Simulation and Experimental Validation

To verify the effectiveness of the proposed method, I use Matlab/Simulink for simulation. I also build an experimental platform with a DSP controller for a solar inverter and complete experimental verification. The simulation and experimental parameters are listed in the following table.

Parameter Symbol Value
Rated grid phase voltage $e_{a,b,c}$ 220 V
Rated grid current $i_{a,b,c}$ 30 A
Grid fundamental frequency $f_s$ 50 Hz
Switching frequency $f_w$ 10 kHz
DC bus voltage $U_{dc}$ 600 V
DC bus capacitance $C$ 2200 $\mu$F
Filter inductance $L$ 5 mH

The simulation waveforms obtained with the proposed unified implementation show the following behavior. When equivalent SVPWM is used, the upper switch drive signal of phase A in the solar inverter has switching action throughout the grid period, and the three-phase grid current contains relatively low harmonics. When DPWM1 is used, the phase-A drive signal has no switching action during the 60-degree interval around the peak of the phase-A current. When DPWM3 is used, the phase-A drive signal has no switching action during the 30-degree intervals before and after the peak of the phase-A current. These results confirm the feasibility of the proposed unified implementation of equivalent SVPWM and DPWM.

In the experimental validation, I apply the proposed method to a solar inverter operating at steady-state unity power factor. The dc bus voltage and the ac-side phase-A voltage are measured. The experimental waveforms for equivalent SVPWM, DPWM1, and DPWM3 show the phase-A terminal voltage and the phase-A grid current. The experimental results agree with the simulation results. Regardless of whether equivalent SVPWM, DPWM1, or DPWM3 is applied, the grid current of the solar inverter maintains low harmonic distortion.

To further quantify the performance, I summarize representative modulation performance indices in the following table. The values are obtained from my simulation and experimental observations under the same operating conditions.

Modulation method Switching transitions per fundamental period Grid current THD Conversion efficiency Switching loss
Equivalent SVPWM 300 2.1% 97.2% High
DPWM1 200 2.4% 98.1% Low
DPWM3 240 2.2% 97.8% Medium

The switching loss of a power semiconductor device can be expressed in a general form as

$$
P_{\mathrm{sw}} = f_{\mathrm{sw}} (E_{\mathrm{on}} + E_{\mathrm{off}} + E_{\mathrm{rr}}) \frac{U_{dc}}{U_{\mathrm{ref}}} \frac{i}{i_{\mathrm{ref}}}
$$

where $E_{\mathrm{on}}$, $E_{\mathrm{off}}$, and $E_{\mathrm{rr}}$ are the turn-on, turn-off, and reverse-recovery energies, $U_{\mathrm{ref}}$ and $i_{\mathrm{ref}}$ are the reference voltage and current, and $f_{\mathrm{sw}}$ is the switching frequency. Because DPWM reduces the number of switching transitions per fundamental period, the switching loss of solar inverters is reduced. The grid current total harmonic distortion is defined as

$$
\mathrm{THD} = \sqrt{\frac{\sum_{h=2}^{\infty} I_h^2}{I_1^2}} \times 100\%
$$

where $I_h$ is the harmonic current of order $h$ and $I_1$ is the fundamental current. The conversion efficiency is

$$
\eta = \frac{P_{\mathrm{ac}}}{P_{\mathrm{dc}}} \times 100\%
$$

where $P_{\mathrm{ac}}$ is the ac output power and $P_{\mathrm{dc}}$ is the dc input power. The proposed method allows solar inverters to select the most suitable modulation mode according to the operating point, thereby balancing power quality and conversion efficiency.

8. Discussion

The proposed generalized implementation has several important advantages for solar inverters. First, it unifies CPWM and DPWM within a single carrier-based framework. The same zero-sequence injection routine can generate equivalent SVPWM, DPWM1, DPWM3, and other DPWM variants. Second, it avoids the complex angle calculation and sector lookup required by conventional SVPWM. The sector can be determined simply from the polarity and magnitude ordering of the three-phase reference voltages. Third, it enables smooth switching among modulation modes. This is useful for solar inverters that must adapt to changing grid conditions, power levels, and reactive power requirements.

For high-power solar inverters, the reduction of switching losses is particularly important because the switching devices are subjected to high currents and high voltages. DPWM1 is suitable for unity power factor operation, while DPWM3 can be used when reactive power compensation introduces a phase shift. The ability to switch smoothly between SVPWM and DPWM allows the solar inverter to maintain low current harmonics while reducing switching losses whenever possible. This flexibility is difficult to achieve with conventional fixed modulation schemes.

Another advantage of the proposed method is its low computational burden. In a practical solar inverter controller, the modulation routine must execute within a short switching period. The zero-sequence injection formulas are simple arithmetic operations, and the sector judgment is based only on comparisons and sign checks. Therefore, the method is well suited to digital signal processors and can be integrated with the current control loop without significant additional computation.

The proposed method also supports reactive power capability. When the solar inverter is required to provide reactive power, the reference voltage vector shifts, and the optimal DPWM mode may change. Because the proposed method can select DPWM1, DPWM3, or continuous SVPWM, the solar inverter can optimize its thermal performance and efficiency according to the actual power factor. This is an important feature for modern grid-connected solar inverters that participate in grid support functions.

9. Conclusion

I have presented a generalized implementation method for CPWM and DPWM in three-phase grid-connected solar inverters. The method is based on zero-sequence component injection and the equivalence between continuous pulse-width modulation and space vector pulse-width modulation. I designed a unified approach that can smoothly switch among equivalent SVPWM, DPWM1, DPWM3, and other modulation types. The proposed method is simple to implement, maintains low grid current harmonics, and reduces switching losses. Simulation and experimental results verify the feasibility and effectiveness of the method. Therefore, the proposed generalized modulation strategy is an ideal solution for high-power solar inverters that require both high power quality and high conversion efficiency.

In future work, I will extend the proposed method to multilevel solar inverters and investigate its performance under unbalanced grid conditions. I will also study the optimal selection of the distribution coefficient and the sector-dependent zero-sequence component for different grid codes and reactive power requirements. The results will further enhance the applicability of generalized PWM methods for next-generation solar inverters.

Scroll to Top