Home / Fanuc lathe program generator

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:

OperationWhat you get
Roughing and finishingG71 stock removal and a G70 finishing pass over the same contour
GroovingG75 groove cycle
ThreadingG76 multi-pass thread cycle, with the depth and the pass strategy worked out for the pitch
DrillingG74 peck drilling for deep holes
TappingRigid tapping with M29
Start and endUnits, 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 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

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