Patent ID: 9541916
Date: 2017-01-10
CPC Classifications: G05B

Claim:
1. A motor control apparatus having a movable part which is driven by a motor and a driven part which is driven by the movable part, comprising a first position detector which detects the position of the movable part, a second position detector which detects the position of the driven part, an error calculation unit which calculates an error between a first position detection value detected by the first position detector and a second position detection value detected by the second position detector, a storage unit which stores the errors calculated by the error calculation unit when the movable part engages with the driven part in a first drive direction and in a second drive direction opposite to the first drive direction, as a first initial error and a second initial error, respectively, and a compensation calculation unit which calculates the amount of compensation to compensate backlash between the movable part and the driven part and an elastic deformation caused by the engagement of the movable part with the driven part, wherein the compensation calculation unit calculates a compensation based on the first initial error and the second initial error stored by the storage unit and a predetermined constant which is larger than 0 and not greater than 1 and calculates the amount of compensation by subtracting the current error calculated by the error calculation unit from the initial error, wherein when the drive direction after reversing the motor is the first drive direction, the compensation is represented by wherein when the drive direction after reversing the motor is the second drive direction, the compensation is represented by wherein ΔP