In, a protective relay is a device designed to trip a when a is detected. The first protective relays were electromagnetic devices, relying on coils operating on moving parts to provide detection of abnormal operating conditions such as over-current,, reverse flow, over-frequency, and under-frequency.