摘要 |
A motor control device for controlling a d-axis current and a q-axis current on dq coordinates to control a motor, includes a q-axis current command value setting unit which sets a q-axis current command value, an upper limit/lower limit setting unit which sets an upper limit and a lower limit of the q-axis current, a comparing unit which compares the q-axis current command value set by the q-axis current command value setting unit and the upper limit and the lower limit set by the upper limit/lower limit setting unit, a q-axis current command value limiting unit which puts a limit on the q-axis current command value in accordance with a comparison result by the comparing unit, and a d-axis current command value setting unit which sets a d-axis current command value on the basis of the q-axis current command value limited by the q-axis current command value limiting unit. |