Quote Originally Posted by thomashomer1986 View Post
Clive you are my hero!

It now works. I changed the z axis limits to be between -75 and 0. I was sure that I had tried it at that setting before but i must have got the numbers the wrong way round.

Thank you very much for your help. All I need to do now is buy a spindle and wire up the limit switches and it'll be ready for production work lol.
Ok that's great. I just use home switches and rely on the soft max limit for the other end. Be aware that the sign may have to be changed to get it to home in the correct direction and it is usual to put the Z +ve at the top so a minus z code will move the spindle down.
this is a sample z .ini:-
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 600.0
STEPGEN_MAXACCEL = 750.0
SCALE = 240.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -325.0
MAX_LIMIT = 0.001
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 10.000000
HOME_LATCH_VEL = -2.083333 notice the sign easily missed
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0......This can be 0,1,2 this alters the way the axis homes ie 0 = home first.

good luck with the build. Clive