Abstract:The general macroprogram was completed for the location of circular uniform holes, milling internal thread, milling helical inner bores and the location of parallel array apertures, by utilizing macro function of the FANUC system of the machining centre. In this way, the partial complex numerical calculation was avoided, and then the programming efficiency was improved.