Hand-coding drilling cycles is repetitive and error-prone, especially across a grid of holes. This tool builds a complete G81 or G83 canned-cycle block from your depth, feed, speed, and a list of hole coordinates, emitting a program you can paste directly into the controller.
How it works
A canned cycle sets the drilling parameters once on the first hole, then repeats for every subsequent X and Y position because the cycle is modal. The generated block follows the standard Fanuc-style structure:
G90 G54 G17 G21
S<rpm> M03
G00 X<first> Y<first>
G00 Z<retract>
G98 G83 X.. Y.. Z<depth> R<retract> Q<peck> F<feed>
X.. Y.. (remaining holes)
G80
M05
For G81 the Q peck word is dropped and the drill plunges straight to depth. G98 returns the tool to the initial Z between holes, and G80 cancels the cycle at the end so following moves behave normally.
How it works in practice and notes
The tool validates that your retract plane sits above the final depth and that feed, speed, and peck values are positive, so a malformed cycle is caught before it reaches the machine. Holes are read one per line as x, y pairs, separated by a comma or space. Always dry-run or single-block the program first, confirm the retract plane clears every clamp, and adjust feeds and speeds to the drill and material before committing to a full run.