
B–64112EN/01
13. FUNCTIONS TO SIMPLIFY
PROGRAMMING
NC FUNCTION
141
Mirror image can be commanded on each axis by programming. Ordinary
mirror image (commanded by remote switch or setting) comes after the
programmable mirror image is applied.
D Setting of programmable mirror image
G51.1 X_ Y_ Z_ ;
is commanded and mirror image is commanded to each axis (as if
mirror was set on the axis).
D Programmable mirror image cancel
G50.1 X_ Y_ Z_ ;
is commanded and the programmable mirror image is canceled.
CAUTION
If mirror image is specified only for one axis on the specified
plane, the operation of the commands is as follows:
D Arc command: The rotation direction is reversed.
D Cutter compensation: The offset direction is reversed.
D Coordinate rotation: The rotation angle is reversed.
When shape of the workpiece is symmetric to an axis, a program for
machining the whole part can be prepared by programming a part of the
workpiece using programmable mirror image and sub program.
Main program
N10 G00 G90 ;
N20 M98 P9000 ;
N30 G51.1 X50.0 ;
N40 M98 P9000 ;
N50 G51.1 Y50.0 ;
N60 M98 P9000 ;
N70 G50.1 X0 ;
(Cancel only X–axis)
N80 M98 P9000 ;
N90 G50.1 Y0 ;
Y
50
0
X
60
100
(1)(2)
(3) (4)
Axis of symmetry (X=50)
Axis of symmetry
(Y=50)
Sub program
O9000 ;
G00 G90 X60.0 Y60.0 ;
G01 X100.0 F100 ;
G01 Y100.0 ;
G01 X60.0 Y60.0 ;
M99
50 60 100
13.10
PROGRAMMABLE
MIRROR IMAGE
(G50.1, G51.1) (M
series)
M series