I think what you can use depends on your controller.
Sometimes if you end a program with M99 the controller will go back and start at the top, and do this endlessly; some controllers will give an alarm telling you it is an endless loop.
The best way in my opinion is just put the code to be repeated in a subroutine and then use an L count in the subroutine call;
etc
etc
M97 P1000 L5
etc
etc
M30
N1000 Code being repeated
etc
etc
M99
You can simply repeat the section of code. I program on Haas and it is so easy to duplicate blocks of code I will do this when I am feeling too lazy to set up the subroutine format. But if you simply repeat the block of code many times then want to edit it you have many places to edit; with the subroutine approach you edit at one place.


LinkBack URL
About LinkBacks







