A controller for a sensorless permanent magnet synchronous motor having a rotor using a permanent magnet, the rotor rotating by a rotating magnetic field caused by a current flowing through an armature is provided. The controller is configured to apply a pulse voltage for generating a magnetic field vector for searching for the initial position to each of search sections obtained by dividing a target range, narrow down a target range in such a manner that a search section in which a largest amount of current flows through the armature by application of the pulse voltage is selected as a subsequent target range, and repeat the application processing and the narrow-down processing to estimate the initial position.
展开▼