Hi Kieth,
Peck drilling cycle works like this :-
Short retract type, just breaks the chip, drill stays down the hole.
G73 Z-1. R.1 Q.1 F3.
Z = final depth of hole
R= safe starting distance above job
Q= depth of each peck
F= feed rate
or
Full retract type, every peck the drill moves back to start position (R) and then rapids back to cutting depth.
G83 Z-1. R.1 Q.1 F3.
Z = final depth of hole
R= safe starting distance above job
Q= depth of each peck
F= feed rate
If you add a G98 to the line it forces the tool to rapid back the the safe start point.
If you add a G99 to the line it forces the tool to rapid back to the R point. You should then put a G98 on the last move
If you have 4 holes to drill on 1" centers you would do something like :-
N1 (DRILL 1/4" * 2" DEEP)
G54 G00 G90 G43 X0 Y0 Z25. H1 S1000 M3
G73 G99 Z-2. R.1 Q.25 F2.
X-1.
X-2.
X-3. G98
G80
G91 G28 Z0
M30
Graham.