Skip to content

G Error: spot the bug in a Fanuc CNC program

#3

Every day, a Fanuc mill program and a lathe one, each with an error. Can you tell which?

New program in19:56:40

Streak
0
days in a row
Record
0
best streak
Wins
—
of your games

Fanuc program · Mill

Steel plate: finishing two sides, 5 mm deep

  1. N10G21 G17 G90 G40 G49 G80

  2. N20T11 M06 (END MILL D12)

  3. N30G54 G00 X-10. Y-10. S3000 M03

  4. N40G43 H11 Z2. M08

  5. N50G01 Z-5. F240

  6. N60G41 D11 X0.

  7. N70Y40.

  8. N80X60.

  9. N90G40 G00 X70. Y50.

  10. N100G90 G28 X0. Y0.

  11. N110M30

What's wrong with this program?

How to play

  • Every day there are two challenges: a mill program and a lathe one, each with a single error. Play either or both.
  • Read the program and pick which of the 4 options describes its error. Press Check: you have 2 tries.
  • If your first try is wrong, that option is crossed out and you get a hint.
  • At the end you see the line with the fault, how to fix it, why it was wrong and the toolpath with the point where it fails.
  • The programs follow the Fanuc (ISO) format. On other controls (Heidenhain, Siemens…) some commands are different.
  • Mill: the part zero (Z0) is on the top face and the tools cut clockwise (right-hand).
  • Lathe: X is a diameter and Z0 is on the part face. Unless stated otherwise it's a Ø50 bar; for threading and boring, the diameter or the pilot hole is already done.

Frequently asked questions

What is G Error?
A daily GetGCode game: every day there are two short CNC programs, one for a mill and one for a lathe, each with an error that would break the tool, crash, scrap the part or raise an alarm. You get 4 options and 2 tries to say which it is.
Which control are the programs for?
The programs follow the Fanuc (ISO) format. On other controls (Heidenhain, Siemens…) some commands are different.
Do I need to know both milling and turning?
No. Every day there's a mill challenge and a lathe one: play just yours or both.
When does the program change?
Every day at 0:00 Spanish time. Both challenges are the same for everyone, so you can compare results without giving away the error.
How does the streak work?
It adds a day each time you finish at least one of the day's two challenges, whether you get it or not. If you skip a day, it starts again.
Are my stats saved?
Yes, in this browser and separately for mill and lathe: games played, win percentage and which try you get it on, plus your streak. No account needed.