Controlling system of measuring automatic power frequency