The G68 command is used to perform rotation (rotation) of the coordinate system by a certain angle.
Command format: G68 X__ Y__ Z__ R
The choice of coordinates depends on the selected plane (G17, G18, G19). X and Y and Z are the coordinates of the point relative to which the coordinate system will be rotated, and R - determines the value of the angle of rotation. If X Y is not specified, then X Y Z are equal to the previous position.
Example: First, create a simple square program.
Rotate the shape 45 degrees, add the line G68 R45.0. Total result: