Abstract: An object is to provide a permanent magnet motor controller capable of suppressing the rotary bending vibration that occurs in the permanent magnet motor effectively with simple configuration. A permanent magnet motor controller uses the dq coordinate conversion. A dq target current setting part adds the current component (i*da) that cancels the magnetic attractive force acting in the radial direction of the rotational shaft of the rotor of the permanent magnet motor to the d-axis target current value, whereby the eccentricity of the rotational shaft of the rotor is reduced.