A programmable logic controller, comprising: a control unit configured to control a target device; a power cut detection unit configured to output a signal for notifying a power cut to the control unit when the voltage level of an input voltage decreases below a reference level; and a power supply circuit, the power supply circuit including a first node configured to receive a DC voltage with a first level, a second node configured to output a voltage for driving the control unit, the power supply circuit being characterized by: wiring connecting the first node and the second node, a first rectifier arranged on the wiring, an anode of the first rectifier being connected to the first node and a cathode of the first rectifier being connected to the second node, so that the first rectifier has a forward direction from the first node to the second node, a charger configured to perform charging and discharging, a first DC-DC converter configured to convert a discharging voltage output from the charger into a DC voltage with a second level that is lower than the first level, and output the DC voltage, a second rectifier connected between an output of the first DC-DC converter and the second node to have a forward direction from the first DC-DC converter to the second node, and a second DC-DC converter configured to convert the DC voltage that is fed to the first node into a DC voltage with a third level that is higher than the first level, and to output the DC voltage with the third level to the charger as a charging voltage, wherein the programmable logic controller is configured to switch a path of a power supply voltage to the control circuit at a power cut from the path from the power supply through the wiring to the second node to the path from the charger through the first DC-DC converter to the second node. a control unit configured to control a target device; a power cut detection unit configured to output a signal for notifying a power cut to the control unit when the voltage level of an input voltage decreases below a reference level; and a power supply circuit, the power supply circuit including a first node configured to receive a DC voltage with a first level, a second node configured to output a voltage for driving the control unit, the power supply circuit being characterized by: wiring connecting the first node and the second node, a first rectifier arranged on the wiring, an anode of the first rectifier being connected to the first node and a cathode of the first rectifier being connected to the second node, so that the first rectifier has a forward direction from the first node to the second node, a charger configured to perform charging and discharging, a first DC-DC converter configured to convert a discharging voltage output from the charger into a DC voltage with a second level that is lower than the first level, and output the DC voltage, a second rectifier connected between an output of the first DC-DC converter and the second node to have a forward direction from the first DC-DC converter to the second node, and a second DC-DC converter configured to convert the DC voltage that is fed to the first node into a DC voltage with a third level that is higher than the first level, and to output the DC voltage with the third level to the charger as a charging voltage, a first node configured to receive a DC voltage with a first level, a second node configured to output a voltage for driving the control unit, the power supply circuit being characterized by: wiring connecting the first node and the second node, a first rectifier arranged on the wiring, an anode of the first rectifier being connected to the first node and a cathode of the first rectifier being connected to the second node, so that the first rectifier has a forward direction from the first node to the second node, a charger configured to perform charging and discharging, a first DC-DC converter configured to convert a discharging voltage output from the charger into a DC voltage with a second level that is lower than the first level, and output the DC voltage, a second rectifier connected between an output of the first DC-DC converter and the second node to have a forward direction from the first DC-DC converter to the second node, and a second DC-DC converter configured to convert the DC voltage that is fed to the first node into a DC voltage with a third level that is higher than the first level, and to output the DC voltage with the third level to the charger as a charging voltage, wherein the programmable logic controller is configured to switch a path of a power supply voltage to the control circuit at a power cut from the path from the power supply through the wiring to the second node to the path from the charger through the first DC-DC converter to the second node. from the path from the power supply through the wiring to the second node to the path from the charger through the first DC-DC converter to the second node.