The PCM/ECM provides ground to one side of the coil of the main relay and the other side is connected to the battery. The PCM/ECM monitors battery voltage and the voltage after the main relay.