FIFTY LINETurn G-code
Online generatorOnline calculatorsReference

FIFTY LINE

Parametric G-code generator for CNC lathes

Turn G-code works as conversational programming, like ShopTurn or Mazatrol on industrial controls. Enter the operation parameters in a form — get a ready program in ISO G-code, checked in a live 2D simulator, for 12 standard turning cycles. It is the standard language most CNC machines understand.

For LinuxCNC · grblHAL · PathPilot · Fanuc (System B/C) · Syntec · Siemens ISO · Mitsubishi how to set up ↓

Or try the turning cycle right in your browser first: online G-code generator →

Turn G-code in 3 minutes

The main window and all 12 turning cycles: fill in the form, check the tool path in the simulator, get ready-to-run G-code.

Watch on YouTube →

For small shops

Not for factories with their own CAM systems — for operators of private, teaching, and hobby LinuxCNC lathes who need fast, simple program generation.

Conversational instead of hand-written G-code

Diameters, lengths, feeds, spindle speed — enter the operation parameters in a clear form and the program works out the passes and builds the G-code for you. What is conversational programming →

Live 2D simulator

The tool path is shown before the file is generated — catch a mistake on screen, not on the workpiece.

Not just LinuxCNC

The program outputs basic ISO G-code without canned cycles, and everything that differs between controls is switched in the top bar — for all 12 cycles at once.

Works with

  • ✓ LinuxCNCnative control, nothing to set up
  • ✓ Tormach PathPilotG7/G8 mode for your machine
  • ✓ grblHAL (lathe mode)G7/G8, threading G33 K
  • ✓ Fanuc System B / CX as diameter, G7/G8 output off, threading G33 or G32 with F
  • ✓ Syntec, Siemens (ISO), Mitsubishiin G-code system B/C — same as Fanuc B/C

What you set up for your control

  • G7/G8 — X as diameter or radius
  • G32/G33 and the thread lead letter I, K or F
  • Coolant M-codes — any of your own instead of M8/M9
  • Tool number, comments, M30 at the end — on or off

✗ Not supported

Fanuc System A, Haas, GSK, KND: there G90 and G94 are cycles and feed is read as per revolution. This code is unsafe on those controls.

Details: which controls are supported and how to check yours →

What the program looks like

The main window is your starting point: pick a machining cycle and the program opens its parameter form.

Turn G-code main window with the list of turning cycles"Coolant codes" dialog with fields for custom M-codes"G32 - lead letter" dialog for choosing the thread lead address letter I/K/FThe site's interactive help: clicking the "Passes" field shows a tip about it
  • 12 cycle buttons (External turning, Facing, Threading, and more) — each opens its own parameter form. What each cycle does is covered on the Features page.
  • G8, G32, M8/M9 — global switches at the top: diameter/radius programming for the X axis, threading move syntax, and coolant M-codes. They apply to every cycle at once, no need to open each form separately.
  • License key — where you activate a licence key (see pricing).
  • Bottom bar — program version, license status, interface language switch (RU/EN), and the Support button.
  • "Coolant codes" dialog — opened with the same M8/M9 button on the top bar shown in the previous screenshot.
  • Custom coolant M-codes — M8/M9 is the default, but here you can set any other coolant on/off M-codes to match a specific controller or postprocessor.
  • "G32 – lead letter" dialog — opened with a double-click on the G32 button on the top bar.
  • Thread lead address letter — choose I, K, or F for the G32/G33 threading move syntax, to match a specific controller.
  • Interactive help on the site — on every one of the 12 cycle pages (the Features section) the form screenshot is clickable.
  • Hover and click any field, button, or checkbox — a tip on the right explains what it does. That way you can understand a cycle right in the browser, before installing the program.

Tested on a real machine

Turn G-code cycles are tested with real cuts in metal on the developer's lathe, not just in the simulator.

Archimedean spiral on a face · Archimedean spiral cycle →
The FIFTY LINE lathe · About the developer →

Try it free for 15 days

No license key, no card — locked to your PC's hardware.

Download trial