Hello Guest it is September 23, 2023, 09:55:17 AM

Author Topic: Problem with "Tool Offset" and “Current Position”  (Read 656 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?


Re: Problem with "Tool Offset" and “Current Position”
« Reply #1 on: February 29, 2020, 03:23:04 PM »
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.

'I enjoy sex at 73.....I live at 71 so its not too far to walk.'