littlecat
Posts: 8
Joined: Wed Feb 18, 2015 1:25 am

How does the Retraction Script feature work?

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!
CompoundCarl
Posts: 2005
Joined: Wed Aug 05, 2015 7:23 am

Re: How does the Retraction Script feature work?

I think it just adds the commands anytime it does a retraction. Kind of like the tool change script.
gtakacs
Posts: 1
Joined: Sat Mar 11, 2017 3:21 pm

Re: How does the Retraction Script feature work?

It doesn't make sense. Does the script run before/after or in lieu of retraction? One script is simply not enough.
littlecat
Posts: 8
Joined: Wed Feb 18, 2015 1:25 am

Re: How does the Retraction Script feature work?

@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!
MasterFX
Posts: 208
Joined: Tue May 20, 2014 11:23 am

Re: How does the Retraction Script feature work?

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
studiodyne
Posts: 30
Joined: Wed Nov 26, 2014 12:59 pm

Re: How does the Retraction Script feature work?

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 "}

Return to “Troubleshooting and Bug Reports”