; homex.g ; called to home the X axis ; ; generated by RepRapFirmware Configuration Tool v3.1.4 on Fri Sep 25 2020 15:34:47 GMT+0200 (Mitteleuropäische Sommerzeit) if sensors.gpIn[0].value == 1 && state.currentTool == -1 abort "Unidentified tool detected - manual intervention required" if sensors.gpIn[0].value == 0 && state.currentTool > -1 abort "Expected tool not detected - manual intervention required" if !move.axes[1].homed echo "Home Y axis first" ; G28 Y ;M98 P"homec.g" G1 Y250 F5000 M400 M913 X30 Y30 ; drop motor current M400 G91 ; relative positioning ;G1 H1 Z10 F1000 ; lift Z relative to current position ;M574 X1 S3 G1 H1 X-400 F7000 ; move quickly to X axis endstop and stop there (first pass) G1 X5 F7000 ; go back a few mm G1 H1 X-400 F4000 ; move slowly to X axis endstop once more (second pass) G1 X17 F7000 ; go back a few mm ;M574 X2 S3 ;G1 H3 X400 F7000 ; move slowly to X axis endstop once more (second pass) ;G1 X-5 F7000 ; go back a few mm ;G1 H3 X400 F4000 ; move slowly to X axis endstop once more (second pass) ;G1 X-5 F7000 ; go back a few mm ;G1 H2 Z-10 F6000 ; lower Z again G92 X{move.axes[0].min} M400 G90 ; absolute positioning M913 X100 Y100 ; return current to 100% M400 ;M208 S1 X{move.axes[0].min + 2} ;M208 S0 X{move.axes[0].max - 2}