1451
General Mach Discussion / Re: Tool Offset Macro...
« on: July 28, 2016, 02:33:08 PM »
Ok, pulled apart a probe macro Added a few lines of code, I think I'm getting there?
M1098 measures the reference tool and stores the distance in #var(500), this is only run once for a setting session.
M1099 measures a tool, then compares the length with the contents of #var(500) and spits out the difference which can then be entered into the tool table.
Untested as yet, the code runs ok but not tested properly.
My question now is - is this a correct procedure for populating the tool table ?
It seems to make sense to me at least - as long as the tool number on-screen matches the tool mounted, once the z axis is touched-off, all further tools are automatically set to the same reference.
I think that's what's needed
M1098 measures the reference tool and stores the distance in #var(500), this is only run once for a setting session.
M1099 measures a tool, then compares the length with the contents of #var(500) and spits out the difference which can then be entered into the tool table.
Untested as yet, the code runs ok but not tested properly.
My question now is - is this a correct procedure for populating the tool table ?
It seems to make sense to me at least - as long as the tool number on-screen matches the tool mounted, once the z axis is touched-off, all further tools are automatically set to the same reference.
I think that's what's needed