Residual current relays RD2 or RD3 can measure or detect leakage currents or fault currents to earth using a toroidal transformer TR and, if necessary, switch them off using a suitable protective device (e.g. automatic circuit breaker).