Instead of that M98 P1000 L9 use O1000 CALL to execute the subroutine once.
If you want to execute it more than once, use a loop (REPEAT, WHILE .. ENDWHILE, or DO ... WHILE) You should also define the subroutines before the main program. So your program could be: O1000 SUB > G0Z2.34 > G1x-5 > G0x5 O1000 ENDSUB > G91 G21 > F30 > G1x-4.12 > G0x5 O200 REPEAT [9] O1000 CALL O200 ENDREPEAT > G0x2 > G90 > G0Z50 > M30 > % I have not run this, but I think it should work, minor typos notwithstanding. Regards, Marcus ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
