1 Introduction

The fast expansion of the photovoltaic generators (PVG) in the grid raises voltage deviations such as voltage amplitude drop, frequency deviation and higher harmonic components.

The impact of those problems cannot be ignored on the low voltage-level grid because they affect the availability and the reliability of the distributed grid. The main problems of the grid-connected PV systems are the voltage drops which are characterized by the magnitude: the duration and the phase angle jump [1]. The common cause of these faults is principally the short circuits and the start of the large loads.

Some international regulation codes address that PVG should disconnect from the grid in the presence of voltage drops at the PCC [2]. The Germany standard DIN/VDE 0126 specifies that overvoltage higher than 15% and under-voltage lower than 20% must lead to the disconnection of the PVG within 200 ms. In [3,4,5,6,7], it is required that the PVG ceases to energize local loads in the presence of voltage sags and frequency variations. The disconnection of PVG units, with large scale, from the utility network at the first time of the fault is not an optimal approach. Moreover, the repeated disconnections might have a negative impact on components life time and disturbance of the grid. Hence, it is expected for the future PV converters to have much control flexibility by providing intelligent services. Those functionalities constitute an advantageous solution to further reduce the total cost of PV energy and thus an expansion of cost-effective PV systems into the grid [8, 9]. In that case, it is important for the PV systems to provide dynamic grid support in terms of low-voltage ride through (LVRT) [10], in order to stabilize the grid and to avoid loss of a great amount of PV power. Thus, the inverters should stay connected to the grid within a short time and injected some reactive power to support the grid when it presents a voltage dips. As examples, in the German grid code, the PVG should stay connected to the grid when the voltage drops to 0 V in 0.15 s. However, in Italy, any generation systems with power exceeding 6 kW should have LVRT capability [11].

To maintain a stable connection as long as possible of a three-phase grid-connected PV system, under grid disturbances, many control strategies are developed in the literature. They are principally unity power factor control, positive sequence control, constant active power control and constant reactive power control [12,13,14,15,16,17,18]. Those works used many power converter topologies for PV systems such as two-stage [19, 20] or single-stage [20, 21], and with transformer or transformerless [22]. However, the majorities of these papers discussed only the inverter control and omitted the study of the MPPT algorithm.

This paper proposes a flexible power control approach of a three-phase grid-connected PV system which fulfills the PV converter operations under normal conditions and grid voltage sags. In normal operation mode, a MPPT algorithm and PQ-control loop have been designed around the converters in order to maximize the PV power and to provide an ac current with low harmonic distortions. Under grid faults, the proposed control strategy calculates dynamically the active and reactive powers that the inverter can deliver at the PCC. Those values are used as references to calculate the reference currents and to deactivate the MPPT command according to the voltage dips and the inverter rating current. This command is made in dq-rotating reference frame using Proportional-Integral (PI) current controllers, and finally, it is compared to other strategies through experimental results provided by the literature.

This paper is divided into three sections. Section 2 describes the overall system configuration and control structure. Section 3 presents the simulation results and discussions. In the last section, some experimental results have been used to prove the effectiveness of the control strategy.

2 Structure and control

Figure 1 shows a generic diagram of a typical double-stage grid-connected PV system. It is composed of a PV array, a dc–dc converter, a voltage source inverter, a LCL-filter to connect the inverter to the grid and a control system. The first stage is adopted to boost up the PV voltage within an acceptable range of the PV inverter [5, 7, 9] and to set the point of PVG operation in such a way to maximize its power generation. The aim of the second stage is to convert the dc power supplied from the PVG into ac power. A LCL–filter is used to limit the high-order harmonics coming from the inverter switching behavior. The monitoring and control unit consists of voltage sag detection, a power calculation unit, a current and voltage controllers and a MPPT control. The PV system control is designed considering only the balance voltage dips.

Fig. 1
figure 1

Diagram of the grid-connected PV system

The high penetration of the PVG into the grid raises some requirements, such as the power quality, the frequency and the voltage stability [14]. Moreover, the PVG should stay connected to the grid within a short time and the inverter should inject some reactive power when the grid presents voltage sags. In that case, the control strategy should be developed in order to remain the behavior of the inverter, to stabilize the grid-connected PV system and to avoid the loss of a great PV power generation.

Fig. 2
figure 2

Low voltage ride through of PV power systems [10]

Fig. 3
figure 3

Power profiles for a grid-connected PV system in various operation modes

Fig. 4
figure 4

Control diagram of the dc–dc converter in various operation modes

In this paper, a new command scheme for a typical double-stage grid-connected PV system based on PI regulators is proposed. It allowed the grid-connected PV system operation under normal conditions and balance grid voltage sags. In normal operation mode (NOM), the reference active power \(({P}^{*})\) is approximately equal to the maximum PV power \(({P}^{*}\approx {P}_{\mathrm{pvmax}})\) and the reference reactive power \(({Q}^{*})\) is equal to zero.

The control system should switch from the NOM to the grid faulty operation mode (GFOM) once voltage sag was detected [15,16,17,18, 23]. As indicated by Fig. 2, the inverter should inject the reactive power according to the grid voltage level and duration [24, 25]. The reactive power injected into the grid varied with the voltage sag level, the inverter rating current and the requirements given in [24]. At the same time, the PVG should switch to the non-MPPT functioning mode in order to avoid tripping the inverter over-current protection [26, 27]. Therefore, to maintain the stability of the overall system, the power supplied by the PVG should be equal approximately to the inverter output active power. Figure 3 presents the power profiles for the grid-connected PV system in normal and faulty operation modes.

Fig. 5
figure 5

Block diagram of the inverter command

2.1 Boost control

In NOM, the MPPT algorithm based on Perturbation and Observation (P&O) is employed along with the PVG. The P&O-MPPT algorithm should find the adequate reference voltage \(({V}^{*}_{\mathrm{pv}})\) imposed by the dc–dc converter to the system.

The reference voltage \(({V}^{*}_{\mathrm{pv}})\), given by the MPPT algorithm, constitutes the input of the voltage and the current controllers. As indicated by Fig. 4, voltage and current control loops are used in cascade with the MPPT algorithm allowing the control of the PV energy stored in the output filter \(({L}_{\mathrm{pv}}{C}_{\mathrm{pv}})\). The voltage control loop with the PV current compensations provides the reference current \(({I}^{*}_{\mathrm{l}})\), while the current control loop with the PV voltage compensations give the reference voltage \(({V}^{*}_{\mathrm{m}})\) for PWM. The boost converter command signal is given, according to [28], by:

$$\begin{aligned} {m^{*}_{h}}=\frac{{v^{*}_{m}}}{v_\mathrm{dc}} \end{aligned}$$
(1)

where

$$\begin{aligned} v^{*}_{m} =R_\mathrm{c} R_\mathrm{v} v^{*}_\mathrm{pv} +(1-R_\mathrm{c} R_\mathrm{v })v_\mathrm{pv} +R_\mathrm{c i_pv} -R\mathrm{_c i_l} \end{aligned}$$
(2)

\({R}_{\mathrm{C}}\) and \({R}_{\mathrm{v}}\) represent, respectively, the PV current and the voltage regulators. When the boost switch frequency is higher, the time constant is very small and its influence to the whole system may be ignored, so proportional correctors are sufficient. They are parameterized according to the value of the capacitor \(({C}_{\mathrm{pv}})\), the inductance \(({L}_{\mathrm{pv}})\) and the dynamic of the regulation loops [29].

Under grid sags, the inverter output current should increase to keep the power constant [30]. The output current is limited by the inverter maximum rating current \(({I}<~{I}_{\mathrm{max}})\) which avoids inverter to shut down. In this case, the inverter output power became lower than the dc power delivered by the PVG. Thus, the difference is stored in the dc-link capacitor. As a consequence, the dc-link voltage increases and exceeds its limit \(({V}_{\mathrm{max}})\) which makes the PV system disconnected from the grid network. In that case, to limit the dc-link voltage, it should limit the power delivered by the PVG. As a solution, the PV panel should switch to the non-MPPT operation mode in order to avoid tripping the inverter over-current protection. Practically, this method is based on the multiplication of the reference PV current by a coefficient varying between 0 and 1 according to the level of the grid sags. Consequently, the PV current injected by the PVG decreased and then the MPPT is deactivated. The coefficient is selected as follows:

  • If \({V}_{\mathrm{dc}}<{V}_{\mathrm{max}}\), then \({k}=1\).

  • If \({V}_{\mathrm{dc}}>{V}_{\mathrm{max}}\), then \({k}={f}({V}_{\mathrm{dc}})\) and varies between 0 and 1.

2.2 Inverter control

The main goal of the inverter control, in normal operation mode, is to transfer all PV power produced into the grid, to regulate the dc-link voltage and to set a unity power factor for the grid currents. The proposed control scheme is two loops based as indicated in Fig. 5. The outer loop is the dc-link voltage, and the inner one is around the inverter output currents. Three elementary command blocks around the inverter appear: the dc-link voltage controller, the current loop and the phase-locked loop (PLL). Under grid sags, the inverter control should switch to the GFOM. The reactive and active power references should be changed within the voltage sag level and the inverter rating current. The proposed control scheme of the inverter in NOM and GFOM is given by Fig 5.

Fig. 6
figure 6

Diagram of the dc-link voltage controller

The power control configured in the PV converters can change from one to another mode according to the state of the grid voltage at the PCC. This approach based on the PQ theory permits the possibilities to generate appropriate reference currents for the current controller (Figs. 6, 7 ).

2.2.1 Voltage loop

The voltage loop is composed of two modules which ensure the control of the dc-link voltage and the calculation of the reference currents. In normal operation mode, the first module supplies a dc current allowing the calculation of the active power reference injected into the grid. It is given by:

$$\begin{aligned} P^{*}=V_\mathrm{dc} .i^{*}_\mathrm{e} \approx P_\mathrm{pv\max } \end{aligned}$$
(3)

whereas the reference reactive power \(({Q}^{*})\) should be zero in order to obtain the line current in phase with the grid voltage. The objective of the voltage control loop is to regulate the dc-link voltage at a specified value and to provide the reference current. The closed-loop control of the dc-link voltage is needed because the output power of the PVG varied with irradiance and temperature. The inverter input reference current \(i^{*}_\mathrm{e}\) is described by the following relation [28]:

$$\begin{aligned} i^{*}_\mathrm{e} =i_\mathrm{dc} -PI(v^{*}_\mathrm{dc} -v_\mathrm{dc} ) \end{aligned}$$
(4)

To control the dc-link voltage, a Proportional-Integral (PI) corrector has been used. It is parameterized according to the capacitor and the dynamic of the regulation loop [31]. The dc-link voltage reference \((v^{*}_\mathrm{dc}\)) is set to 515 V.

Under grid sags, the required active and reactive power references should be changed. According to [7], they are given by:

$$\begin{aligned} \left\{ {{\begin{array}{l} {P^{*}=\frac{3}{2}V_\mathrm{g} I_{2d} \approx P_\mathrm{pv}} \\ {Q^{*}=\frac{3}{2}V_\mathrm{g} I_{2q} \ne 0} \\ \end{array}}} \right. \end{aligned}$$
(5)

where \(V_\mathrm{g}\) is the amplitude value of the grid voltage and \({P}_{\mathrm{pv}}\) is the output power provided by the PVG when the boost command switches to the non-MPPT control. The required active power was lower than the maximum PV power delivered in the normal conditions \(({P}^{*}<{P}_{\mathrm{pvmax}})\). According to [32], the inverter should change its output power within the level of the voltage sags. The reference power \(({P}^{*})\) is around the maximal PV power \(({P}_{\mathrm{pvmax}})\), if the voltage dip is small, contrary, if the voltage dip is equal to zero, \({P}^{*}\) should be equal to zero.

Fig. 7
figure 7

PQ diagram and photovoltaic PV curve; 1 NOM, 2 GFOM

The second module of the voltage loop is devoted to the calculation of the reference currents \({i}^{*}_{{2d}}\) and \({i}^{*}_{{2q}}\) which are used in the current loops. Reference currents \({i}^{*}_{{2d}}\) and \({i}^{*}_{{2q}}\) are calculated from the grid voltage and the reference active and reactive power references. These currents, according to [33], are expressed in the synchronous reference dq-frame by:

$$\begin{aligned} \left[ {{\begin{array}{l} {i^{*}_{2d}} \\ {i^{*}_{2q}} \\ \end{array}}}\right] =\frac{1}{V^{2}_\mathrm{gq}+V^{2}_\mathrm{gd}}\left[ {{\begin{array}{ll} {P^{*}}&{} {-Q^{*}} \\ {Q^{*}}&{} {P^{*}} \\ \end{array} }} \right] \left[ {{\begin{array}{l} {V_\mathrm{gd}} \\ {V_\mathrm{gq}} \\ \end{array}}} \right] \end{aligned}$$
(6)
Fig. 8
figure 8

Behavior of the proposed PLL in NOM: a grid voltage q and d-components (measure and reference), b grid frequency estimation

2.2.2 PLL loop

According to Eq. 6, the reference currents injected into the grid are deduced from the measure of the grid voltages. Indeed, the network voltages at the PCC can contain various faults (voltage dips, harmonics, short interruptions, etc.) which can pass into the current provided by the inverter. To mitigate this problem, several methods are developed in the literature [34].

Among those methods, we are interested in PLL expressed in dq-frame. This method is able to provide the grid frequency and phase information. The grid phase provided by the PLL will be used in the current loop unit. The PLL regulator should be designed to respond within a minimum of overshoot under grid frequency and voltage variations. According to Fig. 8, when the difference between grid phase angle \((\theta _\mathrm{rest})\)    and inverter angle \((\theta _\mathrm{ond})\) is reduced to zero, the PLL became active and we obtain: \(v_\mathrm{gd} =0\) and \(v_\mathrm{gq} =-\sqrt{3}V_{r}\)[34]. The model of the PLL is strongly non-linear. However, to synthesize the PLL corrector, we considered a linearized model for weak variations of grid phase angle (\(\theta _r\)) as given by Fig. 9. To avoid oscillation of the PLL response, the damping factor should be equal to 1, and then, it permits consequently the deducing of the various regulator parameters.

2.2.3 Current loop

The ac current controller is considered particularly suitable for active inverters for its safety and stability performance. It consists of a model-based cascade controller. It is composed of an outer current controller for the network line current, i.e., current \({i}_{{2j}}\), an intermediate voltage controller for the filter capacitor voltage and an inner current control loop for the inverter current \({i}_{{1j}}\), where \({j}=\{1.2\, \hbox {and}\, 3\}\)

According to Fig. 5, the current loop should drive the output current \(i_{2d}\) and \(i_{2q}\) to the desired steady-state current, namely to the shape and phase of the utility grid voltage by generating control signals \({m}^{*}_{1}\) and \({m}^{*}_{2}\) for PWM. The line current is implemented in the synchronously rotating reference dq-frame. Hence, individual controllers for the active and reactive quantities with additional compensation for the cross coupling of the d and q axis components are obtained. This current controller block is common for both NOM and FGOM. Its inputs are the d and q current components generated by the voltage loop \(({i}^{*}_{{2d}}\,\hbox {and}\, {i}^{*}_{{2q}})\). According to the state space description of the output LCL-filter model [29], the reference voltages are given by:

$$\begin{aligned} \left\{ \begin{array}{l} v^{*}_\mathrm{cd}=L_{2} \frac{\mathrm{d}}{\mathrm{d}t}\left( i^{*}_{2d}\right) +R_{2}i_{2d}-\omega _\mathrm{rest}L_{2}i_{2q}+v_\mathrm{gd}\\ v^{*}_\mathrm{cq}=L_{2} \frac{\mathrm{d}}{\mathrm{d}t}\left( i^{*}_{2q}\right) +R_{2}i_{2q}+\omega _\mathrm{rest}L_{2}i_{2d}+v_\mathrm{gq}\\ \end{array}\right. \end{aligned}$$
(7)

The voltage \({v}^{*}_{\mathrm{cdq}}\) is composed of two terms: the first represents the network voltage \(({v}_{\mathrm{gdq}})\) which is directly measured, whereas the second represents the voltage drop of the equivalent impedance when it is crossed by the current \({i}_{{2dq}}\).

The inverter output reference currents are given by:

$$\begin{aligned} \left\{ {\begin{array}{l} i^{*}_{1d}=C_\mathrm{f} \frac{\mathrm{d}v^{*}_\mathrm{cd}}{\mathrm{d}t}-C_\mathrm{f}\omega _\mathrm{rest}v_\mathrm{cq}+i_{2d}\\ i^{*}_{1q}=C_\mathrm{f} \frac{\mathrm{d}v^{*}_\mathrm{cq}}{\mathrm{d}t}-C_\mathrm{f}\omega _\mathrm{rest}v_\mathrm{cd}+i_{2q}\\ \end{array}}\right. \end{aligned}$$
(8)

In (8), the reference current is composed of two terms. The first term represents the network current \(({i}_{\mathrm{2dq}})\) which is directly measured, whereas the second represents the current crossed the capacitor when it is feed by the voltage \({v}_{\mathrm{cdq}}\).

The reference voltages, in the inverter-side, are given by:

$$\begin{aligned} \left\{ {\begin{array}{l} v^{*}_{1d}=L_{1} \frac{d}{dt}\left( i^{*}_{1d}\right) +R_{1}i_{1d}-\omega _\mathrm{rest}L_{1}i_{1q}+v_{cd}\\ v^{*}_{1q}=L_{1} \frac{d}{dt}\left( i^{*}_{1q}\right) +R_{1}i_{1q}-\omega _{rest}L_{1}i_{1d}+v_{cq}\\ \end{array}}\right. \end{aligned}$$
(9)

The first term in (9) represents the capacitor voltage \({v}_{\mathrm{cdq}}\) which is directly measured, whereas the second term represents the voltage drop of the filter impedance when it is crossed by a current \({i}_{\mathrm{1dq}}\).

According to [35], terms 7, 8 and 9 should be elaborated by the control loops. The control structure consists of three cascade regulators with additional feed forward and feed-back terms given by the LCL-filter model. In order to stabilize the system, the gains of the proportional parts are altered from the deadbeat gain by the constants \({k}_{\mathrm{i1}}, {k}_{\mathrm{uc}}\) and \({k}_{\mathrm{i2}}\). Their values are obtained from the stability analysis given in [36] (Fig. 9).

3 Simulations

3.1 Normal operation mode

Under normal grid conditions, the grid-connected PV system is operating in Maximum Power Point Tracking mode, in order to deliver as much energy as possible to the grid network and to obtain a power factor near the one. The most important waveforms simulated are shown in Figs. 10, 11. These simulations have been obtained under constant irradiance \((1000\,\hbox {W}/\hbox {m}^{2})\) and temperature \((25 ^{\circ }\hbox {C})\). They are selected to demonstrate the most significant aspects of the system behavior. The reference and the measure are represented by dotted and continuous line, respectively. Salient parameters of the system and regulators are presented in Tables 1, 2. The PV generator is a polycrystalline 24 V/45Wc-AEGPQ40D.

Fig. 9
figure 9

Structure of linearized PLL model

Fig. 10
figure 10

Simulation results under constant climatic conditions: a Maximum PV power (blue), inverter output active (green) and reactive (red) powers, b dc-link voltage (reference and measure), c grid phase provided by the PLL (color figure online)

Fig. 11
figure 11

Simulation results (measure and reference) under constant climatic conditions: a Inverter current d-components, b inverter voltage d-components

Table 1 Principal parameters of the system
Table 2 Principal parameters of the PI regulators
Fig. 12
figure 12

Simulation results (measure and reference) under grid sags: a PV current, b PV voltage, c maximum PV power

Figure 10 shows the characteristics of the active and reactive powers provided during the normal grid conditions \((1000\,\hbox {W}/\hbox {m}^{2}, 25\,^{\circ }\hbox {C})\). This figure presents the maximum PV power supplied by the PV panels, reactive and active powers injected into the grid, respectively. At steady state, real power through the inverter is controlled and reactive power is forcefully made zero. The reactive power oscillates around its reference \(({Q}^{*}=0\,\hbox {VAR})\) showing unity power factor operation and control performance of the grid current. The measured active power supplied by the inverter oscillates around its maximum reference \(({P}\approx {P}_{\mathrm{pvmax}})\).

It can be seen that, in normal operation mode, the inverter output power follows its reference and that average power control has been established. The power injected by the PV panel is approximately equal to the inverter output power because the converter losses are neglected. According to Fig. 10b, the dc-link voltage, maintained at a constant level, followed instantaneously its deadbeat reference voltage \(({V}^{*}_{\mathrm{dc}})\). Consequently, the active power extracted from the PVG is completely injected into the grid. Figure 10c presents the grid phase estimated by the PLL. It oscillates around its nominal value equal to 314rd/s.

In the inverter side, the measured current and voltage d-components as depicted in Fig. 11 followed their references. They show the higher performances of the various control loops designed around the PV converters.

3.2 Grid faulty operation mode

In this section, attention is devoted to the grid fault influence and contribution in a grid-connected PV system. In order to study and to analysis the behavior of the proposed strategy and the control scheme in a grid faulty operation mode, a balance three-phase grid voltage sag is applied at the PCC. The following figures illustrated the response of the grid-connected PV system under a balance grid dip characterized by magnitude and duration (110 V–100 ms).

3.2.1 Enabled of the MPPT command

In the PV converter side, output current, voltage and active power of the PVG are also as the same because the MPPT control stay enabled. As indicated by Fig. 12, the PV current and voltage remain nearly their references. The error between the reference and the measured PV current has been caused by the approximation made during the design of the PV current controller. The voltage dip has not an influence on the maximum power provided by the dc–dc converter because the dc-link capacitor acts as a buffer zone. As shown by Fig. 13, when the transient fault occurs, the active and reactive powers deviate from their nominal values. The real power decreases to 1.6 kW while the reactive power rises up to 280 VAR in order to withstand the voltage dip. The PV power oscillates around the Maximal Power Point (MPP) because the P&O-MPPT algorithm is enabled. When the voltage decreased to 50%, the inverter output current increases and becomes equal to the saturation output inverter current. Then the output inverter power becomes lower than the PV power injected by the PV panel. The difference between the PV power and the inverter output power \(({P}_{\mathrm{pvmax}}{-}{P}_{\mathrm{inv}})\) is accumulated in the dc-link capacitor. As a consequence, the dc-link voltage \(({V}_{\mathrm{dc}})\) increases to a high level (650 V) which can destroy the capacitor. Normally, the protection system should disconnect the inverter from the grid because the dc-link voltage exceeds the internal protection. Figure 13a shows that, after the suppressed of faults, the inverter output power \(({P}_{\mathrm{inv}})\)   decreases   slightly   and reaches  the maximum   PV power \(({P}_{\mathrm{pvmax}})\) in 200 ms. As indicated by Fig. 13b, the dc-link voltage decreases progressively discharging the energy into the grid and reaches its reference in 200 ms. The voltage d-component of the LCL-filter, as depicted in Fig. 13c, follows its reference provided by the controller. It shows the performances of the controller in GFOM.

Fig. 13
figure 13

Simulation results under grid sags: a maximum PV power (red), inverter output active (blue) and reactive (green) powers, b dc-link voltage (measure and reference), c inverter voltage d-component (measure and reference), d grid frequency provided by the PLL, e, f grid voltage (green) and \((.^{*}40)\) inverter output current (blue) (color figure online)

Fig. 14
figure 14

Simulation results under grid sag: a PV operation point on P–V curve in various operation modes, b dc-link voltage (reference and measure), c PV voltage (reference and measure), d dc current injected by the dc–dc converter

Figure 13d illustrates the grid frequency estimated by the PLL. It presents some overshoot at the time of grid voltage drops. As it can be seen in this figure, the performances of the PLL are poor during the voltage sag. It was clear that the PLL dynamics present a significant role in transient behavior of the grid-connected PV system. Figure 13e, f shows the ac side voltage and the inverter output current at the PCC. As it might be noticed in those figures, there is a phase leading/lagging between grid side line current and voltage. A low displacement can be noticed between the synthesized current, current effectively injected into the grid, and the line voltage. As a result, the unit power factor is not achieved under grid voltage dips. For instance, the inverter should provide a reactive power. Both the start of the voltage dip and the end of that present a transient current oscillations, respectively, \(\hbox {deltat}_{1}\) and \(\hbox {deltat}_{2}\). The current waveform is rather distorted due to the synchronizing problem. The control succeeds to resynchronize the inverter very quickly after voltage recovery.

3.2.2 Disabled of the MPPT command

According to Fig. 14a, the maximum PV power \(({P}_{\mathrm{pvmax}})\) is 2563 W, and the PV voltage \(({V}_{\mathrm{pvmax}})\) and the PV current \(({I}_{\mathrm{pvmax}})\) at the maximum power are 356 V and 7.2 A, respectively. Once the grid sag is detected at 1 s, the MPPT is deactivated and the control system is switched to the grid faulty operation mode. The PVG provides a new power which is lower than the optimal PV power. In the same time, the inverter starts to inject reactive power to support the grid voltage and limits the active power output to prevent the inverter from over current protection. The active power provided by the PVG decreases in order to maintain the dc-link voltage lower than the limit value (Fig. 14b). Moreover, the PV voltage increases to 373 V by respecting the PV characteristics (Fig.14c). Figure 14d shows the characteristic of the dc current provided by the boost during the various operation modes. In normal operation mode, the continuous current is equal to 5 A. The power provided by the PVG was maximal, and it was equal approximately to 2550 W. When the control system switched to the fault operation mode, the current decreased until 3.4 A. After 100 ms, the fault is cleared and the grid-connected PV system goes back to its normal operation mode. In the same time, the MPPT unit continues to track the optimal PV power. As shown in Fig. 14b, d, the system takes some time to join its normal state because of the MPPT process.

Fig. 15
figure 15

Simulation results under grid sags: a grid voltage and \((.^{*}40)\) current, b inverter output active (blue) and reactive (green) powers (color figure online)

Fig. 16
figure 16

Experimental results of a single-phase system under voltage dip: a grid voltage and inverter current, b real and reactive powers

Figure 15 illustrates the response of the grid-connected PV system to 50%–00 ms voltage dip which can occur on the grid voltage at the PCC. Figure 15b presents the inverter output active and reactive power variations. It is shown that during the fault, the PV system is controlled to limit the active power \((\approx 1900\,\hbox {W})\) and to inject some reactive power \((\approx 280\,\hbox {VAR})\) into the grid. As illustrated by Fig. 14a, the PV inverter increases the ac current when the grid voltage decreases to keep the power constant. During the step transient in the grid voltage, there is a phase leading/lagging between grid side line current and voltage.

Figures 14, 15 illustrate the performances and dynamics of the command approach when the MPPT algorithm is disabled. This command permits to the inverter to support the grid within a short time when it presents a voltage dips. This example of study shows that when the grid voltage dips stay lower than the thresholds fixed in [37], the command approach allows the system operations with the injection of reactive power and the reduce of the active power.

Fig. 17
figure 17

Experimental results of a single-phase system under voltage dip: a, textbfb grid voltage and inverter current

4 Experimental results

For the verification of the proposed approach, we refer to some experimental results studies in [38]. The whole system consists mainly of:

  • A dc power supply the nominal dc-link voltage.

  • A dc capacitor (1100 \(\upmu \hbox {F}\)),

  • A Danfoss VLT FC302 3-phase inverter which is configured as a single-phase inverter. Its rated current is equal to 5A.

  • A sag generator,

  • An \(\hbox {LCL}_{\mathrm{t}}\)-filter connects the inverter to the grid (\({L}=1.8\,\hbox {mH}, {C}=4.3\,\upmu \hbox {F}\) and \({L}_{\mathrm{t}}=\hbox {4 mH}\)).

  • A FPGA control system.

For the laboratory test, the nominal grid voltage is set to 220 V RMS, the frequency is equal to 50 Hz and the PWM frequency is set to 8 kHz. The control strategy has been tested under voltage sag (50%–100 ms).

Figure 16 shows the performance of the inverter under grid voltage dip with the flexible power control strategy. It shows that the control is able to operate even during a very shallow voltage dip. As it can be seen before the grid fault, the reactive power is zero and the real power supplied by the inverter is constant and maximal. An inverter current THD, lower than 5%, around the rated inverter output current, has been achieved (Fig. 16a). When a grid voltage occurs, the control system reduces the output active power (P) and increases slightly the reactive power (Q) according to the depth of the voltage sag in order to withstand the dip (Fig. 16b). The end of the fault presents a transient time delay \(({t}_{\mathrm{d}})\) due to the fault detection and the response of the controllers. The inverter can stay connected and energizes the grid in the presence of voltage sags.

Figure 17 shows a zoom on the waveforms (current and voltage) obtained when the grid voltage is subjected to a (50%–100 ms) voltage dip. During the fault, the inverter tends to increase the ac current when the voltage decreases at PCC. At the same time, a phase leading/lagging between grid side line current and voltage appears. In that case, a reactive current is injected into the grid in response to the grid faults.

According to Fig. 16, it has been observed that the current control loop is very fast and able to respond to voltage disturbances in two cycles. This behavior is very positive since it would tend to mitigate voltage dips. The flexible power control succeeds to resynchronize the inverter very quickly after voltage recovery. When the voltage sag is cleared, the system returns to its normal operation mode and injects current at unity power factor.

Referring to Figs. 15, 16, it is seen that the experimental results are in agreement with the simulation results shown in Figs. 14, 12e, f, and have corroborated the effectiveness and the flexibility of the proposed control strategy.

The theoretical results can be very helpful for the study of the transient properties of the inverter (decoupling protection, current control loop and MPPT tracker, etc.) and allow PV converters to have a better tolerance to shallow voltage dips without threatening the safety and stability of the connected PV system. Hence, the flexible power control strategy, proposed in this study, can be an enhancement for the future PV converters. It contributes to reduce the cost of energy and thus enables more cost-effective PV installations.

5 Conclusion

In this paper, a control strategy approach has been developed around a double-stage grid-connected PV system functioning under various operation modes. It is observed that, during the NOM, the command ensures a maximum PV power and regulates simultaneously the dc-link voltage and the output inverter currents. Moreover, it permits to inject energy into the grid at unity power factor and a current with low harmonic distortion. In the GFOM, the active and reactive power references have been changed within the voltage sag levels and the inverter rating current. The inverter delivered a reactive power slightly greater than zero and decreased the output active power in order to stabilize the whole system. In the GFOM, we demonstrate that the control strategy ensures a grid sinusoidal current at the PCC and provides ride through capability during grid faults. Moreover, this command contributes to the system stability and overcomes some problems such as harmonic distortions and power factor quality. It has been demonstrated that the proposed control strategy improves the availability and the reliability of the distributed network under grid faults. Hence, it is expected for the future PV converters to have some ancillary and intelligent service like flexible active power control and reactive power compensation. Together with higher efficiency and higher demands, those functionalities represent the key to reduce the total cost of energy and thus an expansion of cost-effective PV systems into the grid.