What's new
What's new

Trouble macro variable loop format/bar puller

Drewcifer2362

Plastic
Joined
Nov 2, 2022
I’ve found a lot of helpful answers on here already, but some of it is still a little over my head.

Essentially, I am trying to loop a program 7 times, and then not run the final block in the program which is the bar puller.

I currently have a program written with a part stop, then a M98 P70007 and then my main program loops 7 times and comes back to the first one. I just want to write a macro that will prevent the bar puller block from running on the 7th cycle loop.

I tried
#500=#500+1;
If [#500LT7]goto90;

Getting a format error message on the second line of code. Machine is a 2022 DN solutions Puma 2600syii with fanuc - i plus series controls.
 








 
Top