Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: turmite on June 07, 2018, 03:11:44 PM

Title: Help with selection of tool length offset method
Post by: turmite on June 07, 2018, 03:11:44 PM
Hello all,

I now have a good stable working M6 macro and need to start using it. To do this I need to be able to see the tool length offsets and have discovered there are several different methods.

I could use some guidance in this area. 

Mike
Title: Re: Help with selection of tool length offset method
Post by: barneskite28 on May 03, 2021, 03:16:32 AM
Did you get anywhere with this? i'm having some problems too
Title: Re: Help with selection of tool length offset method
Post by: compewter_numerical on May 04, 2021, 04:46:41 AM
it's possible using the screen editor. but depends on how you want to view it. If you only need it in the script use the mc.mcToolGetDataExDbl(inst, toolnum, "Length") LUA API call. for putting it in DRO, Label or Text box you can use the scr.SetProperty(componentName, "Value", toolLength) API call.

mayb easier to do in screen editor if you knew which pound var numbers were associate with tool lengths in the table.