Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: Firechief on January 08, 2018, 02:47:57 PM
-
I heed some help with finding the current tool edge. I working on a XYZ 0. I got it to find XYZ 0 but the setting is to the side (XY) of the tool not the center. Any help with the lua code would be great.
Thanks
-
This should help
https://www.youtube.com/watch?v=VA49atQNzmg
-
I,m working in the Lua code with a coroutine. Got everything working finding all XYZ just need to get the center of the bit not the edge on the XY.
Thanks for your help
-
You can get the center of the tool by using
local center = mc.mcToolGetData(inst, mc.MTOOL_MILL_RAD, 1);
assuming you are using the tooltable, from here you can add or subtract it to your XY Coords
DazTheGas
-
Thank for the help...
I got this to work