Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Mert on February 23, 2020, 08:40:21 AM

Title: Turning the same multiple parts on lathe can stacking files be done in mach3
Post by: Mert on February 23, 2020, 08:40:21 AM
Hello everyone I am trying to make the same part numerous times I have tried starting my Z at a new -zero and tweeked the numbers but it just wont do it.I see on Mach4 they have a run multiple parts button but have been using mach 3 on lathe and router for a while hate to change but if need be I can Thanks   all help greatly appreciated    Mert
Title: Re: Turning the same multiple parts on lathe can stacking files be done in mach3
Post by: Graham Waterworth on February 23, 2020, 09:35:13 AM
You can do this :-

%
O0001 (MAIN PROGRAM)
G21 G40 G00 G99
#100 =0
G52 Z#100 (CLEAR LOCAL SHIFT)
M98 P2 L10 (MAKE 10 PARTS)
#100=0
G52 Z#100 (BACK TO START)
M30

O0002(SUB TO LOOP ROUND)
(INSERT YOUR CURRENT)
(PROGRAM HERE)
...
...
...
(ADD THIS BIT)
#100=#100+15 (LENGTH OF PART AND CUT OFF)
G52 Z-#100 (UPDATE LOCAL SHIFT)
M99
%