Posts: 1
Joined: Wed Jun 02, 2021 2:30 pm

Tool change retraction G-Code for a dual extrusion with 2 syringes

Wed Jun 02, 2021 2:47 pm

Hi, I'm trying to use the "Tool Change Script" to control the retraction of 2 independent syringe extruders, like this:

Before start, I set both syringes retracted (preventing ooze).
I need a command that, before the first layer start, "unretracts" the 1st syringe, but maintaing the 2nd one the same.
Then at every tool change, the older syringe needs to retract and the new syringe needs to "unretract".

Tried the following codes, with not much success:

{IF NEWTOOL=0}G92 T1 E1; zero the E-value
{IF NEWTOOL=0}G1 T1 E-55 F1800 ; retract t1 55mm at 30mm/s
{IF NEWTOOL=0}G92 T0 E0 ; zero the E-value
{IF NEWTOOL=0}G1 T0 E50 F1800; extrude t1 50mm at 30mm/s

{IF NEWTOOL=1}G92 T0 E0; zero the E-value
{IF NEWTOOL=1}G1 T0 E-55 F1800; retract t0 55mm at 30mm/s
{IF NEWTOOL=1}G92T1 E1; zero the E-value
{IF NEWTOOL=1}G1 T1 E50 F1800; extrude t0 50mm at 30mm/s

; Start Tool Change
{IF OLDTOOL=1}{IF NEWTOOL=0}G1 E-65 F1800; retract old tool
{IF OLDTOOL=0}{IF NEWTOOL=1}G1 E-65 F1800 ; retract old tool
{IF OLDTOOL=1}{IF NEWTOOL=0}G1 E50 F1800; un-retract new tool
{IF OLDTOOL=0}{IF NEWTOOL=1}G1 E50 F1800; un-retract new tool
; End Tool Change

Return to “Troubleshooting and Bug Reports”