You would have to setup soft limits in Mach3. This will prevent the bit from penetrating into the table surface.
Though you will have to change it each time the bit is changed if you want to use it.
We typically only use soft limits on the X and Y axis.