Working principle of three phase energy meter