Pathio Users

Unretract after tool change using retract value from last tool

  • Printer Name: ToolChanger
  • Pathio Version:6.3 Beta
  • Filament Type: Snolabs PLA+

Important Slicing Settings:

Tool 1: Retract 4mm, Unretract 4mm, Speed 100mm/second
Tool 2: Retract 1,5mm, Unretract 1.5mm, Speed 100mm/second

In this instance T1 is a bowden tool with a 1m bowden tube, and T2 is a Titan Aero with a standard V6 .4mm nozzle.

Example code T1:

G1 X173.63 E0.0270
G1 X173.04 Y121.70 E0.0335
G1 E-1.50 F6000 ; Retraction
G1 Z0.45 ; ZHop
; PATHIO: Track complete

; PATHIO: New layer
; layer 2, Z = 0.400000
;M104 S160
 T1
 ;M109 S210
; PATHIO: Starting new track
; tool H0.200000 W0.480000
; outer perimeter
; indexLimit: 161
G1 X163.37 Y131.56 Z0.65 F5100 ; Travel
G1 Z0.40 ; Undo ZHop
G1 E1.50 F6000 ; Unretract
G1 X161.03 Y131.54 Z0.40 E0.0937 F1800

Example code T2:

G1 X149.47 Y105.01 E0.0037
G1 E-4.00 F6000 ; Retraction
G1 Z0.45 ; ZHop
; PATHIO: Track complete

;M104 S160
 T2
 ;M109 S210
; PATHIO: Starting new track
; tool H0.200000 W0.480000
; outer perimeter
; indexLimit: 97
G1 X144.08 Y106.11 Z0.45 F5100 ; Travel
G1 Z0.20 ; Undo ZHop
G1 E4.00 F6000 ; Unretract
G1 X143.88 Y106.29 Z0.20 E0.0109 F1200

T2 is the tool that is really getting the issue because at tool change it runs a purge cycle and primes the nozzle. So at the beginning of its path it lays down a huge glob of plastic.

Is there a way in scripting to look and see if a tool change has been done and not include the unretract move?