Tools
addfile.app

CNC Lathe G-code

Generate a roughing + finishing lathe program from a DXF profile

Loading tool…

Nothing is uploaded — every step runs in your browser.

Generate a CNC lathe program from the half profile drawn in your DXF: G71 roughing + G70 finishing with G42/G41 nose radius compensation for Fanuc/Mitsubishi, and CYCLE95 for Siemens 840D. Outer and inner diameters, constant surface speed (G96) and a spindle limit are supported.

How it works

  1. 1Draw the profile above the Y=0 axis in DXF as an open line.
  2. 2Set the controller, stock diameter and cutting data.
  3. 3Press “CNC Lathe G-code”, watch the roughing and finishing passes in the simulator and download the program.

Frequently asked questions

Can I run the code on the machine right away?

No. Always verify every program in simulation and with a dry run on the machine first, and check offsets, work zero and tool data. The operator is responsible.

How should I draw the profile?

The horizontal axis is the lathe Z axis and Y=0 is the spindle axis. Draw the outline of the upper half of the part as one open line without the axis line. Z0 is the rightmost point of the profile.

Are grooving, threading and drilling included?

This module is for longitudinal roughing + finishing of the profile. Program grooving, threading and drilling cycles separately on your machine.

Is my file uploaded to a server?

No. Everything runs in your browser; your file never leaves your device.

You might also need