just check if you have not set marlin to allow your printer go further than the max distance, or at the end of g-code you printer will probably hit the end on the Y axis. In here: "{IF_BED}M190 S{BED} ; set bed tempature to Repetier default {IF_EXT0}M104 T0 S{TEMP0} ; set hotend to Repetier default {IF_EXT0}M109 T0 S{TEMP0} ; set hot end tempature to Repetier set point " let your slicing softby vinicius795 - Firmware - Marlin