The voltage and frequency relay monitors the status of the grid in the case of in-plant generation systems. Violation of an upper or lower limit results in shutdown and disconnection of the generation system from the grid. Connection or automatic re-connection of the generation system to the grid only takes place when the grid frequency and the grid voltage have remained within their respective tolerance ranges without interruption for the duration of an adjustable time delay tW. Following shutdown due to a brief interruption, re-connection takes place when the grid frequency and grid voltage have remained within the tolerance range for 5 s without interruption.