
PROGRAMMING
B–63194EN/02
11. FUNCTIONS TO SIMPLIFY
PROGRAMMING
139
O1000 ;
N10 G92 X–20.0 Y0 ;
N20 G00 G90 X0 Y0 ;
N30 G01 G17 G41 X20. Y0 D01 F10 ; (P0)
N40 Y20. ; (P1)
N50 X30. ; (P2)
N60 G72.2 P2000 L3 I90. J0 ;
O2000 G90 G01 X40. ; (P3)
N100 Y40. ; (P4)
N200 G01 X80. ; (P5)
N300 G01 Y20. ; (P6)
N400 X100. ; (P7)
N500 M99;
Main program
Although a shift of 70 mm was required, I90.0 was
specified instead of I70.0. Since an incorrect shift
was specified, the end point of the figure made by
the n–th copy disagrees with the start point of the
figure to be made by the next (n + 1) copy.
Subprogram
G72.1 cannot be specified more than once in a subprogram for making a
rotational copy (If this is attempted, P/S alarm No.160 will occur). G72.2
cannot be specified more than once in a subprogram for making a linear
copy (If this is attempted, P/S alarm No. 161 will occur).
Within a program that performs a rotational or linear copy, the following
must not be specified:
⋅Command for changing the selected plane (G17 to G19)
⋅Command for specifying polar coordinates
⋅Reference position return command
⋅Coordinate system rotation, scaling, programmable mirror image
The command for rotational or linear copying can be specified after a
command for coordinate system rotation, scaling, or programmable
mirror image is executed.
The figure cannot be copied during chamfering, corner rounding, or tool
offset.
The two axes of the plane for copying a figure must have an identical unit
system.
Single–block stops are not performed in a block with G721.1 or G72.2.
In a subprogram for copying a figure, the G code for cutter compensation
C or compensation amount (H or D code) cannot be changed. G92 and
G54 to G59 cannot be changed either. Those codes must be specified
before figure copying is started.
Limitations
D Specifying two or more
commands to copy a
figure
D Commands that must not
be specified
D Modes that must not be
selected
D Unit system
D Single block
D Specifying cutter
compensation and the
workpiece coordinate
system