Hello Guest it is May 14, 2021, 06:27:54 PM

Author Topic: Problem with "Tool Offset" and “Current Position”  (Read 261 times)

0 Members and 1 Guest are viewing this topic.

Problem with "Tool Offset" and “Current Position”
« 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
Re: Problem with "Tool Offset" and “Current Position”
« Reply #1 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
My wife left with my best friend...
     and I miss him!