Page 1 of 5 Pages
Page 1 of 5 Pages
Page 1 of 5 Pages
Page 1 of 5 pages
G-code, M-code, and Setting
G72 W... R... G72 F... I... K... P... Q... S... T... U... W...
The P values are modal. This means if you are in the middle of a canned cycle and a G04 Pnn or an
NOTE M97 Pnn is used the P value will be used for the dwell / subprogram as well as the canned cycle.
G72 Basic G Code Example: [P] Starting block, [1] Start position, [Q] Ending block.
%
O60721 (G72 END FACE STOCK REMOVAL EX 1) ;
(G54 X0 is at the center of rotation) ;
(Z0 is on the face of the part) ;
(T1 is an end face cutting tool) ;
(BEGIN PREPARATION BLOCKS) ;
T101 (Select tool and offset 1) ;
G00 G18 G20 G40 G80 G99 (Safe startup) ;
G50 S1000 (Limit spindle to 1000 RPM) ;
G97 S500 M03 (CSS, spindle on CW) ;
G00 G54 X6. Z0.1 (Rapid to clear position) ;
M08 (Coolant on) ;
Page 2 of 5 pages
G-code, M-code, and Setting
%
O60722(G72 END FACE STOCK REMOVAL EX 2) ;
(G54 X0 is at the center of rotation) ;
(Z0 is on the face of the part) ;
(T1 is an end face cutting tool) ;
(BEGIN PREPARATION BLOCKS) ;
T101 (Select tool and offset 1) ;
G00 G18 G20 G40 G80 G99 (Safe startup) ;
G50 S1000 (Limit spindle to 1000 RPM) ;
G97 S500 M03 (CSS, spindle on CW) ;
G00 G54 X4.05 Z0.2 (Rapid to 1st position) ;
M08 (Coolant on) ;
G96 S200 (CSS on) ;
(BEGIN CUTTING BLOCKS) ;
G72 P1 Q2 U0.03 W0.03 D0.2 F0.01 (Begin G72);
N1 G00 Z-1.(P1 - Begin toolpath) ;
G01 X1.5 (Linear feed) ;
X1. Z-0.75 (Linear feed) ;
G01 Z0 (Linear feed) ;
N2 X0(Q2 - End of toolpath) ;
G70 P1 Q2 (Finishing cycle) ;
(BEGIN COMPLETION BLOCKS) ;
Page 3 of 5 pages
G-code, M-code, and Setting
• The first type of path (Type 1) is when the Z Axis of the programmed path does not change direction. The
second type of path (Type 2) allows the Z Axis to change direction. For both the first type and the second
type of programmed path the X Axis cannot change direction. If Setting 33 is set to FANUC, Type 1 is
selected by having only an X-axis motion in the block specified by P in the G72 call.
• When both an X-axis and Z-axis motion are in the P block then Type 2 roughing is assumed.
G72 End Face Stock Removal Cycle: [P] Starting block, [1] X-Axis clearance plane, [2] G00 block in P, [3] Programmed
path, [4] Roughing allowance, [5] Finishing allowance.
The G72 consists of a roughing phase and a finishing phase. The roughing and finishing phase are handled differently
for Type 1 and Type 2. Generally the roughing phase consists of repeated passes along the X-axis at the specified feed
rate. The finishing phase consists of a pass along the programmed tool path to remove excess material left by the
roughing phase while leaving material for a G70 finishing cycle. The final motion in either type is a return to the
starting position S.
In the previous figure the start position S is the position of the tool at the time of the G72 call. The X clearance plane
is derived from the X-axis start position and the sum of U and optional I finish allowances.
Any one of the four quadrants of the X-Z plane can be cut by specifying address codes I, K, U, and W properly. The
following figure indicates the proper signs for these address codes to obtain the desired performance in the
associated quadrants.
Page 4 of 5 pages
G-code, M-code, and Setting
Page 5 of 5 pages