Back-to-back converter with grid-tied LCL filter

This application note details a control implementation for a back-to-back three-phase converter developed using imperix’s rapid control prototyping solutions. The system features two TPI8032 (TPI) converters managed by a single centralized controller in a master/slave configuration.

In this implementation, the grid-side converter operates as an active front end and is connected to the grid in a transformer-less fashion via an LCL filter. On the other side, the load-side converter functions as an inverter that drives a simple RL load.

System principles and control architecture

This section describes the back-to-back converter topology and the centralized control architecture used to manage the system. The simplified diagram of the back-to-back converter is shown in Fig. 1. Such converters are commonly employed in wind energy systems, HVDC links, and industrial variable frequency drives to enable bidirectional power transfer and regenerative operation.

Fig. 1: Simplified single-line diagram of a back-to-back converter system

Back-to-back converter Topology

A back-to-back converter consists of two three-phase converters, typically an AC/DC rectifier stage and a DC/AC inverter stage, connected via a common DC link. The detailed three-phase diagram of the system is illustrated in Fig. 2. This configuration effectively decouples two AC systems, allowing for independent control of power flow, frequency, and voltage. In this application, both converters are implemented using the imperix TPI8032 three-phase power converter; therefore, the DC link capacitors of both are connected in parallel, resulting in a doubling of the DC link capacitance.

âš  This system can also be implemented using imperix power modules, but then, the LC filter needs to be implemented externally. 

The DC link is shared between the two TPIs, as shown in Fig. 2. The system is composed of the following:

Grid-side converter (GSC):

GSC operates as an active front end. It is connected to the three-phase grid through an LCL filter. Since TPI already has an equivalent LC filter, the output of TPI is connected to the grid via an external choke of \(L_2\) = 0.65mH, as shown in Fig. 2. This configuration is similar to the one described in TN123. The primary role of GSC is to regulate the DC link voltage while ensuring high-quality current absorption from the grid (i.e., low harmonic distortion and unity power factor), which is enabled by the LCL filter.

Load-side converter (LSC):

LSC draws power from the DC link to supply a passive three-phase load. It is controlled to provide a preset value of AC current to the load. In this application note, RL is used as a load. This allows the application example to be generic. Typically, this second converter may also be part of a drive (see, for instance, AN004, which addresses the direct torque control of a permanent magnet synchronous machine).

Fig. 2: Detailed diagram of a three-phase back-to-back converter system using TPI8032

Centralized control architecture

The system employs a centralized control architecture for the back-to-back converter, where the entire control algorithm is implemented on a single master controller. The core of this system is a TPI8032 programmable converter, which contains a B-Board PRO embedded converter controller for executing the control code. While two TPI8032 converters are used, they operate in a master-slave configuration, also called I/O extension mode:

  • One TPI8032 acts as the master, with its CPU running the complete control algorithm for the entire back-to-back converter system. TPI8032 controller samples all necessary measurements, including grid voltages, grid currents, DC link voltage, and load currents. It executes the control algorithms for both the GSC and the LSC within the same control cycle and then generates and sends PWM signals to both TPIs simultaneously.
  • The second TPI8032 functions as a slave unit. In this mode, the TPI controller operates as a simple I/O extension, with only its FPGA active to manage inputs and outputs as directed by the master. The slave unit does not run its own control code.

The communication between two TPIs leverages imperix’s RealSync communication protocol, which uses an SFP optical fiber link to ensure low-latency, deterministic data exchange and precise synchronization between the two devices. This centralized approach is distinct from a coordinated control strategy (see multi-master). Refer to technical note TN155 for more details on implementing coordinated control of a back-to-back converter with two separate controllers.

Control implementation

It is divided into two main parts: one for GSC and the other for LSC.

Grid-side converter control

The control for the GSC uses a cascaded structure to achieve voltage regulation of the DC bus, similar to active front end control.

DC link voltage controller + Feedforward of load current

The outer control loop consists of a PI controller and a feedforward of the load current to maintain the DC link voltage at its reference value, as shown in Fig. 3. The implementation of feedforward of the load current in the DC link voltage controller becomes possible thanks to the centralized controller architecture. The deviation in the controlled DC link voltage is drastically reduced by feedforwarding the load current from the LSC.

Grid current control + Active damper

The inner loop, based on proportional resonant control in parallel to the active damper, regulates the grid current to follow the reference generated by the outer voltage loop. The reactive current reference is typically set to zero to ensure unity power factor operation. The principles of the cascaded control loop design are further detailed in TN108.

Fig. 3: Block diagram of the controller of the grid-side converter

An active damping strategy is implemented to mitigate the natural resonance of the LCL filter, which can otherwise cause instability and current oscillations. The design described in the technical note TN123 is replicated to achieve damping by feeding back the grid current.

Load-side converter control

In this application note, LSC is responsible for delivering a precisely controlled three-phase AC current to the passive R load. This is achieved using a vector current control strategy implemented in the synchronous rotating (dq) reference frame. The block diagram of the load current control is shown in Fig. 4. The three-phase load currents are measured and transformed into DC quantities using the Park transformation.

Fig. 4: Block diagram of the controller of the load-side converter

Two separate PI controllers are used to regulate these DC quantities in their respective reference frames. This approach is effective because PI controllers can regulate DC values with zero steady-state error. The outputs of the PI controllers are then transformed back into the abc reference frame for the TPI CB-PWM modulator.

DC link precharging

As with any voltage source converter topology, the system requires that the DC bus be appropriately pre-charged before normal operation can be initiated (\(V_{DC,min}=\widehat{V_{g,ll}}\)). The TPI relay block is used to pre-charge the DC link with safety protections already embedded inside the TPI, with a set of three resistors that limit the DC bus charging current. These resistors are bypassed during normal operation, thanks to a state machine of the TPI relay. TN131 provides additional recommendations for system start-up techniques in grid-tied applications if imperix power modules are to be employed.

Software resources

The control of the back-to-back converter is implemented in MATLAB Simulink using the imperix ACG SDK.

AN005_B2B_converter_centralized_control_Simulink.zip file contains the complete MATLAB Simulink model for the entire back-to-back converter system, including all files required for both simulation and automated code generation. The GUI file to be used in the imperix Cockpit is also provided.

Fig. 5: GSC and LSC controllers implemented in Simulink
Fig. 6: GSC and LSC TPI blocks implemented in Simulink on the plant side

Simulation results

The performance of the back-to-back converter control is simulated using Simulink. Two separate controllers, one for the GSC and the other for the LSC, are designed, as indicated by the differently colored area containers shown in Fig. 5. Two TPI blocks available in imperix’s power library are used to build the model of the back-to-back converter on the plant side, as depicted in Fig. 6. The system and control parameters are summarized in Table 1. 

ParametersValueParametersValue
Grid voltage (line-to-line)400 VRMSGrid frequency50Hz
Inverter side inductor L11.05mHGrid side inductor L20.65mH
Capacitor Cf8.2µFL2 coil resistance Rf2100mΩ
Grid inductor Lg10µHL1 coil resistance Rf154mΩ
Equivalent capacitor resistance (Rf)10ΩDC link capacitor (CDC )2 x 1.5 mF
Control/switching frequency \(f_s\)50kHzDC bus voltage VDC650V
Proportional gain-grid current (PR controller) kp,ig5V/AResonant gain-grid current (PR controller) kr,ig100Vs/A
Active damping gain kAD1.84Active damping pulsation Ï‰AD18850 rad/s
Load resistor RL27ΩLoad Inductor Ll1 mH
Integral gain-DC voltage controller ki,dc300Proportional gain-DC voltage controller kp,dc1.89A/V
Integral gain-load current controller ki,il14066Proportional gain-load current controller kp,il11.86 V/A
Table 1: System and control parameters

A reference load current step in d-axis from 0A to 6A is applied at t = 50 ms, and a step from 6A to 12A at t = 100 ms. During the transient, a voltage drop of 1.5V-2V can be observed on the DC bus voltage. This voltage drop is corrected by the DC link voltage control. In this application example, the current drawn by the load-side inverter is feed-forwarded into the DC link voltage control. The introduction of such compensation improves the control dynamics and reduces the deviation in the voltage drop.

Analyzing the simulation results shown in Fig. 7, the grid currents (d-axis) follow their references with a minimal instantaneous error. During the transient, as well as during steady-state, the grid current is \(180^{\circ}\) out of phase with the grid voltage, as specified by the reference (Ig_q_ref = 0). The grid current is measured as positive, flowing from the DC link to the grid. The load current Il_d reaches its reference in around 10 ms (100% of the final value), following the same behavior as a step response of a first-order system.

Fig. 7: DC-link voltage response (middle) to load current steps (top) and d-axis grid current reference tracking (bottom).

Experimental Setup

The TPI8032 is connected via an external choke L2 to the grid. GSC is used to power up the DC link. Three external voltage sensors are placed at the PCC to measure the grid voltage. The following list describes the required hardware and software. It comprises imperix products as well as additional components commonly available in power electronic research laboratories:

  • Imperix products
  • Additional software
    • Matlab Simulink with relevant toolboxes.
      • Minimum requirements: MATLAB Simulink R2019a or newer.
  • Additional hardware
    • 3x grid inductor/chokes (L2 = 0.650 mH)
    • 3x DIN voltage sensors
    • Safety laboratory cables (banana)
    • 1x SFP cable
    • 3x load resistors (Rl = 27Ω)
    • 3x load inductors (Ll = 1 mH)

Note that if the grid inductor value is different, the controller and active damper gain have to be tuned accordingly; refer to TN123 for further details. For more information on how to get started with TPI8032, please refer: PN190: Getting started with the TPI 8032. The DOWN of GSC-TPI should be connected to the UP of LSC-TPI ideally, as shown in Fig. 8(a). It can be noticed in Fig. 8(b) that the external DIN voltage sensors are connected to the three analog inputs of the GSC-TPI: AIN0, AIN1, and AIN2 for measuring the voltage at PCC.

Fig. 8(a): Front view of the two TPIs connected via SFP cable, bottom GSC-TPI (master), top LSC-TPI (slave)
Fig. 8(b): Rear view of the two TPIs with shared DC link, bottom GSC-TPI (master), top LSC-TPI (slave)

Experimental results

The experimental validation of the back-to-back converter system was performed using the setup shown in Fig. 9. The Cockpit GUI designed for ease of operation is shown in Fig. 10. The system can be started using the defined start-up procedure explained in the operating instructions section.

Fig. 9: Experimental setup

The TPI Relays of both converters were closed after the DC link was pre-charged and the PLL synchronized with the grid voltage. The DC link voltage is then stabilized around its reference value of approximately \(650~\text{V}\), as shown in the second subplot of Fig. 11. Feedforward is enabled for this experiment. It can be seen in the second subplot of Fig. 11 that the deviation of the DC Link is less than 2V on a change of load current, thanks to the feedforward of load current. The phase voltages at the PCC, illustrated in the first subplot, are balanced and sinusoidal with a \(120^{\circ}\) phase displacement.

Fig. 10: Screenshot of a working GUI inside the imperix cockpit

As in the simulation, the grid current is out of phase with the grid voltage, as defined by its zero quadrature reference value \(I_{g,q,ref}=0\), resulting in zero reactive power exchange with the grid. Other reference setpoints can be specified to adjust the power factor or reactive power as required.

Fig. 11: Experimental results captured using the imperix cockpit on the application of steps in the load current

After verifying the DC-link voltage regulation, the load-side converter (LSC) was activated to control the load current in the dq domain. The bottom subplot shows that load currents (\(I_{l,d}\), \(I_{l,q}\)), closely follow their respective reference values. The grid currents in the abc domain (third subplot) remain sinusoidal and balanced once the LSC begins drawing power, confirming stable power transfer through the DC link.

The load current ripple is normally larger than the grid current ripple if the frequency is low, such as 10 kHz. Overall, the experimental results verify the correct operation of the cascaded control architecture, comprising the outer DC-link voltage controller and inner current control loops.

Operation and design of the GUI

The GUI shown in Fig. 12 provides the following features and functionalities:

  • Operational controls for the GSC and LSC: activation toggles, relay close checkboxes, PWM enable, and feed-forward option.
  • Protection settings for each TPI (GSC / LSC): numeric fields for maximum peak current and voltage limits. Default example values are provided in the GUI (GSC: Ipk 45 A, Vpk 600 V; LSC: Ipk 45 A, Vpk 550 V).
  • Controller tuning panel with sliders and numeric entries for PI gains (DC-link, grid current, load current).
  • Setpoint inputs beneath gauges for DC-link voltage (vdc_ref) and load current references (Il_d_ref, Il_q_ref).
  • Status indicators: the top panel shows a system schematic with LEDs indicating Grid Available, Grid Synced, Status Relays GSC, and Status Relays LSC.
    • Grid Voltage Available — grid present.
    • Grid Synced — PLL locked and phase order correct.
    • Status Relays GSC / LSC — relay closed and pre-charge complete.
  • Real-time visualisation: circular gauges for peak d/q currents (grid & load) and a large DC-link voltage gauge for quick status.

GUI design can be modified according to the user’s requirements. Please refer to PN304 for more information on how to build or modify the GUI. More information on how to develop a GUI using Matlab App Designer is given in PN130.

Fig. 12: Close-up view of the GUI built using imperix cockpit tools for ease of monitoring and operation.

System start-up

These steps must ideally be followed to start up the system:

  1. Generate run-time code for the provided Simulink file using imperix’s SDK for automated code generation by building the model (Ctrl+B). Consult the Quick-start guide if needed.
  2. Wire up the two TPIs using an SFP cable to operate one as master and the other as slave.
  3. For assigning the static IPs to each TPI, refer to the advanced IP configuration guide.
  4. Connect to the two TPIs using Cockpit. To do so, refer to the Quick-start guide if needed.
  5. A GUI design is provided with the download file, which can be used to operate the system.
  6. Check that all cables are properly wired and the protection thresholds for maximum current and voltage are appropriately adjusted. Use the default values if unsure.
  7. The feedforward of the load current into the DC link voltage controller is active for this experiment and can be turned off via the GUI using the on/off button labelled “Enable feedforward”.
  8. Check if the grid is available and synchronized using the status LEDs on the left of the GUI.
  9. Pre-charge the DC link through the precharge resistors by closing the TPI relay by checking the “close Relays GSC” checkbox. The DC bus voltage will get stabilized (i.e., the grid current will become negligible), and the LED “Status Relays GSC” will turn green. This means that the GSC TPI is ready to operate.
  10. Similarly, close the relays of the LSC TPI and wait for the status LED “Status Relays LSC” to turn green.
  11. Now enable the PWM, as it is safe to do so now. Remember, if the relays get closed due to user input of a fault situation, PWM must be disabled to close the relays of TPI again.
  12. Check that Vg_d is constant and that Vg_q is close to zero to validate the phase order and the correct operation of the PLL.
  13. Set the desired DC voltage setpoint (e.g., 650V) using the numeric input bar just below the circle gauge of DC link voltage, and then start the rectifier control by clicking on the “Activate GSC” switch in the “User Input Panel” area.
  14. Click on ‘Enable output’ to allow the generation of PWM signals.
  15. Set the desired load current Il_d_ref using the numeric input bar just below the Peak Load Current d-axis circle gauge, and start the load-side operation by clicking on the “Activate LSC” switch in the “User Input Panel” area.

System shutdown 

The following steps outline the procedure used to shut down the system:

  1. Deactivate the load-side controller by setting the “Activate LSC” switch off in the “User Input Panel” area.
  2. Deactivate the grid-side controller by clicking on the “Activate GSC” switch in the “User Input Panel” area to turn it off. The DC bus voltage decreases to the rectified grid voltage within a few seconds.
  3. Disconnect the grid part by opening the GSC TPI relay. The DC bus voltage decreases slowly.
  4. To dissipate the remaining DC bus energy in the load resistors, set a load current Ig_d_ref of 1A and restart the load current control. The DC bus voltage decreases quickly to zero.
  5. When Vdc is zero, disconnect the load part by setting Ig_d_ref = 0 and Activate LSC to off in the User Input Panel.
  6. Block all PWM output signals by disabling the PWM.
âš  For safety reasons, do not disconnect the relay of LSC while the whole system is in operation!

To go further from here…

For learning more about the coordinated control of a back-to-back converter, refer to TN155. If you are interested in multi-master-based control, please check AN008.

TPI8032 can also be used to program any controller for grid-connected converters. More examples of the TPI8032 are available in the knowledge base for various applications, such as:

TN123: Active damping of LCL filters

TN163: Active power filters for harmonics mitigation

TN167: Grid-following Converter

TN168: Grid-forming Converter