1. A motor control method in a device which drives a mechanism using a motor as a power source, comprising: the profile generation step of, in executing driving, generating an ideal profile of the driving in accordance with a target position and a preset initial parameter; the tracking control step of controlling driving of the motor in accordance with the profile; and the evaluation step of, at an end of the driving, evaluating a value of the initial parameter and changing the value of the initial parameter in accordance with a result of evaluation.