dsegel wrote:gelly wrote:would it be better to move in the X or Y axis instead ?
That's not a bad idea, but it could lead to stringing. I think KeyboardWarrior has the right idea - just lift and pause in place, then continue. I'm not sure about the values, though. It depends on whether the layer change code is called before or after the layer height change that happens with the new layer, or whether that height change would happen in other parts of the code.
Resurrecting an old thread, but I just ran this experiment.
The layer change script occurs before the Z height is adjusted. Based on what I'm reading, you should be able to use relative mode to lift, then pause, then set back to absolute with no additional repositioning needed. The remainder of the gcode will properly position the nozzle for continuing the print.
I'm using a Neva, and the filament change command is M600. My layer change script for the center process is:
Code: Select all
; pause on layer change
M600 L0 P18
; printer will pause and wait for user to press button on Neva.
Here is a snippet from the resulting file:
Code: Select all
G1 X19.277 Y27.762 F2400
G1 X19.355 Y27.840 F2400
G92 E0
G1 E-5.5000 F4800
; process Process1-2
; layer 176, Z = 35.260
M104 S210 T0
M106 S0
; pause on layer change
M600 L0 P18
; printer will pause and wait for user to press button on Neva.
; inner perimeter
G1 X2.790 Y-16.542 F4800
G1 Z35.260 F1800
G1 E0.0000 F4800
G92 E0
G1 X2.470 Y-16.444 E0.0111 F2100
G1 X1.572 Y-16.204 E0.0420
After the pause, you can see the commands to reposition in X, Y and Z locations.