Fanuc G68.2 alarms PS5457 and PS5462: a G-code checker guide

A G-code checker reads Fanuc G68.2 alarms PS5457, PS5458 and PS5462 the way the control does. They stop tilted working plane programs on 5-axis machines before they move: a frame with no angles, a G53.1 with no G68.2, or a G68.2 given while cutter comp is on.

G-code checker on a Fanuc 5-axis B C machine: G68.2 while cutter comp G41 is on, alarm PS5462, line 11
NC Proof Mill · Fanuc 5 axes B / C: G68.2 given after G41
NC Proof G-code checker on a Fanuc 5-axis B / C mill: the error on line 11 marked in the code, in the Errors & warnings list and in the 3D view
The whole app: line 11 lit in the code, the message under it, the 3D view at that moment

The three alarms

  • PS5457: bad frame data. G68.2 X0. Y0. Z0. I0. J0. K0. gives Euler angles of 0, 0, 0, which alarms unless parameter 13451 bit 1 is set. Wrong P forms and vectors that are not square alarm here too.
  • PS5458: G53.1 with nothing to turn to. G53.1 turns the table so the tool is normal to the tilted plane, so G68.2 must come first.
  • PS5462: the wrong mode. G68.2 with cutter comp, a canned cycle, scaling, mirror or G68 still on, or G codes outside the manual’s list in tilted plane mode.

The fix

Cancel comp before the frame, give the frame real angles, then turn the table:

G41 D01
G68.2 X0. Y0. Z0. I0. J30. K0.   (wrong: comp is on, PS5462)

G68.2 X0. Y0. Z0. I0. J30. K0.   (right: comp off,
G53.1                             table turns to B30 C-90)

The full program after the fix:

%
O01103 (TILTED PLANE - FANUC 5 AXES)
(FANUC 0I-MF - 5 AXES B C)
(STOCK 3.0 X 3.0 X 2.0 - X0 Y0 CENTRE, Z0 TOP)
(T1 1/2 FLAT END MILL - FLUTE 1.0 - STICK OUT 2.0)
G20 G17 G40 G49 G80 G90
T1 M06
G54 G00 X0. Y0. B0. C0. S3000 M03
G43 H01 Z4. M08
G68.2 X0. Y0. Z0. I0. J30. K0.
G53.1
G00 X0. Y0. Z1.
G01 Z-0.1 F10.
X1. F20.
G00 Z1.
G69
G00 Z6. M09
B0. C0.
M05
G91 G28 Z0.
G90
M30
%
The fixed program on a Fanuc 5-axis B / C mill in NC Proof: No errors, the part cut to the end
After the fix: the same program runs to the end with No errors

How the G-code checker finds it

NC Proof simulates Fanuc tilted working plane indexing (G68.2, G68.3, G68.4, G53.1, G53.6) on its Fanuc 5-axis B / C table machine and the Haas UMC-750 forms (G254, G268, G234). Each frame is checked with the alarm number the control would show, and G53.1 reports the B and C it turns to. More: 5-axis in Special Features.

Fanuc G68.2 FAQ

What does Fanuc PS5462 mean with G68.2?

G68.2 was given in a mode where it is not allowed, such as with cutter comp G41 or G42 on, a canned cycle active, or G68 still on. Cancel them first.

Why does G68.2 with I0 J0 K0 alarm?

Euler angles of 0, 0, 0 alarm PS5457 unless parameter 13451 bit 1 is set: there is no tilt to make.

What does G53.1 do?

It turns the rotary axes so the tool is normal to the plane set by G68.2. Without a G68.2 before it, it alarms PS5458.

See every error the app checks on Errors & warnings. Paste your own program into NC Proof Turn or NC Proof Mill during the 4-day free trial (no card needed).

More from the blog