Hi,
I do a touch move with a 3d Probe in Z- Direction.
Tool length offset for my Probe is 155,0763.
The Tab "Probing" and "Single Axis Move" correctly use the offset from the tool Table selected tool.
The Button "Touch" (mcTouchOff.lua) on the main screen does not use this and sets a complete different value.
Because the "Touch off Plate" is used in x, y and z direction as same offset, it is also not possible to use this to compensate with the correct length offset.
This is the code from mcTouchOff.lua:
function SetFixOffset(Axis, Direction)
if (Axis == 'X') then
Pos = mc.mcAxisGetProbePos(inst, mc.X_AXIS, 1)
OffsetVal = (((ToffPlate + ToffToolRadius) * Direction) + Pos)
elseif (Axis == 'Y') then
Pos = mc.mcAxisGetProbePos(inst, mc.Y_AXIS, 1)
OffsetVal = (((ToffPlate + ToffToolRadius) * Direction) + Pos)
elseif (Axis == 'Z') then
Pos = mc.mcAxisGetProbePos(inst, mc.Z_AXIS, 1)
OffsetVal = ((ToffPlate * Direction) + Pos)
end
...
Code from mcProbing.lua:
if (SetWork == 1) then
local HeightOffset = mc.mcToolGetData(inst, mc.MTOOL_MILL_HEIGHT, OffsetNum)
local HeightOffsetW = mc.mcToolGetData(inst, mc.MTOOL_MILL_HEIGHT_W, OffsetNum)
local NewWOVal = MeasPointMACH - HeightOffset - HeightOffsetW
Probing.SetFixOffset(nil, nil, NewWOVal)
end
So my assumption would have been, that two default Mach4 scripts should use the same Z Calculation in touching?
Or have i missed something how to use this correctly?