摘要 |
PROBLEM TO BE SOLVED: To provide a motor controller which enables maximum utilization of the voltage of a battery without providing a margin for map data. SOLUTION: In a map data storing computing part 10, a plurality of map data (data representing relations to torque command values, rotational speeds, and current command values) according to the magnitude of the battery voltage are stored. The duty ratio of a PWM signal outputted from a PWM forming part 8 is detected in a duty ratio finding part. If the rate of the 100% duty section of the PWM signal is higher than a specified value, a map data for lower battery voltage is used. If the rate of the 100% duty section is lower than the specified value, a map data for higher battery voltage is used. Since the 100% duty section of the PWM signal can be kept approximately constant by doing this way, it is possible to control a motor M1 stably, and use the battery voltage with the maximum of efficiency. |