摘要 |
A motor control device comprises: a motor control unit that controls a motor; and a signal output unit that outputs a signal according to rotation of the motor, wherein the motor control unit controls the motor based on an output signal of the signal output unit so that a driven object driven by the motor is displaced to a target stop position. The motor control unit is configured to function as: a first control unit that estimates a upper current limit and controls the motor according to the upper current limit; a second control unit that controls motor according to an operated amount of at least one of the motor or the driven object; a switching unit that switches between the first control unit and the second control unit; a first calculating unit that calculates an amount necessary for stop; and a second calculating unit. |