Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Flipz01 on January 06, 2009, 10:25:44 PM

Title: Another Tool Diameter/Wear Question
Post by: Flipz01 on January 06, 2009, 10:25:44 PM
I'm using a tool changer with 10 tools that are used to cut and then polish stone.  Several of these tools wear quickly, others more slowly.  I haven't found a good way to measure the tools since the ones that wear the most have faceted sides.

So, I've been trying to figure out how to do a set-up where I add an incremental change to the tool diameter automatically.  That is, if I call T1 and it has a 1" diameter - the first time I use the tool I simply use the D value.  The next time I use that tool, the D value is offset by a small amount (say 0.001").  The tools wear at a fairly consistent rate, so I could probably get very consistent results with a small reduction in diameter with each use.

Does anybody out there know how this might be done?
Title: Re: Another Tool Diameter/Wear Question
Post by: ger21 on January 06, 2009, 10:34:50 PM
In the latest development version, G41/G42 now uses the wear number from the tool table.

Or are you looking for a way to change the diameter automatically?
Title: Re: Another Tool Diameter/Wear Question
Post by: Chaoticone on January 06, 2009, 11:00:13 PM
Flipz01................... I think you are getting spoiled now.  ;D 

Rotten, rotten fellow.................. but, I understand and yes, it can be done. Would take some doings but it could automaticly add values to the wear every so often in time or total distance traveled I think.

Brett
Title: Re: Another Tool Diameter/Wear Question
Post by: Flipz01 on January 07, 2009, 11:05:55 AM
COOL!  And yes I admit it - I'm spoiled rotten.  I can make Mach do just about anything I can think of!  NICE! 

Title: Re: Another Tool Diameter/Wear Question
Post by: Flipz01 on January 10, 2009, 04:08:19 PM
And I'm surprised others haven't jumped in on this.  From reading comment threads other users have posted - looks like it is a common concern.
Title: Re: Another Tool Diameter/Wear Question
Post by: Graham Waterworth on January 12, 2009, 01:37:31 PM
You can update the tool offset on the fly with a G10 command :-

G91                       (set incremental mode)
G10 L1 P1 X0.001   (G10 L1 set tool offset, P1 is the tool offset number, X0.001 is the amount to adjust the offset by)
G90                       (set back to absolute mode)

Put this at the end of your code and the offset will be incremented ready for the next run.

Graham
Title: Re: Another Tool Diameter/Wear Question
Post by: Flipz01 on January 13, 2009, 10:40:01 AM
Easy and perfectly good solution!  Thanks.
Title: Re: Another Tool Diameter/Wear Question
Post by: Flipz01 on January 13, 2009, 01:03:40 PM
Graham - just to be sure (and for other readers as well):



G10 L1  -  This is the command to tell Mach to post an offset?  Does the L1 imply tool #1?

P1  -  I assume this tells Mach to offset Tool #1?

X0.001  -  This tells Mach to reduce the diameter by 0.001"?
Title: Re: Another Tool Diameter/Wear Question
Post by: Graham Waterworth on January 13, 2009, 03:27:05 PM
G10 L1  is the command that tells Mach3 the data in P and X is related to the tool offset table

Pn is the offset number,  to change tool offset 1 use P1 tool offset 2 use P2 etc.

Xn.nnn is the value you wish to increment/decrement by e.g. X0.001 or X-0.001

Graham