Hello! I’m using the PolyMaker PETG with BambuLab X1-Carbon and would like to add option to add the wipe of printing nozzle after the print is finished.
With this particular manufacturer it is quite often that some leftovers of filament are still dripping from the nozzle while it travels after print and these leftovers stick like a blob on the tip. I would like to get rid of those by wiping.
I wonder if G-code for Bambu supports the variables and loops like here? Maybe than this chunk of code:
; extra wipe start
; Wipe the hotend every 10c down to -60c from print temp then turn off
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-10}
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-10}
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-20}
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-20}
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-30}
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-30}
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-40}
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-40}
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-50}
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-50}
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-60}
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-60}
Could be replaced with something like:
; extra wipe start
; Wipe the hotend every 10c down to -60c from print temp then turn off
#100 = 6; steps of cooling down
#200 = 10; degrees of cooling down per step
#000 = 0; current step of cooling down
WHILE [#000 LE #100] DO1
#000 = #000 + 1
M104 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-#200*#000}
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
M109 S{nozzle_temperature_initial_layer[initial_no_support_extruder]-#200*#000}
END1