WARNING:  These are general programming examples and may not be applicable to your machine control.
Check your machine control programming manual for correct G-code, M-code, H or D-codes and
subroutine usage.

 

The following is a programming example to tap six ¼-20 holes ¾” deep @ 1600 RPM, utilizing 2:1 reverse ratio.
This is standard line-by-line programming, with a subroutine used as a tapping cycle.

 

%

O0006

L100 ( subroutine for tap )

N1 G8 M49 (G8 = no feed ramps.  M49 = feed rate & RPM potentiometers are inactive )

N2 G1 Z-.750 F80.

N3 Z.3 F160.  ( double the retract feed rate for 2:1 reverse ratio )

N4 G9 M48  ( G9 = feed ramps active.  M48 = potentiometers active )

N5 G0

N6 M17 ( M17 = end of subroutine )

N7 M30 ( M30 = end of all subroutines )

N8 T3 M6 (1/4-20 TAP)

N9 G0 X0 Y0 S1600 M3

N10 H3 Z.3 M7

N11 L101

N12 X.750

N13 L101

N14 X1.5

N15 L101

N16 X2.250

N17 L101

N18 X3.

N19 L101

N20 X3.750

N21 L101

N22 T4 M6 (NEXT TOOL)

N23


The following is a programming example to tap six ¼-20 holes ¾” deep @ 1600 RPM, utilizing 2:1 reverse ratio.
This is standard line-by-line programming.

 

%

O0006

N1 T3 M6 (1/4-20 TAP)

N2 G0 X0 Y0 S1600 M3

N3 H3 Z.3 M7

N4 G8 M49 (G8 = no feed ramps.  M49 = feed rate & RPM potentiometers are inactive )

N5 G1 Z-.750 F80.

N6 Z.3 F160.

N7 G0 X.750

N8 G1 Z-.750 F80.

N9 Z.3 F160.

N10 G0 X1.5

N12 G1 Z-.750 F80.

N13 Z.3 F160.

N14 G0 X2.250

N15 G1 Z-.750 F80.

N16 Z.3 F160.

N17 G0 X3.

N18 G1 Z-.750 F80.

N19 Z.3 F160.

N20 G0 X3.750

N21 G1 Z-.750 F80.

N22 Z.3 F160.

N23 G9 M48  ( G9 = feed ramps active.  M48 = potentiometers active )

N24 T4 M6 (NEXT TOOL)

N25


The following is a programming example to tap six ¼-20 holes ¾” deep @ 1600 RPM, utilizing

2:1 reverse ratio. Programming example for a FADAL – VMC

 

Notes: When using high range on spindle speed, the “F” code on the G75 line

must also use “.2 ”.  Feed rate and spindle speed potentiometers are inactive during G75 Cycle.

 

%

O0006

N1 T3 M6 (1/4-20 TAP)

N2 G0 X0 Y0 S1600.2 M3

N3 H3 Z.3 M7

N4 G8 (G8 = no feed ramps )

N5 G75 G98 R0.3  Z-.750 F1600.2 Q.050 P100  ( P100 = double retract feed rate )

N6 X.750

N7 X1.5

N8 X2.250

N9 X3.

N10 X3.750

N11 G80 G9 ( G9 = feed ramps active )

N12 T4 M6 (NEXT TOOL)

N13