Retraction Script
Posted: 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.
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.
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 *****
I hope this can help someone else. It was perfect for what I was doing.