Loop gcode

If you have a question about the software please ask it here.

Loop gcode

Postby Kasper » Tue Oct 10, 2017 1:24 pm

Hi All.

I dont know what happened to my last topic, did it get removed?

Anyway, i'm trying to find out how to loop a gcode program in UCCNC.
Should i add or remove some code to have it endlessly loop?

Thanks :-)
Kasper
 
Posts: 2
Joined: Tue Oct 10, 2017 11:43 am

Re: Loop gcode

Postby cncdrive » Tue Oct 10, 2017 1:53 pm

Nothing happened to your post, but it was your first post which requires moderator approval,
because we want to avoid spammers to get to the forum, so every user's first post has to be approved by the moderators.
From the first post we see if the user is a real person or a spamming bot.

You can loop a g-code file with the M47 macro at the end of the g-code file. That will make an endless loop.
Or you could use subroutines to make a non endless loop, to call a subroutine N times.
cncdrive
Site Admin
 
Posts: 4695
Joined: Tue Aug 12, 2014 11:17 pm

Re: Loop gcode

Postby Kasper » Tue Oct 10, 2017 3:02 pm

Yea i noticed that just after my second post :-) sorry.

I tried adding the M47 to the end of the gcode - didnt work.
I'm not a gcode wizard so if you could dumb it down a bit and maybe tell me exactly what to put in the gcode? :oops:
Kasper
 
Posts: 2
Joined: Tue Oct 10, 2017 11:43 am

Re: Loop gcode

Postby Greolt » Tue Oct 10, 2017 8:14 pm

Kasper wrote:I tried adding the M47 to the end of the gcode - didnt work.


Perhaps you did not remove an existing M30 first. This will end program and rewind code before reading the M47
Greolt
 
Posts: 231
Joined: Sun Sep 04, 2016 6:22 am


Return to Ask a question from support here

Who is online

Users browsing this forum: Bing [Bot] and 8 guests