Based on the old Siemens numerical control system,some commonly used subroutines were compiled by the author,which are used to realize the fixed cycle function of typical hole and surface processing.Several typical hole and surface processing subroutine programming ideas and program content were elaborated in this paper.And these subroutine compilation and method of application had been introduced through example.The old numerical control machine's programming efficiency had greatly improved by these subroutines and both working range and operation function of the machine tool were expanded.