Need G-Code to reduce poop amount

Anyone know where I can change the amount of filament the P1P ‘poop’ at the start of a print? Thanks!

2 Likes

Change the E value in the start g-code

7 Likes

thanks for the hint, just reduced to 25, maybe I will go even lower since most of time I change filament in a proper way and don´t need to purge that much

1 Like

Delete parts of the Gcode at your own risk but I have deleted the following from the gcode today. Stops the purging completely.

M109 S250 ;set nozzle to common flush temp
M106 P1 S0
G92 E0
G1 E50 F200
M400
M104 S[nozzle_temperature_initial_layer]
G92 E0
G1 E50 F200
M400
M106 P1 S255
G92 E0
G1 E5 F300
M109 S{nozzle_temperature_initial_layer[initial_extruder]-20} ; drop nozzle temp, make filament shink a bit
G92 E0
G1 E-0.5 F300

G1 X70 F9000
G1 X76 F15000
G1 X65 F15000
G1 X76 F15000
G1 X65 F15000; shake to put down garbage
G1 X80 F6000
G1 X95 F15000
G1 X80 F15000
G1 X165 F15000; wipe and shake
M400
M106 P1 S0

Prints have been no different and it saves about 35 seconds prepare time.

5 Likes

At the moment i have a value between 7 and 10. so he flushes a little bit only.

Hi, thanks for the reply. I have tried just changing this part of the code (in bold), but it’s still purging the same amount as before. Do I need to copy all the g-cod in your reply and past into my settings? Is there any other settings that I have to do?

M109 S250 ;set nozzle to common flush temp
M106 P1 S0
G92 E0
G1 E05 F200
M400

1 Like

Look 4 lines down, there is another line
G1 E50 F200
change it also.

3 Likes

If you haven’t change the filament, it’s save to remove/comment out the code.
Added comments to all commands for better understanding.

;===== nozzle flush/poop routine
;M109 S250           ;set nozzle to common flush temp
;M106 P1 S0          ;set Fan Speed
;G92 E0              ;set extruder position

;===== *** filament poop (standard E50) ==========
;G1 E50 F200          ;move extruder
;M400                ;finish moves
;M104 S[nozzle_temperature_initial_layer] ;set hotend temperature
;G92 E0              ;set extruder position
;===== *** filament poop (standard E50) ==========
;G1 E50 F200          ;move extruder
;M400                ;finish moves
;M106 P1 S255        ;set Fan Speed
;G92 E0              ;set extruder position
;G1 E5 F300          ;move extruder
;M109 S{nozzle_temperature_initial_layer[initial_extruder]-20} ; drop nozzle temp, make filament shink a bit
;G92 E0              ;set extruder position
;G1 E-0.5 F300       ;move extruder

;===== vibrate/shake toolhead
;G1 X70 F9000
;G1 X76 F15000
;G1 X65 F15000
;G1 X76 F15000
;G1 X65 F15000      ; shake to put down garbage
;G1 X80 F6000
;G1 X95 F15000
;G1 X80 F15000
;G1 X165 F15000; wipe and shake
;M400               ;finish moves
;M106 P1 S0         ;set Fan Speed
3 Likes

Just FYI the flush/poop amount can also be adjusted right in bambu studio.

Where, in Bambu Studio, do you do that? Thanks.

In the Prepare tab, under Filament there should be a. “Flushing Volumes” setting. That is where you can configure it.

Sorry for the late response. It would have to be adjusted in g-code. I am not sure how good you are at editing g-code

I’m an expert at editing g-code. Thanks.

Ok ya that should help.

I kknow how to edit gcode just fine. If I understand you correctly, the line “G1 E50 F200” should be changed to read G1 E10 F200 if I want to reduce the poop to a value of 10. Correct?

Yes, check some G codes tutorials (links are prohibited here :frowning: ).

E stands for volume to be extruded, F is the feed rate.

Links are not prohibited once you are no longer classified as a “new user”.

6 Likes

You could try this

3 Likes

Thanks for sharing this! This is just what I was looking for! I was able to save all of the relevant profiles as User Presets for future projects. Gotta lock in dem savings!