; homev.g ; called to home the V axis M584 P5 M18 V G91 ; relative positioning G1 H2 Z1 F1000 ; lift Z relative to current position M913 V100 M400 while true if iterations = 5 abort G1 H1 V-5 F200 ; move quickly to V axis endstop and stop there (first pass) G1 H2 V0.5 F200 ; go back a few mm G1 H1 V-1.5 F100 ; move slowly to V axis endstop once more (second pass) if move.axes[4].homed break echo "Repeating homing" ; end loop M913 V10 M584 P3 G1 H2 Z-1 F1000 G90 ; absolute positioning