ok i have edited the code, so instead of cutting 14*180degrees, it now cuts 7*360degrees; this should deliver a smoother movement
i don't know exactly the dimensions of your part, but i suggest you rough with a tool dia < custom tool dia, then pre-finish and finish with your custom tool
something like this :
... cut at X_start - X_depth_rough * 0, with tool_1
... cut at X_start - X_depth_rough * 1, with tool_1
... cut at X_start - X_depth_rough * 2, with tool_1
... etc
... cut at X_start - X_depth_rough * n, with tool_1
... cut at X_end + X_depth_finish * 2, with custom tool
... cut at X_end + X_depth_finish * 1, with custom tool
... cut at X_end + X_depth_finish * 0, with custom tool
* thus just edit V3 inside that program
this should put less stress on the custom tool, thus keeping it's wear to a minimum necessary
tool_1_dia should be < custom_tool_dia ... also, tool_1 may be a bit blunted, it does not matter, as long as it leaves enough material, so your final tool to deliver a smooth surface
at the end, would be ok to run a chamfer tool, in order to debur your edges ... this requires a code that cuts on a cilinder surface; but maybe you just find something arround there / kindly
Code:
(
tool Z offset = tool center, not tool ege
run it easy at 1st, step-by-step, be aware of where it
is going before pushing cycle start; approach is directly
at cut diameter, there is no feeding among X-
carefull with Z clearance, because is a little big than
usual, and maybe it will colide with the tailstock ... in such a
case, pls let me now if you need a modified clearance; don't modify it
directly inside the program, because it corelates with the number of
loops, and, instead of 7, there will be a decimal number, that has to
be calculated
)
V1 = tool rpm
V2 = feed_g95 for the helix
V5 = feed_g95 for final retreat among X
V3 = target diameter
V4 = turret post
( * )
G00 X_up Z_rigth
T+V4*101
M110
SB=V1 M13 ( M08 )
VZSHZ = - [ 3.9370 - 3.8898 ] + [ 7 - 2 * VPAI ]
G00 X=V3 Z0 C0 M15/M16 ( choose how the helix wraps arround )
CALL OSUB Q7
X_above_part G90 F=V5 ( don't rush this movement, also don't use G00, because tool may cut during it's way out; tool retreat/disengage is different when C axis is used )
M12
M109
G00 X_up Z_rigth T+V4*100 VZSHZ = 0
OSUB
G01 Z-0.5315 C359.999 G91 G95 F=SQRT((360*0.5315*360*0.5315+500*360*500*360)/(360*0.5315*360*0.5315+V3*360*VPAI*V3*360*VPAI))*V2
RTS