I have provided a procedure for setting up the Z-axis endstop switch here:

http://3dprintboard.com/showthread.p...dstop-switches

Old Man Emu