I'm working on a G code generator for the lathe that includes a roughing cycle.
What I have now in my mind is to enter the following items into the generator and it spit out the correct code.
Inch MM check box
Tool Number (not used if blank)
Roughing Depth
Finish Pass Depth (not used if blank)
Surface Speed and RPM limit.
Material Diameter
Z Clearance Point
List of lines or arcs that describe the profile from the outside to the center.
A tab will have the Lathe Arc Generator on it so you can get the arc G code and send it to the list.
The roughing cycle does a feed move to the Z end then a feed move following the contour of the line or arc so the finish pass is a constant depth of cut. Then a feed move out by X step depth. Then rapid moves to Z clearance and over to the next step.
Some screen shots of tests.
The Arc Generator
JT