FIFTY LINETurn G-code
Online generatorOnline calculatorsReference

Free Turn G-code demo

Online CNC lathe G-code generator

The OD turning cycle right in your browser: enter the diameters, length and cutting data, and the generator works out the roughing passes, the finishing pass with allowance and writes a ready program for LinuxCNC. It is the same calculation as in the Turn G-code program, line for line. No sign-up.

Units
Geometry
Machining
Spindle
Approach / retract
Additional
X axis in program

X fields (Safe X, Retract X) are entered as a radius, as in the program; G7 doubles X in the code to a diameter. The demo writes code for LinuxCNC: mm (G21) or inch (G20), feed per minute (G94). The program also sets G32/G33 and the lead letter, your own coolant M-codes and Fanuc output.

Preview

Simulation:

G-code

This is one cycle out of 12

The program has 11 more, including multi-start and tapered threads with run-in and run-out, sphere and a face spiral. It runs on the machine PC itself, offline, and is set up for your control.

Download the program — 15 days free

Then $99 lifetime, no subscription

Download later, on the PC at your machine?

We'll email you the trial link. It's optional — you can download the program without an email.

One email with the link and, if you don't download, up to 3 short reminders. No newsletters.

How to use it

  1. Geometry: stock diameter, finished diameter and the length from the face (Z0) to the left.
  2. Machining: roughing depth per side (ap), finishing allowance, number of finish passes and feeds in mm/min.
  3. Approach / retract: the safe X and Z the tool starts each pass from, and the retract point at the end. X is entered as a radius and must not be less than the stock radius (with G7 the code shows it as a diameter).
  4. Check the toolpath in the 2D view or press "Simulate", then copy the code or download the file (.ngc, .nc or .tap) and open it in LinuxCNC. Before the first cut, check the LinuxCNC preview and run it in the air.

FAQ

Is it free? Yes, the online turning generator is free with no sign-up. The Turn G-code program with all 12 cycles is free for 15 days, then $99 lifetime.

Is the code the same as in the program? Yes, it is the same calculation; only a comment line about the web demo is added at the top.

Which control is the code for? The demo writes code for LinuxCNC (G7 or G8, mm, G94). For other controls — grblHAL, PathPilot, Fanuc System B/C — the settings are in the program; see Which CNC controls Turn G-code works with.

Why no threading? Threading, taper, sphere, grooves and the other cycles are in the program. How the whole generator works is in CNC lathe G-code generator.