deutchbag
Posts: 13
Joined: Mon May 25, 2015 10:44 pm

Retraction Script

Tue Oct 25, 2016 11:17 am

I ran across something cool today. I needed to move the extruder head prior to retracting. I found out I could script this after emailing support. Since I didn't see this posted anywhere, I figured I'd share with the community.

This is the structure they sent me.

Code: Select all

; ***** pre-retraction code *****

; ***** IF using relative extrusion distances *****
; G1 E-[retract_distance] F[retract_speed]

; ***** IF using absolute extrusion distances *****
; M83 ; set extrusion to relative coordinates
; G1 E-[retract_distance] F[retract_speed]
; M82 ; set extrusion to absolute coordinates again

; ***** post-retraction code *****

The actual retraction portion needed to be un-commented for the type of extrusion that my G-Code was using. I found out which type my profile used, by opening the G-Code tab and seeing if "Relative Extrusion Distances" was checked or not.

I hope this can help someone else. It was perfect for what I was doing.

gearsawe
Posts: 150
Joined: Sun Sep 10, 2017 11:06 pm

Re: Retraction Script

Tue Sep 12, 2017 7:11 pm

the [retract_distance] and [retract_speed] do not appear to work in the start code.
but work in the retract sections

Return to “General Discussion and Tips”