Automatic touchoff of face mill

More
8 years 4 months ago #112988 by cahlfors
Dear forum,

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.

More
8 years 4 months ago #112999 by Sparky961
Why M6? When I see an M6 in a program, the only thing I expect it to do is change the tool. On a mill that usually includes raising the spindle and whatever automatic mechanisms exist to physically swap out the tool. If you're the only one using the machine then it's not so horrible, but what you're doing certainly strikes me as non-standard and could cause a safety issue if someone isn't expecting it to come down on the touch plate. I'd suggest using a different M-code for your custom functionality.

Please Log in to join the conversation.

More
8 years 4 months ago #113014 by andypugh
If you program in the tool diameter in the tool table then you can make your probe routine offset by one tool radius. This is probably also appropriate for smaller cutters, so doesn't need special handling.

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.

More
8 years 4 months ago #113068 by cahlfors
Thank you both for valuable input!
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.

More
8 years 4 months ago #113070 by andypugh

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.

More
8 years 4 months ago #113100 by cahlfors
Thanks Andy,
I really appreciate this!

/Chris

Please Log in to join the conversation.

More
7 years 8 months ago #126721 by cahlfors
I am having another go with this:

andypugh wrote: G53 G0 X[100 - #5410] Y100

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.
Ideas?

/Chris

Please Log in to join the conversation.

More
7 years 8 months ago #127187 by andypugh
Odd, it works for me in a simulator.

Attachment not found

Please Log in to join the conversation.

More
7 years 5 months ago #133557 by cahlfors
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. I suppose that enabling cutter compensation would suffer from the same problem. Is there a way to find out the tool diameter in the remap code?

Please Log in to join the conversation.

More
7 years 5 months ago #134174 by andypugh

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.

Time to create page: 0.394 seconds
Powered by Kunena Forum