Page 1 of 1

How does the Retraction Script feature work?

Posted: Fri Dec 30, 2016 3:11 pm
by littlecat
Maybe I'm just bad at using Google, but I can't seem to find any explanation of how the Retraction Script in the "Scripts" tab is parsed. Specifically: does it override the retraction settings from the Extruder tab? If so, does it override all of the settings, or some of them? Is there any documentation that explains this? Thanks!

Re: How does the Retraction Script feature work?

Posted: Sat Dec 31, 2016 4:36 am
by CompoundCarl
I think it just adds the commands anytime it does a retraction. Kind of like the tool change script.

Re: How does the Retraction Script feature work?

Posted: Thu Apr 20, 2017 11:33 pm
by gtakacs
It doesn't make sense. Does the script run before/after or in lieu of retraction? One script is simply not enough.

Re: How does the Retraction Script feature work?

Posted: Fri Apr 21, 2017 11:19 am
by littlecat
@gtakacs agreed - I'd imagine it would take a Simplify3D developer no more than an afternoon to break that tab out into a pre- and a post- retraction script, with a checkbox that allows you to override the firmware retract and just do what's in the scripts.

@Simplify3D please have someone do this!

Re: How does the Retraction Script feature work?

Posted: Fri Apr 21, 2017 12:10 pm
by MasterFX
The retraction script is executed right before the retraction itself (e.g. G1 E-0.5000 F1800).
If you du something like {REPLACE "E" "A"} , {APPEND "G28 X0 Y0\n"}, {DELETE "M82\n"} ... this would be done in post-processing

For further information: viewtopic.php?f=8&t=1959

Re: How does the Retraction Script feature work?

Posted: Wed Aug 09, 2017 4:41 am
by studiodyne
i use FIRMWARE RETRACTION , i love it

It's easy to script

You set your retractation parameters and you never touch them because , the script will not find the value if you modify

You make the script , for normal retractation , and for swapping

Replace normal retraction , by G10 , swap by G10 S1 , all recover by G11 , the machine will apply the recover needed

Here is my settings for an ' Y ' dual extruder that need to swap with 50mm of filament

{REPLACE "G1 E-2.0000 F1800" "G10\n"}
{REPLACE "G1 E0.2000" "G11 ;\n "}
{REPLACE "G1 E-50.0000 F1800\n" "G10 S1 \n"}
{REPLACE "G1 E-5.0000 F1800" "G11 \n "}