Learn · 6 min

Rotation and polar coordinates

G68 rotates every move after it by an angle R about a centre point, counterclockwise for positive R looking down from +Z, and G69 turns rotation off.

4 holes on a Ø2.0000 in circle, hole 1 at 0°, counting counterclockwise: 1.4142 in hole to hole.1234Ø2.0000 inhole to hole 1.4142 indirection CCW
G16 polar: X1. at Y0, Y90., Y180. and Y270. The circle is to scale; the holes are drawn as marks.

G68: turn the program, not the part

G68 rotates every move after it by an angle R about a centre point. Program a slot square to X, put G68 R30. in front of it, and the machine cuts it at 30°. Positive R turns counterclockwise, looking down from +Z; G69 turns rotation off.

Turned 45° about X0 Y0, a move to X1. Y0 ends at X.7071 Y.7071: the same point the bolt-circle calculator gives for a 1" radius at 45°. On a Haas, G68 needs the Rotation and Scaling option, values on the G68 line itself are not rotated, and cutter comp goes on after G68 and off before G69.

The same G68, three ways

Haas and Mach4 take the centre as X and Y: G68 X1.5 Y1.5 R60. Mach3 takes it as A and B (A is the X of the centre, B the Y), and an I word makes R add to the rotation already set. LinuxCNC has no G68 at all: it rotates a work coordinate system instead, with G10 L2 P1 R30. turning G54 by 30°.

A rotation program copied from one control to another can run without an alarm and still cut in the wrong place. Check the centre words on your own control’s G68 page before you trust it.

Polar mode: radius and angle instead of X and Y

With G16 on (Mach4, Mach3), X is the radius and Y is the angle in the XY plane, so a bolt circle is X1. Y0, Y90., Y180., Y270. instead of four worked-out points. Angles run counterclockwise from 3 o’clock. G15 turns it off.

Where the radius is measured from differs. Mach4 measures from work zero in G90 and from the current position in G91. Mach3 measures from wherever the tool is when G16 runs, which Artsoft notes is not how Fanuc does it. Haas mills have no G16; they use X and Y points or the G70–G72 bolt-hole patterns. LinuxCNC has no G16 either: any move can take @ (distance) and ^ (angle) from XY zero, so G1 @1 ^90 is G1 Y1.

G112 on a lathe: X and Y on the face

A lathe with a C axis and live tools can mill flats and pockets on the face. G112 lets you write that path in X and Y, as on a mill, and the control turns it into C-axis rotation and X moves; G113 turns it off. On a Haas, G112 uses the G17 plane, with G01 for lines and G02/G03 for arcs.

Try it on a calculator

Check yourself: 5 questions

Check yourself

  1. 1. After G68 X0 Y0 R90., where does a move to X1. Y0 end?

  2. 2. Which way does a positive R turn the program in G68?

  3. 3. On Mach3, which words give the centre of a G68 rotation?

  4. 4. In G16 polar mode (XY plane), X2. Y30. is which point from the polar centre?

  5. 5. How does LinuxCNC program a move by distance and angle?

0 of 5 answered