13. Program Support Functions
13.21 Coordinate Rotation by Program; G68.1/G69.1
450
Example of program (Operation of only one axis was commanded by first movement
command after coordinate rotation command)
Command basically two axes in the rotation plane by the absolute value immediately after the
coordinate rotation command.
When commanding one axis only, the following two kinds of operation can be selected by the
parameter "#19003 PRG coord rot type".
(1) When "#19003 PRG coord rot type" is "1", the operation is the same as that with "G50.Y0."
commanded in N04. The end point is calculated on the assumption that the start point rotates
along with the coordinates' rotation.
N01 G17 G28 X0. Y0.;
N02 G90 G92 G53 X0. Y0.;
N03 G68.1 X40. Y0. R90.;
Coordinate rotation ON
N04 X50.;
N05 Y50.;
N06 G69.1 ;
Coordinate rotation cancel
N07 M02 ;
End
(Local coordinate
system before
rotation)
(
Local coordinate
system after rotation
)
N04
Y
X
X'
Y'
N05
(
Rotation center
)
X=-10
Y=10
Machine movement path
(
The start point is
rotated virtually.
)
(X',Y')=(50,50)
Start point
: (X’,Y’)=(0,0)
X’=50
Y’=50
(X',Y')=(40,40)
(2)
When "#19003 PRG coord rot type" is "0", only axis commanded in N04 (X' Axis) is moved.
The start point does not rotate along with the coordinate rotation; therefore the end position is
calculated based on the current position on local coordinate system before rotation.
N04
Y
X
X'
Y'
N05
(Rotation center)
X=-10
Y=10
Machine movement path
X'=50
Y'=50
Start point: (X’,Y’)=(40,40)
N01 G17 G28 X0. Y0.;
N02 G90 G92 G53 X0. Y0.;
N03 G68.1 X40. Y0. R90.; Coordinate rotation ON
N04 X50.;
N05 Y50.;
N06 G69.1 ;
Coordinate rotation cancel
N07 M02 ;
End
(Local coordinate
system after
rotation)
(X',Y')=(0,0)
(Local coordinate
system before
rotation)
(X',Y')=(50,50)