Automatic pause at a specific layer

Hi,

is this possible to automatically pause a print job at a specific layer with repetier-host, for example to insert nuts?
The chances are very high while waiting to get bored/distracted and miss that specific layer.

And how to I tell the printer to immediately move the print head away(X / Y axis) from the object when paused?

If you use repetier you can simply press the pause button to interrupt the print.
You can the use the manual controls to move the printhead out of way.
After finishing simply press start again and the print will resume.

Don’t pause too long cause after some while the paused print will abort.
I think the timeout is around 30 seconds, if i remeber correctly.

If you look for the G code (m code) documentation you might find a command that you could then
manually insert to the g-code generated by the slicer, to stop or pause “programmatically”

Having a print job running and do not want to mess around too much in repetier-host. Where is that G-Code Editor the official repetier.com website talks about? Cant find that in the vertex version of repetier-host.

OK found it under preview section…

[quote=“Zefix”]Having a print job running and do not want to mess around too much in repetier-host. Where is that G-Code Editor the official repetier.com website talks about? Cant find that in the vertex version of repetier-host.

OK found it under preview section…[/quote]

yep!

The problem is the repetier-host software, if I only insert the “M226” pause command it just prints on like nothing happened. Repetier just passes on and feeds marlin with printing commands. You need to tell repetier to pause and that is done by some additional commands you need to insert in the g-code.

If I were trying to do this automatically, I’d split the gcode into two halves at the point you want it to stop, save the whole thing in a text editor so it’s easy to go back to if you have a problem. The process isn’t that dissimilar to trying to rescue a print that’s stopped or crashed for some reason. You need to restart it in the right place so there’s no visible line.

You can copy the end code and start code for each of the halves. If you want to move the print head away to insert something, the easiest way is to either do it manually, either by RH controls or via the LCD controls (e.g. I move the Z Axis down to 150). Alternatively in the printer settings menu, you can choose the Z Axis value to park the head after it finishes. Note that this doesn’t affect the autohome setting via LCD controls.

Of you’ve not done it before I’d try it on a tiny little print first. The RH app can push a notification to your phone when the print finishes.

I tested this yesterday for the first time with these extra repetier command for pause and this works fine for me.

example:

;LAYER:61
G0 F10000 X195 Y195
@pause Insert inlays!

Does the pause wait for you to restart it or does it time out (I would hope not)?

Did you get it to pause during an infill section of the layer to minimise any visible trace of the restart? You sometimes get a dribble of molten plastic coming from the nozzle during the pause…

Seems to me it’s the same as when you click the pause button in repetier GUI. A Window pops up with no timer visible. But I don’t know if there is some timer running inside repetier-host that will mess up things when you wait too long?

For the “move away” command of the print head I haven’t noticed any drops on the object, but I was in a hurry.
It was the first time I used this on an object, the next time I will pay more attention to this.
Maybe add an retard filament command and for even longer pauses(>10 min?) lower the temperature on the print head so the filament won’t get burned(I noticed some chunky stuff(used yellow vellema PLA) coming out of the head while testing the pause command for pauses of around 5-10 minutes.)

[quote=“Zefix”]
Maybe add an retard filament command [/quote]
Haha this made me lmao, haha. I know the stuff is pretty stupid, but i’m sure you meant ‘retract’.

don’t wanna play grammar cop here, it’s just too funny.

Yes, I think the trick is to stop it over an infill, drop the bed enough for you to get your hands in and add your nut or whatever, then go move the head back up and resume.

With luck any blobs will be inside the print.