摘要 |
PROBLEM TO BE SOLVED: To reduce an operation load so as to suppress a torque level difference when switching between a current control mode and a voltage phase control mode.SOLUTION: A controller of a motor comprises: a motor constant generation unit 18 which generates a motor constant by using a temperature as a parameter; a current control unit 100 including a current generating unit 1 generating a current command value for the motor 9 on the basis of the motor constant and a torque command value, which performs a current control mode controlling applied voltage to the motor 9 to follow the current command value; a voltage phase control unit 200 including a torque calculator 14 calculating a torque estimation value of the motor 9 on the basis of a torque operation expression, which performs a voltage phase control mode feeding back voltage phase on the basis of a deviation between the torque estimation value and the torque command value; and a control mode switch 17 which switches to the voltage phase control mode in a high rotation region where weak magnetic flux control is performed. The torque operation expression of the torque calculator 14 uses the motor constant used during generation of the current command value in the current control mode in common. |