Originally Posted by
samu
it is not a macro call but a sub program call, may be your delay is due to exit en re-enter in the sub program.
try to loop inside the macro instead of repeat the sub 25 time. Pass the number of loop in argument inside the macro
example:
G65 A25. P9212 (MACRO CALL WITH 25 PASSED IN #1)
%
O9212(THREAD MILL MACRO)
#2=0 (SET COUNTER TO 0)
WHILE[#2 LT #1] DO1
N10 G91 G02 X0 Y0 I1 J0 W.125;
#2=#2+1 (INCREMENT COUNTER)
END1
M9 (STOP COOLANT IN YOUR SUB, YOU STOP COOLANT AFTER ONE TURN, NOT SURE IT'S WATH YOU WANT)