The present invention provides an
electric motor allowing stable drive control to be performed even when, in multipole motors, a
resolver is used in a
position sensor and combinations are realized in which the
pole number ratio between the number of poles in the
electric motor and the number of poles in the
resolver is an indivisible non-integer multiple. This
electric motor is characterized in that: said electric motor comprises an electric motor body, a
position sensor that detects the position of a rotor of the electric motor body, and a control device that controls driving of the electric motor body; the control device includes a
vector control unit that calculates a
voltage command value on the basis of information on current flowing in the electric motor body and information on the position of the rotor detected by the
position sensor, and an electrical angle phase calculation unit that calculates the electrical angle phase of the electric motor body; the electrical angle
phase conversion unit includes an electrical angle conversion unit that converts sensor phase information, which is phase information for the motor body as acquired from the position sensor, into electrical angle phase information, which is phase information for the electrical angle of the rotor, in accordance with the
pole number ratio, which is the ratio of the number of rotor poles, which is the number of poles of the rotor, and the number of position sensor poles, which is the number of poles of the position sensor, and outputs the electrical angle phase information, a rotor phase
estimation unit that estimates the phase information of the electrical angle of the rotor and outputs the resulting estimate as a position
estimation result, a
phase correction amount calculation unit that calculates a
phase correction amount according to the sensor phase information and the position
estimation result, and a
phase correction amount addition unit that generates corrected electrical angle phase information according to the value obtained by adding the phase correction amount to the electrical angle phase information; and the phase correction amount calculation unit calculates an
initial phase correction amount according to the position
estimation result for when the position sensor outputs 0-degree-phase information as the sensor phase information, calculates, once the
initial phase correction amount has been calculated, a correction unit amount whereby 1 is added when the sensor phase information outputted by the phase sensor when the initial value is 0 has changed from 360 degrees to 0 degrees and 1 is subtracted when the sensor phase information outputted by the phase sensor when the initial value is 0 has changed from 0 degrees to 360 degrees, calculates a unit correction amount, which is the value obtained by multiplying the
pole number ratio decimal value by 360 degrees, said pole number ratio decimal value being the value of the pole number ratio after the decimal point, and calculates as the phase correction amount a value obtained by multiplying the unit correction amount by the correction unit number and adding the resulting product to the
initial phase correction amount.