A motor control apparatus comprising: a control unit configured to output, in accordance with a phase sequence with respect to a motor, a drive command signal which is generated based on a motor rotation signal output from a motor rotation detector to control the motor; and a trouble handling unit (19, 19A) configured: to receive a trouble signal showing a trouble with rotation of the motor; and to perform a rotation direction adjusting process or a rotation direction reversing process according to the trouble signal, the rotation direction adjusting process including matching the rotation direction corresponding to the phase sequence to rotation direction information included in the motor rotation signal, the rotation direction reversing process including reversing a motor rotation direction with respect to the drive command signal; characterized in that the trouble handling unit comprises a rotation direction adjusting unit configured to perform the rotation direction adjusting process if the trouble signal is a first trouble signal showing excessive motor current or excessive motor speed; wherein the motor is a synchronous motor, and wherein the control unit is configured to generate the drive command signal based on a magnetic pole position signal of the synchronous motor based on the motor rotation signal and is configured to detect an initial magnetic pole position in accordance with the first trouble signal; with motor control apparatus further comprising: a correction value setting unit configured to set a correction value for the magnetic pole position based on the magnetic pole position at a time of generation of a detection origin signal of the motor rotation detector in a predetermined period; and a correction value resetting unit configured to perform a predetermined resetting process on the correction values set by the correction value setting unit in response to the first trouble signal. a control unit configured to output, in accordance with a phase sequence with respect to a motor, a drive command signal which is generated based on a motor rotation signal output from a motor rotation detector to control the motor; and a trouble handling unit (19, 19A) configured: to receive a trouble signal showing a trouble with rotation of the motor; and to perform a rotation direction adjusting process or a rotation direction reversing process according to the trouble signal, the rotation direction adjusting process including matching the rotation direction corresponding to the phase sequence to rotation direction information included in the motor rotation signal, the rotation direction reversing process including reversing a motor rotation direction with respect to the drive command signal; characterized in that to receive a trouble signal showing a trouble with rotation of the motor; and to perform a rotation direction adjusting process or a rotation direction reversing process according to the trouble signal, the rotation direction adjusting process including matching the rotation direction corresponding to the phase sequence to rotation direction information included in the motor rotation signal, the rotation direction reversing process including reversing a motor rotation direction with respect to the drive command signal; characterized in that the trouble handling unit comprises a rotation direction adjusting unit configured to perform the rotation direction adjusting process if the trouble signal is a first trouble signal showing excessive motor current or excessive motor speed; wherein the motor is a synchronous motor, and wherein the control unit is configured to generate the drive command signal based on a magnetic pole position signal of the synchronous motor based on the motor rotation signal and is configured to detect an initial magnetic pole position in accordance with the first trouble signal; with motor control apparatus further comprising: a correction value setting unit configured to set a correction value for the magnetic pole position based on the magnetic pole position at a time of generation of a detection origin signal of the motor rotation detector in a predetermined period; and a correction value resetting unit configured to perform a predetermined resetting process on the correction values set by the correction value setting unit in response to the first trouble signal. a correction value setting unit configured to set a correction value for the magnetic pole position based on the magnetic pole position at a time of generation of a detection origin signal of the motor rotation detector in a predetermined period; and a correction value resetting unit configured to perform a predetermined resetting process on the correction values set by the correction value setting unit in response to the first trouble signal.