Hi,
I want to run a program over and over without pressing the start button every time. I looked for a M code but cant find one. I thought there was one that just replaced M30. If anyone can help that would be great.
Tom
Hi,
I want to run a program over and over without pressing the start button every time. I looked for a M code but cant find one. I thought there was one that just replaced M30. If anyone can help that would be great.
Tom
Hi Tom,
This is one way I do it. On a line just before the start of the code I want to repeat, I put a:
o100 repeat
(that is the letter "O" and a one hundred. It doesn't have to be 100, but just needs to be the same as the following line):
...and on the line following the end of the code to be repeated, I put:
o100 endrepeat
Also, if you know how many times you want it to repeat, you could make that first line "o100 repeat [5]" to make it repeat five times. So, something like this:
...
o101 repeat
G00 X1.000 Y1.000
G01 X0.000 Y0.000 F100
o101 endrepeat
...
or to repeat 15 times:
...
o101 repeat [15]
G00 X1.000 Y1.000
G01 X0.000 Y0.000 F100
o101 endrepeat
...
HTH
Paul