Fanuc lathe program generator: turning G-code from a drawing
Upload a drawing and get a Fanuc turning program built from standard cycles, with a 3D simulator and a check report.
What the generator writes for a Fanuc lathe
Pick Fanuc as the controller, upload the drawing, and the generator builds a complete turning program for Fanuc 0i and 31i style controls and compatible ones. It uses the standard canned cycles, so the program stays short and readable:
| Operation | What you get |
|---|---|
| Roughing and finishing | G71 stock removal and a G70 finishing pass over the same contour |
| Grooving | G75 groove cycle |
| Threading | G76 multi-pass thread cycle, with the depth and the pass strategy worked out for the pitch |
| Drilling | G74 peck drilling for deep holes |
| Tapping | Rigid tapping with M29 |
| Start and end | Units, feed mode, spindle, tool change position, return with G28 |
A G76 thread from the same generator
For an M20x2.5 thread the cycle takes this form:
G76 P020060 Q100 R0.05 G76 X16.933 Z-32. P1534 Q400 F2.5
The thread depth of 1.534 mm is written as P1534 and the first pass depth as Q400, both in microns. The thread depth and the minor diameter of 16.933 mm come from the metric thread calculator.
Check before you run it
- The 3D simulator turns the stock with your program and shows the chuck. Moves that hit the jaws are marked.
- A check report compares the result with the drawing and lists what to measure on the first part.
- If your control needs different words, the generator can also write Haas or Sinumerik. Pick the controller before you generate.
The output is a starting point for a qualified setter. Check it in the simulator, dry run it, and make the first part carefully.
Learn the cycles
- G71 example: the Fanuc roughing cycle line by line
- G-code from a drawing: the manual steps and the generator
Frequently asked questions
Does it write programs for Fanuc 0i and 31i?
Yes. It writes standard Fanuc turning programs for Fanuc 0i and 31i style controls and compatible controls.
Which Fanuc cycles does it use?
G71 and G70 for roughing and finishing, G75 for grooves, G76 for threads, G74 for peck drilling and M29 for rigid tapping.
Can I get Haas or Siemens code instead?
Yes. The same plan can be written as Haas or Sinumerik code, and for mills as Heidenhain Klartext as well.
Do I still need to check the program?
Yes. Use the simulator, run it dry above the part and check the first part.
Skip the typingUpload a drawing, get a program for your controller and check it in the 3D simulator before it goes near the machine. Try the example with no sign-up; a new account gets 2 free generations.
Open the generator