A teaching CNC flame cutting machine about intersecting curve at the end of pipe was developed after transformation work of mechanical devices and CNC system of lathe C616A. Mechanical devices and hardware and software of CNC system were introduced in details. Pipe rotary, axial feed and torch movement devices were the main parts of the mechanical devices. It provides reference for transformation and reuse of idle equipments of enterprises and universities.