M99 instead of M30.
I want to write a looping cycle to warm the axis up on my lathe. The first few parts are always over size on the bore, then as it runs it'll move back to where it was the day before. I have no idea how to do it. I currently use a program that just moves the X-axis -7. and the Z-axis -7. Then back to home. I repeats these lines 20 time or so. Is there any way to have it loop 100 times without having to press the start button?
Here's what I currently use:
%
T0100
G0 X-7. Z-7.
X0 Z0
X-7. Z-7.
X0 Z0
X-7. Z-7.
X0 Z0
X-7. Z-7.
X0 Z0
X-7. Z-7.
X0 Z0
X-7. Z-7.
X0 Z0
X-7. Z-7.
X0 Z0
X-7. Z-7.
X0 Z0
X-7. Z-7.
G28 U0 W0
M30
%
it will run until you stop it.
Thanks, I'll try it out tomorrow morning. We're up and running right now.
Or use it as a sub:
%
O4000
T0100
G0 U-7.W-7.
U7.W7.
M99
%
And from MDI run program that looks like:
M98 P4000 L20
I never tried this, and you may have to run that one line through memory mode
%
O1
T0100
G97S1200M3
G0 X8.Z2.
G1W-1.
U2.
W1.
U-2.
G28U0W0
M99
%
The best way to learn is trial error.