Last night I tried the disabled tool probing and it works but I dare say it doesn't set the tool table properly - the number seems way too high.
I was looking for examples to go by eg:
www.cnctrainingcentre.com/training/cnc-h...tool-length-offsets/
Seems it common to reference from spindle face or from tool end.
Spindle face seems better.
I would guess then that one would need to know the distance in g53 for the spindle face to toolsetter - toolsetter height.
Then the difference between that and the touch off with a tool would be tool length.
roughly this is what I got (there is code before this to offset by radius for large tools)
Code:
cmdList.append('G91 ')
# should start spindle in proper direction/speed here..
cmdList.append('G1 X{}'.format(Xoffset))
cmdList.append('G38.2 Z-{} F{}'.format(self.data_ts_max,self.data_search_vel))
cmdList.append('G1 Z{} F{}'.format(self.data_latch_return_dist, self.data_rapid_vel))
cmdList.append('F{}'.format(self.data_probe_vel))
cmdList.append('G38.2 Z-{}'.format(self.data_latch_return_dist*1.2))
cmdList.append('G1 Z{} F{}'.format(self.data_z_clearance, self.data_rapid_vel))
cmdList.append('G1 X{}'.format(-Xoffset))
cmdList.append('G90')
cmdList.append('#<touch_result> = #5063')
cmdList.append('G10 L1 P{} Z[#<touch_result> -{}]'.format(
self.data_tool_number,self.data_tool_probe_height+self.data_tool_block_height))
cmdList.append('G43')
Z[#<touch_result> - tool_probe_height + tool_block_height doesn't seem right.
Comments?