Hello Guest it is March 28, 2024, 05:22:23 PM

Author Topic: Work offset table using VB  (Read 3364 times)

0 Members and 1 Guest are viewing this topic.

Offline Tarak

*
  •  229 229
    • View Profile
Work offset table using VB
« 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?

I tried with the GetToolParam, but I think this is only the tool table.
Thanks.

Tarak

Offline Tarak

*
  •  229 229
    • View Profile
Re: Work offset table using VB
« Reply #1 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.

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Work offset table using VB
« Reply #2 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
« Last Edit: September 15, 2016, 05:51:55 AM by RICH »

Offline Tarak

*
  •  229 229
    • View Profile
Re: Work offset table using VB
« Reply #3 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.

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Work offset table using VB
« Reply #4 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