Thanks for the tip, unfortunately it doesn’t work that way. This G-code is present on the printer by default. I found a solution. The following setting in the filament end code: ;END gcode for filament G0 X{wipe_tower_x} Y{wipe_tower_y}