Sorry here’s the link
http://the-cnc.blogspot.co.uk/p/z-probe-code.html?m=1