<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">EPE</journal-id><journal-title-group><journal-title>Energy and Power Engineering</journal-title></journal-title-group><issn pub-type="epub">1949-243X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/epe.2017.94B049</article-id><article-id pub-id-type="publisher-id">EPE-75305</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Research on Seamless Switching Control Strategy Based on Virtual Synchronous Generator
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Wei</surname><given-names>Kang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Jibo</surname><given-names>Wan</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Lixia</surname><given-names>Zhang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Qilong</surname><given-names>Zhang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Zibo Power Supply Company, Zibo, China</addr-line></aff><aff id="aff1"><addr-line>China University of Petroleum, Qingdao, China</addr-line></aff><pub-date pub-type="epub"><day>06</day><month>04</month><year>2017</year></pub-date><volume>09</volume><issue>04</issue><fpage>436</fpage><lpage>444</lpage><history><date date-type="received"><day>February</day>	<month>28,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>March</month>	<year>30,</year>	</date><date date-type="accepted"><day>April</day>	<month>6,</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   
   This paper studies the voltage, phase and current tracking strategy to eliminate voltage and current mutations when the virtual synchronous generator is switching between grid-connected and islanded. By using these strategies the inverter can realize secondary frequency regulation and voltage regulation. If the phase is near 0 or 2π a little disturbance may made the PLL output a big error, so a new PLL is proposed by this paper. A sine module is added in the PLL to avoid this error. In order to verify the strategy proposed by this paper a simulation model is built in Matlab/Simulink. The simulation results show that the control strategy can realize seamless switching. 
  
 
</p></abstract><kwd-group><kwd>Virtual Synchronous Generator</kwd><kwd> PLL</kwd><kwd> Seamless Switching</kwd><kwd> Micro Grid</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Inverter is an important part of the new energy grid, its performance has great influence on the stability of the micro grid. The traditional control method generally uses PQ, VF and droop control mode [<xref ref-type="bibr" rid="scirp.75305-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref5">5</xref>]. The inverter operates in these modes do not have inertia, once power disturbance occurs, it is unable to provide support for the grid voltage and frequency, Therefore some scholars put forward the virtual synchronous generator control strategy [<xref ref-type="bibr" rid="scirp.75305-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.75305-ref10">10</xref>]. By adding virtual inertia in the inverter control system, make the external characteristic of inverter similar to synchronous generator. In this paper, the control strategy of virtual synchronous generator is used to study seamless switching between grid-connected and islanding operation. And the phase lock loop used in control strategy is improved.</p></sec><sec id="s2"><title>2. Virtual Synchronous Generator</title><p>The control strategy of virtual synchronous generator is to simulate the mechanical characteristics and output power characteristics of a synchronous generator. In order to accurately simulate the mechanical inertia of the synchronous generator rotor, the equation of the synchronous generator is added. The rotor mechanical equation is as follows:</p><disp-formula id="scirp.75305-formula321"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/75305x1.png"  xlink:type="simple"/></disp-formula><p>In the formula, the ω is the generator speed, the ω<sub>s</sub> is the synchronous speed, the δ represents the rotor angle of the generator, the D indicates the damping coefficient, the T<sub>J</sub> is the generator inertia time constant, the P<sub>m</sub> represents the prime mover power, and the P<sub>e</sub> indicates the electromagnetic power.</p><p>By the formula (1) shows that when the load fluctuation, because the generator rotor mechanical inertia, the electromagnetic power could not immediately change, but from the original steady process gradually transition to the new steady state process .The transition time is determined by the load fluctuation, the generator inertia time constant T<sub>J</sub> and damping coefficient D. The generator inertia time constant T<sub>J</sub> plays a major role. The presence of T<sub>J</sub> does not change the system steady, but changed the transient time. When the load fluctuates, the system can not immediately adjust to the optimum frequency, but on the other hand, it avoids the system frequency change rapidly with the load fluctuation, is helpful to improve the stability of the system.</p><p>The control strategy of the virtual synchronous generator is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>The control strategy includes virtual inertia control module and the droop control module. The former is used to simulate the rotor motion equation to realize the dynamic frequency regulation. The latter is used to simulate the frequency regulation factor.</p></sec><sec id="s3"><title>3. Control Strategy between Islanded and Grid-Connected</title><p>When the invert is switching between islanded and grid-connected, if do not control the related to electrical character, once the voltage amplitude, frequency</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Frequency control diagram of virtual synchronous generator control method</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x2.png"/></fig><p>and phase between grid and inverter is inconsistent, it will cause voltage switching transient and big fluctuations, affecting the normal operation of the system, or even damage the electricity and power generation equipment [<xref ref-type="bibr" rid="scirp.75305-ref11">11</xref>]. Therefore, the seamless switching between two operating modes not only requires tracing the frequency and phase of grid, but also need to track the output current change during mode switching.</p><sec id="s3_1"><title>3.1. Switching from Islanded to Grid-Connected</title><p>In the process of seamless switching, the switch from grid-connected to islanded is different from the other process. The inverter can be directly switched from grid-connected to islanded and will not impact the system. In the process of switching from islanded to grid-connected, it is necessary to process pre-syn- chronization, phase and voltage amplitude tracking.</p><sec id="s3_1_1"><title>3.1.1. Voltage Synchronization</title><p>For the voltage frequency control method, just set the voltage to the same as the grid voltage it is possible to avoid the impact caused by different voltage amplitudes during switching. However, for the islanded operation mode using the virtual synchronous generator control strategy, voltage regulation is required.</p><p>The characteristics of the reactive power and voltage droop control strategy of virtual synchronous generator are shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>:</p><p>Function as follows:</p><disp-formula id="scirp.75305-formula322"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/75305x3.png"  xlink:type="simple"/></disp-formula><p>When the output voltage of the virtual synchronous generator is not equal to the grid voltage (which is usually the rated value of the virtual synchronous generator), the output voltage needs to be changed to equal to the gird voltage. Set the translation of U as:</p><disp-formula id="scirp.75305-formula323"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/75305x4.png"  xlink:type="simple"/></disp-formula><p>So the output voltage can be expressed as:</p><disp-formula id="scirp.75305-formula324"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/75305x5.png"  xlink:type="simple"/></disp-formula><p>The following formula can be proved in accordance with the literature [<xref ref-type="bibr" rid="scirp.75305-ref12">12</xref>]:</p><disp-formula id="scirp.75305-formula325"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/75305x6.png"  xlink:type="simple"/></disp-formula><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Reactive voltage droop</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x7.png"/></fig><p>Therefore, the state value of pre synchronization voltage is equal to the grid voltage.</p></sec><sec id="s3_1_2"><title>3.1.2. Phase Pre Synchronization</title><p>Phase pre synchronization can eliminate the phase between inverter and grid. The schematic diagram of the phase pre synchronization control strategy is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. Δθ is difference between grid phase θg and inverter phase θinv. Put Δθ into Pi part. The output of the PI is the angular frequency compensation. Only θg and θinv is completely equal, the output of PI is 0, pre synchronization is complete. Otherwise it will always make Δθ get smaller.</p></sec><sec id="s3_1_3"><title>3.1.3. Reference Phase Generation Strategy</title><p>The control strategy can provide continuous reference phase. When switch = 1, the inverter is grid-connected, select switch S connected to the 1 channel, θinv = θg, that is, the phase of the inverter is actually controlled by the grid phase. And when switch = 0, θinv will equal to the sum of ω<sub>0</sub> and the compensation frequency ω<sub>c</sub>. In the process of switching, the angular frequency of the θinv is always continuous and smooth, although the angular frequency is changed slightly.</p><p>On the contrary, when switch changed from 0 to 1, which is inverter change form islanded to grid-connected, the pre phase synchronization strategy makes the inverter phase is equal to grid phase in advance, so the phase in the process of switching also keeps continuous and smooth. Thus, no matter how switch changes and when to change, the reference phase θinv are continuously changes smoothly.</p><p>The principles of the three control strategies are shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>:</p></sec><sec id="s3_1_4"><title>3.1.4. Improved Phase Pre Synchronization</title><p>In this paper the phase difference is not directly put into the PI controller, but first gets the remainder of 2 PI, and it is used as the input of the PI controller after a sine function. Because when the phase difference equal to 2π, 4π actually should also be considered as synchronization. When the difference is 0.01π or 1.99π, the ideal adjustment strategy should consider the former as 0 and the latter as 2π. However, if the sine function is not used, the difference is directly put</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Principle diagram of phase-locked synchronous tracking</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x8.png"/></fig><p>into the PI controller will result in low efficiency and long time tracking. On the other hand, after remainder of 2π, the output possibly arises from 0.01π to 1.99π because of small disturbance, but the phase difference of the system is not large. Add sine function can avoid this error.</p><p>The principle of the control strategy after adding sine function is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>:</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Improved principle diagram of phase-locked synchronous tracking</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x9.png"/></fig></sec></sec></sec><sec id="s4"><title>4. Simulation Analysis</title><p>In order to verify the validity of the control strategy, the simulation model (<xref ref-type="fig" rid="fig5">Figure 5</xref>) is built in the matlab/simulink, the basic parameters of the circuit are as follows: 1000 V DC voltage is 1000 V, AC voltage is 220 V, filter inductance is 3 mH, filter resistor 0.002 ohm, capacitor 100 μF, load is 60 kW, the virtual synchronous generator reference power 100 kW, 0 kvar, reference voltage is 311 V, the reference frequency is 50 Hz. when t = 0.10 s.</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> The simulation model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x10.png"/></fig><sec id="s4_1"><title>4.1. Simulation of Switching from Grid-Connected to Islanded</title><p>The inverter is switched from grid-connected to islanded, the simulation results are as follows:</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> is the output of PLL without improvement, and <xref ref-type="fig" rid="fig7">Figure 7</xref> is the output with improved PLL. This conclusion can be drawn by comparing the two pictures: the improved PLL proposed by this paper can enhance the performance of PLL.</p><p>It can be observed from <xref ref-type="fig" rid="fig8">Figure 8</xref> that the voltage waveform is smooth and continuous. In <xref ref-type="fig" rid="fig9">Figure 9</xref>, when t = 0.1 s the inverters is disconnected from grid and do not provide power to the grid, so the current become smaller. But there is no current disturbance during the switching process.</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Output of PLL before improvement</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x11.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Output of improved PLL</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x12.png"/></fig><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Voltage of inverter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x13.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> Output current of inverter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x14.png"/></fig></sec><sec id="s4_2"><title>4.2. Simulation of Switching from Islanded to Grid-Connected</title><p>The parameters of the circuit are the same. When t = 0.1 s inverter is switched from islanded to grid-connected, the simulation results are as follows:</p><p>It can be observed in <xref ref-type="fig" rid="fig1">Figure 1</xref>0 and <xref ref-type="fig" rid="fig1">Figure 1</xref>1 that the voltage and current waveform are smooth and continuous, which proves that the control strategy is effective. There is no voltage and current disturbance during the switching process.</p></sec></sec><sec id="s5"><title>5. Conclusion</title><p>In order to avoid voltage and current mutation when the inverter is switching between grid-connected and islanded, this paper studies the voltage, current and phase trace strategy. By using these strategies the virtual synchronous generator can realize seamless switching. At the same time this paper proposed an improved PLL to elimination the mutations when the phase is near 0 or 2π. A mathematical model is built in Matlab/Simulink. Simulation results verify the effectiveness and superiority of the proposed strategies.</p><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> Voltage of inverter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x15.png"/></fig><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> Output current of inverter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75305x16.png"/></fig></sec><sec id="s6"><title>Acknowledgements</title><p>This article is supported by the Fundamental Research Funds for the Central Universities: 14CX02172A.</p></sec><sec id="s7"><title>Cite this paper</title><p>Kang, W., Wan, J.B., Zhang, L.X. and Zhang, Q.L. (2017) Research on Seamless Switching Control Strategy Based on Virtual Synchronous Generator. Energy and Power Engineering, 9, 436-444. https://doi.org/10.4236/epe.2017.94B049</p></sec></body><back><ref-list><title>References</title><ref id="scirp.75305-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Yang, X., Du, Y., Su, J., et al. (2016) An Optimal Secondary Voltage Control Strategy for an Islanded MultibusMicrogrid. IEEE Journal of Emerging and Selected Topics in Power Electronics, 4, 1236-1246.</mixed-citation></ref><ref id="scirp.75305-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Pathak, G., Singh, B., Panigrahi, B.K. (2016) Back-Propagation Algorithm-Based Controller for Autonomous Wind-DG Microgrid. IEEE Transactions on Industry Applications, 52, 4408-4415.https://doi.org/10.1109/TIA.2016.2581144</mixed-citation></ref><ref id="scirp.75305-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Golsorkhi, M.S., Lu, D.D. and Guerrero, J.M. (2017) A GPS-Based Decentralized Control Method for Islanded Microgrids. IEEE Transactions on Power Electronics,32, 1615-1625.https://doi.org/10.1109/TPEL.2016.2551265</mixed-citation></ref><ref id="scirp.75305-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Han, Y., Li, H., Shen, P., et al. (2017) Review of Active and Reactive Power Sharing Strategies in Hierarchical Controlled Microgrids. IEEE Transactions on Power Electronics, 32, 2427-2451.https://doi.org/10.1109/TPEL.2016.2569597</mixed-citation></ref><ref id="scirp.75305-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Zhong, Q. and Zeng, Y. (2016) Universal Droop Control of Inverters With Different Types of Output Impedance. IEEE ACCESS, 4, 702-712. 
https://doi.org/10.1109/ACCESS.2016.2526616</mixed-citation></ref><ref id="scirp.75305-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Hirase, Y., Sugimoto, K., Sakimoto, K., et al. (2016) Analysis of Resonance in Microgrids and Effects of System Frequency Stabilization Using a Virtual Synchronous Generator. IEEE Journal of Emerging and Selected Topics in Power Electronics,4, 1287-1298.</mixed-citation></ref><ref id="scirp.75305-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Wu, H., Ruan, X., Yang, D., et al. (2016) Small-Signal Modeling and Parameters Design for Virtual Synchronous Generators. IEEE Transactions on Industrial Electronics,63, 4292-4303.https://doi.org/10.1109/TIE.2016.2543181</mixed-citation></ref><ref id="scirp.75305-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Liu, J., Miura, Y. andIse, T. (2016) Comparison of Dynamic Characteristics Between Virtual Synchronous Generator and Droop Control in Inverter-Based Dis-tributed Generators. IEEE Transactions on Power Electronics,31, 3600-3611. 
https://doi.org/10.1109/TPEL.2015.2465852</mixed-citation></ref><ref id="scirp.75305-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Zhong, Q. and Weiss, G. (2011) Synchronverters: Inverters That Mimic Synchronous Generators. IEEE Transactions on Industrial Electronics,58, 1259-1267. 
https://doi.org/10.1109/TIE.2010.2048839</mixed-citation></ref><ref id="scirp.75305-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Zhong, Q. and Phi-Long, N. (2012) Sinusoid-Locked Loops based on the Principles of Synchronous Machines. Chinese Control and Decision Conference, 2012, 1518-1523. 
https://doi.org/10.1109/ccdc.2012.6244246</mixed-citation></ref><ref id="scirp.75305-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, Y.F. (2013) Research on Operation Control and Distributed Resource of Micro Grid. Xi'an University of Science and Technology.</mixed-citation></ref><ref id="scirp.75305-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Tong, Y.J.(2014) Research on the Switching Control Strategy of Microgrid Islanded And Grid-Connected Modes. Harbin Institute of Technology.</mixed-citation></ref></ref-list></back></article>