Capacitor bank protection