Is there any way of doing subroutines in G code - as in computer programming.
I am trying to do a program to cut steel connecting rods for locomotives out of 1/2 inch bar, I have done the outline in G code and tested in. I now want to repeat that as many times as is necessary to cut through the 1/2inch bar. In computer programming the outline cut would be a suroutine and I would call it as many times as necessary, dropping the cutter each time.
I see there is something similar in the canned cycles, for repeat drilling - but does it extend to making your own canned cycle for general use