Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Jannis on February 29, 2020, 07:01:18 AM

Title: Problem with "Tool Offset" and “Current Position”
Post by: Jannis on February 29, 2020, 07:01:18 AM
I want to write a script for probing the tool length and have a problem I couldn’t find a solution.

I want to save the calculated tool length as “Tool Offset”. I use the command mc.mcToolSetData(inst, mc.MTOOL_MILL_HEIGHT, current_tool, calculated_value) to set the calculated value. Until here everything works fine. The problem is that Mach4 doesn’t correct the value of “Current Position”. Is there a particular reason?

Greetings

Jannis
Title: Re: Problem with "Tool Offset" and “Current Position”
Post by: joeaverage on February 29, 2020, 03:23:04 PM
Hi,
this post should be in the Mach4 General Discussion Board and no doubt tweakie will shift it there in due course.

Mach (3 or 4) has two modes of calculating the current position, the first WITHOUT tool length compensation and the other
WITH tool length compensation.

May I suggest reading G43/G43 Tool Length Offset on page 42 of 'Mill Gcode Programming Guide' in Mach4/Docs.

My guess is you don't have G43 active.

Craig