13. Program Support Functions
13.21 Coordinate Rotation by Program; G68.1/G69.1
451
Example of program (Local coordinate designation during program coordinate rotation)
(1) When "#19003 PRG coord rot type" is "0", it is on the coordinate system after coordinates
rotation that the commanded position is set as the local coordinate zero point.
(2) When "#19003 PRG coord rot type" is "1", it is on the coordinate system before coordinates
rotation that the commanded position is set as the local coordinate zero point. Then the
coordinates system is rotated.
N01 G17 G28 X0. Y0.;
N02 G90 G92 G53 X0. Y0.;
N03 G68.1 X20. Y0. R90.;
Coordinate rotation ON
N04 G52 X10. Y10.;
Local coordinate designation
N05 X20.;
N06 Y10.;
N07 G69.1 ;
Coordinate rotation cancel
N08 M02 ;
End
N03
(Local
coordinate
system)
Y
X
Y'
(Rotation center)
(Workpiece
coordinate system)
(1) Operation of #19003 = 0
(2) Operation of #19003 = 1
Y,Y'
X,X'
(Workpiece
coordinate
system)
N04
Y
X
Y'
Y"
(Workpiece
coordinate
system)
Y,Y'
X,X'
X"
Y"
(Rotation center)
(Workpiece
coordinate
system)
(Local coordinate
designation)
N05
Y
X
X"
Y"
(Workpiece
coordinate
system)
Y
X
X"
Y"
(Rotation center)
(Workpiece
coordinate
system)
(The start point
is rotated
virtually.)
N06
Y
X
X"
Y"
(Workpiece
coordinate
system)
Y
X
X"
Y"
(Workpiece
coordinate
system)
(Local coordinate
system)
Start point:
(X",Y")=(10,30)
(X",Y")=(20,30)
(Local coordinate
system)
(Local coordinate
system)
Start point:
(X",Y")=(-10,-10)
(X",Y")=(20,-10)
(X",Y")=(20,30)
(X",Y")=(20,10)
(X",Y")=(10,30)
(X",Y")=(20,-10)
(X",Y")=(20,10)
(Local coordinate
system)
Y=-20
X=20
X=30
Y=-10
X=30
Y=-10
Y=1
Y=1
X=40
Y=1
X=30
Y=10
X=40
X=20
W
X'
W'
Workpiece coordinate system is rotated virtually.
Workpiece coordinate system is not rotated.
W,W'
(Workpiece coordinate
system after rotation)
X' X"
The workpiece coordinate zero point after rotation is considered as
(X,Y)=(0,0). The position after shifted by 10 each in the X and Y
direction is set as the local coordinate zero point.
- The direction of the shift is not the direction of X' and Y'.
Designate the local coordinate system on the
workpiece coordinate system.
The commanded axis moves on the rotation coordinate system.
- Axis without movement command does not move.
The commanded axis moves on the rotation coordinate system.
- Axis without movement command moves to the position on
rotation coordinate system.
W,W'
(Local
coordinate
designation)
(Workpiece
coordinate
system is rotated
virtually.)
W
L
L
L
L
L
W
W
W
W
L
(Local coordinate system)
(X,Y)=(10,10)
(X,Y)=(0,0)