Inserting objects/magnets inside a print

Hello everybody!

i tried to do some searching on the forum, with no luck. I’ve found some old posts without useful infos, but please direct me to the right ones if i missed them.

I wish to add some magnets (or other objects) inside my prints, the idea is to stop the print at the last layer of the hole, move the head away, insert the objects and resume printing to seal the objects. i know its possible but i believe snapmaker 2.0 current firmware doesn’t make it a simple task.

I’ve read its been implemented the support for gcode command M600 that allows pausing for switching filament, and that might be a workaround if i created another small dummy object far away from the real object, having the printer pause while on top of it (suggestions welcome on how to slice objects deciding where the last drop of filament of a layer is, im no big expert, because if its sliced to end the layer on top of the wrong object, its usless) giving me access to the other part, but its time consuming and material consuming too. Ideally, id need the pause to be undefined, but waiting for my command to resume it, given its unpredictable the time i need to glue the magnets in place, but this is the last problem i guess.

how do you proceed in such cases?

many takes for any suggestions you might have

Luca

ps: ive been trying a little, and currently have available, both luban, cura & prusaslicer, the latter 2 have the options to do so, but not working, at least i didnt manage to turn them to work

pps: i know octoprint could eventually do it, but id rather find a different solution.

I do that all the time with Cura. No issues.

Hi,
I’ve done it many times using the M600 command - it works very well, here’s a description:
https://forum.snapmaker.com/t/add-command-m600-in-your-g-code-file/18242
After this command, the head returns to the HOME position and waits for your confirmation on the touch panel and then goes to the next lines of code - so you have as much time as you need.

1 Like

i just tried and works perfectly, thanks a lot @Tomi ! i didnt realize that filament change, with the simple M600 (corrected the command name in the previous post), moved the head away with no further commands, awesome :slight_smile: !!

it didnt work because i was keep trying with “pause at height” and similars.

Slicing with cura, with filament change, adds this to the code

M600 E30.00 U300.00 X0.00 Y0.00 ; Generated by FilamentChange plugin

for retraction if im not wrong, but might be usless in my case.

Now, to make this topic useful for me and other noobs like me in 3dprinting, another little question…

can i use M600 right in the middle of a layer, or just at the end?
if i can, how can i find easily the right moment, among many coordinates, for example in the middle of an infill pattern? so to hide the seam when the print starts again?

Luban used to insert comments in the gcode periodically to tell you what it’s working on, a trait which it inherited from Cura. If either of them still does that, it shouldn’t be too hard to find the infill for a specific layer.

Find the layer first (the line will look like “;LAYER:3”, substitute your layer number for 3) and then check everything beginning with a ; until you find a section that looks promising, maybe “;TYPE:FILL”, and plonk your M600 in a few lines down.

(I have never tested to see whether an M600 will actually work in this position, but my understanding of gcode suggests it should.)

Check this old thread:

You can easily edit the gcode from either luban or cura with any text editor.
You can use ncviewer.com to help you figure out when to add the M600.

-S

I thought this gcode viewer might also work: https://gcode.ws

thanks everybody for the precious suggestions!