High Precision Automatic CNC Z Axis Tool Sensor and Setting Gauge