13. Program Support Functions
13.21 Coordinate Rotation by Program; G68.1/G69.1
449
Example of program
(Program coordinate rotation by absolute command)
N01 G28 X0. Y0.;
N02 G54 G52 X200. Y100. ;
Local coordinate designation
N03 T10 ;
N04 G68.1 X-100. Y0. R60. ;
Coordinate rotation ON
N05 G22 H101 ;
Subprogram execution
N06 G69.1 ;
Coordinate rotation cancel
N07 G54 G52 X0 Y0 ;
Local coordinate system cancel
N08 M02 ;
End
Subprogram
(Shape programmed with original coordinate system)
N101 G00 X-100. Y-40.;
N102 G83 X-150. R-20. F100 ;
N103 G00 Y40. ;
N104 G83 X-150. R-20. F100 ;
N105 G23
-100.
Actual
machining
shape
(Programmed coordinates)
-100.
100.
Y
X
100.
200.
-100.
N101
N102
N103
N104
Y'
X'
60°
Local
coordinates
(before rotation)