Unfortunately the official Debian version is quite behind our 2.9 release.
Neither probe basic nor touchplate are for setting tool length in the tooltable.
here is the rough touchplate code (just look at the MDI commands):
Code:
def touchoff(self):
name = 'Touchoff'
ACTION.CALL_MDI("G10 L20 P0 Z0")
rtn = self.probe_down()
if rtn != 1:
ACTION.CALL_MDI("G90")
return '{} failed: {}'.format(name, rtn)
cmdList = []
cmdList.append("G10 L20 P0 Z{}".format(self.z_offset))
cmdList.append("G1 Z{} F{}".format(self.retract_distance, self.search_vel))
cmdList.append("G90")
rtn = self.CALL_MDI_WAIT(cmdList, self.timeout)
if rtn != 1:
return '{} failed: {}'.format(name, rtn)
return 1
So they set the user system origin of Z for the current tool (by using G10 L20)
I personally don't know enough about what calculations to make to instead record length in the tool table (using G10 L10)
basic probe is the same - sets origin with G10 L20 or L2
Versa probe has two buttons and routines set up but i disabled them as I can not test the behaviour at this time.
If you are interested and capable of testing/suggesting changes of these routines, I would be happy to help.
But first you should get the latest 2.9.2 version of linuxcnc from us. it has a lot of bug fixes in it.
Chris