a motor drive ground fault detection device operates by computing the total rms voltage of all the phases , and comparing the total rms voltage to a threshold to determine if a ground fault has occurred .