Grid capacitor compensation connection method