Notifications
Clear all

Gcode Program Loop  

  RSS
Joni the great
(@joni-the-great)
Active Member
Gcode Program Loop

So I'm running a big job and i want my program to loop or start over at a specific point. In CNC machines you would use a GOTO wit a N value. Basically what i would like to do is run my print then cool the bed, push it off, then be able to either restart my program or send it back to a specific point in the program, (which would be close to the top).

  Does anybody have any experiences with this?

I Have been playing around with M23, M24, and M26,  But haven't been able to get it to work. 

Any help would be GREATLY appreciated. 

Napsal : 27/03/2020 12:00 am
Neophyl
(@neophyl)
Illustrious Member
RE: Gcode Program Loop

I dont think any of those codes are supported in the firmware.  If you have a MK3* then the best place to ask would be in the firmware area on github https://github.com/prusa3d/Prusa-Firmware .

All printer manufacturer firmware only implements a subsection of the possible codes (like some turning off thermal runaway protection , though not fortunately Prusa) mainly down to the limited resources the hardware boards have.  Different printers have different lists.

Napsal : 27/03/2020 6:56 am
bobstro
(@bobstro)
Illustrious Member
RE: Gcode Program Loop

Unfortunately g-"code" is an overly ambitious name. Gcode is unfortunately profoundly basics, allowing setting hardware parameters, moving and extruding. There are no branching, variables or flow control. There are some very simple slicer features that allow selective insertion of variables into gcode, but the printer itself doesn't do any interpretation of gcode. There are a few YouTube videos showing basic techniques for doing what you've described, but it's very hackish. Also keep in mind that any failure mid-way through your sequence will not be detected any way, so you could wind up making quite the mess. There may be some scripting options you can work out through Octoprint.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Napsal : 27/03/2020 1:41 pm
Share: