Disable AMS pullback at the end of the print

Hey everyone!
With my A1 and P1 I had custum profile set up so the AMS doesn’t retract the filament when at the end of the print. This is very useful if I know I’m doing multiple prints with the same filament in a row.
But with P2S I’ve been unsuccessful so far as the code seems different. And after extensive searching I haven’t found anyone talk about this yet.

Like with A1 & P1 I thought I could just comment out the pull-back code like this:

And this works, but only kinda. It doesn’t pull back the filament, but it also doesn’t move the printhead back to the starting position and doesn’t clean the nozzle at the end of the print. It just lifts up the z axis 10cm and just stays there, oozing filament from the previous heat…

Since P2S is such a new printer, Bambu hasn’t updated their wiki either on this subject (Disable unloading and flushing to save filaments when printing the same material | Bambu Lab Wiki), so I was hoping there is someone who also has already dealt with it and solved it.

Hi, it seems like the issue is that you also put “;” in front of G150.3, which tells the printer that the AMS finished whatever it was doing and the G-code can continue. Try commenting just the five lines above and not the G150.3 line.

2 Likes

Thanks, I tried searching for the actual meanings of the 150.3 & 150.2 codes, but somehow I couldn’t so I didn’t want to try randomly anymore. Thank you for that, I’ll try it right after this print :wink:

Bambu Studio has no “Filament tab” or any option called “Retraction after Printing” in Filament settings or Printer settings, as far as I know. Doing a search for that term on Google links back to this thread.

Do you have a screenshot of where this option is? Or was this answer generated by AI?

1 Like

I’d echo that this makes no sense - further, S0 is probably the wrong value as we want a tiny bit of retraction. I use S255 in mine.

Prior instructions were off to say the least. I deleted the original post as I was unable to edit due to age of post. These updated with images work for me. Use at your own risk.

These instructions are for a P2S with Bambu Studio on MacOS. It may/may not work with Bambu Studio on Windows or other printer models.

– Disable AMS pullback at end of print –-

In Bambu Studio

Open Printer Settings.

Open Machine G-code

Find Machine end G-code, scroll down until you find the the “; pull back filament to AMS” block that unloads filament:

— My example block —

; pull back filament to AMS
M620 S65535
T65535
G150.2
M621 S65535

Comment out ( ; ) or delete these commands and save the preset.

— My example block —

; pull back filament to AMS
; M620 S65535
; T65535
; G150.2
; M621 S65535

Save the printer profile.

The printer stops unloading filament to the AMS at the end of the print.

CAUTION: if the filament isn’t unloaded and the hot end cools, you may need to do a cold pull.

— Full screen shot —

3 Likes

Good catch, mixing different slicer instructions doesn’t work. I added updated instructions (with screen shots) that work for me in this thread.

Easiest way I found was to comment/remark out the the commands under the “Machine end G-code” > “; pull back filament to AMS” so it doesn’t trigger the filament unload action. I’d caution you, if the filiment isn’t unloaded and the hot end cools, you may need to do a cold pull.

Hi
Why do you think coold pull may be required?
If I understand correctly if AMS is not ussed (we are using external spool) this part of gcode is not in use and on the end filament will stay in hotend.
If we will try to use unload function first it will heatup hotend.

Ok, I dont know how to edit here so im sendind additional response :stuck_out_tongue:
I found this manual

Reall, I can’t add here link even to manual? :stuck_out_tongue:

wiki.bambulab.com/en/ams/manual/ams-not-unloading-to-save-filament

As I understand we have risk of clog only if we will also remove start code for flushing filament from earlier print :wink:

1 Like