摘要 |
PROBLEM TO BE SOLVED: To control a motor so as to avoid step-out during drive control thereof when a difference between a measured advance angle and a target advance angle is large.SOLUTION: A motor controller performs advance angle control of a motor 107 in response to a position detection signal of a rotor shaft. A drive waveform table storage part 104 stores drive waveform data, and a CPU 101 obtains an address value of a drive waveform table by synchronizing with the position detection signal. When a difference which is calculated from a target phase value of a drive waveform in the advance angle control and a phase value of a drive waveform obtained at the timing of this position detection signal exceeds a threshold, the CPU 101 performs control for restricting a phase change amount that is corrected by changing a period of the drive waveform. When the calculated difference is the threshold or less, the CPU 101 performs control for changing the period so that the phase value of the drive waveform corresponds with the target phase value at a time when a transition time corresponding to an adjustment phase value has passed since the current time. |