Solved Add 'pre-retract' and 'post-retract'
-
I'm working on a new extruder setup which requires a certain action to be executed before and after a retraction. Currently I'm solving this by running a postprocessor on the gcode which inserts M98 P"/sys/pre-retract.g" before and M98 P"/sys/post-retract.g" after a G10 (firmware retraction).
This works fine, but it might be nice to have it natively supported.
The same could be done for a G11 in pre-unretract.g and post-unrectract.gMaybe also allow us to specify what happens during the actual retract in "retract.g" instead of configuring it with M207? (hmm but then the zhop and the retraction move can't be executed simultaneously...)
Edit: It would also be very cool if firmware retracts would support "wipe while retracting"
-
@nikscha I like the idea. It's like the tool-change macros.
But there is also a problem when you retract / unretract within a toolchange.
Maybe you can solve your problem by renaming G10/G11 to G10.1 and G11.1 via postprocessing. Then you need only one macro for retraction (which also contains the real G10 move) -
@o_lampe said in Add 'pre-retract' and 'post-retract':
Maybe you can solve your problem by renaming G10/G11 to G10.1 and G11.1 via postprocessing.
I had no idea that you could implement your own custom gcodes like that. That is a really good idea, thank you! Messing around with the PP-script was a pain in the ass...
-
-
-