Page 1 of 1

Retractions

Posted: Mon Dec 19, 2022 8:33 pm
by billyd
I posted in the general section but after thinking about it this may be a bug.

I use firmware retractions. In v4 this was done by using a post processing script something like this:
{REPLACE "G1 E-0.5000 F1800\n" "G10\n"}
{REPLACE "G1 E0.0000 F1800\n" "G11\n"}

However in v5, I realized that the second line is never created in v5 gcode. Instead it shows this for recovery:
G1 E0.5000 F1800

So as a result there are no G11's created after post processing using my original script. This is easily fixed for firmware retractions in v5 using this:
{REPLACE "G1 E-0.5000 F1800\n" "G10\n"}
{REPLACE "G1 E0.5000 F1800\n" "G11\n"}

However isn't the recovery currently being placed into the gcode for standard retractions incorrect? Why isn't it:
G1 E0.0000 F1800

Re: Retractions

Posted: Tue Dec 20, 2022 3:34 am
by S3D-Jason
I mentioned this in your other post, but I believe there's a G92 E0 right before the G1 E+ command. That resets the current E value to zero, so when you see something like G1 E0.5 afterwards, it's advancing the filament by 0.5mm which looks correct to me.

Re: Retractions

Posted: Tue Dec 20, 2022 11:19 am
by billyd
Yes sorry for the double post, I didn't look at the gcode carefully enough. I figured it might be ok because that would be a hard mistake to miss in testing!