Patent ID: 8907610

Claim:
A motor control device, comprising: a motor driving unit for driving that drives a motor; a current detecting unit that detects a motor current flowing through the motor; a control unit that compares a detected current value of the motor current detected by the current detecting unit with a target current value to obtain a deviation, to control the motor driving unit based on the deviation; and a compensation unit that sets as a current offset value a detected current value of a drift current detected by the current detecting unit in a state where the motor current is regarded as zero, to compensate the detected current value of the motor current by the current offset value, wherein the compensation unit sets a target offset value in accordance with the current value of the detected drift current to correct the current offset value stepwise, previously set correction value for each cycle, until the current offset value reaches the target offset value, wherein the compensation unit sets as an initial value of the current offset value the detected current value of the drift current detected by the current detecting unit during the time after turning-on of a power source of the motor driving unit until start of operation of the motor driving unit, and wherein the control unit controls the motor driving unit based on a deviation between the detected current value of the motor current, compensated by means of the initial value, and the target current value after start of operation of the motor driving unit.