I found it in the manual. G76 is the repeat a section of the code command. I was looking for loop and not finding it. You start it with a loop number (L1 for example) and the at the bottom of your loop you call G76 to close the loop with the loop count and the loop number (example, G76 P5 L1). Simple enough.