Abstract:To realize automatic micro-turning machining,a micro-turning machining control system was developed based on LabVIEW.In the system,modular design was used,including an initialization module,positioning tool setting module,G code machining module,and real-time coordinate display module.The oblique line interpolation was realized by calculating the speed ratio of the two axes of the plane and assigning the corresponding value,and the circular interpolation was realized by the point-by-point comparison method.To improve the efficiency of micro-turning programming,a micro-turning G code automatic generation system was developed based on Python,which included a parameter setting module,cutting setting module,and G code generation module.The automatic generation system of G code was used to obtain the G code,and then the generated G code was imported into the control system 〖JP2〗of micro-turning.The micro-turning experiment of an aluminum alloy bar with a diameter of 3 mm was carried out,and the micro-〖JP〗step shaft,ball-point pen head,and micro-thread were successfully machined.