Questions about tool# and H#

More
3 years 6 months ago - 3 years 6 months ago #270128 by Vmax549
Hi Guys, I have a couple of questions. I am working on a couple of functions that require me to know the current  H#.

I do not see any reference to extract the Current H#. I can get the Z offset that is applied but not the current H#. And yes I do know that the H# is not really a number but a process. But having the actual current H# would be handy.

Any Ideas ???

(;-) TP
Last edit: 3 years 6 months ago by Vmax549.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #270339 by snowgoer540
I'm not sure it's just sitting there like you might be thinking.

I suppose you have two options:

1. You can assume that the Tool Number = the H number. I am not sure I know the use case for having a tool number and an offset number be different. That seems like a terrible idea, but I'm open to someone's explaination.

B. You could take the offset length, open tool.table, and search for that length in the table to find the corresponding tool number. That would then be your H number for that offset length.

It might be more helpful to know what you are using the H number for, and then maybe a better solution could be suggested.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago - 3 years 6 months ago #270367 by spumco
Replied by spumco on topic Questions about tool# and H#

I am not sure I know the use case for having a tool number and an offset number be different. That seems like a terrible idea, but I'm open to someone's explaination.


 
 
This doesn't apply to LCNC (yet), but other controls permit calling different offsets for a given tool number.  Different controls handle this in various ways, but my Fanuc 21T has 12 tool slots, but 16 offsets available in the table.  And the 'extra' offsets aren't just X or Z, there are also tool tip orientation and a matching wear offset.

The most frequent example of this is on lathes.

Case 1:
You can install a gang-style tool block on a turret position, such as a spot/drill/tap combo.  In my case the gcode would call T1212 for the spot, T1213 for the drill, and T1214 for the tap.

Case 2:
You want different offsets for a multi-function tool.  Generally, a drill/tap/reamer is set (on my lathe) to X0 offset.  Boring bars are not - they're set by the cutting tip.  In the case of multifunction tools (insert drills with boring capabilities), CAM programs aren't always able to handle them gracefully and you have to fudge it by defining two separate tools with the same tool number - but different offsets.

I'm sure there are other examples - perhaps with subspindle lathes where a rear turret position has the same tool (indexing) number, but a different offset.  I know Siemens 840 has 9 "tool correction" slots available.
Last edit: 3 years 6 months ago by spumco. Reason: Fatfingered
The following user(s) said Thank You: snowgoer540

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #270370 by snowgoer540
I think I’m picking up what you’re putting down.

I don’t follow the use case for case 1 since they are 3 different tools. But I do follow having the same tool with different features at different Z offsets.

Linuxcnc can do that.

T1 M6 G43 H1
T1 M6 G43 H2
T1 M6 G43 H3

Would be tool 1 at three different offsets. But if I understand it correctly, it’s still not exactly what you’d be after since H2 and H3 correspond to T2 and T3’s offsets.

Unless I’m completely misinterpreting it. Admittedly I didn’t spend a ton of time on researching it …

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #270379 by scotth
Replied by scotth on topic Questions about tool# and H#
Why bother with H# if it is always tied to the same T#?

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #270384 by Vmax549
A case comes to mind where the OP is doing prototype work and using a lot of tools NOT in the tool changer. Instead of unloading the ATC and reloading with the correct tools the OP simply manually changes tools and assigns the tool length offsets by changing the H#. The tool number stays the same and just the H# changes. This can save a ton of time when working on an unknwn prototype.

SO IF you knew the last H# and stored it away in a #param when it comes time to restart with the tool changer simply put back in the last Tool the ATC ran and input the saved H# and you are back in business. I know simply write it down ?? Yes but that is me working for the machine I prefere it the other way around (;-)

(;-) TP

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum