Hello
To make it easy just write a program where you call the machining program as a subprogram, then you’ll be able to set any repeat. You only have to delete M30 in this program. It also works with counters etc., but anyway works straightaway.
Greetings from China