CNC lathe software: what a small lathe actually needs
· ~7 min read
“CNC lathe software” means two different things, and people often mix them up. One is the control software that moves the machine: it reads G-code and drives the motors and the spindle. The other is the programming software that produces that G-code. A small lathe needs both, plus a way to check the program before the first cut. This guide goes through all three for small shops, school and hobby lathes, and shows which combinations make sense.
Contents
- Control software
- Programming software
- Checking the program before cutting
- Typical setups
- Where Turn G-code fits
Control software
The control software runs on the PC (or the controller) connected to the machine’s drives. It decides which G-codes your lathe understands, so it is worth knowing before you choose anything else.
- LinuxCNC: free and open source, runs on Linux. It has a proper lathe mode: G7/G8 (X in diameter or radius), spindle-synchronized G33 threading, the G76 threading cycle, G71/G72 roughing cycles in newer versions, and lathe modes in the Axis and Gmoccapy interfaces. It works with a parallel port, Mesa FPGA cards, EtherCAT and other hardware. Most DIY and retrofitted lathes in the open-source world run on it.
- PathPilot: Tormach’s control, built on LinuxCNC, with its own conversational screens. It comes with Tormach machines (including their lathes) rather than as a general-purpose product.
- Mach3 / Mach4 (ArtSoft, Windows): Mach3 with its Turn screen was the classic hobby control for years and is no longer developed; Mach4 is the current version with a lathe profile. Both are paid and need an external motion controller.
- Centroid Acorn: a controller board with Centroid’s CNC12 software, which has a lathe version and offers free and paid feature levels. The paid level adds Centroid’s conversational programming.
- Industrial controls such as Fanuc, Siemens SINUMERIK, Heidenhain, Haas or Mazak come with the machine, with their own G-code dialects and their own conversational systems (Manual Guide i, ShopTurn, Mazatrol and others).
What matters for the next step is which dialect your control
speaks: for example, LinuxCNC threads with G33 K..., while many
Fanuc-style controls use G32 with F or another address letter. A
program written for one control can stop or do something unexpected
on another. The differences are summed up in
Turn G-code on different CNC controls.
Programming software
There are four ways to get a G-code program for a lathe:
- By hand. Open a text editor and type the program, using the control’s canned cycles where they exist (G76 for threads, G71/G72 for roughing on LinuxCNC). Free and precise, but slow, and an easy place to make a typo in a coordinate. Our G-code and M-code reference for lathes covers the codes you need.
- Conversational on the control. Fill in a form at the machine and the control generates the moves. Industrial controls have this built in. On LinuxCNC there are the free Lathe Macros and LatheEasyStep panels; see the honest comparison with Turn G-code.
- A conversational G-code generator. A separate program with forms for typical operations that writes a ready G-code file. This is what Turn G-code is: no part model, a form per operation, a 2D preview, and code made for LinuxCNC. More on the approach in CNC lathe G-code generator without CAM and conversational programming for a CNC lathe.
- CAM. Draw or import the part, set up tools and operations, and let the CAM calculate the toolpath and post it to G-code (Fusion, Mastercam, SolidCAM, SprutCAM, FreeCAD and others). The most powerful option for complex contours and mill-turn, and the slowest for a simple shaft. We cover the turning modules in turning CAM software for CNC lathes.
A quick way to choose:
| By hand | Conversational on the control | G-code generator (Turn G-code) | CAM | |
|---|---|---|---|---|
| Needs a part model | No | No | No | Yes |
| Time for a typical operation | Long | Minutes | 1-2 minutes | 10-30 minutes |
| Complex free-form contour | Hard | Depends on the system | No, typical cycles | Yes |
| Tied to one control | No | Yes | No, output settings per control | Via the post processor |
| You need to know G-code | Well | A little | A little, to read the result | A little, to check the post |
| Cost | Free | Part of the control, or free panels for LinuxCNC | $99 once, 15 days free | From free (limited) to thousands of $ |
Checking the program before cutting
Whatever writes the program, check it before the tool touches metal:
- Preview in the control. LinuxCNC draws the toolpath in Axis or Gmoccapy as soon as the file is loaded, and a simulation configuration lets you run the program on the PC without a machine.
- The generator’s own preview. Turn G-code shows each pass over the stock in a 2D simulator while you fill in the form, so a wrong diameter or length shows up before the file is written.
- An air cut. Run the program with the tool clear of the stock (or with the Z offset shifted away), at reduced feed, with a hand on the feed override and the stop button.
- First part at reduced feed, measuring after the first roughing pass.
Typical setups
- DIY or retrofitted lathe, mostly shafts, bushings and threads: LinuxCNC + a conversational generator (Turn G-code) or the free LinuxCNC panels, with hand-written G-code for odd jobs. No CAM needed.
- Same lathe, occasional complex profile: add a CAM with a LinuxCNC post (for example Fusion) for those parts only.
- Tormach lathe: PathPilot’s own conversational screens first; a generator or CAM for what they do not cover.
- Mach3/Mach4 or Acorn lathe: the control’s wizards or conversational level, or CAM with a matching post. A generator only helps if its output can be set to your control’s dialect; check the threading code and the X mode first.
- Industrial lathe with Fanuc or Siemens: the built-in conversational system and CAM for complex work.
Where Turn G-code fits
Turn G-code is a programming tool, not a control: it does not move your machine. It runs on Linux (including the LinuxCNC PC itself) and Windows and covers 12 lathe cycles: OD turning, facing, threading (including multi-start, internal and left-hand), taper threading, taper, sphere (including concave), groove, drilling, boring, cutoff, chamfer and radius, and an Archimedean spiral on the face. The output is written for LinuxCNC (G7/G8 with one switch, G33 with K), and the threading code (G33/G32 and the I/K/F letter), coolant M-codes, comments and M30 can be adjusted for other controls.
It is not a replacement for CAM on complex contours or mill-turn machines, and it does not output constant surface speed (G96): the spindle runs at a set RPM (G97). For the everyday work of a small LinuxCNC lathe, it gets you from the drawing to a checked program in a couple of minutes.
Try it free for 15 days, then it is a one-time $99 for up to two PCs (pricing).
