The invention discloses a motor of a
stator and rotor split type for a
sewing machine, and the motor is connected with the head of the
sewing machine. The motor comprises a
stator, a rotor, an integrated coder, and a rear cover, wherein the rotor is a hollow shaft. The rotor, the integrated coder and the rear cover are sequentially fixed on a
sewing machine main shaft in the head of the sewing
machine in a coaxial and sleeved manner. The
stator is fixedly connected with the head of the sewing
machine. The integrated coder is connected with a needle rod of the sewing
machine, and can control the angle of the needle rod of the sewing machine. A coder seat is provided with a coder installation column with adjustable height. An optical
grating assembly comprises an optical
grating support, an optical
grating sheet, an optical grating pressure ring, and a clamping spring, wherein the optical grating support is coaxially disposed on the sewing machine main shaft in a sleeved manner, and can be rotated and fixed. After the above structure is employed, the motor is small in axial size, can save the space, is small in load
inertia, and is high in sewing speed. The stator or the rotor can serve as an independent part of the sewing machine, and the motor is small in temperature rise, and is low in
noise. Meanwhile, the angle of the needle rod of the sewing machine can be controlled according to the needs, and the motor is convenient in operation, and is high in sewing precision.