Hey,
This is the simplified version. There are other options you can research later on.
1. Start by entering the "M98" command, followed by "P" and a label number and then "L" and the number of loops you want to repeat.
ie: M98 P1234 L5
This says that you want to run Program 1234, 5 times
2. On the subroutine, start by entering "O" followed by the label number
ie: O1234
3. When you're done with the subroutine, return to the main program by entering "M99"
4. Tell the main program to stop at the end so it doesn't run the subroutine again.
ie: M2 or M30
Here's how it all looks together
.....
.....regular program
.....
M98 P1234 L5 (go to sub labeled 1234 and loop 5 times)
.....
.....more regular program
.....
M30 (end of main program, don't execute beyond here)
O1234 (start of sub)
....
.... do something
....
M99 (return)
L8er,
Julio |