Patent ID: 7463463

Claim:
A motor controller comprising: an estimated temperature calculating section that calculates an estimated temperature of a motor, and a motor control section that can perform a drive control of the motor only when the estimated temperature is not larger than a predetermined value, wherein the estimated temperature calculating section is provided with: an estimated temperature storing means that stores the estimated temperature; a first temperature gradient storing means that stores a second temperature gradient while the temperature of the motor decreases from a stop-time temperature to a predetermined first set temperature in correspondence to the stop-time temperature when the motor is stopped; a first temperature gradient calculating means that calculates the first temperature gradient corresponding to the estimated temperature at a time when the motor is stopped from the first temperature gradient storing means in a case that the estimated temperature stored in the estimated temperature storing means when the motor is stopped is larger than the first set temperature; and a first estimated temperature updating means that updates the estimated temperature stored in the estimated temperature storing means according to a lapse of a stopping time of the motor by using the first temperature gradient calculated by the first temperature gradient calculating means.