摘要 |
A motor control device (10) includes a motor lock state determining unit (23) configured to determine whether a motor (5) is in a rotation lock state; a position hold state determining unit (24) configured to determine whether the motor (5) is in a position hold state; a lock detection invalidation determining unit (25) configured to invalidate the determination of the lock state when the motor (5) is in the position hold state and when a predetermined condition is satisfied; a position error correction unit (26) configured to correct an error of a target stop position of the motor (5) when the determination of the lock state is invalidated; and a motor control unit (27) configured to change a rotation direction of the motor (5) in a time shorter than a time in which the motor lock state determining unit (23) determines the lock state when the motor (5) is in the position hold state after the error is corrected. |