look into setting up the bit itself as a limit switch..... by using 5v current from the breakout board and a conductive surface u can let the machine know the length of the tool... if u search limit switch on youtube there are videos on what u r talking about.....