Patent ID: 8566631

Claim:
A programmable controller comprising: one or more extension units; a CPU unit for controlling the extension units, the extension units being sequentially connected to the CPU unit; a power line for supplying a first electric power from an external power source to the extension units and the CPU unit; and a charging element for supplying a second electric power to the extension units and the CPU unit via the power line when supply of the first electric power is cut off, wherein the CPU unit includes: a first voltage detection circuit for detecting an output voltage of the charging element and outputting a voltage reduction signal when the detected output voltage is lowered to a level equal to or lower than a first reference value; and a signal output circuit for outputting a first power supply stop signal in response to the voltage reduction signal outputted from the first voltage detection circuit, and wherein each of the extension units includes: a power circuit for generating an internal electric power from the first or the second electric power supplied via the power line; a second voltage detection circuit for detecting an output voltage of the power circuit and outputting a second power supply stop signal when the detected output voltage of the power circuit is lowered to a level equal to or lower than a second reference value; and a power supply stop circuit for stopping the power circuit if the first or second power supply stop signal is inputted from the signal output circuit of the CPU unit or the second voltage detection circuit of another extension unit.