Jump to content

Extra Retraction at Start


Recommended Posts

Posted · Extra Retraction at Start

I'm having a problem with my prints, cuz this extra retraction makes the Z jump 2mm before making the skirt, and this is scratching the bed, I don't want to change the value of Z-Hop, I just want it to not retract before starting the skirt.

 

 

The Gcode: 

 

;FLAVOR:Marlin

;TIME:34805

;Filament used: 34.7632m

;Layer height: 0.2

;MINX:85.404

;MINY:85.493

;MINZ:0.2

;MAXX:314.596

;MAXY:314.47

;MAXZ:14.2

;TARGET_MACHINE.NAME:Tronxy X5SA 400

;POSTPROCESSED

 

M82 ;absolute extrusion mode

M140 S0

M104 S0

START_PRINT BED_TEMP=75 EXTRUDER_TEMP=235

G92 E0

G92 E0

G1 F2700 E-1 <<<<<<<<<<<<<< Extra Extrusion

;LAYER_COUNT:70

;LAYER:0

M107

G1 F300 Z0.4 <<<< Z-hop

G0 F2700 X117.651 Y120.466 Z0.4

;TYPE:SKIRT

G1 F300 Z0.2

G1 F2700 E0

  • Link to post
    Share on other sites

    Posted · Extra Retraction at Start

    The Z hop should move the head further from the bed, not make it scratch it. It moves to that height because it's a Z hop above the starting Z height (so it's just a normal Z hop down when it starts printing) and it retracts so it doesn't drool as it moves from the starting position of the head to the start of the skirt.

     

    It looks like you're using Klipper(?) which I don't know that well but for regular Marlin startup gcode would usually start with an M90 to set it to absolute positioning and you'd have a G28 to home the printer (in your case probably after the START_PRINT macro) but I don't know if the START_PRINT macro handles that for you.

  • Link to post
    Share on other sites

    Posted · Extra Retraction at Start

    zhop in cura is a feature meant mostly just for delta printers.  Google image search "delta 3d printer" if you don't know exactly what I mean. Some non-delta printers can sometimes benefit from this feature but only if they have a Z axis with zero play.  Which is pretty much no printer I've ever seen - I mean it would be an extremely expensive, extremely well built, extremely high quality printer that had no difference in z axis position whether you move the bed to a position from below or from above. (need like 0.01mm consistency - even that much error will give you 10% over/underextrusion with 0.1mm layer heights).

  • Link to post
    Share on other sites

    Posted · Extra Retraction at Start

    Remove the extra retraction before the skirt starts (the line G1 F2700 E-1). This command is causing the nozzle to retract filament and leads to the subsequent Z-hop action.

  • Link to post
    Share on other sites

    Posted · Extra Retraction at Start

    Hi folks.

    The Z-hop is related to the retraction, but there is no setting to adjust that retraction and so the Z-hop will occur.

     

    The problem I was having with that was the retraction itself.  It always caused the skirt to delay it's start.  I tried using "Search and Replace" but it wanted to change all the retractions rather than just the first one so I re-wrote the script to suit myself.  This is my version.  (BTW Slashee is not allowed to comment on my coding style.  It works.)

    SearchAndReplaceGV.zip

    At some point I think it will end up in a Pull Request for Cura.  There are new options and one of them is to replace the "First Instance Only".

    Unzip the file and put it into your Configuration Folder and the "scripts" sub-folder.  It will be available in Cura with the other post processors (under "Extensions") and will give you a second option for Search and Replace.

     

    The settings look like this.  (These are the settings that changes the initial retraction, to a G92.  That sets the E location instead of pulling the filament back further since I do retract after the purge lines.)

    image.thumb.png.b487097a5a7c6a3410a96299423fcd26.png

    You will need 3 instances of Search and Replace to adjust the three relevant lines.  These will be ambidextrous and independent of the Cura settings for retraction and so forth.

    I have the first instance to change that Initial Retraction so my skirts start correctly.  You may not need this one.

    Search:  G1 F(\d*\d.*) E-(\d*\d.*)

    Replace:  G92 E-1 ;the number may require tweaking because you don't want a delay, nor a blob.)

    Use regular expressions:  checked

    Enable search in a layer range:  not checked

    Replace first instance only:  checked

    Ignore StartUp Gcode:  not checked (that particular retraction happens to be in the StartUp section of the gcode)

    Ignore Ending Gcode:  checked

     

    The second instance removes the first Z-hop only.

    Search:  G1 F(\d*\d.*) Z(\d.*)

    Replace:  ;Z-hop removed

    Use regular expressions:  checked

    Enable search in a layer range:  not checked

    Replace first instance only:  checked

    Ignore StartUp Gcode:  checked  (the first z-hop is within LAYER:0.)

    Ignore Ending Gcode:  checked

     

    The first travel move contains the z-hop height and that needs to be removed/ignored but the travel needs to stay.

    Search:  G0 F(\d*\d.*) X(\d.*) Y(\d.*) Z(\d.*)

    Replace:  G0 F\1 X\2 Y\3 ;Z\4

    Use regular expressions:  checked

    Enable search in a layer range:  not checked

    Replace first instance only:  checked

    Ignore StartUp Gcode:  checked

    Ignore Ending Gcode:  checked

     

    So instead of these lines:

    G1 F2700 E-1 <<<<<<<<<<<<<< Extra Retraction

    ;LAYER_COUNT:70

    ;LAYER:0

    M107

    G1 F300 Z0.4 <<<< Z-hop

    G0 F2700 X117.651 Y120.466 Z0.4

    ;TYPE:SKIRT

     

    You would end up with these lines:

    G92 E-1 <<<< If you have a retraction after purge lines in your StartUp then the number here should match that distance.

    ;LAYER_COUNT:70

    ;LAYER:0

    M107

    ;z-hop removed

    G0 F2700 X117.651 Y120.466 ;Z0.4 <<<<<< The Z parameter has been commented out and the F X Y are the same.

    ;TYPE:SKIRT

     

    I will now state once again how much I hate dealing with Regular Expressions.

     

     

  • 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

      • UltiMaker Cura 5.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...