Define Pin when Z moving down while probing

I hope it can help someone else!