Patent ID: 8441219

Claim:
A motor control device which controls an inverter thereby to control an electric motor, comprising: a plurality of function sections including: a voltage command generating section which generates a d-axis voltage command and a q-axis voltage command; a voltage operation processing section which delivers an energization signal to the inverter including a switching element and driving the motor, based on the d-axis voltage command and the q-axis voltage command both generated by the voltage command generating section; a current detecting section which detects current flowing in a winding of the motor when the voltage operation processing section has delivered the energization signal to the inverter; an input current operation section which obtains the d-axis current that is an excitation component current and the q-axis current that is a torque component current, based on the current detected by the current detecting section; a speed information generating section which estimates or detects a rotational speed of the motor based on at least one of a motor constant, the d-axis voltage command generated by the voltage command generating section, the q-axis voltage command generated by the voltage command generating section, the d-axis current obtained by the input current operation section, the q-axis current obtained by the input current operation section, thereby delivering a rotational speed signal; and a positional information generating section which delivers positional information about a rotor of the motor, based on the rotational speed signal delivered by the speed information generating section; a processor which executes control software provided by a user or a manufacturer, wherein: at least a part of the function sections are configured by hardware; the function section configured by the hardware is provided with at least one parameter retaining section including an input register, an output register, an inner variable register, an inner constant register; the parameter retaining section is configured so as to be readable/writable on the processor; the function section configured by the hardware is adapted to be operated in a predetermined sequence; and each function section is realized by executing the control software by the processor, and the function realized by executing the control software by the processor is configured so as to be switchable to the function section configured in the hardware.