- Posts: 39
- Thank you received: 0
Automatic touchoff of face mill
I am not an expert user, but with the help of the wiki and forum, I have been able to remap M6 to do automatic touchoff quite nicely. Recently, I got a large face mill and this introduces a problem. The touchoff coordinates are fixed and centers the tool over the touchoff button (which is screwed to the table). However, the face mill is hollow in the center. It would need to be positioned a tool radius to the side, in order to measure at the cutting points . How can this be accomplished?
Thanks for any pointers,
/Chrishttps://forum.linuxcnc.org/10-advanced-configuration/topic/create#write
Please Log in to join the conversation.
Please Log in to join the conversation.
G53 G0 X[100 - #5410] Y100
You could, alternatively, turn on cutter diameter compensation before the move to the probing station.
linuxcnc.org/docs/2.7/html/gcode/overview.html#gcode:parameters
Please Log in to join the conversation.
Andy's suggestions are exactly what I was looking for and I will go for that for now, but perhaps remapping to accomplish automatic tool length measuring is a bad idea? I am the only one using this machine but, since remapping, the "program pointer" no longer points to the correct location in the g-code, which is awkward.
Also, the place where I found the code is gone:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...ch;hb=refs/heads/2.6
Maintaining will be difficult and I am still on 2.6...
@Sparky, do you have a better suggestion using other M or G codes?
Thanks,
/Chris
Please Log in to join the conversation.
cahlfors wrote: Andy's suggestions are exactly what I was looking for and I will go for that for now, but perhaps remapping to accomplish automatic tool length measuring is a bad idea? I am the only one using this machine but, since remapping, the "program pointer" no longer points to the correct location in the g-code, which is awkward.
Also, the place where I found the code is gone:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...ch;hb=refs/heads/2.6
Maintaining will be difficult and I am still on 2.6...
If your tool-holding arrangement can not load to a consistent tool length then I think that automatic tool length measurement is a good solution. Doing it as a remap is more convenient than doing it by adding a subroutine to the G-code and is more compatible with CAM systems, so I think it is the correct way to go.
The entire LinuxCNC git archive moved, the sample config you used still exists, but has moved to here:
github.com/LinuxCNC/linuxcnc/tree/master...h-tool-length-switch
Please Log in to join the conversation.
I really appreciate this!
/Chris
Please Log in to join the conversation.
It turns out that #5410 is always zero for me. I have added a non-zero diameter in the tool table for a specific tool, reload the tool table and change to that tool. Still zero.andypugh wrote: G53 G0 X[100 - #5410] Y100
Ideas?
/Chris
Please Log in to join the conversation.
Attachment not found
Please Log in to join the conversation.
Please Log in to join the conversation.
cahlfors wrote: Had some more time to tinker with this. It turns out that #5410 et al contain information about the *current* tool, not the one we are changing *to* and so cannot be used in the remap code.
G43 takes an optional H parameter, so you can issue a G43 to load the offsets for the next tool and read out the diameter from #5410 without physically changing tool.
You probably then want to zero-out the offsets (G49) before probing and finally load the new offsets at the same time as issuing the M6.
Please Log in to join the conversation.
