Rotate the coordinate system in the plane (G68/G69)
This function is available as of CNC Build V3.1.3079.33. |
This function rotates a coordinate system in the current plane (G17/G18/G19). Contours programmed in the machine coordinate system can be adapted quickly and easily to workpieces in offset positions.
Contour rotation acts directly on the programmed axis coordinates (contour) before all other contour-influencing functions, i.e. all offsets and mirroring operations are not influenced by the rotation and can be used as before (*).
Rotation may also be applied within an already rotated coordinate system (#(A)CS).
A change of plane with G17/ G18/ G19 automatically deselects an active contour rotation and a warning is output.
As a alternative to G68/ G69, contour rotation can be programmed using #ROTATION.
Syntax (example in G17): | ||
G68 R.. X.. Y.. | Select contour rotation | modal |
G69 | Deselect contour rotation | modal, initial state |
R.. | Rotation angle in degrees [°], absolute. If no angle is specified, the value 0° is set. The rotation angle has no influence on already programmed circle radii. |
X.. Y.. | Absolute coordinates of the centre of rotation in [mm, inch] in the main axes of the current plane. The following applies: G17 - X and Y, G18 - Z and X, G19 - Y and Z With coordinates that are not programmed, the current actual position is set as the centre of rotation. |
a: X.. | b: Y.. | c: R.. |
The programmed rotation parameters can be read with the following variables:
V.G.ROT_ACTIVE | Contains the value 1 if a rotation is active |
V.G.ROT_ANGLE | Rotation angle |
V.G.ROT_CENTER1 | Offset of the first main axis relative to the centre of rotation |
V.G.ROT_CENTER2 | Offset of the second main axis relative to the centre of rotation |
(*) It makes no difference whether the offsets (e.g. G54, G92 etc. ) were programmed before or after G68; they always act in the axis directions of the basic coordinate system of the machine (MCS). In addition, tool offsets always act independently of P-TOOL-00010 in the axis directions of the MCS. |
Programming Example
Rotation in a plane (contour rotation)