To address the problem of transient disturbance arising during the grid-following (GFL) and grid-forming (GFM) mode switching of energy storage converters, this paper proposes a dual-mode seamless switching control strategy. First, we conduct an in-depth analysis of the mechanism behind switching transients, identifying that sudden changes in current commands and angle-control misalignment are the key factors triggering oscillations in system power and voltage frequency. To overcome this, we design a virtual synchronous generator (VSG) control angle-tracking technique based on the construction of triangular functions, which effectively eliminates the influence of periodic phase-angle jumps on tracking accuracy and achieves precise pre-synchronization of the microgrid phase in GFM mode. Additionally, we employ a current-command seamless switching technique involving real-time latching and synchronization of the inner-loop current references between the two modes, ensuring continuity of control commands at the switching instant. The simulation and hardware-in-the-loop (HIL) experimental results show that the proposed strategy does not require retuning of the parameters after switching, greatly suppresses voltage and frequency fluctuations during mode transition, and achieves smooth, rapid, seamless switching between the GFL and GFM modes of the energy storage converter, thereby improving the stability of microgrid operation.
Jiang et al. (2025) studied this question.