An input circuit has a first current-limiting resistor, a second current-limiting resistor, and an AC-input photocoupler. The photocoupler has an input terminal connected to a first external terminal and another input terminal connected to a positive electrode through the first current-limiting resistor and also to a ground electrode through the second current-limiting resistor. The first external terminal is connected to a PNP transistor and NPN transistors.