Pathio Users

First Z move happens before tool call. Chaos ensues

  • Printer Name: Tool changer. Reprap firmware
  • Pathio Version: 6.3 alpha

Pathio start:

PATHIO: Pathio necessary settings
G21 ;Set printer to use mm
G92 E0 ;Set Extrude to 0
G90 ; Set absolute positioning
M83 ;Set extruder to relative mode
M200 D0 ;Set printer to treat E as mm, not mm^3)

M140 S60 ; set the active and standby temperatures for heatbed
G10 P0 S0 R160 ; set the active and standy temperatures
G10 P1 S0 R160 ; set the active and standy temperatures
G10 P2 S210 R160 ; set the active and standy temperatures
G10 P3 S0 R160 ; set the active and standy temperatures
;M98 P/sys/all standby.g
G28;
G0 Z20; clear bed from nozzle

; PATHIO: Pathio necessary settings
G21 ;Set printer to use mm
G92 E0 ;Set Extrude to 0
G90 ; Set absolute positioning
M83 ;Set extruder to relative mode
M200 D0 ;Set printer to treat E as mm, not mm^3)

; PATHIO: New layer
; layer 1, Z = 0.300000
G92 E0.00 ; Set the current filament position to E=0.00
G1 E-0.50 F2400 ; Retraction
G1 Z0.25 ; ZHop
M104 S160  
 T2 
 M109 S210
; PATHIO: Starting new track
; tool H0.300000 W0.500000
; skirt

Simplify start script

G90
M83
M106 S0
M140 S80 ; set the active and standby temperatures for heatbed
;G10 P0 S210 R180 ; set the active and standy temperatures
;G10 P1 S210 R180 ; set the active and standy temperatures
G10 P2 S220 R180 ; set the active and standy temperatures
;G10 P3 S-1 R180 ; set the active and standy temperatures
;M98 P/sys/all standby.g
G28;
; process T2
; layer 1, Z = 0.300
T2
G1 E-1.0000 F3600
; feature skirt
; tool H0.300 W0.478
G1 Z0.300 F1500
G1 X144.816 Y141.105 F15000

So when the first Z move happens before the tool call the bed moves above the nozzle level with the tool on the dock so when the tool un-docks it crashes into the bed really hard. It’s bad news.

After playing around yesterday it seems that simply moving the first tool call above “PATHIO: New layer” fixes the issue.

Easy to do manually, but easy to forget

Hi @prcdslnc13,
Thanks for the input, sorry for the trouble! I’ll see with the team about swapping this around. For now, would it be possible for you to set your first tool change at the end of the start script? That way you don’t have to edit the GCode manually.

I could but I don’t know for certain what tool pathio will start with. Is there an easy way to figure this out?

Pathio currently always starts with the first Extruder (that’s used on a layer) and works its way down the list:

image

After talking with @Greg it sounds like the problem you’ve got with the toolhead crashing is actually best handled in your firmware scripts. Specifically, moving the build plate to a minimum safe distance for the tool that you’ve got attached and the one you’re going to pick up. I’m not 100% sure how you’ve got it set up now (since the GCode you posted obviously doesn’t have that info) but that seems to be the sure-fire way to make sure crashes don’t happen at any point in the print (especially since Pathio can’t keep track of that stuff for you since it doesn’t know the toolhead offsets).