Reading tool table in G-Code

More
21 Jan 2021 03:14 #196053 by JohnnyCNC
Is there a way to determine if there is a Z value in the tool table for the current tool in G-Code?

I have been looking at the parameters and GCode but nothing seems to provide that data. I have my manual tool change M6 remap working. Each tool gets measured during the tool change. Great, that works. But since I do have TTS tool holders for most tools I just need to measure the non-fixed length tools like drill bits in a chuck. I thought that if I could detect that a tool was one of the fixed length ones I could skip the touch-off on the tool-setter. I thought that I could look at the Z offset and if it is zero then measure the tool. Otherwise use the offset from the tool table

Thanks
John

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

More
22 Jan 2021 21:04 #196277 by andypugh
#5403 shows the Z length of the loaded tool.

So, to get the length of a different tool, you could try:
#2 = 22 (tool to query)
#1 = #5400
M6 T#2 G43
(DEBUG, Tool #2 Length is #5403)
M6 T#1 G43

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

More
23 Jan 2021 01:39 #196303 by JohnnyCNC

#5403 shows the Z length of the loaded tool.

So, to get the length of a different tool, you could try:
#2 = 22 (tool to query)
#1 = #5400
M6 T#2 G43
(DEBUG, Tool #2 Length is #5403)
M6 T#1 G43


Thanks Andy. That worked. I had the right Idea. I was just looking at the wrong parameter. I was looking at #5213.

Thanks again. I really appreciate the help and hope to pay it forward someday.

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

Time to create page: 0.122 seconds
Powered by Kunena Forum