Hi. I am trying to write a custom gcode for an IDEX printer that will move extruder one to a certain position, save that position, change tools, and then move extruder two to the saved position (plus an offset so the extruders don't collide). This is what i have to accomplish this.

; move first extruder (would extrude but not in this code because just testing)
G0 X100 Y160 E0; move to (100, 160)
G60 S0 S1; save the position of extruder T0 to slot 0 for x and slot 1 for y
G92 X[S0] Y[S1]; sets home position as saved position so that when you switch and T0 moves to home, it stays where it is

; switch to second extruder to perform cutting motion
M605 S0; stop autopark mode before switching to T1 so that T0 doesn't go home
T1
G0 X[#101+S0] F1000; move second extruder to saved x position plus x offset
G0 Y[#102+S1] F1000; move second extruder to saved y position plus y offset

What this ends up doing is preventing extruder 1 (T0) from autoparking to home. However, extruder 1 still moves slightly and noticeably before the tool change. Does anyone know how to stop this? Also I think I am doing something wrong with G60 to save the position and with the two G0 commands to move extruder 2, because extruder 2 does not move to where I expect (the saved position + the offsets indicated by preset variable #101 and #102), it instead attempt to move to extruder 1's home position, colliding with and pushing extruder 1 with it.

Any ideas how to fix this?

Similar Threads: