Tilted Working Plane (G68.2 / G53.1)
Most “5-axis” work is really 3+2: swing the rotary axes to a fixed angle, lock them, and machine a face that isn’t square to the table — a bore on a ramp, a pocket on an angled boss. Doing that by hand-calculating rotated coordinates is miserable and error-prone. G68.2, tilted working plane indexing, is Fanuc’s answer: you tell the control where the tilted feature’s plane is, and it builds a feature coordinate system on that plane so you can program the feature in plain X/Y/Z as if it were flat and facing up. A companion command, G53.1, then swings the rotary axes so the tool points straight into that plane. This page is derived from FANUC’s Series 30i/31i/32i-B Plus Operator’s Manual (B-64724EN), §22.6.
G68.2 puts a coordinate system on the tilted feature, G53.1 points the tool into it, you machine the feature as if it were flat, then G69 cancels.Defining the Feature Coordinate System
G68.2 sets an origin for the feature plane (the X_ Y_ Z_ addresses, in the current work coordinate system) and its orientation. Fanuc offers four ways to state the orientation, selected by a P code — use whichever matches how your drawing or CAD gives the angle:
| Method | Format | Orientation given as |
|---|---|---|
| Euler angles (default) | G68.2 X_ Y_ Z_ I_ J_ K_ | Three Euler rotations I, J, K — e.g. G68.2 X20. Y5. Z0 I0 J90. K0. |
| Roll-pitch-yaw | G68.2 P4 X_ Y_ Z_ I_ J_ K_ | Rotations about the X, Y, Z axes — e.g. G68.2 P4 X200. Y0 Z50. I30. J0 K90. |
| Three points | G68.2 P2 Q1 X_Y_Z_ ; Q2 X_Y_Z_ ; Q3 X_Y_Z_ | Three points on the plane (origin, +X direction, and a third to fix the plane). |
| Two vectors | G68.2 P3 Q1 X_Y_Z_ I_J_K_ ; Q2 I_J_K_ | An origin + the plane’s X-direction vector and normal vector. |
All four produce the same thing: a coordinate system whose XY plane lies on the tilted feature and whose Z points out of it. From there you program the feature normally — a bolt circle, a pocket, a drill cycle — in that plane’s X/Y/Z. If one or two of X/Y/Z are omitted the control alarms (PS5457, “G68.2/G68.3 FORMAT ERROR”).
Orienting the Tool: G53.1
Defining the plane doesn’t move anything — it only sets up coordinates. G53.1, specified after G68.2, automatically controls the rotary axes to point the tool axis perpendicular to the tilted plane (“tool axis direction control”). This is the “+2” of 3+2: G68.2 handles the coordinates, G53.1 handles the indexing. On a machine whose kinematics the control knows (set by the parameters below), you don’t compute rotary angles by hand — G53.1 solves them.
A minimal 3+2 block sequence looks like: cancel any tool comp → G68.2 X.. Y.. Z.. I.. J.. K.. → G53.1 → approach and machine the feature in its plane → G69 to cancel the tilted plane.
Restrictions Worth Knowing
- Cancel tool length and radius compensation before G68.2. Commanding G68.2 while tool length or cutter compensation is active raises
PS5462, “ILLEGAL COMMAND (G68.2/G69)”. G69cancels the tilted working plane and returns to the ordinary work coordinate system.- The three-point and two-vector forms are multi-block; interrupting the
Qsequence raises the samePS5457format error. - This is a 3+2 / indexing feature — the rotaries are positioned then held. Keeping the tool tip on a path while the rotaries move during cutting is a different feature: tool centre point control (G43.4/G43.5).
G68.2 vs. G54.4 vs. G43.4 — Which Is Which
| Command | What it does | Use it when… |
|---|---|---|
| G68.2 / G53.1 | Programs a feature that is designed at an angle, in its own flat plane, and indexes the tool to it. | The drawing shows a face/bore at an angle — deliberate geometry. |
| G54.4 Pn | Corrects a small setup error — the part is clamped slightly crooked. | A probe found the part shifted/rotated from nominal. |
| G43.4 / G43.5 | Keeps the tool tip on a path while the rotaries move — simultaneous 5-axis motion. | You’re cutting a sculptured surface with all axes moving. |
Parameters by Axis Configuration
This is where 5-axis setup actually lives, and it is configuration-dependent: the kinematics parameters you populate depend on whether the rotary axes are on the head, the table, or split between them. Parameter No. 19680 declares the type, and that decides which vector parameters matter (FANUC B-64730EN §4.98). Leave the wrong ones at zero and G53.1 either alarms or puts the feature plane in the wrong place. These are machine-tool-builder settings.
No. 19680 value | Machine type | Rotary axes |
|---|---|---|
2 | Tool (head) rotation | Two rotation axes on the tool/head. |
12 | Table rotation | Two rotation axes on the table (trunnion / rotary-tilt table). |
21 | Mixed / composite | One tool rotation axis + one table rotation axis. |
0 | Single | One rotation axis (or none). |
The axis pair — AB, AC, BC — is set by direction codes, not by picking offset components. It’s tempting to think “a BC machine uses these components of the intersection offset, an AC machine those.” That’s kinematically intuitive but not how Fanuc encodes it: the pair lives in the axis-direction parameters, while the offset vectors are always the full measured geometry (below). No. 19682 gives the direction of the first rotation axis and No. 19687 the second — each coded 1 = X (an A-axis), 2 = Y (a B-axis), 3 = Z (a C-axis):
| Axis pair | 19682 (1st axis direction) | 19687 (2nd axis direction) |
|---|---|---|
| A, B | 1 (X) | 2 (Y) |
| A, C | 1 (X) | 3 (Z) |
| B, C | 2 (Y) | 3 (Z) |
| C, A | 3 (Z) | 1 (X) |
| C, B | 3 (Z) | 2 (Y) |
(Codes 4–6 are inclined axes for a nutating head.) Rounding out the identities: No. 19681 / 19686 (which controlled axis is 1st / 2nd rotary), No. 19684 / 19689 (each axis’s rotation direction — normally 0 for a tool axis, 1 for a table axis), No. 19657 (master rotation axis), No. 19696 (rotary configuration — invalid here and the control runs as a 3-axis machine), and No. 1006 #0 (mark those axes as rotation axes). Then the position/offset vectors, which depend on the machine type:
| Configuration | Vectors to populate (X / Y / Z of the basic three axes) |
|---|---|
Table rotation (19680 = 12) | 19700–19702 rotary table position (centre of rotation) — required; 19703–19705 intersection offset between the first & second table rotation axes — the trunnion dial-in. |
Tool / head rotation (19680 = 2) | 19709–19711 intersection offset between the tool axis & the tool rotation axis — required; 19712–19714 intersection offset between the second & first tool rotation axes — the two-axis-head dial-in. |
Mixed / composite (19680 = 21) | The tool-axis offset vectors (19709–19711) and the single table rotary axis’s position — the machine has one of each, so it needs a vector from each side. |
Each of these is a full three-component vector obtained by measurement with every rotary axis at 0°, not a per-axis-pair subset: 19700–19702 is machine origin → a point on the 1st table axis; 19703–19705 is that point → a point on the 2nd table axis; on the head side 19709–19711 runs tool-tip point → a point on the tool rotation axis and 19712–19714 the 2nd → 1st tool-axis points. The rule of thumb: the position vectors must be populated for the feature to work at all; the axis-intersection offsets (19703–19705 / 19712–19714) are the accuracy dial-in for a real machine whose two rotaries don’t perfectly cross. The behavioural bit parameters in §4.98 (angle interpretation, singular-posture handling, retract) are MTB-configured — see the parameter manual.
See also: the cross-control overview of 3+2 and 5-axis is in 4th/5th Axis, Tilted Work Planes & TCP. The same idea on other controls: Siemens uses CYCLE800 (swivel plane) and Heidenhain the PLANE function. Neighbouring Fanuc features: tool centre point control (G43.4/G43.5) and workpiece setting error compensation (G54.4).
Sources: FANUC Series 30i/31i/32i-MODEL B Plus Operator’s Manual (Common to Lathe/Machining Center), B-64724EN/01 — §22.6 Tilted Working Plane Indexing; and FANUC Parameter Manual B-64730EN/01 — §4.98 Parameters of Tilted Working Plane Indexing Command.
Have a question or want to contribute?
Contact us with corrections, additions, or topics you'd like covered.
Get in Touch