what is difference between canned cycle and subroutine?
A canned cycle is designated with G code recognizable by the control for a specific function with limited customization. G84, for example, is a tapping cycle. The tool will feed to the specified depth, reverse the spindle and feed back to the starting point. A subroutine is a program within a program.