G code loop program for 2 axis cnc
G code loop program for 2 axis cnc
(OP)
Hello,
I am new here, so thank you for your time. I need a warm up program for a 2 axis grinding machine in G code. This is what I have so far, but i need it to loop until I stop it manually.
%500
N00 G70
N10 G01F10X2 Z2
N20 X0 Z0
N30 G77N10
N40 M02
I have tried different variations of this but i cannot get it to repeat.
Thank you
Gary
I am new here, so thank you for your time. I need a warm up program for a 2 axis grinding machine in G code. This is what I have so far, but i need it to loop until I stop it manually.
%500
N00 G70
N10 G01F10X2 Z2
N20 X0 Z0
N30 G77N10
N40 M02
I have tried different variations of this but i cannot get it to repeat.
Thank you
Gary





RE: G code loop program for 2 axis cnc
It is better to have enough ideas for some of them to be wrong, than to be always right by having no ideas at all.
RE: G code loop program for 2 axis cnc
RE: G code loop program for 2 axis cnc
Your M02 call at the end is just a program stop, so you put the M99 there instead. An M30 there will rewind or jump to the top and stop, M99 again will go to the top and start running through the program again.
So what is the G77 N10 line for?