top of page

From Simulation to Real Power: Testing the Smart Grids of Tomorrow

  • Writer: Alec Abkemeier
    Alec Abkemeier
  • Dec 8, 2025
  • 5 min read

TwinCAT and Embedded PCs bring grid-forming inverter methods to life, giving wind and solar the power boost they need in tomorrow’s power systems.


For inverter emulation, the CX2030 Embedded PC enables short control cycle times of 50 µs. © IEH/KIT
For inverter emulation, the CX2030 Embedded PC enables short control cycle times of 50 µs. © IEH/KIT

The Institute of Electrical Energy Systems and High Voltage Technology (IEH) at the Karlsruhe Institute of Technology (KIT) in Germany is researching ways to ensure system stability in transmission grids that are changing because of the continuing transition to renewable energy. In addition to simulative investigations, the behavior of power plants and inverter-based generation systems is being emulated in an island grid used as a dedicated test environment. Here, researchers are implementing innovative new control methods using Beckhoff Embedded PCs running TwinCAT to validate their application in realistic scenarios. 


In many transmission grids, the percentage of electricity from renewable energy sources is increasing. Unlike conventional synchronous generator-based power plants, wind energy and photovoltaic plants feed their energy into the grid via an inverter; however, stability problems occur above a certain proportion of inverter-based operating resources when using conventional grid-following inverter controls. This is why innovative control methods are needed so that the integration of renewable generation systems does not have to be restricted as a result.  


The aim of these grid-forming control methods is to provide grid-supporting behavior - the type that has been associated with synchronous generator-based power plants for more than 100 years - with inverters. The results of this include the ability for wind turbines to also provide instantaneous energy reserves. 


Grid emulation ensures stability 


The investigation of the inverter behavior at a strongly changing grid frequency is not possible in the European interconnected grid. For this reason, a grid emulation was built at IEH for the realistic behavior of large power plants and, therefore, for large transmission grids as well. This grid emulation consists of a synchronous generator with an excitation machine, which is driven by a variable-speed drive system comprising a drive inverter and an asynchronous machine rather than a turbine. To achieve a moment of inertia comparable to that of a turbine in a power plant, there is also a flywheel on the shaft. Frequency dips can be generated by connecting loads, as these occur during disturbances in large transmission grids. By physically providing the instantaneous reserve, grid emulation (in contrast to power electronic grid emulations) allows the resources connected to the island grid to react instantly to the grid frequency. 


A CX5140 Embedded PC from Beckhoff serves as the central automation and control hardware, while various EtherCAT I/O terminals are used to measure mechanical and electrical variables. Encoders are installed in both machines to measure the rotary speed, and these are evaluated by EL5021 SinCos encoder interfaces. Torques can be established by means of two torque measuring shafts and an ELM300x analog voltage measuring terminal. EL3783 power monitoring oversampling terminals, in combination with current transformers, capture the -3-phase voltage, current, and power values. The CX5140 Embedded PC communicates with the drive inverter via EtherCAT. Excitation of the synchronous generator’s excitation machine is ensured by an EL2535-0005 pulse-width current terminal. Power contactors are controlled by EL2634 relay terminals as further actuators. 


The closed-loop control was designed in MATLAB®/Simulink® using model-based design and, after compilation, executed in real time on the embedded PC using TwinCAT 3 Target for Simulink®. A convenient user interface for operating the test bed was implemented with TwinCAT HMI. Control parameters, setpoint values, and limit values can be changed here during operation. In addition, measurements and the plant status can be displayed graphically. Measured values are visualized and recorded using TwinCAT Scope View. 


Inverter emulation drives precision 


Operation and monitoring of the grid emulation via TwinCAT HMI. © IEH/KIT
Operation and monitoring of the grid emulation via TwinCAT HMI. © IEH/KIT

The investigation of newly devised control methods for inverter-based generation plants calls for a flexible test facility that offers sufficient freedom regarding how control methods are implemented. Since the first step focuses on the control of the grid side of the inverter, the behavior of the modulation and the power semiconductors of a -3-phase inverter can be emulated by three linear voltage amplifiers. The voltage amplifiers act here as controlled ideal voltage sources. The control cabinet for the inverter emulation is located between the voltage amplifier and the island grid of the grid emulation. In addition to the control hardware, other items installed in this cabinet include the adjustable mains filter, voltage and current measurements, as well as contactors and circuit breakers. 


An embedded PC with numerous EtherCAT Terminals is also used as the central platform in this test bed. A CX2030 facilitates the execution of complex programs with fast cycle times. Six EL3702 two-channel analog input terminals capture the 3-phase voltage and current values by means of Hall-effect current sensors at several measurement points. The voltage setpoints are output by EL4732 analog output terminals and transmitted to the voltage amplifier as voltage levels. 


Comparable to grid emulation, control methods developed and validated in MATLAB®/Simulink® are executed in real time on the CX2030. The main difference is the short control cycle time of just 50 µs. In combination with the EtherCAT Terminals and the voltage amplifier, a dead time of just 150 µs is achieved for the entire control loop. The test bed is also operated and monitored by a user interface created with TwinCAT HMI. Essential here is the rapid monitoring of limit values, which leads to a safe shutdown if exceeded. 


Test environment confirms system readiness 


With the inverter emulation being used in combination with the grid emulation, an island-like test environment is now available where the behavior of new grid-forming control methods can be easily investigated. Investigations with the ‘Synchronverter’ control method, which emulates the behavior of a synchronous generator with an inverter, have already been carried out and published. Experiments have shown that inverter-based generation systems with an appropriate control system can provide instantaneous reserve and thus support the grid. In contrast to real-time emulators, it was also possible to prove here that grid-forming control can be implemented on a control platform that is already established for use in industrial environments. 


Going forward, the development of grid-forming control methods will continue with the aim of using them in inverter-based operating equipment, such as wind turbines. Since the investigation based on inverter emulation was successful, a test bed that represents the drive train of a wind turbine, consisting of a generator and a full inverter in downscale performance, is in the process of being set up. Here, the focus will be on the use of components used in wind turbines, such as control hardware and power semiconductors. Investigations will continue into how the implementation of a grid-forming control system in a wind turbine is possible. 

 

Ready to bring next-generation automation and measurement to your power generation and energy grid projects? Contact your local Beckhoff sales engineer today.



Alec Abkemeier of Beckhoff Automation

Alec Abkemeier is the Software Product Manager at Beckhoff

Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.

Beckhoff Automation LLC

13130 Dakota Ave. 

Savage, MN 55378

  • LinkedIn
  • YouTube
  • Facebook

Effective August 1, 2025, a 3% surcharge will be added to all credit card payments

bottom of page