I have a large custom built reprap that has been running fine under Marlin for 6 months. I am trying to switch to Repetier to take advantage of some of the better features but have one issue that I can't seem to resolve. After uploading the firmware I can make one print with everything functioning properly. After the first print at the start of the 2nd the extruder motor will just spin backwards (retracting) until I hit the reset button. It does this at the final E0 command in my startup geode posted below. I've tried several different startup codes, all with the same results. Each time I upload the firmware I change the Eprom # to overwrite it, and like I said, all works fine for one print, then the extruder won't zero for the 2nd. I can control the extruder motor no problem, it's just when it gets that gcode command at the start the print! I've searched these forums extensively, tried switching the extruder pins with other axis's, still have the same problem.
Startup Gcode
21 ; set units to millimeters
M107
M190 S5 ; wait for bed temperature to be reached
M104 S205 ; set temperature
G28 ; home all axes
G1 Z5 F5000 ; lift nozzle
M109 S205 ; wait for temperature to be reached
G90 ; use absolute coordinates
G92 E0 ;
this is where the problem seems to be
M82 ; use absolute distances for extrusion
My setup is an Azteeg X3 Pro + Viki controller and single extruder. I have dual Z and Y motors