When manually controlling the z-axis in reprap, it works fine. If I use the home button, it doesn't move. Instead, it stalls/freezes/hangs. It attempts to turn, but can't successfully make a full turn.
lower the moving speed of the Z-axis motor, search for
homing feed rate
in config.h as it looks like the given speed is to high.
Looks like endstop signal for Z is inverted. In this case Z will move in manual mode but when homing it will try and stop as limit detected immediately. Change Z_MIN_ENDSTOP_INVERTING to opposite value.
-
$\begingroup$ Triggered stops cause marlin to only allow the axis to move away from the stop during homing. If it is not moving at all, this couldn't be the cause. $\endgroup$ – silver Sep 17 '18 at 19:03
If you run M503 you should be able to see your max speeds. They, along with your homing speeds, are probably far too high and causing skipped steps (no movement). You can lower them down temporarily with M203. http://marlinfw.org/docs/gcode/M203.html
M119
to the printer over USB using a terminal window like can be found in e.g. Pronterface software. Furthermore the question is very terse, please try to add more information and explain what you already tried to do to fix it. Please read this to improve your question. $\endgroup$ – 0scar♦ Sep 6 '18 at 6:29