N10 G90 G17
N15 G20
N20 G53 G0 Z0.

IF[[#3901 MOD 10] EQ 0] DO1
G154 P99 G0 XO YO
END1

N330 M5
N335 M9
N340 G53 G0 Z0.
N345 X0.
N350 G53 G0 Y0.
N355 M30


can someone tell me why that macro just loops indefinetly
its on a haas ngc control

it never gets to the end of the program.
and it seems to run the conditional no matter what the value of 3901 is.

Similar Threads: