I agree with kla64
Code:
N2 G00 G17 G20 G40 G80 G90 G94
N4 T18 M6
N6 ("D-DRILL")
N8 S2800 M03
N10 G00 G90 G54 X2. Y-0.5 A0.
N12 M08
N14 G43 H18 Z0.5
N16 G98 G81 X2. Y-0.5 Z-0.875 R0.125 F17.
N18 G80
N20 M09
N22 M05
N24 G0 G91 G28 Z0
N26 G0 G90 X0 Y5
N28 M30
%
But ensure you have the correct signed direction of the value in :-
- G54 Z field ( normally-ive ) ( distance from reference point on spindle to the part origin )
- length offset #18 field ( normally +ive ) ( distance from reference point on spindle to the tool tip )