Jump to content
Ultimaker Community of 3D Printing Experts

Extruding blob after (custom) pause


Recommended Posts

Posted · Extruding blob after (custom) pause

I created my own 'Filament Change' plugin, as the ones in Cura (FilamentChange and PauseAtHeight) both seem to have issues.

My plugin inserts the gcode as I want and it works pretty well.

But, after it resumes printing, the printer starts by extruding a large amount of filament on the starting position on the object.


No idea why it does that, as I do a Extruder reset before the end of my code

G92 E0 ; Reset Extruder

Anyone any idea why this is happening and how to solve it?


Here is a snippet of the full gcode:


G0 X120.2 Y119.763
G0 X120.252 Y110.861
G0 X123.797 Y105.044
G0 X123.822 Y104.948
;MESH:Object 1

; =================================
; Filament Change for layer: 3
; ---------------------------------
; ---- Move away from object and start cooling ----
M83 ; E axis relative mode
M106 ; Set Fan Speed (max)
M104 S150; Pre-set Hotend temperature
G1 E-6 F3600 ; Retract filament
G1 Z10 F3000 ; Move Z Axis up little
; ---- Play pre-tune ----
G4 P10 ; wait
M300 S660 P100
G4 P10 ; wait
M300 S660 P100
G4 P10 ; wait
M300 S660 P100
G4 P10 ; wait
M300 880 P400
; ---- Go home and cool down ----
M82 ; E axis absolute mode
G0 X2 Y2 ; Move X & Y to near-start position
G0 Z40 ; Move to 4cm above bed to make filament change easier
M109 R150; Wait for Hotend temperature to cool
; ---- Play tune ----
G4 P10 ; wait
M300 S440 P100
G4 P10 ; wait
M300 S440 P100
G4 P10 ; wait
M300 S440 P100
G4 P10 ; wait
M300 S660 P400
; ---- Ready to change filament ----
M18 ; Disable all steppers
M0 Change Filament ; Do the actual pause
; ---- Heat back up ----
M107 ; Fan Off
M109 S200.0; Reset Hotend temperature and wait
M106 S60.0; Reset Fan Speed
; ---- Draw 2 purging lines (next to start-up line) ----
G28 ; Home all axes
G92 E0 ; Reset Extruder
G1 Z2.3 F3000 ; Move Z Axis up to prevent scratching of Heat Bed
G1 X1.1 Y20 Z0.3 F5000 ; Move to start position
G1 X1.1 Y200 F1500 E30 ; Draw the first line
G1 X1.4 Y200 F5000 ; Move to side a little
G1 X1.4 Y20 F1500 E30 ; Draw the second line
G1 X1.7 Y20 F5000 ; Move to side a little
G1 X1.7 Y200 F1500 E30 ; Draw the first line
G1 X2.0 Y200 F5000 ; Move to side a little
G1 X2.0 Y20 F1500 E30 ; Draw the second line
; ---- Go home and reset ----
G0 X0.4 Y20 Z0.3 ; Move to start position
G92 E0 ; Reset Extruder
G0 Z10.4 ; Move Z Axis up to well above current layer
; =================================

G0 F7200 X123.822 Y104.948 Z0.3
M204 S500
M205 X20 Y20
G1 F4800 X124.041 Y104.762 E148.58437
G1 X124.577 Y104.309 E148.59604
G1 X124.692 Y104.237 E148.59829
G1 X124.844 Y104.172 E148.60104


  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    • Our picks

      • The Ultimaker Showcase — October 14. What's new?
        Your dear friends at Ultimaker have some exciting news and insights for you!
        • 0 replies
      • New here? Get ahead with a free onboarding course
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 8 replies
    • Create New...