Before grid connection, voltage, frequency and phase angle of generator and grid must match — incorrect synchronization generates short-circuit currents and damages the generator.
Generator protection relay and grid protection module during connection to the supply network.