If you have macros active, here is another way to do multiple parts from a blank. The original G54 'Z' is saved at the beginning of each blank and reset after the last part is parted off. if you abort or hit RESET in the middle of a blank you will have to start over with a full length blank. We use this method to make washers.
Note-- While I was typing this I see Geof has posted a similar solution. Geof is right, anytime you mess with 'Z' shifting you cannot go to sleep at the wheel!!
%
O01000 ( HAAS LATHE MULTIPLE PART PROGRAM )
N30 #501= 20 ( NUMBER OF PARTS FROM EACH BLANK )
N40 #502= -0.109 ( Z SHIFT BETWEEN EACH PART )
N50 #503= #5222 ( SAVE G54 'Z' START POSITION )
N60 G54 M97 P90 L#501
N70 G10 L2 P1 Z#503 ( RESET 'Z' AXIS TO START POSITION )
N80 M30
N90 ( MACHINE PART LOCAL SUBROUTINE )
N100 ( TOOL 1 )
N110 ( MACHINE MOVES )
N120 ( TOOL 2 )
N130 ( MACHINE MOVES )
N140 ( TOOL 3 )
N150 ( MACHINE MOVES )
N160 G10 L2 P1 W#502 ( SHIFT G54 'Z' FOR NEXT PART )
N170 M99
% |