The invention discloses a rare earth permanent magnet direct drive drilling machine. The drilling machine comprises a back-up wrench, wherein an NC protection connector is movably arranged on the inner side of the back-up wrench. The drilling machine adopts a top drive mode and has the advantages of being long in stroke, high in efficiency, high in reliability and the like; the drilling machine adopts a permanent magnet motor direct driving scheme, has no reduction gearbox, controls the rotating speed of the drilling machine through a frequency converter, and has the advantages of low noise, compact structure, simple control algorithm and the like; the drilling machine can carry out three-joint drilling, the efficiency is much higher than that of single-joint drilling, the lifting capacityis high, pump starting for hole bottom cleaning is carried out at any time, and drilling accidents are very convenient to handle; a winch of the drilling machine can achieve automatic bit feeding, hovering and friction-free braking, and the working conditions that a brake strap, a hub and a disc brake working clamp of a traditional drilling machine control the drilling down and bit feeding speedthrough friction force are replaced; and an intelligent driller console of the drilling machine has the functions of drilling machine operation and drilling parameter real-time display, electro-hydraulic system operation monitoring and display, fault display and alarm, and the automation, intelligence and integration levels in the drilling process are improved.