The application relates to the technical field of
servo motor testing, in particular to a motor automatic debugging method and
system. The method comprises the following steps: receiving a mode test instruction, entering a debugging mode of a
servo motor, executing a correction mode, running the
servo motor to a first preset speed, and correcting an
encoder of the servo motor; executing a zero adjustment mode, running the servo motor to a second preset speed, finding a zero point, and storing the zero point in the
encoder; executing a running test mode, running the servo motor at a rated speed to detect whether a target current of the servo motor at the rated speed is within a preset
current range; when the target current is within the preset
current range, executing a parameter writing mode instruction, and writing motor parameters corresponding to the servo motor into the
encoder; writing the motor parameters into a servo driver, and completing debugging, wherein the servo
server corresponds to the servo motor.