Manual tool change + tool lengh touch off

  • thanks for the help
  • Away
  • New Member
  • New Member
More
26 Oct 2025 17:47 #337231 by thanks for the help
Replied by thanks for the help on topic Manual tool change + tool lengh touch off
Thank you for the response,

I am using Axis gui with version 2.9.4.  I was using this format (debug,#<5081>) which yielded ######.  Upon your suggestion I tried this format (debug, 5181) which yielded the number in the var file....a big thank you for that clarification!!!! 

I think my main problem is that my tool table is not updated based on my 5063 variable.  When the probe trips the switch, I see the var file up updated, it stores tripped the z value in the 5063 variable, but that number is not populated in the tool table.  As a side note, I did have to add the 5063 variable manually to the var file.

Again, thank you for you time
 

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

More
26 Oct 2025 18:12 #337233 by andypugh
Replied by andypugh on topic Manual tool change + tool lengh touch off
You may need one of the G10 variants in your macro.
linuxcnc.org/docs/stable/html/gcode/g-code.html#gcode:g10-l0
Or possibly just a G43

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

  • thanks for the help
  • Away
  • New Member
  • New Member
More
26 Oct 2025 18:26 #337234 by thanks for the help
Replied by thanks for the help on topic Manual tool change + tool lengh touch off
Thank you, 

That would make sense, the G10 would populate the tool table and the G43 would assign the tool length offset.  I guess the mystery is where to add it to this ngc file?  And how did others have success with this code without those commands?   As you can tell I am really new to all this.  Attached is the sub routine I have been trying if you feel like looking at it.




 

File Attachment:

File Name: tool-chang...test.txt
File Size:11 KB
Attachments:

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
26 Oct 2025 19:19 #337240 by Aciera
Replied by Aciera on topic Manual tool change + tool lengh touch off
Tool offset is set here:
  G43.1 Z[#<_ToolZ> - #<_ToolZRef>]            ( Apply offset to Z height after Modal reset )

If this is run at every tool change then there may be no need to write the offset to the tool table.

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

  • thanks for the help
  • Away
  • New Member
  • New Member
More
26 Oct 2025 19:56 #337245 by thanks for the help
Replied by thanks for the help on topic Manual tool change + tool lengh touch off
So no need for the tool table to populate?  I think I have it running correct now....I was able to have a long reference tool to establish a G54 offset, I called a TXM6 for a short tool, and with that short tool I called it back to G54 and it hit the z target correct.  As long as I know not to look for a tool in the tool table I think I good for this part unless you think I am missing anything?

On a side note, I have another switch wired up to set my z offset "my G54" that is mobile, meaning I can set it anywhere on the table to establish my initial z offset, but I don't know where to find the code or how to initiate the probing cycle to make that happen, can someone point me in a direction to make that happen?  

Thanks again for all the help!!!!!  I'm excited to get this thing working!!!!!!!
 

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

Time to create page: 0.091 seconds
Powered by Kunena Forum