This paper analyzes type HXD1 locomotive traction motor breakage causes of small gear shaft and motor shaft and proposes ultrasonic flaw detection method. It expounds detailedly the basic constitution, function modules and key technologies of ultrasonic flaw detection system. It also presents the ultrasonic flaw detection process for gear shaft and motor shaft taper hole.