Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: jderou on December 06, 2017, 09:30:09 PM

Title: Selected tool not updating from T1 during toolchange
Post by: jderou on December 06, 2017, 09:30:09 PM
the .mctoolgetselected doesn't seem to be updating with the correct tool number when attempting a toolchange (i.e. T4M06 just says currenttool = previous).  It seems I have been working around this by turning on M01 stop at toolchanges, but now I have a toolchanger mostly functional.  It seems to always stay at tool 1.  Maybe this is a bug that has been fixed?  I haven't updated in around a year.
Title: Re: Selected tool not updating from T1 during toolchange
Post by: jderou on December 06, 2017, 09:57:32 PM
Update.  I was using M16 as the macro as I want to be able to designate which tools can auto change.  I think that is somehow part of the problem.  I changed to M6, but I still have to run the code twice for it to pick it up.
Title: Re: Selected tool not updating from T1 during toolchange
Post by: jderou on December 07, 2017, 05:51:23 PM
So I updated to build 3481 (easier than I feared) but the problem is the same.  First time I run T4 M6 it doesnt detect the T4 and says nothing to do.  Second cycle start it takes it. 
If I run T4 M6 once, then run T3 M6, it changes to tool 4.  It is like it is always a step behind.
I did find a workaround.  If I break it up like
T4
G4 P10
M6
It works as it should.
Would appreciate some insight.
Title: Re: Selected tool not updating from T1 during toolchange
Post by: joeaverage on December 07, 2017, 06:04:57 PM
Hi,
not sure that this will help but there is a setting within Mach4 that determines how the m6 is to be interpreted.
In one mode the current T number is the tool actually in the spindle whereas in the other mode the T number
is the next tool to be loaded. This allows the ATC unit to get the tool ready to be put in the machine and save
some time when changing tools.

Look on Configure/Mach/General page from memory.

Craig
Title: Re: Selected tool not updating from T1 during toolchange
Post by: jderou on December 07, 2017, 09:28:51 PM
That was it! Thanks!
Title: Re: Selected tool not updating from T1 during toolchange
Post by: joeaverage on December 08, 2017, 12:36:25 AM
Hi,
kool, just as a note for others the setting to which I was referring is Configure/Mach/Tools.

Craig