Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Tarak on September 15, 2016, 01:04:21 AM

Title: Work offset table using VB
Post by: Tarak on September 15, 2016, 01:04:21 AM
Is it possible to extract a value from the WORK OFFSET TABLE?
I've read many post for the Tool table but I can't find anything about the WORK OFFSET table.

Basically I would like to be able to read the X & Z values of G54, G55, G56, G57, G58 & G59 when I need to.
Is this possible?
(https://s21.postimg.org/xumnn0cvb/Mach3_Work_Offsets.png)
I tried with the GetToolParam, but I think this is only the tool table.
Thanks.

Tarak
Title: Re: Work offset table using VB
Post by: Tarak on September 15, 2016, 01:50:52 AM
I also forgot to ask, How can I check what coord system I am currently using with VB?
e.g  G54 or G55 or G56 etc.
Title: Re: Work offset table using VB
Post by: RICH on September 15, 2016, 05:37:59 AM
Is this for the lathe?

Why do you want to be able to read the values, or said differently, what do you want to do with them?

RICH
Title: Re: Work offset table using VB
Post by: Tarak on September 15, 2016, 03:41:17 PM
Hi Rich, I should of mentioned it's for the Mill, I have created my own probing cycles (a bit rudimentary I admit, but they work) that will work with my 4 axis mill, I want to access the values so after I probe using G59 in X,Z or A I can offset the values in G54 the measured amounts.
Title: Re: Work offset table using VB
Post by: RICH on September 15, 2016, 06:43:47 PM
Have a look at the Offsets screen in the mill 1024.set as it displays current offsets, coordinates / machine and part.
Open the screen set , say machscreen , and you can get the DRO numbers.  Manipulate the DRO info to find what you need via script.

Note G54 ( default on startup)...G?? are Work Offsets  / also called fixture offsets which are distances from Home to the fixture datum / fixture zero reference point. G52 is a temporary offset relative to the fixture reference point.

RICH