Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: M250cnc on April 24, 2010, 05:40:58 AM

Title: Bit of help needed with VB code
Post by: M250cnc on April 24, 2010, 05:40:58 AM
Scott S posted some VB parameters and i need help in understanding it a bit.

I want to find the Z offset in lathe for the current tool, Z offset would be parameter 4

Here is the code

GetToolParam(SHORT toolnum, SHORT param)
param { 1 = tool diamter, 2 = ZOffset, 3 = xwear, 3 = zwear )

So that zoffset=(Insert correct VB code here)

Thanks
Phil
Title: Re: Bit of help needed with VB code
Post by: BR549 on April 25, 2010, 09:20:07 PM
Using Turn and assuming tool#1 and zoffset

Gettoolparam(1,4)