Hello Guest it is March 28, 2024, 11:30:25 AM

Author Topic: Tooltable in turn  (Read 2450 times)

0 Members and 1 Guest are viewing this topic.

Tooltable in turn
« on: October 16, 2011, 07:28:02 AM »
Hello to all.
It is possible to access the information of the current tool offset and display it on the screen? and do some math with it, for example with brains?

What I would like to do is for example: When calling T1250 (example), to be able to display on the mach screen the toolradius associated with the nÂș50 offset (present on the tooltable), and if possible do some calculations with it.

Thank you.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Tooltable in turn
« Reply #1 on: October 16, 2011, 10:43:18 AM »
OemDRO(107) is the tool nose rad DRO. It should already be on the screen if you are using the standard Turn screenset, if not easy enough to add with one of the editors.
Hood

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Tooltable in turn
« Reply #2 on: October 16, 2011, 11:03:31 AM »
Just looked and it seems it is still looking at the tool number rather than the offset number so afraid that wont work. What you would need to do is put a user DRO on the screen and then in your M6start macro have it write the rad to the user DRO when you call offset 50.

SetUserDRO(*********x,GetToolParam(50,2))

Should work, *********x is the number you name your user DRO

Hood
Re: Tooltable in turn
« Reply #3 on: October 16, 2011, 05:45:36 PM »
thanks,

then the GetToolParam is what I was looking for!

Thank you Mr Hood.