Judgment and distinguishing method of thermocouple positive and negative polarity