
5.PROGRAM INPUT NC FUNCTION B-63942EN/02
- 250 -
5.45 PROGRAMMABLE MIRROR IMAGE
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.
Format
- Setting of programmable mirror image
Following format is commanded and mirror image is commanded to
each axis (as if mirror was set on the axis).
G51.1 IP_;
- Programmable mirror image cancel
Following format is commanded and the programmable mirror image
is canceled.
G50.1 IP_;
CAUTION
If mirror image is specified only for one axis on the
specified plane, the operation of the commands is
as follows:
• Arc command:
The rotation direction is reversed.
• Cutter compensation:
The offset direction is reversed.
• Coordinate system 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.
Y
10060
50
0
50
X
60
100
(1)(2)
(3) (4)
xis of symmetry
(X=50)
xis of symmetry (Y=50)
40
40
0
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 ;
Sub program
O9000 ;
G00 G90 X60.0 Y60.0 ;
G01 X100.0 F100 ;
G01 Y100.0 ;
G01 X60.0 Y60.0 ;
M99 ;