I'm looking for help writing a G code or a macro for deep hole drilling. What I need is code so I can start driiling at a depth in a hole that I already have drilled but be able to retract to the top of the hole. The control I'm trying to do this on is a Fanuc 310is. Any help would be appreciated. Or if anybody knows how to do this in MasterCam that would be great also. Thanks