This CNC program example shows how both G72.1 and G72.2 figure copy functions can call one-another in one part program, read Programming Notes below carefully.
Contents
Programming
Fanuc G72.1 Rotational Copy
Using G72.1 Rotational Copy G-code a figure specified by a subprogram can be repeatedly produced with Rotational movement.
Read G72.1 definition with program example Fanuc G72.1 Rotational Copy (Figure Copy Function CNC Mill)
Fanuc G72.2 Linear Copy
Using G72.2 Linear Copy G-code a figure specified by a subprogram can be repeatedly produced with Linear movement.
Read G72.2 definition with program example Fanuc G72.2 Linear Copy (Figure Copy Function CNC Mill)
Fanuc G81 Drilling Cycle
G81 drilling cycle is used for simple drilling/spot drilling operations.
Read G81 drilling cycle definition with program examples Fanuc G81 Drilling Cycle
Programming Notes
Specifying two or more commands to copy a figure
- G72.1 cannot be specified more than once in a subprogram for making a rotational copy (If this is attempted, alarm PS0900 will occur).
- G72.2 cannot be specified more than once in a subprogram for making a linear copy (If this is attempted, alarm PS0901 will occur).
- In a subprogram that specifies rotational copy, however, linear copy can be specified. Similarly, in a subprogram that specifies linear copy, rotational copy can be specified.
Fanuc G71.2 G72.2 Program Example
Main program
O4000 ; N10 G90 G00 G17 X240. Y230. Z100. ; (P0) N20 G72.1 P4100 X120. Y120. L8 R45. ; N30 G80 G00 X240. Y230. ; (P0) N40 M30 ;
Sub program Rotation copy (G72.1)
O4100 N100 G72.2 P4200 I0 J20. L3 ; N200 M99 ;
Sub program Linear copy (G72.2)
O4200 N110 G90 G81 X120. Y180. R60. Z10. F200. ; (P1) N210 M99 ;