I take a look at using the G98 and G99 G-Codes that is used to avoid clamps and obstacles when using drilling canned cycles
G98 Canned Cycle Initial Point Return (Group 10)
G82 Counter bore cycle with G98 and G99 G Codes explained
DESIGN AND IMPLEMENTATION OF FPGA BASED G CODE COMPATIBLE CNC LATHE CONTROLLER
G-Code Tutor
G-Code CNC: Understanding Programming Code for CNC Machining
mill turn PP, drilling in radial direction
/wp-content/uploads/2017/08/G81
G-Codes
G81 Drilling Cycle G83 Peck Drilling with G98 G99 Example Program
Drilling help - #59 by darkprognosis - Advice - V1 Engineering Forum