in manual mode, put the tool above the part; i hope this code works on your lathe
Code:
V1 = material diameter + clearance ( start dia )
V2 = nose radius ( to compute end dia )
V3 = how much to cut ( salami slice )
( * )
G50 S
T
G97 S M03 M08 M42
( G00 X+2 Z+1 G91 )
( X-2 Z-1 )
NLOOP
G01 X-2*V2 F G95 G90
Z=+0.5 G91
G00 X=2*V2+V1
Z=-0.5
M0 (*)
Z=-V3
GOTO NLOOP
M02
(* if face is ok : )
( ... reset + MDI + call tool + declare Z0, or )
( ... MDI + declare Z0 ; maybe it works without reseting the cnc, and, in this case, tool corection will remain active )
when cutting the face, it may be possible that the turret will move also on Z, with a value = Z_tool_offset
if this happens, than run the code without the brackets, but i dont know if it will work; you will be needing the equivalent of G00 X+VSIOX Z+VSIOZ for your control, so it will be required to remove compensatory movements
i will be thinking about this; maybe it works as it is ...
keystrokes analysis:
1) usual way
MDI + input box + G97 S1500 M3 + write + execute + manual mode + manual movement = 16 keystrokes + manual mode + manual movement
2) using a program
interface + file open + 55 (V1) + 0.8 ( V2) + 0.75 ( V3) + save + auto + select program ( 3 keystrokes) = 16 keystrokes ; manual moves are not required
3) macro asignment ( requires M157 inside the code )
MDI + input box + **** *5 (V1) + *0.8 ( V2) + *0.75 ( V3) + write + execute = 19 keystrokes ; manual moves are not required
4) macro without V3 input will require 14 keystrokes
5) macro without V3 input, and without V2, will require 10 keystrokes
this is all i can do for the moment; kindly !